banner data
This commit is contained in:
@@ -160,6 +160,15 @@ long RecoCheckOffers(int itm_count, CVars in, CVars &out ){
|
||||
snprintf(vname, sizeof (vname), "button_text_%05d", ic);
|
||||
out[vname] = "Continue";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_button_text_%05d", ic);
|
||||
out[vname] = "short_button_text";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_title_%05d", ic);
|
||||
out[vname] = "short_title";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_description_%05d", ic);
|
||||
out[vname] = "short_description";
|
||||
|
||||
ret = PHP_API_OK;
|
||||
}
|
||||
|
||||
@@ -213,6 +222,15 @@ long RecoCheckFamilyLogin(int itm_count, CVars in, CVars &out ){
|
||||
snprintf(vname, sizeof (vname), "button_text_%05d", ic);
|
||||
out[vname] = "Continue";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_button_text_%05d", ic);
|
||||
out[vname] = "short_button_text";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_title_%05d", ic);
|
||||
out[vname] = "short_title";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_description_%05d", ic);
|
||||
out[vname] = "short_description";
|
||||
|
||||
ret = PHP_API_OK;
|
||||
}
|
||||
} catch (bad_parameter) {
|
||||
@@ -264,6 +282,15 @@ long RecoCheckFamilyCount( int itm_count, CVars in, CVars &out ){
|
||||
snprintf(vname, sizeof (vname), "button_text_%05d", ic);
|
||||
out[vname] = "Continue";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_button_text_%05d", ic);
|
||||
out[vname] = "short_button_text";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_title_%05d", ic);
|
||||
out[vname] = "short_title";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_description_%05d", ic);
|
||||
out[vname] = "short_description";
|
||||
|
||||
ret = PHP_API_OK;
|
||||
}
|
||||
} catch (bad_parameter) {
|
||||
@@ -315,6 +342,15 @@ long RecoCheckCoupons( int itm_count, CVars in, CVars &out ){
|
||||
snprintf(vname, sizeof (vname), "button_text_%05d", ic);
|
||||
out[vname] = "Continue";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_button_text_%05d", ic);
|
||||
out[vname] = "short_button_text";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_title_%05d", ic);
|
||||
out[vname] = "short_title";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_description_%05d", ic);
|
||||
out[vname] = "short_description";
|
||||
|
||||
ret = PHP_API_OK;
|
||||
}
|
||||
} catch (bad_parameter) {
|
||||
@@ -365,6 +401,15 @@ long RecoCheckTaskDue( int itm_count, CVars in, CVars &out ){
|
||||
snprintf(vname, sizeof (vname), "button_text_%05d", ic);
|
||||
out[vname] = "View Tasks";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_button_text_%05d", ic);
|
||||
out[vname] = "short_button_text";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_title_%05d", ic);
|
||||
out[vname] = "short_title";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_description_%05d", ic);
|
||||
out[vname] = "short_description";
|
||||
|
||||
ret = PHP_API_OK;
|
||||
}
|
||||
} catch (bad_parameter) {
|
||||
@@ -416,6 +461,15 @@ long RecoCheckTaskReview( int itm_count, CVars in, CVars &out ){
|
||||
snprintf(vname, sizeof (vname), "button_text_%05d", ic);
|
||||
out[vname] = "View Tasks";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_button_text_%05d", ic);
|
||||
out[vname] = "short_button_text";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_title_%05d", ic);
|
||||
out[vname] = "short_title";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_description_%05d", ic);
|
||||
out[vname] = "short_description";
|
||||
|
||||
ret = PHP_API_OK;
|
||||
}
|
||||
} catch (bad_parameter) {
|
||||
@@ -466,6 +520,15 @@ long RecoCheckBlog( int itm_count, CVars in, CVars &out ){
|
||||
snprintf(vname, sizeof (vname), "button_text_%05d", ic);
|
||||
out[vname] = "View Article";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_button_text_%05d", ic);
|
||||
out[vname] = "short_button_text";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_title_%05d", ic);
|
||||
out[vname] = "short_title";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_description_%05d", ic);
|
||||
out[vname] = "short_description";
|
||||
|
||||
ret = PHP_API_OK;
|
||||
|
||||
} catch (bad_parameter) {
|
||||
|
||||
@@ -115,6 +115,9 @@ class ResultFormatter extends Model
|
||||
"banner_location" => $out["banner_location_${key}"],
|
||||
"link_path" => $out["link_path_${key}"],
|
||||
"button_text" => $out["button_text_${key}"],
|
||||
"short_button_text" => $out["short_button_text_${key}"],
|
||||
"short_title" => $out["short_title_${key}"],
|
||||
"short_description" => $out["short_description_${key}"],
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -109,6 +109,9 @@ function processOutJson($in, $out) {
|
||||
"banner_location" => $out["banner_location_${key}"],
|
||||
"link_path" => $out["link_path_${key}"],
|
||||
"button_text" => $out["button_text_${key}"],
|
||||
"short_button_text" => $out["short_button_text_${key}"],
|
||||
"short_title" => $out["short_title_${key}"],
|
||||
"short_description" => $out["short_description_${key}"],
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user