_e("Articles Rating Block", "gd-star-rating"); ?> </legend> <p><?php _e("StarRater will render actual rating block if you choose not to have it automatically inserted. This way you can position it wherever you want in the contnents.", "gd-star-rating"); ?> </p> </fieldset> <fieldset> <legend><?php _e("Template", "gd-star-rating"); ?> </legend> <?php gdTemplateHelper::render_templates_section("SRB", "srRatingBlockTemplate", 0, 300); ?> </fieldset> <fieldset> <legend><?php _e("Settings", "gd-star-rating"); ?> </legend> <input type="checkbox" size="5" id="srArticleRead" name="srArticleRead" /><label for="srArticleRead"> <?php _e("Display rating block as read only.", "gd-star-rating"); ?> </label><br /> </fieldset> <fieldset>
_e("Thumbs Rating Block", "gd-star-rating"); ?> </legend> <p><?php _e("StarRater will render actual rating block if you choose not to have it automatically inserted. This way you can position it wherever you want in the contnents.", "gd-star-rating"); ?> </p> </fieldset> <fieldset> <legend><?php _e("Template", "gd-star-rating"); ?> </legend> <?php gdTemplateHelper::render_templates_section("TAB", "srThumbsTemplate", 0, 300); ?> </fieldset> <fieldset> <legend><?php _e("Settings", "gd-star-rating"); ?> </legend> <input type="checkbox" size="5" id="srThumbsRead" name="srThumbsRead" /><label for="srThumbsRead"> <?php _e("Display rating block as read only.", "gd-star-rating"); ?> </label><br /> </fieldset>
_e("Aggregated Comments Ratings", "gd-star-rating"); ?> </legend> <p><?php _e("This will render aggregated comments rating for the post.", "gd-star-rating"); ?> </p> </fieldset> <fieldset> <legend><?php _e("Template", "gd-star-rating"); ?> </legend> <?php gdTemplateHelper::render_templates_section("CAR", "srTemplateCAR", 0, 300); ?> </fieldset> <fieldset> <legend><?php _e("Filter", "gd-star-rating"); ?> </legend> <table border="0" cellpadding="3" cellspacing="0" width="100%"> <tr> <td class="gdsrleft"><?php _e("Calculate Votes From", "gd-star-rating"); ?> :</td> <td class="gdsrright"><select name="srCagShow" id="srCagShow" style="width: 130px">
<th scope="col" style="text-align: right"><?php _e("Options", "gd-star-rating"); ?> </th> </tr> </thead> <tbody> <?php $tr_class = ""; foreach ($tpls->tpls as $t) { echo '<tr id="post-' . $t->code . '" class="' . $tr_class . ' author-self status-publish" valign="top">'; echo '<td>' . $t->code . '</td>'; echo '<td><strong>' . $t->section . '</strong></td>'; echo '<td>'; gdTemplateHelper::render_templates_section($t->code, "gdsr_section[" . $t->code . "]", 0, 350); echo '</td>'; echo '<td></td>'; echo '</tr>'; if ($tr_class == "") { $tr_class = "alternate "; } else { $tr_class = ""; } } ?> </tbody> </table> <br class="clear"/> <div class="tablenav">
</table> </td> </tr> <tr><th scope="row"><?php _e("Defaults", "gd-star-rating"); ?> </th> <td> <table cellpadding="0" cellspacing="0" class="previewtable"> <tr> <td width="150"><?php _e("Rating Template", "gd-star-rating"); ?> :</td> <td align="left"><?php gdTemplateHelper::render_templates_section("TCB", "gdsr_default_tcb_template", $gdsr_options["default_tcb_template"], 350); ?> </td> </tr> <tr> <td width="150"><?php _e("Animation indicator", "gd-star-rating"); ?> :</td> <td align="left"><?php GDSRHelper::render_loaders("gdsr_wait_loader_cmmthumb", $gdsr_options["wait_loader_cmmthumb"], 'jqloadercmmthumb', 180, '', true); ?> </td> </tr> </table> </td>
echo $wpfn; ?> [title]" id="gdstarr-title" value="<?php echo $wpno["title"]; ?> " /></td> </tr> </table> <table border="0" cellpadding="2" cellspacing="0" width="100%"> <tr> <td width="140" nowrap="nowrap"><?php _e("Template", "gd-star-rating"); ?> :</td> <td align="right"><?php gdTemplateHelper::render_templates_section("WBR", $wpfn . "[template_id]", $wpno["template_id"], 260); ?> </td> </tr> <tr> <td width="140" nowrap="nowrap"><?php _e("Show Widget To", "gd-star-rating"); ?> :</td> <td align="right"> <label><select name="<?php echo $wpfn; ?> [display]" id="gdstarr-display" style="width: 110px"> <option value="all"<?php echo $wpno['display'] == 'all' ? ' selected="selected"' : '';
<fieldset> <legend><?php _e("Template", "gd-star-rating"); ?> </legend> <?php gdTemplateHelper::render_templates_section("MRB", "srTemplateMRB", 0, 300); ?> </fieldset> <fieldset> <legend><?php _e("Multi Ratings", "gd-star-rating"); ?> </legend> <table border="0" cellpadding="2" cellspacing="0" width="100%"> <tr> <td class="gdsrleft"><?php _e("Set", "gd-star-rating"); ?> :</td> <td class="gdsrright"> <select id="srMultiRatingSet" name="srMultiRatingSet" style="width: 200px"> <?php GDSRHelper::render_styles_select($gdst_multis, 1); ?> </select> </td> </tr> </table> </fieldset>
<input type="submit" class="inputbutton" value="<?php _e("Save Template", "gd-star-rating"); ?> " name="gdsr_saving"/> </td><td class="tpl-editor-list-td"> <?php foreach ($template->elements as $el) { echo '<div class="tpl-element-single">'; echo '<p class="tpl-element-tag">' . $el->tag . '</p>'; echo '<p class="tpl-element-desc">' . $el->description . '</p>'; if ($el->tpl > -1) { echo '<div class="tpl-element-single-select"><p>'; _e("Select template to use for this element:", "gd-star-rating"); $section = $template->tpls[$el->tpl]->code; echo '</p>'; gdTemplateHelper::render_templates_section($section, "tpl_tpl[" . $section . "]", $dependencies[$section]); echo '</div>'; } echo '</div>'; } ?> </td> </tr></table> </div> </form> <?php } ?> </div>
<?php _e("Map with dependencies for templates", "gd-star-rating"); ?> :<br /> <a style="font-weight: bold" target="_blank" href="<?php echo STARRATING_URL; ?> info/t2map.html"><?php _e("T2 Templates Map", "gd-star-rating"); ?> </a> </div> <div class="tablenav-pages"> <form method="post"> <table cellpadding="0" cellspacing="0"><tr><td> <?php _e("New template for:", "gd-star-rating"); ?> </td><td> <?php gdTemplateHelper::render_templates_sections("tpl_section", $tpls->list_sections(), false); ?> <input class="inputbutton inputfilter" type="submit" name="gdsr_create" value="<?php _e("Create", "gd-star-rating"); ?> " /> </td></tr></table> </form> </div> </div>
echo $this->get_field_id('title'); ?> " value="<?php echo $instance["title"]; ?> " /></td> </tr> </table> <table border="0" cellpadding="2" cellspacing="0" width="100%"> <tr> <td width="140" nowrap="nowrap"><?php _e("Template", "gd-star-rating"); ?> :</td> <td align="right"><?php gdTemplateHelper::render_templates_section("WSR", $this->get_field_name('template_id'), $instance["template_id"], 260); ?> </td> </tr> <tr> <td width="140" nowrap="nowrap"><?php _e("Show Widget To", "gd-star-rating"); ?> :</td> <td align="right"> <label><select name="<?php echo $this->get_field_name('dispaly'); ?> " id="<?php echo $this->get_field_id('display'); ?>
</tr> </thead> <tbody> <?php $templates = gdTemplateDB::get_templates_dep(); $tr_class = ""; foreach ($templates as $t) { $dependencies = unserialize($t->dependencies); if (is_array($dependencies)) { echo '<tr id="post-' . $t->template_id . '" class="' . $tr_class . ' author-self status-publish" valign="top">'; echo '<td><strong>' . $t->template_id . '</strong></td>'; echo '<td>' . $t->section . '</td>'; echo '<td>' . $t->name . '</td>'; echo '<td>'; gdTemplateHelper::prepare_dependencies($all_sections, $templates, $dependencies, $t->template_id); echo '</td>'; echo '</tr>'; if ($tr_class == "") { $tr_class = "alternate "; } else { $tr_class = ""; } } } ?> </tbody> </table> <br class="clear"/> <div class="tablenav">
function prepare_dependencies($secs, $tpls, $dep, $tid) { echo '<table class="tplclean">'; foreach ($dep as $d => $id) { gdTemplateHelper::render_dependency($secs, $tpls, $d, $id, $tid); } echo '</table>'; }