protected function template()
    {
        $html = parent::template();
        $html .= <<<EOT
\t<script>
\t\tjQuery("#[ID]").peFieldSelectColumns();
\t</script>
EOT;
        return $html;
    }
Exemple #2
0
 public function shortcode_manager()
 {
     $params = array("label" => __("Shortcode", 'Pixelentity Theme/Plugin'), "groups" => true, "options" => $this->buildScOptionList());
     $select = new PeThemeFormElementSelect("peSCM", "select", $params);
     echo $this->pre();
     $select->render();
     foreach ($this->shortcodes as $sc) {
         //echo "<div class=\"peThemeSC {$sc->trigger}\" id=\"{$sc->trigger}\">";
         echo "<div class=\"peThemeSC pe-shortcode-{$sc->trigger}\" id=\"{$sc->trigger}\">";
         $sc->render();
         echo "</div>";
     }
     echo $this->post();
     die;
 }
 protected function jsInit()
 {
     return 'jQuery("#[ID]").peFieldSelectSlider();' . parent::jsInit();
 }
 public function jsInit()
 {
     return 'jQuery("#[ID]").peFieldFonts();' . parent::jsInit();
 }