out[vname] = "Need more information how it works ?";
This commit is contained in:
@@ -120,10 +120,9 @@ long WrenchHomeBanners(CVars in, CVars &out) {
|
||||
|
||||
}
|
||||
if( RecoReferAFreind( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; }
|
||||
if( RecoLearnMore( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; }
|
||||
if( RecoCheckBlog( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; }
|
||||
|
||||
|
||||
|
||||
out["home_dash_type"]="DEFAULT_HOME_DASH";
|
||||
LoginWrenchBoardSetDashType(in, out);
|
||||
/*
|
||||
@@ -165,6 +164,66 @@ JOBOWNER_HOME_DASH
|
||||
/*
|
||||
family_uid::text IN (SELECT uid::text FROM members_family WHERE member_id = %lu )
|
||||
*/
|
||||
long RecoLearnMore( int itm_count, CVars in, CVars &out ){
|
||||
logfmt(logINFO, "RecoLearnMore()");
|
||||
long ret = PHP_API_BAD_PARAM;
|
||||
const PGresult *res;
|
||||
char vname[30];
|
||||
try {
|
||||
|
||||
|
||||
snprintf(vname, sizeof (vname), "title_%05d", ic);
|
||||
out[vname] = "Learn more";
|
||||
|
||||
snprintf(vname, sizeof (vname), "description_%05d", ic);
|
||||
out[vname] = "Need more information how it works ?";
|
||||
|
||||
snprintf(vname, sizeof (vname), "card_type_%05d", ic);
|
||||
out[vname] = "LEARN_MORE";
|
||||
|
||||
snprintf(vname, sizeof (vname), "offer_id_%05d", ic);
|
||||
out[vname] = "0";
|
||||
|
||||
snprintf(vname, sizeof (vname), "blog_id_%05d", ic);
|
||||
out[vname] = "0";
|
||||
|
||||
snprintf(vname, sizeof (vname), "card_icon_%05d", ic);
|
||||
out[vname] = "icon1 imp_offers";
|
||||
|
||||
snprintf(vname, sizeof (vname), "banner_%05d", ic);
|
||||
out[vname] ="https://www.wrenchboard.com/assets/images/apps/banners/learnmore.jpg";
|
||||
|
||||
snprintf(vname, sizeof (vname), "banner_location_%05d", ic);
|
||||
out[vname] ="URL";
|
||||
|
||||
snprintf(vname, sizeof (vname), "link_path_%05d", ic);
|
||||
out[vname] = "learnmore";
|
||||
|
||||
snprintf(vname, sizeof (vname), "button_text_%05d", ic);
|
||||
out[vname] = "View";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_button_text_%05d", ic);
|
||||
out[vname] = "View";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_title_%05d", ic);
|
||||
out[vname] = "Learn more";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_description_%05d", ic);
|
||||
out[vname] = "Need more information how it works ?";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_style_%05d", ic);
|
||||
out[vname] = "short_style";
|
||||
|
||||
ret = PHP_API_OK;
|
||||
|
||||
|
||||
|
||||
} catch (bad_parameter) {
|
||||
out["status"] = "ERROR";
|
||||
}
|
||||
logfmt(logINFO, "/RecoLearnMore()");
|
||||
return ret;
|
||||
}
|
||||
|
||||
long RecoFamilyWaiting( int itm_count, CVars in, CVars &out ){
|
||||
logfmt(logINFO, "RecoFamilyWaiting()");
|
||||
@@ -227,8 +286,8 @@ long RecoFamilyWaiting( int itm_count, CVars in, CVars &out ){
|
||||
out["status"] = "ERROR";
|
||||
}
|
||||
logfmt(logINFO, "/RecoFamilyWaiting()");
|
||||
return ret;
|
||||
return 0;
|
||||
return ret;
|
||||
//return 0;
|
||||
}
|
||||
long RecoLearnMore( int itm_count, CVars in, CVars &out ){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user