Ejemplo n.º 1
0
 public function registerAssets()
 {
     parent::registerAssets();
     PeThemeAsset::addScript("framework/js/admin/jquery.theme.field.items.js", array("pe_theme_utils", "jquery-ui-sortable", "json2"), "pe_theme_field_items");
     wp_enqueue_script("pe_theme_field_items");
     // prototype.js alters JSON2 behaviour, it shouldn't be loaded in our admin page anyway but
     // if other plugins are forcing it in all wordpress admin pages, we get rid of it here.
     wp_deregister_script("prototype");
     if (!self::$icon) {
         // we need icon field assets to be enqueued, this is done only once
         // by storing the object into a static class variable
         self::$icon = new PeThemeFormElementIcon(null, null, $null);
         self::$icon->registerAssets();
     }
 }
Ejemplo n.º 2
0
 protected function addTemplateValues(&$data)
 {
     parent::addTemplateValues($data);
     $data["[UPCLASS]"] = "";
 }