Beispiel #1
0
 public function __construct()
 {
     $this->name = __("WPML - Conditional", 'Pixelentity Theme/Plugin');
     $this->description = __("Show/Hide widgets according to language", 'Pixelentity Theme/Plugin');
     $this->fields = array("lang" => array("label" => __("Language", 'Pixelentity Theme/Plugin'), "description" => __("Only show subsequent widgets when language match the above selection.", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "options" => peTheme()->wpml->options(), "default" => ""));
     parent::__construct();
 }
Beispiel #2
0
 public function __construct()
 {
     $this->name = __("Pixelentity - Html", 'Pixelentity Theme/Plugin');
     $this->description = __("HTML Block", 'Pixelentity Theme/Plugin');
     $this->fields = array("content" => array("label" => __("HTML", 'Pixelentity Theme/Plugin'), "type" => "Editor", "default" => ""));
     parent::__construct();
 }
 public function __construct()
 {
     $this->name = __("Pixelentity - Recent posts", 'Pixelentity Theme/Plugin');
     $this->description = __("The most recent posts on your site", 'Pixelentity Theme/Plugin');
     $this->wclass = "pe_widget widget_recent_entries";
     $this->fields = array("title" => array("label" => __("Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Widget title", 'Pixelentity Theme/Plugin'), "default" => "Recent Posts"), "link" => array("label" => __("Blog Link", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Blog link text. If empty, no link will be shown.", 'Pixelentity Theme/Plugin'), "default" => "Visit The Blog"), "url" => array("label" => __("Blog Link Url", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Blog url. If empty, theme will try to autodetect.", 'Pixelentity Theme/Plugin'), "default" => ""), "count" => array("label" => __("Number Of Posts", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("Select the number of recent posts to show in this widget.", 'Pixelentity Theme/Plugin'), "single" => true, "options" => range(1, 10), "default" => 2), "chars" => array("label" => __("Excerpt Length", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Excerpt lenght in characters. This number is then rounded so as not to cut a word.", 'Pixelentity Theme/Plugin'), "default" => 130));
     parent::__construct();
 }
Beispiel #4
0
 public function __construct()
 {
     $this->name = __("Pixelentity - Twitter", 'Pixelentity Theme/Plugin');
     $this->description = __("Displays the latest tweets", 'Pixelentity Theme/Plugin');
     $this->wclass = "widget_twitter";
     $this->fields = array("title" => array("label" => __("Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Widget title", 'Pixelentity Theme/Plugin'), "default" => "Twitter"), "username" => array("label" => __("Username", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Twitter username from which to load tweets", 'Pixelentity Theme/Plugin'), "default" => "envato"), "count" => array("label" => __("Number Of Tweets", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("Select the number of tweets to be displayed", 'Pixelentity Theme/Plugin'), "single" => true, "options" => range(1, 10), "default" => 2));
     parent::__construct();
 }
Beispiel #5
0
 public function __construct()
 {
     $this->name = __("Pixelentity - Contact", 'Pixelentity Theme/Plugin');
     $this->description = __("Contact Info", 'Pixelentity Theme/Plugin');
     $this->wclass = "widget_contact";
     $this->fields = array("title" => array("label" => __("Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Widget Title.", 'Pixelentity Theme/Plugin'), "default" => __("Contact Info", 'Pixelentity Theme/Plugin')), "info" => array("label" => __("Details", 'Pixelentity Theme/Plugin'), "type" => "Items", "section" => __("Header", 'Pixelentity Theme/Plugin'), "description" => __("Add one or more contact info to the widget.", 'Pixelentity Theme/Plugin'), "button_label" => __("Add New Contact Info", 'Pixelentity Theme/Plugin'), "sortable" => true, "auto" => "icon-info-circled", "unique" => false, "editable" => false, "legend" => false, "fields" => array(array("label" => __("Icon", 'Pixelentity Theme/Plugin'), "name" => "icon", "type" => "icon", "width" => 100, "default" => "icon-bookmarks"), array("name" => "content", "type" => "textarea", "width" => 190, "height" => 60, "default" => "Mon-Fri: 9:00-18:00")), "default" => ""));
     parent::__construct();
 }
 public function __construct()
 {
     $this->name = __("Pixelentity - Contacts", 'Pixelentity Theme/Plugin');
     $this->description = __("Statistical informations and links", 'Pixelentity Theme/Plugin');
     $this->wclass = "widget_contact";
     $this->fields = array("title" => array("label" => __("Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Widget title", 'Pixelentity Theme/Plugin'), "default" => "Contact Widget"), "address_icon" => array("label" => __("Address Icon", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Select icon type. See the help documentation for a link to the list of available icons", 'Pixelentity Theme/Plugin'), "single" => true, "options" => PeGlobal::$const->data->icons, "default" => "icon-map-marker"), "address_content" => array("label" => __("Address", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "description" => __("Address box content.", 'Pixelentity Theme/Plugin'), "default" => sprintf('<strong>Mentor Business</strong><br>%s24 Street Name<br>%sCity Name<br>%sCountry Name', "\n", "\n", "\n")), "email_icon" => array("label" => __("Email Icon", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Select icon type. See the help documentation for a link to the list of available icons", 'Pixelentity Theme/Plugin'), "single" => true, "options" => PeGlobal::$const->data->icons, "default" => "icon-envelope"), "email_content" => array("label" => __("Email", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "description" => __("Email box content.", 'Pixelentity Theme/Plugin'), "default" => sprintf('<a href="mailto:your@email.com">%syour@email.com%s</a><br>', "\n", "\n")), "phone_icon" => array("label" => __("Phone Icon", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Select icon type. See the help documentation for a link to the list of available icons", 'Pixelentity Theme/Plugin'), "single" => true, "options" => PeGlobal::$const->data->icons, "default" => "icon-info-sign"), "phone_content" => array("label" => __("Phone", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "description" => __("Phone box content.", 'Pixelentity Theme/Plugin'), "default" => sprintf('+0044 123 4567 890')), "vcard_icon" => array("label" => __("Vcard Icon", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Select icon type. See the help documentation for a link to the list of available icons", 'Pixelentity Theme/Plugin'), "single" => true, "options" => PeGlobal::$const->data->icons, "default" => "icon-user"), "vcard_content" => array("label" => __("Vcard", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "description" => __("Vcard box content.", 'Pixelentity Theme/Plugin'), "default" => sprintf('<a href="#">Mentor vcard</a>')), "hours_icon" => array("label" => __("Opening Hours Icon", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Select icon type. See the help documentation for a link to the list of available icons", 'Pixelentity Theme/Plugin'), "single" => true, "options" => PeGlobal::$const->data->icons, "default" => "icon-user"), "hours_content" => array("label" => __("Opening Hours", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "description" => __("Opening hours box content.", 'Pixelentity Theme/Plugin'), "default" => sprintf('Mon-Fri: 9:00 &rarr; 18:00<br/>%sSat: 10:00 &rarr; 17:00<br/>%sSun: Closed', "\n", "\n")));
     parent::__construct();
 }
 public function __construct()
 {
     $this->name = __("Pixelentity - Newsletter", 'Pixelentity Theme/Plugin');
     $this->description = __("Newsletter subscribe form", 'Pixelentity Theme/Plugin');
     $this->wclass = "widget_newsletter";
     $this->fields = array("title" => array("label" => __("Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Widget title", 'Pixelentity Theme/Plugin'), "default" => "Newsletter"), "subscribe" => array("label" => __("Subscribe Address", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("The email address to which subscribers details are sent.", 'Pixelentity Theme/Plugin'), "default" => "*****@*****.**"), "top" => array("label" => __("Intro Text", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "description" => __("Text content located before the subscribe field", 'Pixelentity Theme/Plugin'), "default" => "Lorem ipsum dolor sit amet, consec tetue adipiscing elit. Donec odio. Quis que vol utpat mattis eros. Nullam mal."), "bottom" => array("label" => __("Outro Text", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "description" => __("Text content located after the subscribe field", 'Pixelentity Theme/Plugin'), "default" => "Don't worry, your details are safe with us. For more info. read our <a href=\"#\">privacy policy</a>"));
     parent::__construct();
 }
Beispiel #8
0
 public function __construct()
 {
     $this->name = __("Pixelentity - Video", 'Pixelentity Theme/Plugin');
     $this->description = __("Show a video", 'Pixelentity Theme/Plugin');
     $this->wclass = "widget_video";
     $this->fields = array("title" => array("label" => __("Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Widget title", 'Pixelentity Theme/Plugin'), "default" => "Video Widget"), "id" => PeGlobal::$const->video->fields->id);
     parent::__construct();
 }
Beispiel #9
0
 public function __construct()
 {
     $this->name = __("Pixelentity - Gallery", 'Pixelentity Theme/Plugin');
     $this->description = __("Show a gallery", 'Pixelentity Theme/Plugin');
     $this->wclass = "widget_gallery";
     $this->fields = array("title" => array("label" => __("Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Widget title", 'Pixelentity Theme/Plugin'), "default" => "Gallery widget"), "size" => array("label" => __("Size", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Gallery widget size", 'Pixelentity Theme/Plugin'), "default" => "218x180"), "id" => PeGlobal::$const->gallery->id);
     parent::__construct();
 }
Beispiel #10
0
 public function __construct()
 {
     $this->name = __("Pixelentity - Tabs", 'Pixelentity Theme/Plugin');
     $this->description = __("Tabbed content", 'Pixelentity Theme/Plugin');
     $this->wclass = "widget_tabs";
     $this->fields = array("title" => array("label" => __("Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Widget title", 'Pixelentity Theme/Plugin'), "default" => "Tabs Widget"), "tab1head" => array("label" => __("Tab 1 Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Enter the tab title here", 'Pixelentity Theme/Plugin'), "sortable" => true, "default" => "Tab 1"), "tab1body" => array("label" => __("Tab 1 Content", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "description" => __("Enter the tab body content here", 'Pixelentity Theme/Plugin'), "sortable" => true, "default" => "Content 1"), "tab2head" => array("label" => __("Tab 2 Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Enter the tab title here", 'Pixelentity Theme/Plugin'), "sortable" => true, "default" => "Tab 2"), "tab2body" => array("label" => __("Tab 2 Content", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "description" => __("Enter the tab body content here", 'Pixelentity Theme/Plugin'), "sortable" => true, "default" => "Content 2"), "tab3head" => array("label" => __("Tab 3 Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Enter the tab title here", 'Pixelentity Theme/Plugin'), "sortable" => true, "default" => ""), "tab3body" => array("label" => __("Tab 3 Content", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "description" => __("Enter the tab body content here", 'Pixelentity Theme/Plugin'), "sortable" => true, "default" => ""));
     parent::__construct();
 }
Beispiel #11
0
 public function __construct()
 {
     $this->name = __("Pixelentity - Projects", 'Pixelentity Theme/Plugin');
     $this->description = __("Show projects", 'Pixelentity Theme/Plugin');
     $this->wclass = "widget_portfolio widget_featured";
     $this->fields = array("title" => array("label" => __("Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Widget title", 'Pixelentity Theme/Plugin'), "default" => __("Featured Work", 'Pixelentity Theme/Plugin')), "id" => array("label" => __("Project", 'Pixelentity Theme/Plugin'), "type" => "Links", "description" => __("Add one or more projects.", 'Pixelentity Theme/Plugin'), "sortable" => true, "options" => PeGlobal::$const->project->all));
     parent::__construct();
 }
Beispiel #12
0
 public function __construct()
 {
     $this->name = __("Pixelentity - Flickr", 'Pixelentity Theme/Plugin');
     $this->description = __("Displays Flickr Image Thumbnails", 'Pixelentity Theme/Plugin');
     $this->wclass = "widget_flickr";
     $this->fields = array("title" => array("label" => __("Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Widget title.", 'Pixelentity Theme/Plugin'), "default" => "Flickr Widget"), "username" => array("label" => __("Username", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Flickr username ID Number from which to load images.", 'Pixelentity Theme/Plugin'), "default" => "68880463@N03"), "count" => array("label" => __("Number Of Images", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Select the number of images to be displayed.(3 per row)", 'Pixelentity Theme/Plugin'), "single" => true, "options" => range(1, 10), "default" => 6));
     parent::__construct();
 }
Beispiel #13
0
 public function __construct()
 {
     $this->name = __("Pixelentity - Slider", 'Pixelentity Theme/Plugin');
     $this->description = __("Show a slider", 'Pixelentity Theme/Plugin');
     $this->wclass = "widget_slider";
     $this->fields = array("title" => array("label" => __("Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Widget title", 'Pixelentity Theme/Plugin'), "default" => "Slider Widget"), "size" => array("label" => __("Slider Size", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("The size of the slider in pixels. Written in the form widthxheight", 'Pixelentity Theme/Plugin'), "default" => "218x180"));
     $this->fields = array_merge($this->fields, PeGlobal::$const->gallery->metaboxSlider["content"]);
     parent::__construct();
 }
Beispiel #14
0
    public function __construct()
    {
        $this->name = __("Pixelentity - Logo", 'Pixelentity Theme/Plugin');
        $this->description = __("Logo, info, social links", 'Pixelentity Theme/Plugin');
        $this->wclass = "widget_info";
        $content = <<<EOL
<p>15 Block 8/c, Hll Street,<br/>San Francisco, CA.</p>
<span class="phone">+353 (0) 123 456 78</span>
<a href="#">hello@emailaddress.com</a>
EOL;
        $this->fields = array("logo" => array("label" => __("Logo/Image", 'Pixelentity Theme/Plugin'), "type" => "Upload", "section" => __("General", 'Pixelentity Theme/Plugin'), "description" => __("Logo/Image to be used as the widget title", 'Pixelentity Theme/Plugin'), "default" => PE_THEME_URL . "/img/skin/logo.png"), "content" => array("label" => __("Statistics", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "description" => __("Info section", 'Pixelentity Theme/Plugin'), "default" => $content), "social" => array("label" => __("Social Profile Links", 'Pixelentity Theme/Plugin'), "type" => "Items", "section" => __("Header", 'Pixelentity Theme/Plugin'), "description" => __("Add one or more links to social networks.", 'Pixelentity Theme/Plugin'), "button_label" => __("Add Social Link", 'Pixelentity Theme/Plugin'), "sortable" => true, "auto" => __("Layer", 'Pixelentity Theme/Plugin'), "unique" => false, "editable" => false, "legend" => false, "fields" => array(array("label" => __("Social Network", 'Pixelentity Theme/Plugin'), "name" => "icon", "type" => "select", "options" => apply_filters('pe_theme_social_icons', array()), "width" => 100, "default" => ""), array("name" => "url", "type" => "text", "width" => 190, "default" => "#")), "default" => ""));
        parent::__construct();
    }
Beispiel #15
0
    public function __construct()
    {
        $this->name = __("Pixelentity - Stats", 'Pixelentity Theme/Plugin');
        $this->description = __("Statistical informations and links", 'Pixelentity Theme/Plugin');
        $defStats = <<<EOL
<a href="#">8,350<span>RSS</span></a>
<a href="#">4,170<span>Followers</span></a>
<a href="#" class="last">250<span>Articles</span></a>
EOL;
        $defLinks = <<<EOL
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Link 3</a>
EOL;
        $this->fields = array("logo" => array("label" => __("Logo/Image", 'Pixelentity Theme/Plugin'), "type" => "Upload", "section" => __("General", 'Pixelentity Theme/Plugin'), "description" => __("Logo/Image to be used as the widget title", 'Pixelentity Theme/Plugin'), "default" => PE_THEME_URL . "/img/skin/logo.png"), "stats" => array("label" => __("Statistics", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "description" => __("Numeric Stats", 'Pixelentity Theme/Plugin'), "default" => $defStats), "links" => array("label" => __("Links", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "description" => __("Additional links", 'Pixelentity Theme/Plugin'), "default" => $defLinks));
        parent::__construct();
    }
Beispiel #16
0
 public function __construct()
 {
     $this->name = __("Pixelentity - Menu", 'Pixelentity Theme/Plugin');
     $this->description = __("Show a menu", 'Pixelentity Theme/Plugin');
     $this->wclass = "widget_menu";
     $menus = get_terms("nav_menu", array("hide_empty" => false));
     if ($menus) {
         foreach ($menus as $menu) {
             $options[$menu->name] = $menu->term_id;
         }
         $description = __("Select a menu", 'Pixelentity Theme/Plugin');
     } else {
         $options[__("No menus have been created yet", 'Pixelentity Theme/Plugin')] = -1;
         $description = sprintf(__('<a href="%s">Create a menu</a>', 'Pixelentity Theme/Plugin'), admin_url('nav-menus.php'));
     }
     $this->fields = array("title" => array("label" => __("Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Widget title", 'Pixelentity Theme/Plugin'), "default" => "Menu widget"), "id" => array("label" => __("Menu", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => $description, "options" => $options));
     parent::__construct();
 }