Пример #1
0
 public function boot()
 {
     parent::boot();
     PeGlobal::$config["content-width"] = 990;
     PeGlobal::$config["post-formats"] = array("video", "gallery");
     PeGlobal::$config["post-formats-project"] = array("video", "gallery");
     PeGlobal::$config["image-sizes"]["thumbnail"] = array(350, 350, false);
     PeGlobal::$config["image-sizes"]["post-thumbnail"] = array(260, 200, false);
     // blog layouts
     PeGlobal::$config["blog"] = array(__("Default", 'Pixelentity Theme/Plugin') => "", __("Search", 'Pixelentity Theme/Plugin') => "search", __("Alternate", 'Pixelentity Theme/Plugin') => "project");
     PeGlobal::$config["shortcodes"] = array("ThreadButton", "BS_Columns", "BS_Video");
     PeGlobal::$config["views"] = array("LayoutModuleThreadAbout", "LayoutModuleThreadBlog", "LayoutModuleThreadBlogAlternate", "LayoutModuleThreadColumns", "LayoutModuleThreadEvent", "LayoutModuleThreadFeature", "LayoutModuleThreadPortfolio", "LayoutModuleThreadPricingTable", "LayoutModuleThreadPricingTables", "LayoutModuleThreadLogos", "LayoutModuleThreadLogo", "LayoutModuleThreadPhase", "LayoutModuleThreadProcess", "LayoutModuleThreadQuote", "LayoutModuleThreadServices", "LayoutModuleThreadService", "LayoutModuleThreadStaff", "LayoutModuleThreadStats", "LayoutModuleThreadTestimonial", "LayoutModuleThreadTestimonials", "LayoutModuleThreadText");
     PeGlobal::$config["sidebars"] = array("default" => __("Default post/page", 'Pixelentity Theme/Plugin'));
     PeGlobal::$config["colors"] = array("color1" => array("label" => __("Primary Color", 'Pixelentity Theme/Plugin'), "selectors" => array(".page-title h6" => "color", ".line .icon" => "color", ".date" => "color", ".stat .icon" => "color", ".widget a:hover" => "color", ".pe-wp-default a" => "color", "a:hover" => "color", ".tags a:hover" => "color", ".highlight-bg" => "background-color", ".page-title .line" => "background-color", ".post.sticky h2 a" => "border-color", "blockquote" => "border-color"), "default" => "#B6A591"));
     PeGlobal::$config["fonts"] = array("fontPrimary" => array("label" => __("Primary Font", 'Pixelentity Theme/Plugin'), "selectors" => array("body", ".price .terms", "#contact-form input", ".tags a", ".comment-meta", ".fn", ".tagcloud a", "#wp-calendar"), "default" => "Cardo"), "fontSecondary" => array("label" => __("Secondary Font", 'Pixelentity Theme/Plugin'), "selectors" => array(".alt-h", "#thenavigation .menu li", ".price", ".filters li .btn", ".freelance-theme h1", ".freelance-theme h2", ".freelance-theme h3", ".freelance-theme h4", ".freelance-theme h5", ".freelance-theme h6"), "default" => "Montserrat"), "fontHeadings" => array("label" => __("Headings Font", 'Pixelentity Theme/Plugin'), "selectors" => array("h1", "h2", "h3", "h4", "h5", "h6"), "default" => "Pathway Gothic One"));
     $options = array();
     $galleries = $this->gallery->option();
     $none = array(__("None", 'Pixelentity Theme/Plugin') => '-1');
     $galleries = array_merge($none, $galleries);
     $options = array_merge($options, array("import_demo" => $this->defaultOptions["import_demo"], "logo" => array("label" => __("Logo", 'Pixelentity Theme/Plugin'), "type" => "Upload", "section" => __("General", 'Pixelentity Theme/Plugin'), "description" => __("This is the main site logo image. The image should be a .png file.", 'Pixelentity Theme/Plugin'), "default" => ''), "siteTitle" => array("wpml" => true, "label" => __("Header Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "section" => __("General", 'Pixelentity Theme/Plugin'), "description" => __("Used if logo is left empty.", 'Pixelentity Theme/Plugin'), "default" => "Thread"), "favicon" => array("label" => __("Favicon", 'Pixelentity Theme/Plugin'), "type" => "Upload", "section" => __("General", 'Pixelentity Theme/Plugin'), "description" => __("This is the favicon for your site. The image can be a .jpg, .ico or .png with dimensions of 16x16px ", 'Pixelentity Theme/Plugin'), "default" => PE_THEME_URL . "/favicon.png"), "customCSS" => $this->defaultOptions["customCSS"], "customJS" => $this->defaultOptions["customJS"], "colors" => array("label" => __("Custom Colors", 'Pixelentity Theme/Plugin'), "type" => "Help", "section" => __("Colors", 'Pixelentity Theme/Plugin'), "description" => __("In this page you can set alternative colors for the main colored elements in this theme. One color options has been provided. To change the color used on these elements simply write a new hex color reference number into the fields below or use the color picker which appears when each field obtains focus. Once you have selected your desired colors make sure to save them by clicking the <b>Save All Changes</b> button at the bottom of the page. Then just refresh your page to see the changes.<br/><br/><b>Please Note:</b> Some of the elements in this theme are made from images (Eg. Icons) and these items may have a color. It is not possible to change these elements via this page, instead such elements will need to be changed manually by opening the images/icons in an image editing program and manually changing their colors to match your theme's custom color scheme. <br/><br/>To return all colors to their default values at any time just hit the <b>Restore Default</b> link beneath each field.", 'Pixelentity Theme/Plugin')), "googleFonts" => array("label" => __("Custom Fonts", 'Pixelentity Theme/Plugin'), "type" => "Help", "section" => __("Fonts", 'Pixelentity Theme/Plugin'), "description" => __("In this page you can set the typefaces to be used throughout the theme. For each elements listed below you can choose any front from the Google Web Font library. Once you have chosen a font from the list, you will see a preview of this font immediately beneath the list box. The icons on the right hand side of the font preview, indicate what weights are available for that typeface.<br/><br/><strong>R</strong> -- Regular,<br/><strong>B</strong> -- Bold,<br/><strong>I</strong> -- Italics,<br/><strong>BI</strong> -- Bold Italics<br/><br/>When decideing what font to use, ensure that the chosen font contains the font weight required by the element. For example, main headings are bold, so you need to select a new font for these elements which supports a bold font weight. If you select a font which does not have a bold icon, the font will not be applied. <br/><br/>Browse the online <a href='http://www.google.com/webfonts'>Google Font Library</a><br/><br/><b>Custom fonts</b> (Advanced Users):<br/> Other then those available from Google fonts, custom fonts may also be applied to the elements listed below. To do this an additional field is provided below the google fonts list. Here you may enter the details of a font family, size, line-height etc. for a custom font. This information is entered in the form of the shorthand 'font:' CSS declaration, for example:<br/><br/><b>bold italic small-caps 1em/1.5em arial,sans-serif</b><br/><br/>If a font is specified in this field then the font listed in the Google font drop menu above will not be applied to the element in question. If you wish to use the Google font specified in the drop down list and just specify a new font size or line height, you can do so in this field also, however the name of the Google font <b>MUST</b> also be entered into this field. You may need to visit the Google fonts web page to find the exact CSS name for the font you have chosen.", 'Pixelentity Theme/Plugin')), "contactEmail" => $this->defaultOptions["contactEmail"], "contactSubject" => $this->defaultOptions["contactSubject"], "msgOK" => array("wpml" => true, "label" => __("Mail Sent Message", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "section" => __("Contact Form", 'Pixelentity Theme/Plugin'), "description" => __("Message shown when form message has been sent without errors", 'Pixelentity Theme/Plugin'), "default" => '<strong>Yay!</strong> Message sent.'), "msgKO" => array("wpml" => true, "label" => __("Form Error Message", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "section" => __("Contact Form", 'Pixelentity Theme/Plugin'), "description" => __("Message shown when form message encountered errors", 'Pixelentity Theme/Plugin'), "default" => '<strong>Error!</strong> Please validate your fields.'), "footerImage" => array("label" => __("Pre-footer image", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "Upload", "section" => __("Footer", 'Pixelentity Theme/Plugin'), "description" => __("Image displayed before background of the footer.", 'Pixelentity Theme/Plugin'), "default" => ''), "footerQuote" => array("label" => __("Pre-Footer Quote", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "TextArea", "section" => __("Footer", 'Pixelentity Theme/Plugin'), "description" => __("Show a final quite above the footer image (only shows if footer image is set)", 'Pixelentity Theme/Plugin'), "default" => ''), "footerBackground" => array("label" => __("Background image", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "Upload", "section" => __("Footer", 'Pixelentity Theme/Plugin'), "description" => __("Image displayed in background of the footer.", 'Pixelentity Theme/Plugin'), "default" => ''), "footerAddress" => array("label" => __("Address", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "Text", "section" => __("Footer", 'Pixelentity Theme/Plugin'), "description" => __("Address displayed in footer.", 'Pixelentity Theme/Plugin'), "default" => ''), "footerAddressLink" => array("label" => __("Address link", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "Text", "section" => __("Footer", 'Pixelentity Theme/Plugin'), "description" => __("Link on Address displayed in footer.", 'Pixelentity Theme/Plugin'), "default" => ''), "footerEmail" => array("label" => __("Email", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "Text", "section" => __("Footer", 'Pixelentity Theme/Plugin'), "description" => __("E-mail address displayed in footer.", 'Pixelentity Theme/Plugin'), "default" => ''), "footerEmailLink" => array("label" => __("Email link", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "Text", "section" => __("Footer", 'Pixelentity Theme/Plugin'), "description" => __("Link onE-mail address displayed in footer.", 'Pixelentity Theme/Plugin'), "default" => ''), "footerSkype" => array("label" => __("Skype ID", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "Text", "section" => __("Footer", 'Pixelentity Theme/Plugin'), "description" => __("Skype ID displayed in footer.", 'Pixelentity Theme/Plugin'), "default" => ''), "footerSocialLinks" => array("label" => __("Social Profile Links", 'Pixelentity Theme/Plugin'), "type" => "Items", "section" => __("Footer", '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" => __("Social Network Name", 'Pixelentity Theme/Plugin'), "unique" => false, "editable" => false, "legend" => false, "fields" => array(array("label" => __("Social Network", 'Pixelentity Theme/Plugin'), "name" => "name", "type" => "text", "width" => 185, "default" => __("Social Network Name", 'Pixelentity Theme/Plugin')), array("name" => "url", "type" => "text", "width" => 300, "default" => "#")), "default" => ""), "footerCopyright" => array("label" => __("Copyright", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "TextArea", "section" => __("Footer", 'Pixelentity Theme/Plugin'), "description" => __("This is the footer copyright message.", 'Pixelentity Theme/Plugin'), "default" => '&copy; 2014 Thread One Page'), "blogHeaderBg" => array("label" => __("Header image", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "Upload", "section" => __("Blog", 'Pixelentity Theme/Plugin'), "description" => __("Image displayed on top of the blog posts.", 'Pixelentity Theme/Plugin'), "default" => ''), "blogHeaderTitle" => array("label" => __("Header title", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "Text", "section" => __("Blog", 'Pixelentity Theme/Plugin'), "description" => __("Title displayed on top of the header.", 'Pixelentity Theme/Plugin'), "default" => ''), "blogHeaderSubtitle" => array("label" => __("Header subtitle", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "Text", "section" => __("Blog", 'Pixelentity Theme/Plugin'), "description" => __("Subtitle displayed on top of the header.", 'Pixelentity Theme/Plugin'), "default" => '')));
     foreach (PeGlobal::$const->gmap->metabox["content"] as $key => $value) {
         PeGlobal::$const->gmap->metabox["content"][$key]["section"] = __("Footer", 'Pixelentity Theme/Plugin');
     }
     unset(PeGlobal::$const->gmap->metabox["content"]["title"]);
     unset(PeGlobal::$const->gmap->metabox["content"]["description"]);
     //$options = array_merge($options, PeGlobal::$const->gmap->metabox["content"]);
     $options = array_merge($options, $this->font->options());
     $options = array_merge($options, $this->color->options());
     //$options["retina"] =& $this->defaultOptions["retina"];
     //$options["lazyImages"] =& $this->defaultOptions["lazyImages"];
     $options["minifyJS"] =& $this->defaultOptions["minifyJS"];
     $options["minifyCSS"] =& $this->defaultOptions["minifyCSS"];
     $options["minifyJS"]['default'] = 'yes';
     $options["adminThumbs"] =& $this->defaultOptions["adminThumbs"];
     if (!empty($this->defaultOptions["mediaQuick"])) {
         $options["mediaQuick"] =& $this->defaultOptions["mediaQuick"];
         $options["mediaQuickDefault"] =& $this->defaultOptions["mediaQuickDefault"];
     }
     $options["adminLogo"] =& $this->defaultOptions["adminLogo"];
     $options["adminUrl"] =& $this->defaultOptions["adminUrl"];
     PeGlobal::$config["options"] = apply_filters("pe_theme_options", $options);
 }
Пример #2
0
 public function boot()
 {
     parent::boot();
     /*
     if (PE_THEME_MODE) {
     
     	require_once(get_template_directory()."/framework/php/lib/pixelentity-theme-bundled-plugins/class-pixelentity-theme-bundled-plugins.php");
     	PixelentityThemeBundledPlugins::init(
     										 array(
     											   array(
     													 "slug" => "pe-theme-framework",
     													 "name" => __("Pixelentity Theme Framework Plugin",'Pixelentity Theme/Plugin'),
     													 "version" => "1.1.0",
     													 "download_link" => get_template_directory_uri()."/plugins/pe-theme-framework.zip"
     													 )
     											   )
     										 );
     }
     */
     PeGlobal::$config["content-width"] = 940;
     PeGlobal::$config["post-formats"] = array("video", "gallery");
     PeGlobal::$config["post-formats-project"] = array("video", "gallery");
     PeGlobal::$config["image-sizes"]["thumbnail"] = array(120, 90, true);
     PeGlobal::$config["image-sizes"]["post-thumbnail"] = array(260, 200, false);
     // blog layouts
     PeGlobal::$config["blog"] = array(__("Default", 'Pixelentity Theme/Plugin') => "", __("Search", 'Pixelentity Theme/Plugin') => "search", __("Alternate", 'Pixelentity Theme/Plugin') => "project");
     PeGlobal::$config["widgets"] = array();
     PeGlobal::$config["shortcodes"] = array("BS_Badge", "BS_Label", "BS_Button", "BS_Video", "BS_Columns", "View");
     PeGlobal::$config["views"] = array("SliderVolo", "SliderVista", "SliderVario", "GalleryGrid", "GalleryCover", "GalleryImages", "GalleryCarousel", "Carousel", "Blog", "Masonry", "PortfolioPreview", "PortfolioGrid", "Layout", "LayoutModuleSection", "LayoutModuleText", "LayoutModuleView", "LayoutModuleVideo", "LayoutModuleGalleryCarousel", "LayoutModuleServices", "LayoutModuleStaff", "LayoutModuleTestimonials", "LayoutModuleColumns", "LayoutModuleContainer", "LayoutModuleForm", "LayoutModuleTabs", "LayoutModuleTabsItem", "LayoutModuleTabsItemContainer", "LayoutModuleAccordion", "LayoutModuleAccordionItem", "LayoutModuleAccordionItemContainer", "LayoutModuleFaqs", "LayoutModuleFaqsItem", "LayoutModuleFaqsItemContainer", "LayoutModulePricingTable", "LayoutModulePricingColumn", "LayoutModuleCallToAction", "LayoutModuleHomeColumns", "LayoutModuleHomeColumn", "LayoutModuleFeature", "LayoutModuleSkills", "LayoutModuleStats", "LayoutModuleStat");
     PeGlobal::$config["sidebars"] = array("default" => __("Default post/page", 'Pixelentity Theme/Plugin'));
     PeGlobal::$config["colors"] = array("color1" => array("label" => __("Primary Color", 'Pixelentity Theme/Plugin'), "selectors" => array("a" => "color", ".pe-main-section h6 [class^='icon-']" => "color", ".peSlider > div.peCaption h3" => "color", ".desktop h3 a:hover" => "color", ".accent" => "color", "a.read-more" => "color", "a.more-link" => "color", ".desktop .sm-icon-wrap a:hover" => "color", ".desktop .social-media-wrap .social-media a:hover" => "color", ".widget_info a" => "color", ".pe-view-layout-class-testimonials .peWrap > div > div > div > i" => "color", ".desktop .project-item h6 a:hover" => "color", ".project-filter .pe-menu > li > a:hover" => "color", ".project-filter .pe-menu > li >a.active" => "color", ".filter-keywords" => "color", ".peIsotopeFilter.pe-menu > li > a.active" => "color", ".staff-item .position" => "color", ".staff-item .details .social-media-wrap a:hover i" => "color", ".desktop .widget_nav_menu a:hover" => "color", ".widget_nav_menu .menu li.current_page_item a" => "color", ".desktop .widget_nav_menu li.current_page_item a:hover" => "color", ".desktop .widget_recent_comments li a:hover" => "color", ".widget_links li a" => "color", ".widget_pages li a" => "color", ".widget_meta li a" => "color", ".widget_nav_menu li a" => "color", ".widget_recent_entries li a" => "color", ".desktop .widget_categories a:hover" => "color", ".desktop .post-title a:hover" => "color", ".post-meta .user" => "color", ".post-meta .user a" => "color", ".desktop .post-meta .categories a:hover" => "color", ".desktop .post-meta .date a:hover" => "color", ".post-pagination a span:first-child" => "color", "#comments-title span" => "color", ".bypostauthor > .comment-body .fn a" => "color", ".peThemeContactForm .help-inline" => "color", ".bay h6" => "color", ".pagination a" => "color", ".project-data h6" => "color", ".project-tags h6" => "color", ".pricing-table .row-titles .price span" => "color", ".sticky .post-title a" => "color", ".sticky .post-title h2:before" => "color", ".peFlareLightbox .peFlareLightboxCaptions>div>div>h3 a" => "color", ".product mark" => "color", "body.woocommerce-page .woocommerce-breadcrumb > a:hover" => "color", "body .woocommerce div.product form.cart .variations .value a:hover" => "color", "body .woocommerce #content div.product form.cart .variations .value a:hover" => "color", "body.woocommerce-page div.product form.cart .variations .value a:hover" => "color", "body.woocommerce-page #content div.product form.cart .variations .value a:hover" => "color", ".desktop .pe-menu > li.wcmenucart-display-standard:hover a" => "color", ".wcmenucart-display-standard .wcmenucart-contents .amount" => "color", ".action h3" => "color", ".process > div > div > div .read-more" => "color", ".pe-view-layout-class-feature h5" => "color", ".pe-style-dark .pe-view-layout-class-feature h5" => "color", ".pe-view-layout-class-skills h5" => "color", ".pe-style-dark .pe-view-layout-class-skills h5" => "color", ".pe-view-layout-class-stat .pe-stat h5" => "color", ".pe-style-dark .pe-view-layout-class-stat .pe-stat h5" => "color", ".desktop .nav-tabs > li > a:hover" => "color", ".nav-tabs> li.active>a" => "color", ".desktop .faq-heading:hover > div" => "color", ".faq-heading > div" => "color", ".contour-btn" => "background-color", "div.overlay-image" => "background-color", ".contentBox" => "background-color", ".filter-keywords li a.active" => "background-color", ".desktop .filter-keywords li a:hover" => "background-color", ".service-item > div" => "background-color", ".service-single > .service-icon" => "background-color", ".featureIcon" => "background-color", ".desktop #comments .reply .label:hover" => "background-color", ".desktop .pagination a:hover" => "background-color", ".pagination li.active a" => "background-color", ".pricing-table .high .price" => "background-color", ".ie8 .over-effect:hover > .cell-title" => "background-color", "body > p.demo_store" => "background-color", "body .woocommerce a.button" => "background-color", "body .woocommerce button.button" => "background-color", "body .woocommerce input.button" => "background-color", "body .woocommerce #respond input#submit" => "background-color", "body .woocommerce #content input.button" => "background-color", "body.woocommerce-page a.button" => "background-color", "body.woocommerce-page button.button" => "background-color", "body.woocommerce-page input.button" => "background-color", "body.woocommerce-page #respond input#submit" => "background-color", "body.woocommerce-page #content input.button" => "background-color", "body .woocommerce .widget_product_search form input[type=submit]" => "background-color", ".widget_product_search form input[type=submit]" => "background-color", ".process .process-icon > span" => "background-color", ".pe-view-layout-class-skills .pe-skill .pe-skill-value" => "background-color:0.6", ".desktop .pagination a.pe-load-more-button:hover" => "background-color", ".pe-menu" => "border-color", ".pe-menu .dropdown-menu" => "border-color", ".pe-menu .dropdown-menu .sub-menu" => "border-color", ".contour-btn " => "border-color", ".desktop a.over-effect:hover" => "border-color", "blockquote" => "border-color", ".filter-keywords li a.active " => "border-color", ".desktop .filter-keywords li a:hover " => "border-color", ".bypostauthor > .comment-body > .comment-author img" => "border-color", ".desktop .pagination a:hover " => "border-color", ".pagination li.active a " => "border-color", ".desktop .pe-menu > li:hover" => "border-color", ".pe-menu > li.active" => "border-color", ".dropdown-menu" => "border-color", ".desktop .pe-menu > li:hover" => "border-color", ".pe-menu > li.active" => "border-color", "body > p.demo_store " => "border-color", "body .woocommerce a.button " => "border-color", "body .woocommerce button.button " => "border-color", "body .woocommerce input.button " => "border-color", "body .woocommerce #respond input#submit " => "border-color", "body .woocommerce #content input.button " => "border-color", "body.woocommerce-page a.button " => "border-color", "body.woocommerce-page button.button " => "border-color", "body.woocommerce-page input.button " => "border-color", "body.woocommerce-page #respond input#submit " => "border-color", "body.woocommerce-page #content input.button " => "border-color", ".desktop .pagination a.pe-load-more-button:hover " => "background-color", ".service-item > div > .arrow" => "border-top-color", ".service-single > .service-icon > .arrow" => "border-top-color", ".col.high" => "outline-color"), "default" => "#1fbba6"), "color2" => array("label" => __("Splash Caption Color", 'Pixelentity Theme/Plugin'), "selectors" => array(".pe-splash-section .pe-headlines > div" => "color", ".pe-splash-section .pe-caption-persistent>.peCaptionLayer a>span" => "color", ".pe-splash-section .pe-caption-persistent>.peCaptionLayer a>span>i" => "color"), "default" => "#ffffff"));
     PeGlobal::$config["fonts"] = array("fontBody" => array("label" => __("Body Font", 'Pixelentity Theme/Plugin'), "selectors" => array("body", "p", ".subtitle", "input", "button", "select", "textarea", ".peSlider > div.peCaption", ".peSlider > div.peCaption h3", ".peSlider > div.peCaption > .peCaptionLayer.pe-caption-style-black", ".pe-menu .dropdown-menu li > a.pe-menu-back", ".pe-menu > li > a"), "default" => "Open Sans"), "fontHeading1" => array("label" => __("Heading Font", 'Pixelentity Theme/Plugin'), "selectors" => array("h1", "h2", "h3", "h4", "h5", "h6"), "default" => "Open Sans"), "fontHeading2" => array("label" => __("Splash Caption Font", 'Pixelentity Theme/Plugin'), "selectors" => array(".pe-splash-section .pe-headlines > div"), "default" => "Open Sans"));
     $options = array();
     $options = array_merge($options, array("import_demo" => $this->defaultOptions["import_demo"], "skin" => array("label" => __("Skin", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "section" => __("General", 'Pixelentity Theme/Plugin'), "description" => __("Select Theme Skin", 'Pixelentity Theme/Plugin'), "options" => array("light", "dark"), "single" => true, "default" => "light"), "logo" => array("label" => __("Logo", 'Pixelentity Theme/Plugin'), "type" => "Upload", "section" => __("General", 'Pixelentity Theme/Plugin'), "description" => __("This is the main site logo image. The image should be a .png file.", 'Pixelentity Theme/Plugin'), "default" => PE_THEME_URL . "/img/skin/header_logo.png"), "favicon" => $this->defaultOptions["favicon"], "animations" => array("label" => __("Use Animations", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "section" => __("General", 'Pixelentity Theme/Plugin'), "description" => __("Enable or disable theme animations.", 'Pixelentity Theme/Plugin'), "options" => array(__("Yes", 'Pixelentity Theme/Plugin') => "yes", __("No", 'Pixelentity Theme/Plugin') => "no"), "default" => "yes", 'jsexport' => true), "customCSS" => $this->defaultOptions["customCSS"], "customJS" => $this->defaultOptions["customJS"], "footerSticky" => array("label" => __("Sticky Footer", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "section" => __("Footer", 'Pixelentity Theme/Plugin'), "description" => __("Sticky footer is only supported in fullwidth pages where template is set to 'builder'.", 'Pixelentity Theme/Plugin'), "options" => array(__("Yes", 'Pixelentity Theme/Plugin') => "yes", __("No", 'Pixelentity Theme/Plugin') => "no"), "default" => "yes"), "footerLogo" => array("label" => __("Logo", 'Pixelentity Theme/Plugin'), "type" => "Upload", "section" => __("Footer", 'Pixelentity Theme/Plugin'), "description" => __("This is the footer logo image. The image should be a .png file.", 'Pixelentity Theme/Plugin'), "default" => PE_THEME_URL . "/img/skin/footer_logo.png"), "footerCopyright" => array("label" => __("Copyright", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "TextArea", "section" => __("Footer", 'Pixelentity Theme/Plugin'), "description" => __("This is the footer copyright message.", 'Pixelentity Theme/Plugin'), "default" => sprintf('<span>&copy; OneUp - a WordPress theme with serious impact. Created by</span>%s<a href="#">pixelentity</a>', "\n")), "footerSocialLinks" => array("label" => __("Social Profile Links", 'Pixelentity Theme/Plugin'), "type" => "Items", "section" => __("Footer", '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" => 185, "default" => ""), array("name" => "url", "type" => "text", "width" => 300, "default" => "#")), "default" => ""), "colors" => array("label" => __("Custom Colors", 'Pixelentity Theme/Plugin'), "type" => "Help", "section" => __("Colors", 'Pixelentity Theme/Plugin'), "description" => __("In this page you can set alternative colors for the main colored elements in this theme. The colored elements available to be changed are listed below. To change the colors used in these areas simply write a new hex color reference number into the fields below or use the color picker which appears when each field obtains focus. Once you have selected your desired colors make sure to save them by clicking the <b>Save All Changes</b> button at the bottom of the page. Then just refresh your page to see the changes. To reset a color to it's default simply click the 'Default' button in the color picker.", 'Pixelentity Theme/Plugin')), "googleFonts" => array("label" => __("Custom Fonts", 'Pixelentity Theme/Plugin'), "type" => "Help", "section" => __("Fonts", 'Pixelentity Theme/Plugin'), "description" => __("In this page you can set the typefaces to be used throughout the theme. For each elements listed below you can choose any front from the Google Web Font library. Once you have chosen a font from the list, you will see a preview of this font immediately beneath the list box. The icons on the right hand side of the font preview, indicate what weights are available for that typeface.<br/><br/><strong>R</strong> -- Regular,<br/><strong>B</strong> -- Bold,<br/><strong>I</strong> -- Italics,<br/><strong>BI</strong> -- Bold Italics<br/><br/>When decideing what font to use, ensure that the chosen font contains the font weight required by the element. For example, main headings are bold, so you need to select a new font for these elements which supports a bold font weight. If you select a font which does not have a bold icon, the font will not be applied. <br/><br/>Browse the online <a href='http://www.google.com/webfonts'>Google Font Library</a><br/><br/><b>Custom fonts</b> (Advanced Users):<br/> Other then those available from Google fonts, custom fonts may also be applied to the elements listed below. To do this an additional field is provided below the google fonts list. Here you may enter the details of a font family, size, line-height etc. for a custom font. This information is entered in the form of the shorthand 'font:' CSS declaration, for example:<br/><br/><b>bold italic small-caps 1em/1.5em arial,sans-serif</b><br/><br/>If a font is specified in this field then the font listed in the Google font drop menu above will not be applied to the element in question. If you wish to use the Google font specified in the drop down list and just specify a new font size or line height, you can do so in this field also, however the name of the Google font <b>MUST</b> also be entered into this field. You may need to visit the Google fonts web page to find the exact CSS name for the font you have chosen.", 'Pixelentity Theme/Plugin')), "contactEmail" => $this->defaultOptions["contactEmail"], "contactSubject" => $this->defaultOptions["contactSubject"], "sidebars" => array("label" => __("Widget Areas", 'Pixelentity Theme/Plugin'), "type" => "Sidebars", "section" => __("Widget Areas", 'Pixelentity Theme/Plugin'), "description" => __("Create new widget areas by entering the area name and clicking the add button. The new widget area will appear in the table below. Once a widget area has been created, widgets may be added via the widgets page.", 'Pixelentity Theme/Plugin'), "default" => "")));
     $options = array_merge($options, $this->font->options());
     $options = array_merge($options, $this->font->options());
     $options = array_merge($options, $this->color->options());
     $options["loadMore"] =& $this->defaultOptions["loadMore"];
     $options["retina"] =& $this->defaultOptions["retina"];
     $options["lazyImages"] =& $this->defaultOptions["lazyImages"];
     $options["builderInContent"] =& $this->defaultOptions["builderInContent"];
     $options["minifyJS"] =& $this->defaultOptions["minifyJS"];
     $options["minifyCSS"] =& $this->defaultOptions["minifyCSS"];
     $options["thumbscache"] =& $this->defaultOptions["thumbscache"];
     $options["adminThumbs"] =& $this->defaultOptions["adminThumbs"];
     if (!empty($this->defaultOptions["mediaQuick"])) {
         $options["mediaQuick"] =& $this->defaultOptions["mediaQuick"];
         $options["mediaQuickDefault"] =& $this->defaultOptions["mediaQuickDefault"];
     }
     $options["updateCheck"] =& $this->defaultOptions["updateCheck"];
     $options["updateUsername"] =& $this->defaultOptions["updateUsername"];
     $options["updateAPIKey"] =& $this->defaultOptions["updateAPIKey"];
     $options["adminLogo"] =& $this->defaultOptions["adminLogo"];
     $options["adminUrl"] =& $this->defaultOptions["adminUrl"];
     PeGlobal::$config["options"] = apply_filters("pe_theme_options", $options);
     $this->mboxBG = array("title" => __("Background Video Settings", 'Pixelentity Theme/Plugin'), "type" => "Conditional", "priority" => "core", "options" => array("bg" => array("yes" => array("show" => "fallback,video"), "no" => array("hide" => "fallback,video"))), "where" => array("post" => "page_builder"), "content" => array("bg" => array("label" => __("Use Youtube Video", 'Pixelentity Theme/Plugin'), "description" => __("Whether to show a youtube video as page background.", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "options" => array(__("Yes", 'Pixelentity Theme/Plugin') => "yes", __("No", 'Pixelentity Theme/Plugin') => "no"), "default" => "no"), "videos" => array("label" => __("YouTube Videos", 'Pixelentity Theme/Plugin'), "description" => __("Add one or more youtube video urls.", 'Pixelentity Theme/Plugin'), "type" => "Items", "button_label" => __("Add New Video", 'Pixelentity Theme/Plugin'), "sortable" => true, "unique" => false, "editable" => false, "legend" => false, "fields" => array(array("type" => "empty", "width" => "186"), array("name" => "url", "type" => "text", "width" => "500", "default" => ""))), "fallback" => array("label" => __("Fallback Image", 'Pixelentity Theme/Plugin'), "type" => "Upload", "description" => __("Fallback image used for mobile and browsers lacking video playback feature.", 'Pixelentity Theme/Plugin'), "default" => PE_THEME_URL . '/img/content/1920x1080.jpeg')));
 }
Пример #3
0
 public function boot()
 {
     parent::boot();
     PeGlobal::$config["content-width"] = 990;
     PeGlobal::$config["post-formats"] = array("video", "gallery");
     PeGlobal::$config["post-formats-project"] = array("video", "gallery");
     PeGlobal::$config["image-sizes"]["thumbnail"] = array(120, 90, true);
     PeGlobal::$config["image-sizes"]["post-thumbnail"] = array(260, 200, false);
     // blog layouts
     PeGlobal::$config["blog"] = array(__("Default", 'Pixelentity Theme/Plugin') => "", __("Search", 'Pixelentity Theme/Plugin') => "search", __("Alternate", 'Pixelentity Theme/Plugin') => "project");
     PeGlobal::$config["shortcodes"] = array("VisiaHeading", "VisiaTabs", "VisiaAccordion", "VisiaButton", "VisiaAlert", "BS_Columns", "BS_Video");
     PeGlobal::$config["sidebars"] = array("default" => __("Default post/page", 'Pixelentity Theme/Plugin'));
     PeGlobal::$config["colors"] = array("color1" => array("label" => __("Primary Color", 'Pixelentity Theme/Plugin'), "selectors" => array("a" => "color", ".feature:hover" => "color", "a:visited" => "color", ".desktop.navigation .nav-content a:hover" => "color", ".desktop.navigation .nav-content a.active" => "color", ".post-title a:hover" => "color", ".cat-item a:hover" => "color", ".widget-archive a:hover" => "color", ".filter.active, .filter:hover" => "color", ".recentcomments a:hover" => "color", ".widget-recent-entries a:hover" => "color", ".comment-meta a:hover" => "color", ".required" => "color", ".feature:hover .feature-icon" => "color", ".sticky .post-title a" => "color", ".gallery-next .bx-next:hover" => "background-color", ".gallery-prev .bx-prev:hover" => "background-color", ".parallax.colored" => "background-color", ".list-dot" => "background-color", ".projectlist a:hover .projectinfo" => "background-color", "a.button" => "border-color", ".tagcloud a" => "border-color", ".tabs ul li.active a" => "border-top-color"), "default" => "#ee3b16"), "color2" => array("label" => __("Primary Hover Color", 'Pixelentity Theme/Plugin'), "selectors" => array("a:hover" => "color", ".sticky .post-title a:hover" => "color", "a.button:hover" => "border-color", ".tagcloud a:hover" => "border-color"), "default" => "#ffa593"));
     PeGlobal::$config["fonts"] = array("fontBody" => array("label" => __("General Font", 'Pixelentity Theme/Plugin'), "selectors" => array("body", ".form-field span input", ".form-field span textarea", ".form-click input"), "default" => "Open Sans"));
     $options = array();
     $options = array_merge($options, array("import_demo" => $this->defaultOptions["import_demo"], "logo" => array("label" => __("Logo", 'Pixelentity Theme/Plugin'), "type" => "Upload", "section" => __("General", 'Pixelentity Theme/Plugin'), "description" => __("This is the main site logo image. The image should be a .png file.", 'Pixelentity Theme/Plugin'), "default" => PE_THEME_URL . "/images/logo.png"), "favicon" => array("label" => __("Favicon", 'Pixelentity Theme/Plugin'), "type" => "Upload", "section" => __("General", 'Pixelentity Theme/Plugin'), "description" => __("This is the favicon for your site. The image can be a .jpg, .ico or .png with dimensions of 16x16px ", 'Pixelentity Theme/Plugin'), "default" => PE_THEME_URL . "/favicon.png"), "customCSS" => $this->defaultOptions["customCSS"], "customJS" => $this->defaultOptions["customJS"], "footerCopyright" => array("label" => __("Copyright", 'Pixelentity Theme/Plugin'), "wpml" => true, "type" => "TextArea", "section" => __("Footer", 'Pixelentity Theme/Plugin'), "description" => __("This is the footer copyright message.", 'Pixelentity Theme/Plugin'), "default" => sprintf('&copy;2013 Visia. All Rights Reserved.', "\n")), "footerSocialLinks" => array("label" => __("Social Profile Links", 'Pixelentity Theme/Plugin'), "type" => "Items", "section" => __("Footer", '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" => 185, "default" => ""), array("name" => "url", "type" => "text", "width" => 300, "default" => "#")), "default" => ""), "colors" => array("label" => __("Custom Colors", 'Pixelentity Theme/Plugin'), "type" => "Help", "section" => __("Colors", 'Pixelentity Theme/Plugin'), "description" => __("In this page you can set alternative colors for the main colored elements in this theme. Four color options have been provided. A primary color, a secondary or complimentary color, a primary or dark grey and a secondary or light grey. To change the colors used on these elements simply write a new hex color reference number into the fields below or use the color picker which appears when each field obtains focus. Once you have selected your desired colors make sure to save them by clicking the <b>Save All Changes</b> button at the bottom of the page. Then just refresh your page to see the changes.<br/><br/><b>Please Note:</b> Some of the elements in this theme are made from images (Eg. Icons) and these items may have a color. It is not possible to change these elements via this page, instead such elements will need to be changed manually by opening the images/icons in an image editing program and manually changing their colors to match your theme's custom color scheme. <br/><br/>To return all colors to their default values at any time just hit the <b>Restore Default</b> link beneath each field.", 'Pixelentity Theme/Plugin')), "googleFonts" => array("label" => __("Custom Fonts", 'Pixelentity Theme/Plugin'), "type" => "Help", "section" => __("Fonts", 'Pixelentity Theme/Plugin'), "description" => __("In this page you can set the typefaces to be used throughout the theme. For each elements listed below you can choose any front from the Google Web Font library. Once you have chosen a font from the list, you will see a preview of this font immediately beneath the list box. The icons on the right hand side of the font preview, indicate what weights are available for that typeface.<br/><br/><strong>R</strong> -- Regular,<br/><strong>B</strong> -- Bold,<br/><strong>I</strong> -- Italics,<br/><strong>BI</strong> -- Bold Italics<br/><br/>When decideing what font to use, ensure that the chosen font contains the font weight required by the element. For example, main headings are bold, so you need to select a new font for these elements which supports a bold font weight. If you select a font which does not have a bold icon, the font will not be applied. <br/><br/>Browse the online <a href='http://www.google.com/webfonts'>Google Font Library</a><br/><br/><b>Custom fonts</b> (Advanced Users):<br/> Other then those available from Google fonts, custom fonts may also be applied to the elements listed below. To do this an additional field is provided below the google fonts list. Here you may enter the details of a font family, size, line-height etc. for a custom font. This information is entered in the form of the shorthand 'font:' CSS declaration, for example:<br/><br/><b>bold italic small-caps 1em/1.5em arial,sans-serif</b><br/><br/>If a font is specified in this field then the font listed in the Google font drop menu above will not be applied to the element in question. If you wish to use the Google font specified in the drop down list and just specify a new font size or line height, you can do so in this field also, however the name of the Google font <b>MUST</b> also be entered into this field. You may need to visit the Google fonts web page to find the exact CSS name for the font you have chosen.", 'Pixelentity Theme/Plugin')), "contactEmail" => $this->defaultOptions["contactEmail"], "contactSubject" => $this->defaultOptions["contactSubject"], "contactPhone" => array("label" => __("Phone Number", 'Pixelentity Theme/Plugin'), "type" => "Text", "section" => __("Contact Form", 'Pixelentity Theme/Plugin'), "description" => __("Phone number, leave empty to hide.", 'Pixelentity Theme/Plugin'), "default" => "+353 (0) 123 456 78"), "contactAddress" => array("label" => __("Address", 'Pixelentity Theme/Plugin'), "type" => "Text", "section" => __("Contact Form", 'Pixelentity Theme/Plugin'), "description" => __("Address, leave empty to hide (used only for display).", 'Pixelentity Theme/Plugin'), "default" => "1000 Coney Island Ave.<br> Brooklyn NY 11230"), "contactAddressLink" => array("label" => __("Address Link", 'Pixelentity Theme/Plugin'), "type" => "Text", "section" => __("Contact Form", 'Pixelentity Theme/Plugin'), "description" => __("Address Link, leave empty to hide (used for linking address to external map like Google Maps).", 'Pixelentity Theme/Plugin'), "default" => "#"), "contactHeading" => array("wpml" => true, "label" => __("Contact Form Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "section" => __("Contact Form", 'Pixelentity Theme/Plugin'), "description" => __("Message displayed above contact form.", 'Pixelentity Theme/Plugin'), "default" => "Get in touch"), "msgOK" => array("wpml" => true, "label" => __("Mail Sent Message", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "section" => __("Contact Form", 'Pixelentity Theme/Plugin'), "description" => __("Message shown when form message has been sent without errors", 'Pixelentity Theme/Plugin'), "default" => '<strong>Yay!</strong> Message sent.'), "msgKO" => array("wpml" => true, "label" => __("Form Error Message", 'Pixelentity Theme/Plugin'), "type" => "TextArea", "section" => __("Contact Form", 'Pixelentity Theme/Plugin'), "description" => __("Message shown when form message encountered errors", 'Pixelentity Theme/Plugin'), "default" => '<strong>Error!</strong> Please validate your fields.'), "sidebars" => array("label" => __("Widget Areas", 'Pixelentity Theme/Plugin'), "type" => "Sidebars", "section" => __("Widget Areas", 'Pixelentity Theme/Plugin'), "description" => __("Create new widget areas by entering the area name and clicking the add button. The new widget area will appear in the table below. Once a widget area has been created, widgets may be added via the widgets page.", 'Pixelentity Theme/Plugin'), "default" => "")));
     $options = array_merge($options, $this->font->options());
     $options = array_merge($options, $this->color->options());
     $options["retina"] =& $this->defaultOptions["retina"];
     $options["lazyImages"] =& $this->defaultOptions["lazyImages"];
     $options["minifyJS"] =& $this->defaultOptions["minifyJS"];
     $options["minifyCSS"] =& $this->defaultOptions["minifyCSS"];
     $options["adminThumbs"] =& $this->defaultOptions["adminThumbs"];
     if (!empty($this->defaultOptions["mediaQuick"])) {
         $options["mediaQuick"] =& $this->defaultOptions["mediaQuick"];
         $options["mediaQuickDefault"] =& $this->defaultOptions["mediaQuickDefault"];
     }
     $options["updateCheck"] =& $this->defaultOptions["updateCheck"];
     $options["updateUsername"] =& $this->defaultOptions["updateUsername"];
     $options["updateAPIKey"] =& $this->defaultOptions["updateAPIKey"];
     $options["adminLogo"] =& $this->defaultOptions["adminLogo"];
     $options["adminUrl"] =& $this->defaultOptions["adminUrl"];
     PeGlobal::$config["options"] = apply_filters("pe_theme_options", $options);
 }