Example #1
0
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 
GDSRHelper::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"' : '';
Example #2
0
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 
GDSRHelper::render_templates_section("WCR", $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('display');
?>
" id="<?php 
echo $this->get_field_id('display');
?>
                    <input type="text" name="gdsr_classstars" value="<?php 
echo wp_specialchars($gdsr_options["srb_class_stars"]);
?>
" style="width: 170px" />
                </td>
            </tr>
        </table>
        <div class="gdsr-table-split"></div>
        <table cellpadding="0" cellspacing="0" class="previewtable">
            <tr>
                <td width="150"><?php 
_e("Rating Template", "gd-star-rating");
?>
:</td>
                <td align="left"><?php 
GDSRHelper::render_templates_section("SRB", "gdsr_default_srb_template", $gdsr_options["default_srb_template"], 350);
?>
</td>
            </tr>
        </table>
    </td>
</tr>
<tr><th scope="row"><?php 
_e("Restrict", "gd-star-rating");
?>
</th>
    <td>
        <input type="checkbox" name="gdsr_authorvote" id="gdsr_authorvote"<?php 
if ($gdsr_options["author_vote"] == 1) {
    echo " checked";
}
Example #4
0
<div id="commentsaggr_panel" class="panel">
<fieldset>
<legend><?php 
_e("Template", "gd-star-rating");
?>
</legend>
    <?php 
GDSRHelper::render_templates_section("CAR", "srTemplateCAR", 0, 300);
?>
</fieldset>

<fieldset>
<legend><?php 
_e("Aggregated Comments Ratings", "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"><label><select name="srCagShow" id="srCagShow" style="width: 130px">
            <option value="total"><?php 
_e("Everyone", "gd-star-rating");
?>
</option>
            <option value="visitors"><?php 
_e("Visitors Only", "gd-star-rating");
?>
</option>
Example #5
0
?>
</legend>
    <?php 
GDSRHelper::render_templates_section("RSB", "srTemplateRSB", 0, 300);
?>
</fieldset>
</div>

<div id="articlesrater_panel" class="panel">
<fieldset>
<legend><?php 
_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 
GDSRHelper::render_templates_section("SRB", "srRatingBlockTemplate", 0, 300);
?>
</fieldset>
</div>
?>
    </td>
</tr>
</tbody></table>
<p class="submit"><input type="submit" value="<?php 
_e("Save Template", "gd-star-rating");
?>
" name="gdsr_saving"/></p>
</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>';
        GDSRHelper::render_templates_section($section, "tpl_tpl[" . $section . "]", $dependencies[$section]);
        echo '</div>';
    }
    echo '</div>';
}
?>
</td>
</tr></table>
</div>
</form>
</div>
            <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>';
    GDSRHelper::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">
Example #8
0
?>
</label>
        </td>
      </tr>
    </table>
</fieldset>
</div>

<div id="multisreview_panel" class="panel">
<fieldset>
<legend><?php 
_e("Template", "gd-star-rating");
?>
</legend>
    <?php 
GDSRHelper::render_templates_section("RMB", "srTemplateRMB", 0, 300);
?>
</fieldset>

<fieldset>
<legend><?php 
_e("Multi Reviews", "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">