Esempio n. 1
0
$tpls->add_template($t);
$t = new gdTemplate("TCT", __("Thumbs Comment Ratings Text", "gd-star-rating"), "%CMM_THUMBS_TEXT%");
$t->add_template("EWV", "%WORD_VOTES%");
$t->add_element("%ID%", __("post/page id", "gd-star-rating"));
$t->add_element("%RATING%", __("comment rating", "gd-star-rating"));
$t->add_element("%PERCENTAGE%", __("comment percentage rating", "gd-star-rating"));
$t->add_element("%VOTES%", __("total votes for article", "gd-star-rating"));
$t->add_element("%VOTES_UP%", __("total up votes for article", "gd-star-rating"));
$t->add_element("%VOTES_DOWN%", __("total down votes for article", "gd-star-rating"));
$t->add_element("%VOTE_VALUE%", __("saved vote value", "gd-star-rating"));
$t->add_element("%WORD_VOTES%", __("singular/plural word votes", "gd-star-rating"));
$t->add_element("%CSS_AUTO%", __("auto generated css", "gd-star-rating"));
$t->add_part(__("Normal", "gd-star-rating"), "normal", "", array("%RATING%", "%VOTES_TOTAL%", "%VOTES_UP%", "%VOTES_DOWN%", "%ID%", "%WORD_VOTES%"));
$t->add_part(__("Vote Saved", "gd-star-rating"), "vote_saved", "", "all");
$tpls->add_template($t);
$t = new gdTemplate("TCB", __("Thumbs Comment Rating Block", "gd-star-rating"));
$t->add_template("TCT", "%CMM_THUMBS_TEXT%");
$t->add_element("%THUMB_DOWN%", __("thumb down image style", "gd-star-rating"));
$t->add_element("%THUMB_UP%", __("thumb up image style", "gd-star-rating"));
$t->add_element("%ID%", __("post/page id", "gd-star-rating"));
$t->add_element("%RATING%", __("comment rating", "gd-star-rating"));
$t->add_element("%PERCENTAGE%", __("comment percentage rating", "gd-star-rating"));
$t->add_element("%VOTES%", __("total votes for article", "gd-star-rating"));
$t->add_element("%VOTES_UP%", __("total up votes for article", "gd-star-rating"));
$t->add_element("%VOTES_DOWN%", __("total down votes for article", "gd-star-rating"));
$t->add_element("%VOTE_VALUE%", __("saved vote value", "gd-star-rating"));
$t->add_element("%CMM_THUMBS_TEXT%", __("rating text", "gd-star-rating"));
$t->add_element("%CMM_HEADER_TEXT%", __("rating header text", "gd-star-rating"));
$t->add_element("%CMM_CSS_BLOCK%", __("css class for whole block", "gd-star-rating"));
$t->add_element("%CMM_CSS_HEADER%", __("css class for header", "gd-star-rating"));
$t->add_element("%CMM_CSS_STARS%", __("css class for stars", "gd-star-rating"));
Esempio n. 2
0
$t->add_element("%CSS_THUMBS%", __("css class for stars", "gd-star-rating"));
$t->add_element("%CSS_TEXT%", __("css class for rating text", "gd-star-rating"));
$t->add_part(__("Inactive", "gd-star-rating"), "inactive", "", "all", "area");
$t->add_part(__("Active", "gd-star-rating"), "active", "", "all", "area");
$tpls->add_template($t);
$t = new gdTemplate("TCT", __("Thumbs Comment Ratings Text", "gd-star-rating"), "%CMM_THUMBS_TEXT%");
$t->add_template("EWV", "%WORD_VOTES%");
$t->add_element("%ID%", __("post/page id", "gd-star-rating"));
$t->add_element("%RATING%", __("comment rating", "gd-star-rating"));
$t->add_element("%PERCENTAGE%", __("comment percentage rating", "gd-star-rating"));
$t->add_element("%VOTES%", __("total votes for article", "gd-star-rating"));
$t->add_element("%VOTES_UP%", __("total up votes for article", "gd-star-rating"));
$t->add_element("%VOTES_DOWN%", __("total down votes for article", "gd-star-rating"));
$t->add_element("%WORD_VOTES%", __("singular/plural word votes", "gd-star-rating"));
$t->add_element("%VOTE_VALUE%", __("saved vote value", "gd-star-rating"));
$t->add_part(__("Normal", "gd-star-rating"), "normal", "", array("%RATING%", "%VOTES_TOTAL%", "%VOTES_UP%", "%VOTES_DOWN%", "%ID%", "%WORD_VOTES%"));
$t->add_part(__("Vote Saved", "gd-star-rating"), "vote_saved", "", "all");
$tpls->add_template($t);
$t = new gdTemplate("TCB", __("Thumbs Comment Rating Block", "gd-star-rating"));
$t->add_template("TCT", "%CMM_THUMBS_TEXT%");
$t->add_element("%THUMB_DOWN%", __("thumb down image style", "gd-star-rating"));
$t->add_element("%THUMB_UP%", __("thumb up image style", "gd-star-rating"));
$t->add_element("%CMM_THUMBS_TEXT%", __("rating text", "gd-star-rating"));
$t->add_element("%CMM_HEADER_TEXT%", __("rating header text", "gd-star-rating"));
$t->add_element("%CMM_CSS_BLOCK%", __("css class for whole block", "gd-star-rating"));
$t->add_element("%CMM_CSS_HEADER%", __("css class for header", "gd-star-rating"));
$t->add_element("%CMM_CSS_STARS%", __("css class for stars", "gd-star-rating"));
$t->add_element("%CMM_CSS_TEXT%", __("css class for rating text", "gd-star-rating"));
$t->add_part(__("Inactive", "gd-star-rating"), "inactive", "", "all", "area");
$t->add_part(__("Active", "gd-star-rating"), "active", "", "all", "area");
$tpls->add_template($t);
$t->add_part(__("Normal", "gd-star-rating"), "normal", "", "all", "area");
$tpls->add_template($t);
$t = new gdTemplate("RCB", __("Comments Review Rating Block", "gd-star-rating"));
$t->add_element("%CMM_RATING_STARS%", __("comment rating stars", "gd-star-rating"));
$t->add_element("%CMM_RATING%", __("comment rating", "gd-star-rating"));
$t->add_element("%MAX_CMM_RATING%", __("maximum comment rating value", "gd-star-rating"));
$t->add_part(__("Normal", "gd-star-rating"), "normal", "", "all", "area");
$tpls->add_template($t);
$t = new gdTemplate("RMB", __("Multi Review Rating Block", "gd-star-rating"));
$t->add_template("MRS", "%MUR_RATING_STARS%");
$t->add_element("%MUR_RATING_STARS%", __("multi rating stars", "gd-star-rating"));
$t->add_element("%MAX_RATING%", __("maximum comment rating value", "gd-star-rating"));
$t->add_element("%AVG_RATING%", __("average rating", "gd-star-rating"));
$t->add_element("%AVG_RATING_STARS%", __("average rating stars", "gd-star-rating"));
$t->add_part(__("Normal", "gd-star-rating"), "normal", "", "all", "area");
$tpls->add_template($t);
$t = new gdTemplate("ACR", __("Aggregated Comments Review Rating", "gd-star-rating"));
$t->add_template("EWV", "%WORD_VOTES%");
$t->add_element("%CMM_RATING%", __("comment rating", "gd-star-rating"));
$t->add_element("%MAX_CMM_RATING%", __("maximum comment rating value", "gd-star-rating"));
$t->add_element("%CMM_VOTES%", __("total votes for all comment", "gd-star-rating"));
$t->add_element("%CMM_STARS%", __("comment rating stars", "gd-star-rating"));
$t->add_element("%WORD_VOTES%", __("singular/plural word votes", "gd-star-rating"));
$t->add_part(__("Normal", "gd-star-rating"), "normal", "", "all");
$tpls->add_template($t);
$t = new gdTemplate("MRE", __("Multi Review Editor", "gd-star-rating"));
$t->add_template("MRS", "%MUR_RATING_STARS%");
$t->add_element("%MUR_RATING_STARS%", __("multi rating stars", "gd-star-rating"));
$t->add_element("%MUR_CSS_BLOCK%", __("css class for whole block", "gd-star-rating"));
$t->add_part(__("Normal", "gd-star-rating"), "normal", "", "all", "area");
$tpls->add_template($t);