Initial commit. State 04.2021.
17
wp-content/themes/Divi/404.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php get_header(); ?>
|
||||
|
||||
<div id="main-content">
|
||||
<div class="container">
|
||||
<div id="content-area" class="clearfix">
|
||||
<div id="left-area">
|
||||
<article id="post-0" <?php post_class( 'et_pb_post not_found' ); ?>>
|
||||
<?php get_template_part( 'includes/no-results', '404' ); ?>
|
||||
</article> <!-- .et_pb_post -->
|
||||
</div> <!-- #left-area -->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
</div> <!-- #content-area -->
|
||||
</div> <!-- .container -->
|
||||
</div> <!-- #main-content -->
|
||||
|
||||
<?php get_footer(); ?>
|
||||
962
wp-content/themes/Divi/changelog.txt
Normal file
@@ -0,0 +1,962 @@
|
||||
version 2.5.3 ( updated 09-05-2015 )
|
||||
- Code Module: Fixed the issue with shortcodes, not working in the module with WYSIWIG Text mode activated
|
||||
* includes/builder/class-et-builder-element.php
|
||||
* includes/builder/functions.php
|
||||
* includes/builder/main-modules.php
|
||||
- Fixed HTML5 input elements styling issues
|
||||
* css/main-styles.css
|
||||
- Fixed 'Show Thumbs on Index pages' option
|
||||
* index.php
|
||||
- Fullwidth Post Title Module: Fixed the issue with the module preview in Page Builder
|
||||
* includes/builder/functions.php
|
||||
* includes/builder/main-modules.php
|
||||
* includes/builder/scripts/builder.js
|
||||
- Fixed single quote escaping issue in a module preview
|
||||
* includes/builder/template-preview.php
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.5.2.1 ( updated 09-04-2015 )
|
||||
- Code Module: Fixed encoding issues
|
||||
* includes/builder/main-modules.php
|
||||
* includes/builder/scripts/builder.js
|
||||
- Fixed the issue with bulleted text and tables, displayed incorrectly in a module preview
|
||||
* includes/builder/css/main-styles.css
|
||||
- Fixed incorrect module item height, when admin label is not defined
|
||||
* includes/builder/class-et-builder-element.php
|
||||
* includes/builder/scripts/builder.js
|
||||
* includes/builder/styles/style.css
|
||||
- Fixed the issue with "read more" button, when a blog post contains Blog module
|
||||
* includes/builder/main-modules.php
|
||||
- Map Module: Fixed "uncaught range" error, appearing in some cases
|
||||
* includes/builder/functions.php
|
||||
* includes/builder/scripts/builder.js
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.5.2 ( updated 09-03-2015 )
|
||||
- Updated lock/unlock permissions to use Divi's lock_module role
|
||||
- Fixed the conflict with BackupBuddy plugin and probably some other plugins
|
||||
* includes/builder/functions.php
|
||||
- Updated Blog Module Thumbnail selector field to on/off field
|
||||
- Fixed the issue with disappearing Blurb module images on some sites
|
||||
* includes/builder/main-modules.php
|
||||
- Fixed fullscreen header height issue, when vertical nav is activated and no secondary nav is defined
|
||||
* includes/builder/scripts/frontend-builder-scripts.js
|
||||
- Fixed the issue with loading of Page Builder files on Import page
|
||||
* includes/builder/framework.php
|
||||
- Page Builder hotkeys improvements
|
||||
* includes/builder/scripts/builder.js
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.5.1 ( updated 09-02-2015 )
|
||||
- Fixed issue with elements not appearing in Live Previews and on pages using the Blank Page Template.
|
||||
* js/custom.js
|
||||
- Fixed "preg_match(): Compilation failed: nothing to repeat at offset 1" warning message
|
||||
* includes/builder/functions.php
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.5 ( updated 09-02-2015 )
|
||||
* All files changed/updated
|
||||
- Page Builder: Added Right Click Menu into
|
||||
- Added Role Editor feature
|
||||
- Added Lock Module feature
|
||||
- Added Disable Module feature
|
||||
- Added option to collapse Sections and Rows
|
||||
- Added option to copy and paste modules inside the Page Builder
|
||||
- Added Preview feature into the Page Builder
|
||||
- Added Undo/Redo and History of changes into the Page Builder
|
||||
- Added new field to allow users to define admin label for slides
|
||||
- Added option to display products from selected categories into Shop Module
|
||||
- Added captions support for the Divi galleries
|
||||
- Added Enter and Escape buttons support in Page Builder modals
|
||||
- Added option to disable custom padding for columns on mobile
|
||||
- Added quicktags panel into the tinyMCE editor inside the Page Builder
|
||||
- Code Module: Fixed the issue with some content, stripped off from the module
|
||||
- Fullwidth Menu Module: Added advanced design settings
|
||||
- Blog Module: Added option to display comment count
|
||||
- Added Author support to Project Post Types
|
||||
- Customizer: Added logo height option into
|
||||
- Customizer: Added secondary menu link color option in fixed nav option in
|
||||
- Customizer: Added Site Identity section
|
||||
- Modules are sorted alphabetically by name now
|
||||
- Global Tabs Module: Fixed the issue with duplication of tabs in a Global module
|
||||
- Fixed various line height range issues in Page Builder
|
||||
- Fixed the issue with more tag inside modules
|
||||
- Fixed the conflict between Blog module and Shop module, when products are ordered by popularity
|
||||
- Fixed the issue with adding saved rows with 1 column into specialty sections
|
||||
- Fixed image zoom on page load when using blog grid
|
||||
- Fixed the issue with custom icons in Gallery/Portfolio modules
|
||||
- Testimonial Module: Changed images width and height range settings to 1-200
|
||||
- Fixed the issue with image in blurb module when wrong image path defined
|
||||
- Fixed the conflict with some plugins that use different MailChimp class
|
||||
- Fixed the Fullscreen mode of tinyMCE editor when enabled from the builder modal window
|
||||
- Social Media Follow Module: Fixed the issue with Skype Button link
|
||||
- Fixed the issue with infinite blog loop if a post contains Portfolio module
|
||||
- Optimized Page Builder files loading in WP-Admin
|
||||
- Fixed the issue with Settings icon, disappering from specialty section in some cases
|
||||
- Fixed the issue with preview in customizer, when different WordPress Address and Site Address are defined
|
||||
- Fixed the issue with unexpected behavior, when Enter button is pressed in the builder
|
||||
- Fixed the issue with image edit tooltip, not showing in Page Builder's editor
|
||||
- Fixed the issue with duplication of predefined layouts, when a child theme is activated
|
||||
- Fixed the issue with overlay border color when custom overlay color is selected in Gallery, Portfolio, Filterable Portfolio and Shop modules
|
||||
- Fixed the issue with wrong total number of layouts displayed on Library page
|
||||
- Fixed some errors when Video or Video slider modules are added with no settings configured
|
||||
- Text Module: Fixed the issue with "Justified" text orientation
|
||||
- Fixed the issue with appearance of WooCommerce Related Products when Sidebar is enabled
|
||||
- Fixed the conflict between active menu color and color scheme options
|
||||
- Fixed the issue with Gallery post types appearance on category pages
|
||||
- Fixed the conflict between accent color option and button color in customizer preview
|
||||
- Fixed the issue with z-index of Side Navigation and Back to Top button to make sure it is always on top
|
||||
- Fixed unwanted space in main nav, if inline centered logo and hide logo are used together
|
||||
- Fixed the issue with logo transition on scroll ( made it more smooth )
|
||||
- Fixed the issue with disappearing adsense in footer widget
|
||||
- Fixed the issue with Primary Nav that breaks if user uses .svg based logo
|
||||
- Various bug fixes and code improvements
|
||||
|
||||
version 2.4.6.4 ( updated 08-18-2015 )
|
||||
- Fixed issue with WordPress 4.3 that caused shortened post titles and excerpts to not be truncated correctly
|
||||
* epanel/custom_functions.php
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.4.6.3 ( updated 08-18-2015 )
|
||||
- Fixed WP_Widget class constructor warning message
|
||||
* includes/widgets/widget-about.php
|
||||
* includes/widgets/widget-ads.php
|
||||
* includes/widgets/widget-adsense.php
|
||||
- Fixed Customizer styling issues
|
||||
* css/theme-customizer-controls-styles.css
|
||||
- Fixed "Layouts / Add New" functionality issue with WordPress 4.3
|
||||
* includes/builder/scripts/library_scripts.js
|
||||
* includes/builder/styles/library_pages.css
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.4.6.2 ( updated 08-12-2015 )
|
||||
- Fixed the issue with WooCommerce v2.4.2, where product tabs were not clickable
|
||||
* js/custom.js
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.4.6.1 ( updated 07-22-2015 )
|
||||
- Improved WYSIWYG functionality in the builder
|
||||
- Fixed various bugs related to the TinyMCE editor that caused unwanted line breaks to be added to builder content
|
||||
* includes/builder/scripts/builder.js
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.4.6 ( updated 07-16-2015 )
|
||||
- Added print styles to improve the page format when printed
|
||||
* epanel/shortcodes/css/shortcodes_responsive.css
|
||||
* rtl.css
|
||||
* style.css
|
||||
- Customizer: Fixed the issue with menu/logo height option when "Fixed Navigation" is disabled
|
||||
* js/custom.js
|
||||
* js/theme-customizer.js
|
||||
* style.css
|
||||
- Customizer: "Hide navigation until scroll" option is hidden if fixed nav is disabled now
|
||||
- Blog and Portfolio modules: Fixed the issue with pagination, not working properly on single pages with non-default permalinks
|
||||
- Pricing Table Module: Fixed the issue with "-" sign, not being recognized properly in some cases
|
||||
- Fixed the issue with custom body class, ovewritten in WP-Admin
|
||||
* functions.php
|
||||
- Fullscreen Header Module: Fixed the issue with scrolling on pages with multiple Fullscreen Header modules
|
||||
- Circle Counter, Number Counter modules: Fixed the conflict with Form Maker Pro plugin
|
||||
* js/custom.js
|
||||
- Countdown Timer Module: Fixed the issue with time, displaying incorrect values for visitors in different locations
|
||||
* js/custom.js
|
||||
* includes/builder/main-modules.php
|
||||
- Fixed the issue with the following setup: More than 1 fullwidth module in the first section + transparent navigation
|
||||
- Fullwidth Header Module: Fixed the issue with Down Arrow, not being visible with Transparent Navigation enabled
|
||||
* js/custom.js
|
||||
* js/theme-customizer.js
|
||||
- Megamenu: Added support for less than four columns
|
||||
- Fixed the issue with dropdown menu animation on iPad in landscape mode
|
||||
- Image module: Fixed 'Remove Space Below The Image' option functionality
|
||||
* js/custom.js
|
||||
* style.css
|
||||
- Updated localization files:
|
||||
* lang/nl_NL.mo
|
||||
* lang/nl_NL.po
|
||||
* includes/builder/languages/nl_NL.mo
|
||||
* includes/builder/languages/nl_NL.po
|
||||
- Customizer: Fixed incorrect page padding top value, applied when changing "Header Style" to "Center"
|
||||
* js/theme-customizer.js
|
||||
- Fixed the issue with Gallery Post Format, combining all galleries in one single gallery
|
||||
- Fixed the issue with "Gallery" Posts, not displaying JetPack's tiled gallery format when it's enabled
|
||||
* functions.php
|
||||
* index.php
|
||||
- Fixed the issue with slider animations, not working properly in Firefox
|
||||
* includes/builder/main-modules.php
|
||||
* style.css
|
||||
- Applied alpha sliders to background color options in advanced settings
|
||||
- Contact Form Module: Improved Accessibility
|
||||
- Fixed the issue with Custom Margin Settings overridden, when custom gutter width is defined
|
||||
- Blurb Module: Fixed the issue with Title color option, conflicting with "color scheme" setting
|
||||
- Page Builder: Fixed some line height settings ranges in advanced settings
|
||||
* includes/builder/main-modules.php
|
||||
- Slider Module: Added the option to animate the slider on hover, when Automattic Animation is enabled
|
||||
- Bar Counters: Fixed the issue with background color, not covering percentage text properly in some cases
|
||||
* js/custom.js
|
||||
* includes/builder/main-modules.php
|
||||
- Fixed various modules line-height issues
|
||||
- Contact Form Module: Fixed incorrect id attribute
|
||||
* includes/builder/class-et-builder-element.php
|
||||
* includes/builder/main-modules.php
|
||||
- Page Builder: Fixed the issue with changes, not being saved in Text mode, when Elegant Builder plugin is enabled
|
||||
* functions.php
|
||||
* includes/builder/scripts/builder.js
|
||||
- Slider Module Advanced Settings: Fixed the issue with custom fonts settings
|
||||
- Page Builder: Fixed the issue with the ability to move a section above the main builder buttons
|
||||
- Page Builder: Improved Content WYSIWIG editors functionality
|
||||
- Gallery Module: Removed thumbnail-size options that is shown when choosing images
|
||||
* includes/builder/scripts/builder.js
|
||||
- Fixed the issue with non-working icons in Page builder
|
||||
* includes/builder/class-et-builder-element.php
|
||||
* includes/builder/scripts/builder.js
|
||||
- Global Modules: Fixed the issue with shortcodes, not working in a module
|
||||
- Page Builder: Fixed the issue with 1px border setting, ignored on front-end
|
||||
* includes/builder/class-et-builder-element.php
|
||||
- Advanced Design Settings: Added validation to some settings
|
||||
* functions.php
|
||||
* includes/builder/class-et-builder-element.php
|
||||
* includes/builder/scripts/builder.js
|
||||
- Fullwidth Header Module: Fixed the issue with wrong icon set, provided for the "Icon" setting
|
||||
* functions.php
|
||||
* includes/builder/main-modules.php
|
||||
* includes/builder/scripts/builder.js
|
||||
- Fixed the issue with Row width on Projects, when boxed layout is enabled
|
||||
- Fixed the issue with Row background, overriding column backgrounds if parallax background setting is enabled
|
||||
- Fixed the widths of select boxes on WooCommerce variable products pages
|
||||
- Text Module: Removed 100% width from Text Module to avoid custom margin overlap
|
||||
- Blog Module: Fixed the issue with items, overlapping the blog grid in small columns in Firefox
|
||||
- Megamenu: Fixed alignment issues, when "Vertical navigation" is enabled
|
||||
- Divider Module: Fixed some issues with the module rendering in IE11
|
||||
- Fixed Sub menu animation on some mobile devices
|
||||
- Fixed Project page layout width issues
|
||||
- Fixed centered inline logo padding issue on mobile
|
||||
- Fullwidth Header Module: Fixed Vertical alignment in IE 9-10
|
||||
- Added cursor pointer to mobile menu
|
||||
- Removed default search icon from webkit browsers
|
||||
- Reorganized style.css file
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.4.5.1
|
||||
- Updated builder versioning on load to prevent potential problems due to browser cache.
|
||||
* includes/builder/functions.php
|
||||
|
||||
version 2.4.5 ( updated 07-02-2015 )
|
||||
- Fixed the issue with 404 page, displaying instead of "Edit Page / Post" page in WP-Admin on some servers
|
||||
* includes/builder/class-et-builder-element.php
|
||||
* includes/builder/functions.php
|
||||
* includes/builder/scripts/builder.js
|
||||
- Fixed the issue with shortcodes, not working in Pricing Table Module content
|
||||
* includes/builder/functions.php
|
||||
- Fixed the issue with global modules and rows, not saving content properly inside the Specialty Section sidebar
|
||||
- Fixed the issue with <br/> tag, added to content in Text mode, when a new module is created
|
||||
* includes/builder/scripts/builder.js
|
||||
- Pricing Table Module: Fixed some Custom CSS settings
|
||||
- Fullwidth Header Module: Added "Logo Title" and "Logo Image Alt Text" options
|
||||
* includes/builder/main-modules.php
|
||||
- Updated some localization files
|
||||
* lang/nl_NL.mo
|
||||
* lang/nl_NL.po
|
||||
* lang/it_IT.mo
|
||||
* lang/it_IT.po
|
||||
* lang/pl_PL.mo
|
||||
* lang/pl_PL.po
|
||||
* lang/fi.mo
|
||||
* lang/fi.po
|
||||
* includes/builder/languages/es_ES.mo
|
||||
* includes/builder/languages/es_ES.po
|
||||
- Fixed the issue with Centered Inline Logo in IE
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.4.4 ( updated 06-26-2015 )
|
||||
- Customizer: Fixed the issue with Footer Layout option, not working with localized text
|
||||
* css/theme-customizer-controls-styles.css
|
||||
* js/theme-customizer-controls.js
|
||||
- Customizer: Fixed the issue with light font variants, not being displayed properly in Live Preview
|
||||
* epanel/google-fonts/et_google_fonts.js
|
||||
* functions.php
|
||||
- Customizer: Fixed the issue with range slider tooltips, not being visible in Safari
|
||||
* js/theme-customizer-controls.js
|
||||
- Fixed the issue with Customizer, not working properly if the Wordpress Address is different than Site Address
|
||||
* functions.php
|
||||
- Fixed various formatting issues in WYSIWIG editor.
|
||||
* includes/builder/scripts/builder.js
|
||||
- Fixed the issue with double quotes, disappearing in modules settings
|
||||
* includes/builder/functions.php
|
||||
* includes/builder/class-et-builder-element.php
|
||||
* includes/builder/scripts/builder.js
|
||||
- Made transparent background for pagebuilder sections to be used on single pages only
|
||||
- Fixed some RTL layout issues
|
||||
* js/custom.js
|
||||
* rtl.css
|
||||
* includes/builder/styles/style.css
|
||||
- Removed unneeded space at the top of the site on mobile, when 'Fixed Navigation' option is disabled in ePanel
|
||||
* functions.php
|
||||
* style.css
|
||||
- Fullwidth Portfolio: Fixed the issue with resizing on the page with Blog module
|
||||
* js/custom.js
|
||||
* includes/builder/main-modules.php
|
||||
- Login Module: Fixed the issue with "Log out" link, not being displayed for logged in users
|
||||
- Fullwidth Header Module: Buttons and Logo image now show up, even if Title and/or Subheading is not set
|
||||
- Map / Fullwidth Map Module: Fixed the issue with Custom CSS settings, not being applied on frontend
|
||||
- Blog Module: Changed blog module output to not show post content if it also has a blog module enabled
|
||||
* includes/builder/main-modules.php
|
||||
- Mega menu width is 100% in centered inline logo header style now
|
||||
- Fixed the issue with modules visibility inside rows and fullwidth section with parallax background
|
||||
- Blurb Module: Fixed Blurb image incorrect display in Firefox
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.4.3 ( updated 06-22-2015 )
|
||||
- Fixed the issue with CSS parallax section, not working after the Map module
|
||||
* js/custom.js
|
||||
* style.css
|
||||
- Fixed the Accent Color conflict with some Advanced color settings
|
||||
- Updated the Project taxonomy labels for better readability
|
||||
* functions.php
|
||||
- Fixed the issue with submenus, being visible at all times
|
||||
- Fixed custom dropdown animation in Safari
|
||||
- Fixed dropdown menu, not working in Safari with "Hide menu until scroll" option enabled
|
||||
- Fixed animation glitch in header when using "expand" animation in Firefox
|
||||
- Fixed the issue with mobile sub-menu links, not working with flip animation
|
||||
* style.css
|
||||
- Fullwidth Header Module: Fixed the issue with header content alignment when no image is selected
|
||||
* includes/builder/main-modules.php
|
||||
* style.css
|
||||
- Customizer: Fixed the issue with primary menu background option preview
|
||||
* js/theme-customizer.js
|
||||
- Page Builder: Fixed the issue with modules alignment
|
||||
* includes/builder/styles/style.css
|
||||
- Contact Form Module: Fixed the issue with custom button icon
|
||||
* includes/builder/main-modules.php
|
||||
- Fixed some issues with Global Modules, not being in sync in some cases
|
||||
* includes/builder/class-et-builder-element.php
|
||||
- Fullwidth Header Module: Added 'Text Max Width' setting
|
||||
* includes/builder/main-modules.php
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.4.2 ( updated 06-18-2015 )
|
||||
- Fixed the issue with image module animation when default animation selected
|
||||
|
||||
version 2.4.1 ( updated 06-18-2015 )
|
||||
- Blog module: Fixed the issue with with stretched images in Safari
|
||||
- Fixed mega menu styling issues
|
||||
- Fixed the issue with Search bar, not visible in Safari
|
||||
- Fixed fullwidth search field position
|
||||
* style.css
|
||||
- Fixed modules initialization on frontend
|
||||
* functions.php
|
||||
* includes/builder/framework.php
|
||||
- Fixed the issue with Customizer, returning back to the homepage automatically on the page with Fullwidth Portfolio module
|
||||
- Accordion Module: Fixed the issue with toggles, being opened at the same time, when a user was clicking fast.
|
||||
* js/custom.js
|
||||
- Updated "Masonry Blog" to "Blog Grid" to match Builder verbiage
|
||||
- Updated "Full Width Slider" to "Fullwidth Slider" to match builder verbiage
|
||||
* functions.php
|
||||
* js/theme-customizer.js
|
||||
- Added tooltips to the Builder module icons for better usability
|
||||
* includes/builder/functions.php
|
||||
- Fixed some visual issues with TinyMCE editor buttons in Page Builder
|
||||
* includes/builder/styles/style.css
|
||||
- Shop Module: Fixed sort functionality
|
||||
* includes/builder/main-modules.php
|
||||
- Fixed some issues with items, dragged to Global Sections and Rows
|
||||
* includes/builder/scripts/builder.js
|
||||
- Fixed the issue with default module settings values, being added to custom css on pages.
|
||||
* includes/builder/class-et-builder-element.php
|
||||
* includes/builder/main-modules.php
|
||||
- Map Modules: Fixed main map preview
|
||||
* includes/builder/main-modules.php
|
||||
|
||||
version 2.4 ( updated 06-17-2015 )
|
||||
* All files changed/updated
|
||||
- Made Divi fully fluid ( all Module are percentage based now )
|
||||
- Added Divi Library and ability to save modules, rows and sections
|
||||
- Added ability to create global modules, rows and sections and sync their content
|
||||
- Added Settings for Rows
|
||||
- Added "Change Column Structure" option for Rows
|
||||
- Added Gutter width options for the entire website and for single rows
|
||||
- Added Width option for the entire website and for single rows
|
||||
- Added Advanced options and Custom CSS options to all modules.
|
||||
- Added New options into Theme Customizer and updated existing options
|
||||
* All existing sections of customizer have been updated with new settings
|
||||
* Added Buttons settings
|
||||
* Added Blog settings
|
||||
* Added Mobile styles settings
|
||||
* Added new font options for varius areas of website and modules
|
||||
* Added section height and row height options
|
||||
* Added Footer layout option
|
||||
* Some more various options
|
||||
- Added new header options
|
||||
* Header height
|
||||
* Fixed header height
|
||||
* "Centered inline logo" header style
|
||||
* "Hide Navigation Until Scroll" option
|
||||
* Various font options for navigation
|
||||
* Dropdown menu animation
|
||||
* Some more various options
|
||||
- Added Module Customizer to configure General settings for every module
|
||||
- Added "Code" Module
|
||||
- Added "Fullwidth Code" Module
|
||||
- Added "Post Title" Module
|
||||
- Added "Fullwidth Post Title" Module
|
||||
- Added "Fullwidth Image" Module
|
||||
- Improved the Page Builder appearance
|
||||
- Improved all modules css code
|
||||
- Added Page Builder for posts
|
||||
- Added fullscreen option into the Fullwidth Header module
|
||||
- Moved Divi options from the Appearance menu into its own "Divi" menu
|
||||
- Reworked the Divi search bar in the header
|
||||
- Fixed the issue with pagination in Blog module when offset is defined
|
||||
- Improved Builder code and made it easier to add new custom modules
|
||||
- Various bug fixes and code improvements
|
||||
|
||||
version 2.3.2 ( updated 04-23-2015 )
|
||||
- Fixed the issue with Aweber, breaking Page Builder on some servers, when no settings were defined
|
||||
* functions.php
|
||||
- Added minor security hardening
|
||||
* epanel/custom_functions.php
|
||||
* et-pagebuilder/et-pagebuilder.php
|
||||
* functions.php
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.3.1 ( updated 02-19-2015 )
|
||||
- Fixed some issues with Aweber functionality
|
||||
* functions.php
|
||||
- Fixed the issue with "Search" text, not recognized in localization files
|
||||
* header.php
|
||||
- Fixed the issue with secondary navigation items, not visible on mobile devices
|
||||
* js/custom.js
|
||||
- Fullwidth Module: Fixed the issue with mobile menu background color
|
||||
* js/custom.js
|
||||
* style.css
|
||||
- Updated localization files
|
||||
* lang/da_DK.mo
|
||||
* lang/da_DK.po
|
||||
* lang/fr_FR.mo
|
||||
* lang/fr_FR.po
|
||||
* lang/it_IT.mo
|
||||
* lang/it_IT.po
|
||||
* lang/nl_NL.mo
|
||||
* lang/nl_NL.po
|
||||
- Improved compatibility with child themes, created before the previous version of the theme ( 2.3 )
|
||||
* epanel/custom_functions.php
|
||||
- Renamed Portuguese localizaton files
|
||||
* lang/pt_BR.mo
|
||||
* lang/pt_BR.po
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.3 ( updated 02-12-2015 )
|
||||
- The theme has been translated into the following languages:
|
||||
* Arabic
|
||||
* Bulgarian
|
||||
* Chinese
|
||||
* Czech
|
||||
* Danish
|
||||
* Dutch
|
||||
* Finnish
|
||||
* French
|
||||
* German
|
||||
* Greek
|
||||
* Hebrew
|
||||
* Hungarian
|
||||
* Indonesian
|
||||
* Italian
|
||||
* Japanese
|
||||
* Korean
|
||||
* Malay
|
||||
* Norwegian
|
||||
* Polish
|
||||
* Portuguese
|
||||
* Romanian
|
||||
* Russian
|
||||
* Serbian
|
||||
* Slovak
|
||||
* Spanish
|
||||
* Swedish
|
||||
* Tagalog
|
||||
* Thai
|
||||
* Turkish
|
||||
* Ukranian
|
||||
* Vietnamese
|
||||
- Fixed character encoding in layouts code
|
||||
* et-pagebuilder/layouts/layouts.php
|
||||
- Added missing text domains for translations
|
||||
- Added Offset Number option to the Blog Module
|
||||
- Removed text color option from Blog Module grid view and set dark text color as default
|
||||
* et-pagebuilder/et-pagebuilder.php
|
||||
* functions.php
|
||||
- Fixed the issue with video slides in fullscreen mode
|
||||
- Adjusted styling of mobile menu and search icon on mobile devices
|
||||
- Fixed the issue with parallax effect, when CSS and True Parallax sliders were used on the same page
|
||||
- Fixed Audio module Volume Bar Height
|
||||
* style.css
|
||||
- Fixed the issue with "NaN" value in the counter module
|
||||
- Fixed the issue with videos, breaking counters on a page
|
||||
- Clicking the logo always refresh a page properly now
|
||||
- Fixed the issue with parallax, not resizing with learn more content and toggle modules
|
||||
- Fixed the issue with multiple fullwidth mobile menus, not working properly on a page
|
||||
- Fixed the issue where mobile menu does not close after an anchor link is clicked
|
||||
* js/custom.js
|
||||
- Fixed the issue with date, saved with double slashes
|
||||
* epanel/core_functions.php
|
||||
* epanel/options_divi.php
|
||||
* functions.php
|
||||
- Fixed non-English slugs, breaking the filterable portfolio
|
||||
* functions.php
|
||||
- Added sub-menu direction option and styling to Fullwidth Menu module
|
||||
- Added an option to allow background videos to not pause when audio is played
|
||||
* et-pagebuilder/et-pagebuilder.php
|
||||
* functions.php
|
||||
* js/custom.js
|
||||
- Improved video background functionality
|
||||
* js/custom.js
|
||||
* style.css
|
||||
- Added support for webm format in video module
|
||||
* et-pagebuilder/et-pagebuilder.php
|
||||
* functions.php
|
||||
- Updated image uploader in ePanel
|
||||
* epanel/core_functions.php
|
||||
* epanel/js/custom_uploader.js
|
||||
* epanel/options_divi.php
|
||||
- Fullwidth menus now use classes in place of ids to pass HTML validation
|
||||
* functions.php
|
||||
* style.css
|
||||
- Fixed styling for password protected posts, pages and projects
|
||||
* functions.php
|
||||
* js/theme-customizer.js
|
||||
* style.css
|
||||
- Removed focus styling in ePanel
|
||||
* epanel/css/panel.css
|
||||
- Fixed the issue with responsive shortcodes, not working correctly
|
||||
* epanel/shortcodes/css/shortcodes_responsive.css
|
||||
- Fixed fonts preview in Customizer
|
||||
* epanel/google-fonts/et_google_fonts.js
|
||||
- Fixed the issue with Video player, not shown for video posts using self hosted videos
|
||||
* functions.php
|
||||
* style.css
|
||||
- Fixed the issue with Aweber, breaking the page builder if no API options are set in ePanel
|
||||
- Fixed FeedBurner form html code in the Subscribe Module
|
||||
* functions.php
|
||||
- Fixed the issue with Media Library images Grayed Out in "Upload image" modal window
|
||||
* et-pagebuilder/css/jquery-ui-1.10.4.custom.css
|
||||
- Inner Shadow option works in sections with CSS parallax now
|
||||
* functions.php
|
||||
- Switched the footer RSS link from the comments feed to the main feed
|
||||
* includes/social_icons.php
|
||||
- Fixed fullwidth modules styling issues in the "Insert Module" modal box
|
||||
* et-pagebuilder/css/style.css
|
||||
- Added localization to all strings in the theme
|
||||
- The theme is now compatible with Right-to-Left Languages
|
||||
- Code improvements
|
||||
|
||||
version 2.2 ( updated 11-06-2014 )
|
||||
- 2 New Modules: Video and Video Slider
|
||||
* et-pagebuilder/css/style.css
|
||||
* et-pagebuilder/et-pagebuilder.php
|
||||
* et-pagebuilder/js/admin.js
|
||||
* functions.php
|
||||
* js/custom.js
|
||||
* style.css
|
||||
* Renamed fonts:
|
||||
* et-pagebuilder/fonts/etbuilder_v2_2.eot
|
||||
* et-pagebuilder/fonts/etbuilder_v2_2.svg
|
||||
* et-pagebuilder/fonts/etbuilder_v2_2.ttf
|
||||
* et-pagebuilder/fonts/etbuilder_v2_2.woff
|
||||
- Renamed Team Member module to Person Module
|
||||
* et-pagebuilder/et-pagebuilder.php
|
||||
* et-pagebuilder/js/admin.js
|
||||
- Added login_post scheme variable to login form module ( Fixes issues with Login module on WP Engine )
|
||||
* functions.php
|
||||
- Removed all "fuzzy" translations from localization files
|
||||
* lang/de_DE.mo
|
||||
* lang/de_DE.po
|
||||
* lang/en_US.mo
|
||||
* lang/en_US.po
|
||||
* lang/ru_RU.mo
|
||||
* lang/ru_RU.po
|
||||
- Fixed bug that would make countdown timer days negative when event has passed
|
||||
- Fixed the issue with Number Counter decimal values, rounded on scroll event
|
||||
* js/custom.js
|
||||
- Increased z-index on Scroll To Top button to display it to ensure it's always displayed on top of all elements
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.1.4 ( updated 09-02-2014 )
|
||||
- Fixed MailChimp API file name
|
||||
* includes/subscription/mailchimp/mailchimp.php
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.1.3 ( updated 09-01-2014 )
|
||||
- Date Option: Fixed the issue with slashes not being saved properly in ePanel
|
||||
* epanel/core_functions.php
|
||||
- Subscribe Module: Fixed the issues with Aweber and MailChimp. Added ajax loader icon.
|
||||
* functions.php
|
||||
* includes/subscription/mailchimp
|
||||
* js/custom.js
|
||||
* style.css
|
||||
- Fixed the issue with WYSIWIG editor visibility, when default editor gets activated
|
||||
* et-pagebuilder/js/admin.js
|
||||
- Fixed some issues with contact form, placed below the portfolio module
|
||||
- Fixed the issue with warning message, appearing when the account wasn't configured in ePanel
|
||||
* functions.php
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.1.2 ( updated 07-24-2014 )
|
||||
- Fixed the issue with wrong theme number value detected, if a child theme is being used
|
||||
* functions.php
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.1.1 ( updated 07-23-2014 )
|
||||
- Fixed the issue with ul and ol elements styling in Page Builder layouts
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 2.1 ( updated 07-22-2014 )
|
||||
- Added "Back to top" button
|
||||
- Added Side Navigation on single pages
|
||||
- Fixed the issue with button arrow position in Chrome
|
||||
- Don't show page builder code on search results page
|
||||
- WYSIWIG mode in Page Builder is now saved, it defaulted to Visual before
|
||||
- Gallery module: Fixed the issue with "Random Order" option
|
||||
- Fixed 1/4 column slider appearance
|
||||
- Fixed html list appearance on index page
|
||||
- Fixed the issue with Firefox not saving the layout if modules were moved
|
||||
- Fixed the issue with double quotes, used in Page Builder settings
|
||||
- Modified Page Builder elements to be responsive
|
||||
- Added transparent background option to Sections
|
||||
- Added Close button to the Specialty Section Modal window
|
||||
- Image Module: Added Title Text option
|
||||
- Added smooth scrolling for internal links
|
||||
- Subscribe Module: Integrated Mailchimp 2.0 API
|
||||
- Added the option to enable smooth scrolling
|
||||
- Image module: Added "Remove space below the image" option
|
||||
- Filterable Portfolio: Fixed animation issues in Firefox
|
||||
- Fixed Widget Area Select ( dropdown ) styling issues
|
||||
- Added the option to enable/disable background-size: cover for "body"
|
||||
- Circle Counter: Added limit to the number field
|
||||
- Circle Counter: Fixed the issue with lazy loading animation
|
||||
- Disabled the Lazy Loading effect on mobile devices to improve usability
|
||||
- Filterable Portfolio: Fixed the animation in FF browser
|
||||
- Pagination: Added localization for Previous and Next links
|
||||
- Fixed the issue with scrolling to the top of window, when the user clones a section or a row
|
||||
- Fixed "Menu displayed behind the embedded videos in IE" issue
|
||||
- Users shouldn't create sidebars with certain names. Added a note to the Widgets page.
|
||||
- Fixed Woocommerce notification bar appearance
|
||||
- Fixed the issue with separator in postmeta
|
||||
- Fixed "Link color" option in the Customizer
|
||||
- Added sidebar on WooCommerce category pages
|
||||
- Fixed some styling issues on the category page
|
||||
- Section Module: Fixed Background Color option description
|
||||
- Blog Module: Fixed the width of posts in 4/4 column
|
||||
- Comments are now visible on pages, where they have been disabled, if there is at least 1 comment on the page
|
||||
- Map Module: Fixed the issue with custom ID/Class settings
|
||||
- Blurbs Module: Fixed settings description
|
||||
- Fixed the issue with inactive secondary menu items on mobile devices
|
||||
- Fixed the issue with lightbox on pages with several gallery modules. Lightbox scrolls through the images from a single gallery now.
|
||||
- Slider Module: Added parallax option
|
||||
- Fixed the issue with jumping image in the slider module
|
||||
- Pricing Table Module: Fixed layout issues
|
||||
- Fixed the issue with jumping slides during transitions
|
||||
- Secondary navigation: Added email link
|
||||
- Map Module: Added mouse zoom option
|
||||
- Fixed mega menu width on iPad
|
||||
- Filterable Portfolio Module: Now it displays only selected categories, not all the categories selected projects assigned to.
|
||||
- Blog Module: Added option to display the read more button if "Show Excerpts" option is selected
|
||||
- Login Module: Fixed the module appearance for logged in users
|
||||
- Map Module: Centered infowindow above the pin
|
||||
- Fixed the issue with module settings window visibility. It's not hidden below the Wordpress menu anymore.
|
||||
- Project Page: Fixed the issue with the space on top of the page
|
||||
- Fixed the issue with the search field display
|
||||
- Fixed the fullscreen editor visibility issues
|
||||
- Portfolio Module: Fixed portfolio layout issues
|
||||
- Renamed icon font files to fix the issue with cache
|
||||
- Accordion module: Fixed some animation glitches
|
||||
- Countdown Module: Fixed issues in Safari and IE
|
||||
- Fixed fonts options in the Customizer
|
||||
- Fixed the issue with content visible on some password protected posts pages
|
||||
|
||||
List of modified files:
|
||||
* epanel/google-fonts/et_google_fonts.js
|
||||
* epanel/options_divi.php
|
||||
* et-pagebuilder/css/style.css
|
||||
* et-pagebuilder/et-pagebuilder.php
|
||||
* et-pagebuilder/fonts/etbuilder.eot
|
||||
* et-pagebuilder/fonts/etbuilder.svg
|
||||
* et-pagebuilder/fonts/etbuilder.ttf
|
||||
* et-pagebuilder/fonts/etbuilder.woff
|
||||
* et-pagebuilder/fonts/etbuilder_v2.eot
|
||||
* et-pagebuilder/fonts/etbuilder_v2.svg
|
||||
* et-pagebuilder/fonts/etbuilder_v2.ttf
|
||||
* et-pagebuilder/fonts/etbuilder_v2.woff
|
||||
* et-pagebuilder/js/admin.js
|
||||
* et-pagebuilder/js/widgets.js
|
||||
* fonts/ETmodules.eot
|
||||
* fonts/ETmodules.svg
|
||||
* fonts/ETmodules.ttf
|
||||
* fonts/ETmodules.woff
|
||||
* fonts/ETmodules_v2.eot
|
||||
* fonts/ETmodules_v2.svg
|
||||
* fonts/ETmodules_v2.ttf
|
||||
* fonts/ETmodules_v2.woff
|
||||
* footer.php
|
||||
* functions.php
|
||||
* header.php
|
||||
* includes/subscription/mailchimp/MCAPI.class.php
|
||||
* includes/subscription/mailchimp/Mailchimp.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Campaigns.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Conversations.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Ecomm.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Exceptions.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Folders.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Gallery.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Goal.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Helper.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Lists.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Mobile.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Neapolitan.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Reports.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Templates.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Users.php
|
||||
* includes/subscription/mailchimp/Mailchimp/Vip.php
|
||||
* index.php
|
||||
* js/custom.js
|
||||
* js/smoothscroll.js
|
||||
* js/theme-customizer.js
|
||||
* lang/de_DE.mo
|
||||
* lang/de_DE.po
|
||||
* lang/en_US.mo
|
||||
* lang/en_US.po
|
||||
* lang/ru_RU.mo
|
||||
* lang/ru_RU.po
|
||||
* page.php
|
||||
* single-project.php
|
||||
* single.php
|
||||
* style.css
|
||||
|
||||
version 2.0 ( updated 05-21-2014 )
|
||||
* All files changed/updated
|
||||
- Added many options to WordPress Customizer
|
||||
- Added lightbox to images
|
||||
- Added real parallax effect
|
||||
- More elements utilize accent color setting
|
||||
- Added Aweber and Feedburner integrations for Subscribe module
|
||||
- Added post formats support
|
||||
- Video
|
||||
- Audio
|
||||
- Quote
|
||||
- Gallery
|
||||
- Link
|
||||
- New Header Options
|
||||
- Added vertical navigation option
|
||||
- Added optional secondary header menu
|
||||
- Added boxed layout option
|
||||
- Added centered main menu option
|
||||
- Pagebuilder Updates
|
||||
- New specialty sections
|
||||
- Added many new pre-made layouts
|
||||
- Added clone module functionality
|
||||
- Updated Modules
|
||||
- Blurb
|
||||
- Testimonials
|
||||
- Added New Modules
|
||||
- Gallery
|
||||
- Audio
|
||||
- Login
|
||||
- Filterable Portfolio
|
||||
- Circle Counter
|
||||
- Number Counter
|
||||
- Accordion
|
||||
- Team Member
|
||||
- Countdown Timer
|
||||
- Social Media Follow
|
||||
- Map
|
||||
- Fullwidth Map
|
||||
- Fullwidth Menu
|
||||
- Fullwidth Portfolio
|
||||
- Fixed the issue with jumping backround image in sliders
|
||||
- Many bug fixes and CSS improvements
|
||||
- Bumped version number
|
||||
|
||||
|
||||
version 1.9.1 ( updated 04-21-2014 )
|
||||
- Fixed Page Builder issues in IE9 and IE10
|
||||
* et-pagebuilder/js/admin.js
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 1.9 ( updated 04-17-2014 )
|
||||
- Corrected js files version number
|
||||
* et-pagebuilder/et-pagebuilder.php
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 1.8 ( updated 04-15-2014 )
|
||||
- The theme is compatible with WordPress 3.9 now
|
||||
* et-pagebuilder/js/admin.js
|
||||
* et-pagebuilder/css/style.css
|
||||
|
||||
version 1.7 ( updated 03-06-2014 )
|
||||
- Fixed the issue with Blog and Portfolio modules pagination on static frontpage
|
||||
- Fixed the issue with video background in a section, overlaying any content within the section
|
||||
* functions.php
|
||||
- Fixed mega menu styling at 960 breakpoint
|
||||
- Adjusted slider arrow positioning at small sizes
|
||||
- Improved readability of slider text
|
||||
- Fixed slider padding issue at mobile breakpoint
|
||||
- Consolidated header styles
|
||||
- Adjusted newsletter styling for added consistency
|
||||
- Changed Blurb & Toggle headings for improved hierarchy
|
||||
- Adjusted WooCommerce headings for added consistency
|
||||
- Adjusted portfolio headings for added consistency
|
||||
- Styled the search widget
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 1.6 ( updated 02-26-2014 )
|
||||
- Added the slide link to heading in the Slider module
|
||||
- Fixed the issue with the separator symbol, appearing in the wrong place, when some items are disabled in the post info section.
|
||||
- Fixed validation errors in slider and section modules
|
||||
- Added "New Message From 'Site Name' - 'Contact Form Title'" to the email title field
|
||||
* functions.php
|
||||
- Fixed the issue with resizing of images that have the x symbol between width and height values in the filename
|
||||
- Fixed the issue with .jpeg images and uppercase extensions in cached files
|
||||
- The theme doesn't strip slashes from custom css now, when saving the option to the database
|
||||
- Removed buzz shortcode ( Google retired Buzz )
|
||||
- Fixed ePanel SEO home options not appearing on static front page
|
||||
- Better compatibility with WordPress SEO and All In One SEO Pack plugins. ePanel SEO is disabled if these plugins are active now.
|
||||
* epanel/core_functions.php
|
||||
* epanel/custom_functions.php
|
||||
* epanel/shortcodes/shortcodes.php
|
||||
- Disabled lazy loading animations on mobile devices
|
||||
- 'Slide Text Color' option affects navigation arrows and controls color now in the Slider Module
|
||||
* js/custom.js
|
||||
* style.css
|
||||
- Fixed the issue with "Disable Top Menu Links" option in ePanel
|
||||
* js/custom.js
|
||||
- Fixed WooCommerce styling issues
|
||||
- Fixed the issue with post content, visible in tiled blog posts at 320 breakpoint
|
||||
- Fixed the issue with Portfolio module images not visible in IE8
|
||||
- Fixed the issue with mediaelementjs videos not displaying correctly in full-screen mode in IE10 and IE11
|
||||
- Fixed tiled blog post styling in 1/4 column at 480 and 320 breakpoints
|
||||
- Fixed Contact form module styling at 768px breakpoint
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 1.5 ( updated 02-18-2014 )
|
||||
- Fixed 'Your theme has bundled outdated copies of WooCommerce template files' warning message
|
||||
* functions.php
|
||||
* deleted woocommerce folder
|
||||
- Fixed Review form styling
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 1.4 ( updated 02-11-2014 )
|
||||
- Fixed WooCommerce Sidebar Error
|
||||
- Added Anti Aliasing
|
||||
- Fixed the issue with megamenu dropdown links visibility
|
||||
- Fixed Counters animation in Firefox
|
||||
- Fixed a typo in Porfolio module title
|
||||
- Fixed 'multiple sliders on one page' issues
|
||||
- Fixed the issue with hidden checkboxes and radio elements
|
||||
|
||||
List of modified files:
|
||||
* style.css
|
||||
* js/custom.js
|
||||
* et-pagebuilder/et-pagebuilder.php
|
||||
* functions.php
|
||||
|
||||
version 1.3 ( updated 01-14-2014 )
|
||||
- Fixed the issue with multiple categories selected in the Portfolio module
|
||||
- Fixed the issue with the Contact Form module, not using the Email setting
|
||||
- Fixed the issue with the More Tag in the Blog module
|
||||
- Added 'Fixed Navigation Bar' option
|
||||
- Added 'Automatic slider animation' option
|
||||
- Added id and class options to modules. Defined et-hide-mobile class, it can be used to hide the module on mobile devices.
|
||||
- Fixed validation issues with Contact form and top menu
|
||||
- Fixed Color Schemes options not saving in the Customizer
|
||||
- Fixed Text Orientation in the Blurb module
|
||||
- Fixed the issue with Footer Widget Areas not styled in the Sidebar module
|
||||
- Fixed the issue with dropdown menu not showing in Safari and iPad in landscape mode
|
||||
- Removed Cropping from standard blog posts featured images
|
||||
- Slider arrows are shown at all times on mobile devices now
|
||||
- Added 'Image Vertical Alignment' option to the Slider module
|
||||
- Added localization for the Subscribe Module
|
||||
- Added link to the Blurb module image
|
||||
- Added 'open in a new window' option to the Image module
|
||||
- Added 'Text orientation' option to the Fullwidth Header module
|
||||
- Applied fitVids jQuery plugin to all videos
|
||||
- Added 'No Animation' option to Image and Blurb modules
|
||||
- Fixed 'Bottom To Top' animation
|
||||
- Fixed Pricing tables columns structure in 1/3, 2/3, 1/4, 1/2 columns
|
||||
- Removed cropping from the main product image
|
||||
- Removed default iOS form elements styling
|
||||
- Fixed Calendar widget styling
|
||||
- Fixed video embedding issues
|
||||
- Fixed the issue with sub menu, displayed behind embedded videos
|
||||
- Fixed 1/3 and 1/4 tab modules display on mobile breakpoints
|
||||
- Fixed 3.8 admin bar front-end styling on mobile devices
|
||||
- Fixed Products pages styling
|
||||
- Fixed Blog module styling in 1/4 column
|
||||
- Fixed pagination styling for blog/shop/portfolio pages
|
||||
- Fixed the issue with Slide Video not displaying in Firefox
|
||||
- Fixed slider description text width at mobile sizes
|
||||
- Fixed pricing table styling at 768px breakpoint
|
||||
- Fixed 1/3 and 1/4 column styling at 768px breakpoint
|
||||
- Fixed shop module styling at 768px breakpoint
|
||||
- Fixed slider module youtube videos size for all columns
|
||||
- Fixed the issue with pagination on search pages
|
||||
|
||||
List of modified files:
|
||||
* epanel/options_divi.php
|
||||
* epanel/post_thumbnails_divi.php
|
||||
* et-pagebuilder/et-pagebuilder.php
|
||||
* functions.php
|
||||
* header.php
|
||||
* includes/functions/sidebars.php
|
||||
* index.php
|
||||
* js/custom.js
|
||||
* lang/de_DE.mo
|
||||
* lang/de_DE.po
|
||||
* lang/en_US.mo
|
||||
* lang/en_US.po
|
||||
* lang/ru_RU.mo
|
||||
* lang/ru_RU.po
|
||||
* page.php
|
||||
* single.php
|
||||
* style.css
|
||||
|
||||
version 1.2 ( updated 12-23-2013 )
|
||||
- Now you can update Elegant Themes in the Dashboard: https://www.elegantthemes.com/members-area/documentation.html#updater
|
||||
* epanel/custom_functions.php
|
||||
- Bumped version number
|
||||
* style.css
|
||||
|
||||
version 1.1 ( updated 12-11-2013 )
|
||||
- Fixed errors with the theme on some servers
|
||||
* et-pagebuilder/et-pagebuilder.php
|
||||
- Fixed issues with saving layouts with no modules
|
||||
* et-pagebuilder/js/admin.js
|
||||
- Fixed Search Icon bug in Firefox
|
||||
* style.css
|
||||
- Fixed the issue with flashing image in the slider with video preloader
|
||||
* functions.php
|
||||
* js/custom.js
|
||||
|
||||
version 1.0
|
||||
|
||||
- initial release
|
||||
60
wp-content/themes/Divi/comments.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
if ( post_password_required() ) : ?>
|
||||
|
||||
<p class="nocomments container"><?php esc_html_e( 'This post is password protected. Enter the password to view comments.', 'Divi' ); ?></p>
|
||||
<?php
|
||||
return;
|
||||
endif;
|
||||
?>
|
||||
<!-- You can start editing here. -->
|
||||
|
||||
<section id="comment-wrap">
|
||||
<?php if ( have_comments() && ! empty( $comments_by_type['comment'] ) ) : ?>
|
||||
<h1 id="comments" class="page_title"><?php comments_number( esc_html__( '0 Comments', 'Divi' ), esc_html__( '1 Comment', 'Divi' ), '% ' . esc_html__( 'Comments', 'Divi' ) ); ?></h1>
|
||||
<?php endif; ?>
|
||||
<?php if ( have_comments() ) : ?>
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||
<div class="comment_navigation_top clearfix">
|
||||
<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'Divi' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'Divi' ) ); ?></div>
|
||||
</div> <!-- .navigation -->
|
||||
<?php endif; // check for comment navigation ?>
|
||||
|
||||
<?php if ( ! empty($comments_by_type['comment']) ) : ?>
|
||||
<ol class="commentlist clearfix">
|
||||
<?php wp_list_comments( array('type'=>'comment','callback'=>'et_custom_comments_display') ); ?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||
<div class="comment_navigation_bottom clearfix">
|
||||
<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'Divi' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'Divi' ) ); ?></div>
|
||||
</div> <!-- .navigation -->
|
||||
<?php endif; // check for comment navigation ?>
|
||||
|
||||
<?php if ( ! empty($comments_by_type['pings']) ) : ?>
|
||||
<div id="trackbacks">
|
||||
<h3 id="trackbacks-title"><?php esc_html_e('Trackbacks/Pingbacks','Divi'); ?></h3>
|
||||
<ol class="pinglist">
|
||||
<?php wp_list_comments('type=pings&callback=et_list_pings'); ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php else : // this is displayed if there are no comments so far ?>
|
||||
<div id="comment-section" class="nocomments">
|
||||
<?php if ('open' == $post->comment_status) : ?>
|
||||
<!-- If comments are open, but there are no comments. -->
|
||||
|
||||
<?php else : // comments are closed ?>
|
||||
<!-- If comments are closed. -->
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ('open' == $post->comment_status) : ?>
|
||||
<?php comment_form( array('label_submit' => esc_attr__( 'Submit Comment', 'Divi' ), 'title_reply' => '<span>' . esc_attr__( 'Submit a Comment', 'Divi' ) . '</span>', 'title_reply_to' => esc_attr__( 'Leave a Reply to %s', 'Divi' ), 'class_submit' => 'submit et_pb_button' ) ); ?>
|
||||
<?php else: ?>
|
||||
|
||||
<?php endif; // if you delete this the sky will fall on your head ?>
|
||||
</section>
|
||||
6
wp-content/themes/Divi/css/advanced_options.css
Normal file
@@ -0,0 +1,6 @@
|
||||
#et_aweber_connection p, #et_aweber_connection li { margin-bottom: 12px; }
|
||||
#et_aweber_connection p:last-child, #et_aweber_connection li:last-child { margin-bottom: 0; }
|
||||
.et_result_error { padding: 15px; background: #BE5151; margin-top: 13px; color: #FFF; }
|
||||
#epanel .et_result_error strong { font-weight: bold; }
|
||||
.et_aweber_connect_done { text-align: center; }
|
||||
.et_aweber_connect_done span { float: none !important; }
|
||||
1180
wp-content/themes/Divi/css/main-styles.css
Normal file
207
wp-content/themes/Divi/css/theme-customizer-controls-styles.css
Normal file
@@ -0,0 +1,207 @@
|
||||
@font-face {
|
||||
font-family: 'ETmodules';
|
||||
src:url('../includes/builder/fonts/ETmodules_v2_4.eot');
|
||||
src:url('../includes/builder/fonts/ETmodules_v2_4.eot?#iefix') format('embedded-opentype'),
|
||||
url('../includes/builder/fonts/ETmodules_v2_4.ttf') format('truetype'),
|
||||
url('../includes/builder/fonts/ETmodules_v2_4.woff') format('woff'),
|
||||
url('../includes/builder/fonts/ETmodules_v2_4.svg#ETmodules') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
h1, h2, h3, h4, h5, h6 { text-decoration: none !important; font-style: normal !important; text-transform: none !important; letter-spacing: 0px !important; font-family: "Open Sans",sans-serif !important;}
|
||||
.customize-control-image .actions { margin-bottom: 0; }
|
||||
.customize-control { margin-bottom: 0; }
|
||||
|
||||
#customize-preview.wp-full-overlay-main.iframe-ready.et_divi_phone, #customize-preview.wp-full-overlay-main.iframe-ready.et_divi_tablet { -webkit-box-shadow: inset 0px 0px 300px -86px rgba(0,0,0,1);
|
||||
-moz-box-shadow: inset 0px 0px 300px -86px rgba(0,0,0,1);
|
||||
box-shadow: inset 0px 0px 300px -86px rgba(0,0,0,1); text-align: center; background-color: #3F3F3F; }
|
||||
#customize-preview.et_divi_phone iframe, #customize-preview.et_divi_tablet iframe { box-sizing: border-box; -webkit-box-sizing: border-box; height: 80%; border-radius: 20px; -webkit-border-radius: 20px; border: 10px solid #d7d7d7; margin-top: 10%; width: 90%; max-width: 479px !important; box-shadow: 0 0 100px rgba(0,0,0,.8); -webkit-box-shadow: 0 0 100px rgba(0,0,0,.8); -webkit-transition: all .5s; -moz-transition: all .5s; transition: all .5s; -moz-animation: zoomIn .6s; -webkit-animation: zoomIn .6s; -o-animation: zoomIn .6s; animation: zoomIn .6s; }
|
||||
#customize-preview.et_divi_tablet iframe { max-width: 767px !important; }
|
||||
|
||||
#customize-preview.et_divi_phone iframe::-webkit-scrollbar, #customize-preview.et_divi_tablet iframe::-webkit-scrollbar { width: 5px !important; }
|
||||
#customize-preview.et_divi_phone iframe::-webkit-scrollbar-track, #customize-preview.et_divi_tablet iframe::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 0 rgba(0,0,0,0.3) !important; width: 20px !important; background-color: #d7d7d7; }
|
||||
#customize-preview.et_divi_phone iframe::-webkit-scrollbar-thumb, #customize-preview.et_divi_tablet iframe::-webkit-scrollbar-thumb { -webkit-border-radius: 0 !important; border-radius: 0 !important; background: #3F3F3F !important; }
|
||||
#customize-preview.et_divi_phone iframe::-webkit-thumb:window-inactive, #customize-preview.et_divi_tablet iframe::-webkit-thumb:window-inactive { background: #d7d7d7 !important; }
|
||||
|
||||
span.et_divi_reset_slider { width: 16px; height: 16px; margin-left: 5px; display: inline-block; position: relative;}
|
||||
span.et_divi_reset_slider:after { font-family: 'ETmodules'; content: '\e61f'; font-size: 16px; line-height: 1em; color: #B7B7B7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;}
|
||||
span.et_divi_reset_slider:hover:after { color: #A7A7A7; }
|
||||
label { font-size: 12px; position: relative; }
|
||||
|
||||
input, select, input[type=checkbox], input[type=text] { width: 100%; margin-left: 0; border-radius: 4px; border: none; box-shadow: none; background: #f4f4f4; padding: 5px 10px; font-size: 14px; color: #32373c; }
|
||||
input:focus, select:focus { box-shadow: none !important; outline: none !important; background: #eaeaea; -webkit-transition: background .5s; -moz-transition: background .5s; transition: background .5s; }
|
||||
.et_filter_text { background-color: #f4f4f4 !important; border: none !important; }
|
||||
.wp-full-overlay-header input { width: auto; }
|
||||
input[type=range] { -webkit-transition: background .5s; -moz-transition: background .5s; transition: background .5s; -webkit-appearance: none; background-color: #f4f4f4; height: 5px; width: 225px; padding: 0; }
|
||||
input[type=range]:focus { box-shadow: none !important; outline: none !important; }
|
||||
input[type=range]:hover { background-color: #CAEBFF; }
|
||||
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; background-color: #2e86b9; width: 15px; height: 15px; border-radius: 15px; -webkit-border-radius: 15px; }
|
||||
input[type="range"]::-moz-range-track { border: inherit; background: transparent; }
|
||||
input[type="range"]::-ms-track { border: inherit; color: transparent; background: transparent; }
|
||||
input[type="range"]::-ms-fill-lower,
|
||||
input[type="range"]::-ms-fill-upper { background: transparent; }
|
||||
input[type="range"]::-ms-tooltip { display: none; }
|
||||
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border: none; border-radius: 15px; background-color: #2e86b9; }
|
||||
input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 15px; background-color: #2e86b9; }
|
||||
input[type="range"]::-ms-thumb { width: 15px; height: 15px; border-radius: 15px; border: 0; background-color: #2e86b9; }
|
||||
|
||||
input[type=checkbox] { margin-right: 10px; float: left; margin-top: 0; width: 25px; height: 25px; margin-top: 2px; }
|
||||
input[type=checkbox]:checked:before { color: #2E86B9; float: none; }
|
||||
|
||||
.customize-control-title { margin-top: 15px; text-transform: uppercase; font-size: 12px;}
|
||||
.customize-control-range .customize-control-title { margin-bottom: -8px; }
|
||||
.customize-control-checkbox { font-weight: 600; font-size: 12px; text-transform: uppercase; border: 1px solid #EEEEEE; background-color: #FDFDFD; margin-bottom: -1px; padding: 6px 10px; border-radius: 2px; box-sizing: border-box; -webkit-box-sizing: border-box; }
|
||||
.customize-control button.button { width: 100%; border: none; box-shadow: none; background-color: #2E86B9; color: #fff; height: 30px; }
|
||||
.customize-control button.button:hover { color: #fff; background-color: #186EA0; transition: all .5s ease-in-out; -webkit-transition: all .5s ease-in-out; -webkit-transition: all .5s ease-in-out; }
|
||||
.customize-control button.remove-button { margin-bottom: 10px; }
|
||||
.customize-control select, .customize-control-text input { background: #FDFDFD; border: 1px solid #eee; height: 35px; }
|
||||
.customize-control-image .inner { line-height: 30px; top: 0; }
|
||||
.customize-control-image .current .container { min-height: 30px; }
|
||||
.wp-color-result { width: 100%; box-sizing: border-box; padding: 0 0 0 40px; box-shadow: inset 0 0 1px rgba(0,0,0,.5) !important; -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,.5) !important; border: none; height: 30px; border-radius: 4px; margin: 0; }
|
||||
.wp-color-result:after { background-color: rgba(0,0,0,.2); color: #fff; height: 30px; line-height: 30px; border: none; box-shadow: none; font-size: 12px; border-radius: 0 4px 4px 0; padding: 0 15px; }
|
||||
.wp-color-result:hover, .wp-color-result:focus:after, .wp-color-result:hover:after { color: #fff; border: none; }
|
||||
.wp-picker-container .iris-picker { margin: 15px 0 0 0; }
|
||||
.wp-picker-container, .wp-picker-input-wrap { width: 100%; border-radius: 4px; overflow: hidden; }
|
||||
.wp-picker-container input[type=text].wp-color-picker, .wp-core-ui .wp-picker-default { width: 45% !important; vertical-align: bottom; margin-top: 10px; }
|
||||
.wp-core-ui .wp-picker-default { margin-left: 10%; }
|
||||
.wp-full-overlay-sidebar-content::-webkit-scrollbar, .et-pb-main-settings::-webkit-scrollbar, ul.et_font_icon::-webkit-scrollbar, .accordion-section-content::-webkit-scrollbar { width: 5px !important; }
|
||||
.wp-full-overlay-sidebar-content::-webkit-scrollbar-track, .et-pb-main-settings::-webkit-scrollbar-track, ul.et_font_icon::-webkit-scrollbar-track, .accordion-section-content::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 0 rgba(0,0,0,0.3) !important; width: 20px !important; }
|
||||
.wp-full-overlay-sidebar-content::-webkit-scrollbar-thumb, .et-pb-main-settings::-webkit-scrollbar-thumb, ul.et_font_icon::-webkit-scrollbar-thumb, .accordion-section-content::-webkit-scrollbar-thumb { -webkit-border-radius: 0 !important; border-radius: 0 !important; background: #d8d8d8 !important; }
|
||||
.wp-full-overlay-sidebar-content::-webkit-thumb:window-inactive, .et-pb-main-settings::-webkit-scrollbar-thumb:window-inactive, ul.et_font_icon::-webkit-scrollbar-thumb:window-inactive, .accordion-section-content::-webkit-scrollbar-thumb:window-inactive { background: #fff !important; }
|
||||
|
||||
#customize-control-et_divi-vertical_nav, #customize-control-et_divi-boxed_layout { margin-top: 20px; }
|
||||
.control-panel-back:before, .customize-controls-close:before { top: 3px; left: 12px; }
|
||||
|
||||
.et_pb_range_tooltip { width: 35px; height: 35px; border-radius: 25px; -webkit-border-radius: 25px; background-color: #2e86b9; position: absolute; bottom: -10px; color: #fff; -moz-animation: bounceIn .7s; -webkit-animation: bounceIn .7s; -o-animation: bounceIn .7s; animation: bounceIn .7s; line-height: 35px; text-align: center; right: -16px; }
|
||||
|
||||
.accordion-section-content li.customize-control:first-of-type, .accordion-section-content li.customize-control:first-of-type .customize-control-title { margin-top: 0 !important; }
|
||||
.accordion-section-content { padding: 20px; background-color: #fff !important; border-bottom: 1px solid #dddddd; }
|
||||
|
||||
li#customize-control-et_divi-use_sidebar_width{ margin-top: 15px !important; }
|
||||
li#customize-control-et_divi-et_pb_sidebar-remove_border{ margin-top: 20px !important; }
|
||||
|
||||
/* ET_Select_Image */
|
||||
.et_select_image_options { display: none; background: #eee; padding: 5px 0; height: 196px; overflow: auto; }
|
||||
.et_filter_text { position: relative; }
|
||||
.et_filter_text:before { content: ''; width: 0; height: 0; border-color: #ccc transparent; border-style: solid; border-width: 6px 6px 0; position: absolute; top: 18px; right: 8px; z-index: 1; }
|
||||
.et_select_image_options, .et_filter_text { background: #fff; border: 1px solid #dfdfdf; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
|
||||
.et_filter_text, .et_select_image_options li { display: block; padding: 5px 10px; text-indent: -9999px; background-repeat: no-repeat; height: 30px; background-image: url(images/all-fonts.png); margin-bottom: 0; }
|
||||
.et_select_image_active, .et_select_image_options li:hover { background-color: #effbff; }
|
||||
|
||||
/* ET_Select_Image + footer columns */
|
||||
.et_filter_text.et_si_4_column,
|
||||
.et_select_image_options.et_si_et_divi_footer_columns_ .et_si_4_column{
|
||||
background: url( ../images/footer-layouts.png ) center -10px no-repeat;
|
||||
}
|
||||
.et_filter_text.et_si_3_column,
|
||||
.et_select_image_options.et_si_et_divi_footer_columns_ .et_si_3_column{
|
||||
background: url( ../images/footer-layouts.png ) center -60px no-repeat;
|
||||
}
|
||||
|
||||
.et_filter_text.et_si_2_column,
|
||||
.et_select_image_options.et_si_et_divi_footer_columns_ .et_si_2_column{
|
||||
background: url( ../images/footer-layouts.png ) center -110px no-repeat;
|
||||
}
|
||||
|
||||
.et_filter_text.et_si_1_column,
|
||||
.et_select_image_options.et_si_et_divi_footer_columns_ .et_si_1_column{
|
||||
background: url( ../images/footer-layouts.png ) center -160px no-repeat;
|
||||
}
|
||||
|
||||
.et_filter_text.et_si_1_4__3_4_column,
|
||||
.et_select_image_options.et_si_et_divi_footer_columns_ .et_si_1_4__3_4_column{
|
||||
background: url( ../images/footer-layouts.png ) center -210px no-repeat;
|
||||
}
|
||||
|
||||
.et_filter_text.et_si_3_4__1_4_column,
|
||||
.et_select_image_options.et_si_et_divi_footer_columns_ .et_si_3_4__1_4_column{
|
||||
background: url( ../images/footer-layouts.png ) center -260px no-repeat;
|
||||
}
|
||||
|
||||
.et_filter_text.et_si_1_3__2_3_column,
|
||||
.et_select_image_options.et_si_et_divi_footer_columns_ .et_si_1_3__2_3_column{
|
||||
background: url( ../images/footer-layouts.png ) center -310px no-repeat;
|
||||
}
|
||||
|
||||
.et_filter_text.et_si_2_3__1_3_column,
|
||||
.et_select_image_options.et_si_et_divi_footer_columns_ .et_si_2_3__1_3_column{
|
||||
background: url( ../images/footer-layouts.png ) center -360px no-repeat;
|
||||
}
|
||||
|
||||
.et_filter_text.et_si_1_4__1_2_column,
|
||||
.et_select_image_options.et_si_et_divi_footer_columns_ .et_si_1_4__1_2_column{
|
||||
background: url( ../images/footer-layouts.png ) center -410px no-repeat;
|
||||
}
|
||||
|
||||
.et_filter_text.et_si_1_2__1_4_column,
|
||||
.et_select_image_options.et_si_et_divi_footer_columns_ .et_si_1_2__1_4_column{
|
||||
background: url( ../images/footer-layouts.png ) center -460px no-repeat;
|
||||
}
|
||||
|
||||
.et_select_image_options.et_si_et_divi_footer_columns_ li:hover{
|
||||
background-color: #effbff;
|
||||
}
|
||||
|
||||
/* ET_Font_Style */
|
||||
span.et_font_style { margin-left: 0; border-radius: 4px; border: none; box-shadow: none; background: #f4f4f4; padding: 6px 0; float:left; width: 23.5%; margin-right: 2%; text-align: center; font-size: 14px; color: #32373c; }
|
||||
span.et_font_style:last-of-type { margin-right: 0; }
|
||||
input.et_font_style_checkbox { display: none; }
|
||||
span.et_font_style { display: inline-block; cursor: pointer; }
|
||||
span.et_font_style.et_font_style_checked { background: #2e86b9; }
|
||||
span.et_font_style:before,
|
||||
span.et_font_style.et_font_style_checked:before { font-family: 'ETmodules'; font-size: 24px; line-height: 40px; display: inline-block; vertical-align: middle; speak: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
|
||||
span.et_font_style:before { color: #B7B7B7; }
|
||||
span.et_font_style.et_font_style_checked:before { color: #FFF; margin: 0; }
|
||||
span.et_font_style.et_font_value_bold:before,
|
||||
span.et_font_style.et_font_style_checked.et_font_value_bold:before { content: "\e622"; }
|
||||
span.et_font_style.et_font_value_italic:before,
|
||||
span.et_font_style.et_font_style_checked.et_font_value_italic:before { content: "\e623"; }
|
||||
span.et_font_style.et_font_value_underline:before,
|
||||
span.et_font_style.et_font_style_checked.et_font_value_underline:before { content: "\e621"; }
|
||||
span.et_font_style.et_font_value_uppercase:before,
|
||||
span.et_font_style.et_font_style_checked.et_font_value_uppercase:before { content: "\e624"; }
|
||||
|
||||
/* Icon Picker styles */
|
||||
ul.et_font_icon { position: relative; height: 120px; overflow: scroll; min-width: 260px; width: 100%; }
|
||||
.et_font_icon li:before { font-family: 'ETmodules'; content: attr(data-icon); speak: none; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; }
|
||||
.et_font_icon li { font-size: 16px; display: inline-block; background: #F4F4F4; padding: 10px; margin: 0; cursor: pointer; -webkit-transition: all .2s ease-in-out; transition: all .2s ease-in-out; }
|
||||
.et_font_icon .et_active { background-color: #2E86B9; color: #FFF; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; }
|
||||
|
||||
/* Hide Widgets Panel in Modules Customizer */
|
||||
.et_modules_customizer_option_set #accordion-panel-widgets { display: none !important; }
|
||||
|
||||
/*!
|
||||
Animate.css - http://daneden.me/animate
|
||||
Licensed under the MIT license - http://opensource.org/licenses/MIT
|
||||
|
||||
Copyright (c) 2015 Daniel Eden
|
||||
*/
|
||||
|
||||
@keyframes bounceIn {
|
||||
0%, 20%, 40%, 60%, 80%, 100% { -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); }
|
||||
0% { opacity: 0; -webkit-transform: scale3d(.3, .3, .3); transform: scale3d(.3, .3, .3); }
|
||||
20% { -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); }
|
||||
40% { -webkit-transform: scale3d(.9, .9, .9); transform: scale3d(.9, .9, .9); }
|
||||
60% { opacity: 1; -webkit-transform: scale3d(1.03, 1.03, 1.03); transform: scale3d(1.03, 1.03, 1.03); }
|
||||
80% { -webkit-transform: scale3d(.97, .97, .97); transform: scale3d(.97, .97, .97); }
|
||||
100% { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); }
|
||||
}
|
||||
@-webkit-keyframes bounceIn { 0%, 20%, 40%, 60%, 80%, 100% { -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); }
|
||||
0% { opacity: 0; -webkit-transform: scale3d(.3, .3, .3); transform: scale3d(.3, .3, .3); }
|
||||
20% { -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); }
|
||||
40% { -webkit-transform: scale3d(.9, .9, .9); transform: scale3d(.9, .9, .9); }
|
||||
60% { opacity: 1; -webkit-transform: scale3d(1.03, 1.03, 1.03); transform: scale3d(1.03, 1.03, 1.03); }
|
||||
80% { -webkit-transform: scale3d(.97, .97, .97); transform: scale3d(.97, .97, .97); }
|
||||
100% { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); }
|
||||
}
|
||||
|
||||
@-webkit-keyframes zoomIn {
|
||||
0% { opacity: 0; -webkit-transform: scale3d(.7, .7, .7); transform: scale3d(.7, .7, .7); }
|
||||
50% { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes zoomIn {
|
||||
0% { opacity: 0; -webkit-transform: scale3d(.7, .7, .7); transform: scale3d(.7, .7, .7); }
|
||||
50% { opacity: 1; }
|
||||
}
|
||||
/* End Animate.css */
|
||||
571
wp-content/themes/Divi/epanel/core_functions.php
Normal file
@@ -0,0 +1,571 @@
|
||||
<?php
|
||||
|
||||
|
||||
/********* ePanel v.3.2 ************/
|
||||
|
||||
|
||||
/* Adds jquery script */
|
||||
add_action( 'wp_print_scripts', 'et_jquery_script', 8 );
|
||||
function et_jquery_script(){
|
||||
wp_enqueue_script('jquery');
|
||||
}
|
||||
|
||||
|
||||
/* Admin scripts + ajax jquery code */
|
||||
if ( ! function_exists( 'et_epanel_admin_js' ) ){
|
||||
function et_epanel_admin_js(){
|
||||
global $themename;
|
||||
|
||||
$epanel_jsfolder = get_template_directory_uri() . '/epanel/js';
|
||||
wp_enqueue_script('jquery-ui-tabs');
|
||||
wp_enqueue_script('jquery-form');
|
||||
wp_enqueue_script('epanel_checkbox',$epanel_jsfolder . '/checkbox.js');
|
||||
wp_enqueue_script('epanel_functions_init',$epanel_jsfolder . '/functions-init.js');
|
||||
wp_localize_script( 'epanel_functions_init', 'ePanelSettings', array(
|
||||
'clearpath' => get_template_directory_uri() . '/epanel/images/empty.png',
|
||||
'et_saving_text' => esc_html__( 'Saving...', $themename ),
|
||||
'et_options_saved_text' => esc_html__( 'Options Saved.', $themename ),
|
||||
'epanel_nonce' => wp_create_nonce('epanel_nonce')
|
||||
));
|
||||
wp_enqueue_script('epanel_colorpicker',$epanel_jsfolder . '/colorpicker.js');
|
||||
wp_enqueue_script('epanel_eye',$epanel_jsfolder . '/eye.js');
|
||||
}
|
||||
}
|
||||
/* --------------------------------------------- */
|
||||
|
||||
/* Adds additional ePanel css */
|
||||
if ( ! function_exists( 'et_epanel_css_admin' ) ){
|
||||
function et_epanel_css_admin() { ?>
|
||||
<link rel="stylesheet" href="<?php echo esc_url( get_template_directory_uri() . '/epanel/css/panel.css' ); ?>" type="text/css" />
|
||||
<style type="text/css">
|
||||
.lightboxclose { background: url("<?php echo esc_url( get_template_directory_uri() . '/epanel/images/description-close.png' ); ?>") no-repeat; width: 19px; height: 20px; }
|
||||
</style>
|
||||
<!--[if IE 7]>
|
||||
<style type="text/css">
|
||||
#epanel-save, #epanel-reset { font-size: 0px; display:block; line-height: 0px; bottom: 18px;}
|
||||
.box-desc { width: 414px; }
|
||||
.box-desc-content { width: 340px; }
|
||||
.box-desc-bottom { height: 26px; }
|
||||
#epanel-content .epanel-box input, #epanel-content .epanel-box select, .epanel-box textarea { width: 395px; }
|
||||
#epanel-content .epanel-box select { width:434px !important;}
|
||||
#epanel-content .epanel-box .box-content { padding: 8px 17px 15px 16px; }
|
||||
</style>
|
||||
<![endif]-->
|
||||
<!--[if IE 8]>
|
||||
<style type="text/css">
|
||||
#epanel-save, #epanel-reset { font-size: 0px; display:block; line-height: 0px; bottom: 18px;}
|
||||
</style>
|
||||
<![endif]-->
|
||||
<?php }
|
||||
}
|
||||
/* --------------------------------------------- */
|
||||
|
||||
/* Save/Reset actions | Adds theme options to WP-Admin menu */
|
||||
add_action('admin_menu', 'et_add_epanel');
|
||||
function et_add_epanel() {
|
||||
global $themename, $shortname, $options;
|
||||
$epanel = basename(__FILE__);
|
||||
|
||||
if ( isset( $_GET['page'] ) && $_GET['page'] == $epanel && isset( $_POST['action'] ) ) {
|
||||
epanel_save_data( 'js_disabled' ); //saves data when javascript is disabled
|
||||
}
|
||||
|
||||
$core_page = add_theme_page( $themename . ' ' . esc_html__( 'Options', $themename ), $themename . ' ' . esc_html__( 'Theme Options', $themename ), 'switch_themes', basename(__FILE__), 'et_build_epanel' );
|
||||
|
||||
add_action( "admin_print_scripts-{$core_page}", 'et_epanel_admin_js' );
|
||||
add_action("admin_head-{$core_page}", 'et_epanel_css_admin');
|
||||
}
|
||||
/* --------------------------------------------- */
|
||||
|
||||
/* Displays ePanel */
|
||||
if ( ! function_exists( 'et_build_epanel' ) ){
|
||||
function et_build_epanel() {
|
||||
|
||||
global $themename, $shortname, $options, $et_disabled_jquery;
|
||||
|
||||
// load theme settings array
|
||||
et_load_core_options();
|
||||
|
||||
if ( isset($_GET['saved']) ) {
|
||||
if ( $_GET['saved'] ) echo '<div id="message" class="updated fade"><p><strong>' . esc_html( $themename ) . ' ' . esc_html__( 'settings saved.', $themename ) . '</strong></p></div>';
|
||||
}
|
||||
if ( isset($_GET['reset']) ) {
|
||||
if ( $_GET['reset'] ) echo '<div id="message" class="updated fade"><p><strong>' . esc_html( $themename ) . ' ' . esc_html__( 'settings reset.', $themename ) . '</strong></p></div>';
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="wrapper">
|
||||
<div id="panel-wrap">
|
||||
<form method="post" id="main_options_form" enctype="multipart/form-data">
|
||||
<div id="epanel-wrapper">
|
||||
<div id="epanel">
|
||||
<div id="epanel-content-wrap">
|
||||
<div id="epanel-content">
|
||||
<img src="<?php echo get_template_directory_uri() ?>/epanel/images/logo.png" alt="ePanel" class="pngfix" id="epanel-logo" />
|
||||
<?php
|
||||
global $epanelMainTabs;
|
||||
$epanelMainTabs = apply_filters( 'epanel_page_maintabs', $epanelMainTabs );
|
||||
?>
|
||||
<ul id="epanel-mainmenu">
|
||||
<?php if(in_array('general',$epanelMainTabs)) { ?>
|
||||
<li><a href="#wrap-general"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/general-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'General Settings', $themename ); ?></a></li>
|
||||
<?php }; ?>
|
||||
<?php if(in_array('navigation',$epanelMainTabs)) { ?>
|
||||
<li><a href="#wrap-navigation"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/navigation-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'Navigation', $themename ); ?></a></li>
|
||||
<?php }; ?>
|
||||
<?php if(in_array('layout',$epanelMainTabs)) { ?>
|
||||
<li><a href="#wrap-layout"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/layout-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'Layout Settings', $themename ); ?></a></li>
|
||||
<?php }; ?>
|
||||
<?php if(in_array('ad',$epanelMainTabs)) { ?>
|
||||
<li><a href="#wrap-advertisements"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/ad-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'Ad Management', $themename ); ?></a></li>
|
||||
<?php }; ?>
|
||||
<?php if(in_array('colorization',$epanelMainTabs)) { ?>
|
||||
<li><a href="#wrap-colorization"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/colorization-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'Colorization', $themename ); ?></a></li>
|
||||
<?php }; ?>
|
||||
<?php if(in_array('seo',$epanelMainTabs)) { ?>
|
||||
<li><a href="#wrap-seo"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/seo-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'SEO', $themename ); ?></a></li>
|
||||
<?php }; ?>
|
||||
<?php if(in_array('integration',$epanelMainTabs)) { ?>
|
||||
<li><a href="#wrap-integration"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/integration-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'Integration', $themename ); ?></a></li>
|
||||
<?php }; ?>
|
||||
<?php if(in_array('support',$epanelMainTabs)) { ?>
|
||||
<li><a href="#wrap-support"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/support-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'Support Docs', $themename ); ?></a></li>
|
||||
<?php }; ?>
|
||||
<?php do_action( 'epanel_render_maintabs',$epanelMainTabs ); ?>
|
||||
</ul><!-- end epanel mainmenu -->
|
||||
|
||||
<?php
|
||||
foreach ($options as $value) {
|
||||
if ( in_array( $value['type'], array( 'text', 'textlimit', 'textarea', 'select', 'checkboxes', 'different_checkboxes', 'colorpicker', 'textcolorpopup', 'upload', 'callback_function' ) ) ) { ?>
|
||||
<div class="epanel-box">
|
||||
<div class="box-title">
|
||||
<h3><?php echo esc_html( $value['name'] ); ?></h3>
|
||||
<img src="<?php echo get_template_directory_uri() ?>/epanel/images/help-image.png" alt="description" class="box-description" />
|
||||
<div class="box-descr">
|
||||
<p><?php echo wp_kses( $value['desc'], array( 'a' => array(
|
||||
'href' => array(),
|
||||
'title' => array(),
|
||||
'target' => array()
|
||||
)
|
||||
) ); ?></p>
|
||||
</div> <!-- end box-desc-content div -->
|
||||
</div> <!-- end div box-title -->
|
||||
|
||||
<div class="box-content">
|
||||
|
||||
<?php if ( 'text' == $value['type'] ) { ?>
|
||||
|
||||
<?php
|
||||
$et_input_value = '';
|
||||
$et_input_value = ( '' != et_get_option( $value['id'] ) ) ? et_get_option( $value['id'] ) : $value['std'];
|
||||
$et_input_value = stripslashes( $et_input_value );
|
||||
?>
|
||||
|
||||
<input name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] ); ?>" type="<?php echo esc_attr( $value['type'] ); ?>" value="<?php echo esc_attr( $et_input_value ); ?>" />
|
||||
|
||||
<?php } elseif ( 'textlimit' == $value['type'] ) { ?>
|
||||
|
||||
<?php
|
||||
$et_input_value = '';
|
||||
$et_input_value = ( '' != et_get_option( $value['id'] ) ) ? et_get_option( $value['id'] ) : $value['std'];
|
||||
$et_input_value = stripslashes( $et_input_value );
|
||||
?>
|
||||
|
||||
<input name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] ); ?>" type="text" maxlength="<?php echo esc_attr( $value['max'] ); ?>" size="<?php echo esc_attr( $value['max'] ); ?>" value="<?php echo esc_attr( $et_input_value ); ?>" />
|
||||
|
||||
<?php } elseif ( 'colorpicker' == $value['type'] ) { ?>
|
||||
|
||||
<div id="colorpickerHolder"></div>
|
||||
|
||||
<?php } elseif ( 'textcolorpopup' == $value['type'] ) { ?>
|
||||
|
||||
<?php
|
||||
$et_input_value = '';
|
||||
$et_input_value = ( '' != et_get_option( $value['id'] ) ) ? et_get_option( $value['id'] ) : $value['std'];
|
||||
?>
|
||||
|
||||
<input name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] ); ?>" class="colorpopup" type="text" value="<?php echo esc_attr( $et_input_value ); ?>" />
|
||||
|
||||
<?php } elseif ( 'textarea' == $value['type'] ) { ?>
|
||||
|
||||
<?php
|
||||
$et_textarea_value = '';
|
||||
$et_textarea_value = ( '' != et_get_option( $value['id'] ) ) ? et_get_option( $value['id'] ) : $value['std'];
|
||||
$et_textarea_value = stripslashes( $et_textarea_value );
|
||||
?>
|
||||
|
||||
<textarea name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] ); ?>"><?php echo esc_textarea( $et_textarea_value ); ?></textarea>
|
||||
|
||||
<?php } elseif ( 'upload' == $value['type'] ) { ?>
|
||||
|
||||
<?php
|
||||
$et_upload_button_data = isset( $value['button_text'] )
|
||||
? sprintf( ' data-button_text="%1$s"', esc_attr( $value['button_text'] ) )
|
||||
: '';
|
||||
?>
|
||||
|
||||
<input id="<?php echo esc_attr( $value['id'] ); ?>" class="uploadfield" type="text" size="90" name="<?php echo esc_attr( $value['id'] ); ?>" value="<?php echo esc_url( et_get_option($value['id']) ); ?>" />
|
||||
<div class="upload_buttons">
|
||||
<span class="upload_image_reset"><?php esc_html_e( 'Reset', $themename ); ?></span>
|
||||
<input class="upload_image_button" type="button"<?php echo $et_upload_button_data; ?> value="<?php esc_attr_e( 'Upload Image', $themename ); ?>" />
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<?php } elseif ( 'select' == $value['type'] ) { ?>
|
||||
|
||||
<select name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] ); ?>">
|
||||
<?php foreach ( $value['options'] as $option_key=>$option ) { ?>
|
||||
<?php
|
||||
$et_select_active = '';
|
||||
$et_use_option_values =
|
||||
( isset( $value['et_array_for'] ) && in_array( $value['et_array_for'], array( 'pages', 'categories' ) ) ) ||
|
||||
( isset( $value['et_save_values'] ) && $value['et_save_values'] ) ? true : false;
|
||||
|
||||
$et_option_db_value = et_get_option($value['id']);
|
||||
|
||||
if ( ( $et_use_option_values && ( $et_option_db_value == $option_key ) ) || ( stripslashes( $et_option_db_value ) == trim( stripslashes( $option ) ) ) || ( ! $et_option_db_value && isset( $value['std'] ) && stripslashes( $option ) == stripslashes( $value['std'] ) ) )
|
||||
$et_select_active = ' selected="selected"';
|
||||
?>
|
||||
<option<?php if ( $et_use_option_values ) echo ' value="' . esc_attr( $option_key ) . '"'; ?> <?php echo $et_select_active; ?>><?php echo esc_html( trim( $option ) ); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
|
||||
<?php } elseif ( 'checkboxes' == $value['type'] ) {
|
||||
|
||||
if ( empty( $value['options'] ) ) {
|
||||
esc_html_e( "You don't have pages", $themename );
|
||||
} else {
|
||||
$i = 1;
|
||||
$className = 'inputs';
|
||||
if ( isset( $value['excludeDefault'] ) && $value['excludeDefault'] == 'true' ) $className .= ' different';
|
||||
|
||||
foreach ( $value['options'] as $option ){
|
||||
$checked = "";
|
||||
$class_name_last = 0 == $i % 3 ? ' last' : '';
|
||||
|
||||
if ( et_get_option( $value['id'] ) ) {
|
||||
if ( in_array( $option, et_get_option( $value['id'] ) ) ) $checked = "checked=\"checked\"";
|
||||
}
|
||||
|
||||
$et_checkboxes_label = $value['id'] . '-' . $option;
|
||||
if ( 'custom' == $value['usefor'] ) {
|
||||
$et_helper = (array) $value['helper'];
|
||||
$et_checkboxes_value = $et_helper[$option];
|
||||
} else {
|
||||
if ( 'taxonomy_terms' == $value['usefor'] && isset( $value['taxonomy_name'] ) ) {
|
||||
$et_checkboxes_term = get_term_by( 'id', $option, $value['taxonomy_name'] );
|
||||
$et_checkboxes_value = sanitize_text_field( $et_checkboxes_term->name );
|
||||
} else {
|
||||
$et_checkboxes_value = ( 'pages' == $value['usefor'] ) ? get_pagename( $option ) : get_categname( $option );
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<p class="<?php echo esc_attr( $className . $class_name_last ); ?>">
|
||||
<input type="checkbox" class="usual-checkbox" name="<?php echo esc_attr( $value['id'] ); ?>[]" id="<?php echo esc_attr( $et_checkboxes_label ); ?>" value="<?php echo esc_attr( $option ); ?>" <?php echo esc_html( $checked ); ?> />
|
||||
|
||||
<label for="<?php echo esc_attr( $et_checkboxes_label ); ?>"><?php echo esc_html( $et_checkboxes_value ); ?></label>
|
||||
</p>
|
||||
|
||||
<?php if ( $i%3 == 0 ) echo('<br class="clearfix"/>'); ?>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
<br class="clearfix"/>
|
||||
|
||||
<?php } elseif ( 'different_checkboxes' == $value['type'] ){
|
||||
|
||||
foreach ( $value['options'] as $option ){
|
||||
$checked = '';
|
||||
if ( et_get_option( $value['id']) !== false ) {
|
||||
if ( in_array( $option, et_get_option( $value['id'] ) ) ) $checked = "checked=\"checked\"";
|
||||
} elseif ( isset( $value['std'] ) ) {
|
||||
if ( in_array($option, $value['std']) ) $checked = "checked=\"checked\"";
|
||||
} ?>
|
||||
|
||||
<p class="<?php echo esc_attr( 'postinfo-' . $option ); ?>">
|
||||
<input type="checkbox" class="usual-checkbox" name="<?php echo esc_attr( $value['id'] ); ?>[]" id="<?php echo esc_attr( $value['id'] . '-' . $option ); ?>" value="<?php echo esc_attr( $option ); ?>" <?php echo esc_html( $checked ); ?> />
|
||||
</p>
|
||||
<?php } ?>
|
||||
<br class="clearfix"/>
|
||||
|
||||
<?php } elseif ( 'callback_function' == $value['type'] ) {
|
||||
|
||||
call_user_func( $value['function_name'] ); ?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div> <!-- end box-content div -->
|
||||
</div> <!-- end epanel-box div -->
|
||||
|
||||
<?php } elseif ( 'checkbox' == $value['type'] || 'checkbox2' == $value['type'] ) { ?>
|
||||
<?php
|
||||
$et_box_class = 'checkbox' == $value['type'] ? 'epanel-box-small-1' : 'epanel-box-small-2';
|
||||
?>
|
||||
<div class="<?php echo esc_attr( 'epanel-box ' . $et_box_class ); ?>">
|
||||
<div class="box-title"><h3><?php echo esc_html( $value['name'] ); ?></h3>
|
||||
<img src="<?php echo esc_url( get_template_directory_uri() . '/epanel/images/help-image.png' ); ?>" alt="description" class="box-description" />
|
||||
<div class="box-descr">
|
||||
<p><?php echo wp_kses( $value['desc'], array( 'a' => array(
|
||||
'href' => array(),
|
||||
'title' => array(),
|
||||
'target' => array()
|
||||
)
|
||||
) ); ?></p>
|
||||
</div> <!-- end box-desc-content div -->
|
||||
</div> <!-- end div box-title -->
|
||||
<div class="box-content">
|
||||
<?php
|
||||
$checked = '';
|
||||
if ( '' != et_get_option( $value['id'] ) ) {
|
||||
if ( 'on' == et_get_option( $value['id'] ) ) { $checked = 'checked="checked"'; }
|
||||
else { $checked = ''; }
|
||||
}
|
||||
elseif ( 'on' == $value['std'] ) { $checked = 'checked="checked"'; }
|
||||
?>
|
||||
<input type="checkbox" class="checkbox" name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] );?>" <?php echo $checked; ?> />
|
||||
</div> <!-- end box-content div -->
|
||||
</div> <!-- end epanel-box-small div -->
|
||||
|
||||
<?php } elseif ( 'support' == $value['type'] ) { ?>
|
||||
|
||||
<div class="inner-content">
|
||||
<?php include( get_template_directory() . "/includes/functions/" . $value['name'] . ".php" ); ?>
|
||||
</div>
|
||||
|
||||
<?php } elseif ( 'contenttab-wrapstart' == $value['type'] || 'subcontent-start' == $value['type'] ) { ?>
|
||||
|
||||
<?php $et_contenttab_class = 'contenttab-wrapstart' == $value['type'] ? 'content-div' : 'tab-content'; ?>
|
||||
|
||||
<div id="<?php echo esc_attr( $value['name'] ); ?>" class="<?php echo esc_attr( $et_contenttab_class ); ?>">
|
||||
|
||||
<?php } elseif ( 'contenttab-wrapend' == $value['type'] || 'subcontent-end' == $value['type'] ) { ?>
|
||||
|
||||
</div> <!-- end <?php echo esc_html( $value['name'] ); ?> div -->
|
||||
|
||||
<?php } elseif ( 'subnavtab-start' == $value['type'] ) { ?>
|
||||
|
||||
<ul class="idTabs">
|
||||
|
||||
<?php } elseif ( 'subnavtab-end' == $value['type'] ) { ?>
|
||||
|
||||
</ul>
|
||||
|
||||
<?php } elseif ( 'subnav-tab' == $value['type'] ) { ?>
|
||||
|
||||
<li><a href="#<?php echo esc_attr( $value['name'] ); ?>"><span class="pngfix"><?php echo esc_html( $value['desc'] ); ?></span></a></li>
|
||||
|
||||
<?php } elseif ($value['type'] == "clearfix") { ?>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php } //end foreach ($options as $value) ?>
|
||||
|
||||
</div> <!-- end epanel-content div -->
|
||||
</div> <!-- end epanel-content-wrap div -->
|
||||
</div> <!-- end epanel div -->
|
||||
</div> <!-- end epanel-wrapper div -->
|
||||
|
||||
<div id="epanel-bottom">
|
||||
<?php wp_nonce_field( 'epanel_nonce' ); ?>
|
||||
<input name="save" type="submit" value="<?php esc_html_e( 'Save changes', $themename ); ?>" id="epanel-save" />
|
||||
<input type="hidden" name="action" value="save_epanel" />
|
||||
|
||||
<img src="<?php echo esc_url( get_template_directory_uri() . '/epanel/images/defaults.png' ); ?>" class="defaults-button" alt="no" />
|
||||
</div><!-- end epanel-bottom div -->
|
||||
|
||||
</form>
|
||||
|
||||
<div style="clear: both;"></div>
|
||||
<div style="position: relative;">
|
||||
<div class="defaults-hover">
|
||||
<?php _e( 'This will return all of the settings throughout the options page to their default values. <strong>Are you sure you want to do this?</strong>', $themename ); ?>
|
||||
<div class="clearfix"></div>
|
||||
<form method="post">
|
||||
<?php wp_nonce_field( 'et-nojs-reset_epanel', '_wpnonce_reset' ); ?>
|
||||
<input name="reset" type="submit" value="<?php esc_html_e( 'Reset', $themename ); ?>" id="epanel-reset" />
|
||||
<input type="hidden" name="action" value="reset" />
|
||||
</form>
|
||||
<img src="<?php echo esc_url( get_template_directory_uri() . '/epanel/images/no.gif' ); ?>" class="no" alt="no" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> <!-- end panel-wrap div -->
|
||||
</div> <!-- end wrapper div -->
|
||||
|
||||
<div id="epanel-ajax-saving">
|
||||
<img src="<?php echo esc_url( get_template_directory_uri() . '/epanel/images/saver.gif' ); ?>" alt="loading" id="loading" />
|
||||
<span><?php esc_html_e( 'Saving...', $themename ); ?></span>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
/* --------------------------------------------- */
|
||||
|
||||
add_action('wp_ajax_save_epanel', 'et_epanel_save_callback');
|
||||
function et_epanel_save_callback() {
|
||||
check_ajax_referer( 'epanel_nonce' );
|
||||
epanel_save_data( 'ajax' );
|
||||
|
||||
die();
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'epanel_save_data' ) ){
|
||||
function epanel_save_data( $source ){
|
||||
global $options, $shortname;
|
||||
|
||||
if ( !current_user_can('switch_themes') )
|
||||
die('-1');
|
||||
|
||||
// load theme settings array
|
||||
et_load_core_options();
|
||||
|
||||
$epanel = basename(__FILE__);
|
||||
|
||||
if ( isset($_POST['action']) ) {
|
||||
do_action( 'et_epanel_changing_options' );
|
||||
|
||||
if ( 'save_epanel' == $_POST['action'] ) {
|
||||
if ( 'ajax' != $source ) check_admin_referer( 'epanel_nonce' );
|
||||
|
||||
foreach ( $options as $value ) {
|
||||
if ( isset( $value['id'] ) ) {
|
||||
if ( isset( $_POST[ $value['id'] ] ) ) {
|
||||
if ( in_array( $value['type'], array( 'text', 'textlimit' ) ) ) {
|
||||
|
||||
if ( isset( $value['validation_type'] ) ) {
|
||||
// saves the value as integer
|
||||
if ( 'number' == $value['validation_type'] )
|
||||
et_update_option( $value['id'], intval( stripslashes( $_POST[$value['id']] ) ) );
|
||||
|
||||
// makes sure the option is a url
|
||||
if ( 'url' == $value['validation_type'] )
|
||||
et_update_option( $value['id'], esc_url_raw( stripslashes( $_POST[$value['id']] ) ) );
|
||||
|
||||
// option is a date format
|
||||
if ( 'date_format' == $value['validation_type'] )
|
||||
et_update_option( $value['id'], sanitize_option( 'date_format', $_POST[$value['id']] ) );
|
||||
|
||||
/*
|
||||
* html is not allowed
|
||||
* wp_strip_all_tags can't be used here, because it returns trimmed text, some options need spaces ( e.g 'character to separate BlogName and Post title' option )
|
||||
*/
|
||||
if ( 'nohtml' == $value['validation_type'] ) {
|
||||
et_update_option( $value['id'], stripslashes( wp_filter_nohtml_kses( $_POST[$value['id']] ) ) );
|
||||
}
|
||||
} else {
|
||||
// use html allowed for posts if the validation type isn't provided
|
||||
et_update_option( $value['id'], wp_kses_post( stripslashes( $_POST[$value['id']] ) ) );
|
||||
}
|
||||
|
||||
} elseif ( 'select' == $value['type'] ) {
|
||||
|
||||
// select boxes that list pages / categories should save page/category ID ( as integer )
|
||||
if ( isset( $value['et_array_for'] ) && in_array( $value['et_array_for'], array( 'pages', 'categories' ) ) )
|
||||
et_update_option( $value['id'], intval( stripslashes( $_POST[$value['id']] ) ) );
|
||||
else // html is not allowed in select boxes
|
||||
et_update_option( $value['id'], sanitize_text_field( stripslashes( $_POST[$value['id']] ) ) );
|
||||
|
||||
} elseif ( in_array( $value['type'], array( 'checkbox', 'checkbox2' ) ) ) {
|
||||
|
||||
// saves 'on' value to the database, if the option is enabled
|
||||
et_update_option( $value['id'], 'on' );
|
||||
|
||||
} elseif ( 'upload' == $value['type'] ) {
|
||||
|
||||
// makes sure the option is a url
|
||||
et_update_option( $value['id'], esc_url_raw( stripslashes( $_POST[$value['id']] ) ) );
|
||||
|
||||
} elseif ( 'textcolorpopup' == $value['type'] ) {
|
||||
|
||||
// the color value
|
||||
et_update_option( $value['id'], sanitize_text_field( stripslashes( $_POST[$value['id']] ) ) );
|
||||
|
||||
} elseif ( 'textarea' == $value['type'] ) {
|
||||
|
||||
if ( isset( $value['validation_type'] ) ) {
|
||||
// html is not allowed
|
||||
if ( 'nohtml' == $value['validation_type'] ) {
|
||||
if ( $value['id'] === ( $shortname . '_custom_css' ) ) {
|
||||
// don't strip slashes from custom css, it should be possible to use \ for icon fonts
|
||||
et_update_option( $value['id'], wp_strip_all_tags( $_POST[$value['id']] ) );
|
||||
} else {
|
||||
et_update_option( $value['id'], wp_strip_all_tags( stripslashes( $_POST[$value['id']] ) ) );
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ( current_user_can( 'unfiltered_html' ) )
|
||||
et_update_option( $value['id'], stripslashes( $_POST[$value['id']] ) );
|
||||
else
|
||||
et_update_option( $value['id'], stripslashes( wp_filter_post_kses( addslashes( $_POST[$value['id']] ) ) ) ); // wp_filter_post_kses() expects slashed
|
||||
}
|
||||
|
||||
} elseif ( 'checkboxes' == $value['type'] ) {
|
||||
|
||||
// saves categories / pages IDs,
|
||||
et_update_option( $value['id'], array_map( 'intval', stripslashes_deep( $_POST[$value['id']] ) ) );
|
||||
|
||||
} elseif ( 'different_checkboxes' == $value['type'] ) {
|
||||
|
||||
// saves 'author/date/categories/comments' options
|
||||
et_update_option( $value['id'], array_map( 'wp_strip_all_tags', stripslashes_deep( $_POST[$value['id']] ) ) );
|
||||
|
||||
}
|
||||
} else {
|
||||
if ( in_array( $value['type'], array( 'checkbox', 'checkbox2' ) ) )
|
||||
et_update_option( $value['id'] , 'false' );
|
||||
elseif ( 'different_checkboxes' == $value['type'] )
|
||||
et_update_option( $value['id'] , array() );
|
||||
else
|
||||
et_delete_option( $value['id'] );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( 'js_disabled' == $source ) header("Location: themes.php?page=$epanel&saved=true");
|
||||
die('1');
|
||||
|
||||
} else if( 'reset' == $_POST['action'] ) {
|
||||
check_admin_referer( 'et-nojs-reset_epanel', '_wpnonce_reset' );
|
||||
|
||||
foreach ($options as $value) {
|
||||
if ( isset($value['id']) ) {
|
||||
et_delete_option( $value['id'] );
|
||||
if ( isset($value['std']) ) et_update_option( $value['id'], $value['std'] );
|
||||
}
|
||||
}
|
||||
|
||||
header("Location: themes.php?page=$epanel&reset=true");
|
||||
die('1');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function et_epanel_media_upload_scripts() {
|
||||
global $themename;
|
||||
|
||||
wp_enqueue_script('media-upload');
|
||||
wp_enqueue_script('thickbox');
|
||||
wp_register_script('et_epanel_uploader', get_template_directory_uri().'/epanel/js/custom_uploader.js', array('jquery','media-upload','thickbox'));
|
||||
wp_enqueue_script('et_epanel_uploader');
|
||||
wp_enqueue_media();
|
||||
wp_localize_script( 'et_epanel_uploader', 'epanel_uploader', array(
|
||||
'media_window_title' => __( 'Choose an Image', $themename ),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
function et_epanel_media_upload_styles() {
|
||||
wp_enqueue_style('thickbox');
|
||||
}
|
||||
|
||||
global $pagenow;
|
||||
if ( 'themes.php' == $pagenow && isset( $_GET['page'] ) && ( $_GET['page'] == basename(__FILE__) ) ) {
|
||||
add_action('admin_print_scripts', 'et_epanel_media_upload_scripts');
|
||||
add_action('admin_print_styles', 'et_epanel_media_upload_styles');
|
||||
} ?>
|
||||
216
wp-content/themes/Divi/epanel/css/panel.css
Normal file
@@ -0,0 +1,216 @@
|
||||
#epanel span, #epanel applet, #epanel object, #epanel iframe,
|
||||
#epanel h1, #epanel h2, #epanel h3, #epanel h4, #epanel h5, #epanel h6, #epanel p, #epanel blockquote,
|
||||
#epanel a, #epanel abbr, #epanel acronym, #epanel address, #epanel big, #epanel cite, #epanel code,
|
||||
#epanel del, #epanel dfn, #epanel font, #epanel img, #epanel ins, #epanel kbd, #epanel q, #epanel s, #epanel samp,
|
||||
#epanel small, #epanel strike, #epanel strong, #epanel tt, #epanel var, #epanel fieldset,
|
||||
#epanel dl, #epanel dt, #epanel dd, #epanel ol, #epanel ul, #epanel li,
|
||||
#epanel form, #epanel label, #epanel legend,
|
||||
#epanel table,#epanel caption, #epanel tbody, #epanel tfoot, #epanel thead, #epanel tr, #epanel th, #epanel td {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
font-weight: inherit;
|
||||
font-style: inherit;
|
||||
font-size: 100%;
|
||||
font-family: inherit;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
#epanel pre, #epanel sub, #epanel sup, #epanel em {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* remember to define focus styles! */
|
||||
:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
#epanel ol, #epanel ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#wrapper { text-align: left; width: 960px; margin: 25px auto 10px; position: relative; }
|
||||
#panel-wrap { float: left; position: relative; width: 737px; }
|
||||
#epanel-wrapper { background: url(../images/epanel-bg.png) repeat-y; width: 737px; min-height: 528px; float: left; }
|
||||
#epanel { background: url(../images/panel-top-bg.png) top left no-repeat; width: 737px; font-family: Arial, sans-serif; float: left; padding-bottom: 5px; }
|
||||
#epanel a { text-decoration: none; box-shadow: none; }
|
||||
|
||||
#epanel-sidebar { width: 180px; float: left; }
|
||||
#epanel-logo { position: absolute; top: -38px; left: -180px;}
|
||||
#epanel-content ul#epanel-mainmenu { float: left; position: absolute; left: -198px; top: 52px;}
|
||||
#epanel-content ul#epanel-mainmenu li { background: url('../images/mainmenu-li-bottom.png') bottom left no-repeat; padding-bottom: 2px; padding-right: 0px; float: none; }
|
||||
#epanel-content ul#epanel-mainmenu li.ui-tabs-selected, #epanel-content ul#epanel-mainmenu li.ui-tabs-active { padding-bottom: 0px; }
|
||||
#epanel-content ul#epanel-mainmenu li a { color: #ffffff; background: url('../images/mainlink-bg.png') no-repeat; display: block; height: 34px; width: 139px; padding: 0px 0px 0px 43px; line-height: 34px; position: relative; font-size: 14px; }
|
||||
#epanel-content ul#epanel-mainmenu li.ui-tabs-selected a, #epanel-content ul#epanel-mainmenu li.ui-tabs-active a { color: #000000; background: url('../images/active-mainlink-bg.png') no-repeat; display: block; height: 42px; width: 145px; padding: 0px 0px 0px 43px; line-height: 42px; }
|
||||
#epanel-content ul#epanel-mainmenu li.ui-tabs-selected a img, #epanel-content ul#epanel-mainmenu li.ui-tabs-active a img { top: 14px; }
|
||||
#epanel-content ul#epanel-mainmenu li a img { position: absolute; top: 10px; left: 20px; }
|
||||
#epanel-content-wrap { background: url('../images/epanel-content-bg.png') repeat-y; width: 521px; float: left; display: inline; margin: 55px 0px 0px 198px; position: relative; }
|
||||
#epanel-content { background: url('../images/epanel-content-topbg.png') no-repeat; position: relative; }
|
||||
#epanel-content div.content-div { position: relative; padding: 25px 0px 25px 21px; background: url('../images/epanel-content-bottombg.png') no-repeat bottom left; }
|
||||
#epanel-content ul.idTabs { position: absolute; top: -33px; left: 0px; }
|
||||
#epanel-content ul.idTabs li { float: left; background: url('../images/secondary-bg.png') no-repeat top right; }
|
||||
#epanel-content ul.idTabs li a { font-size: 12px; padding-left: 18px; display: block; line-height: 35px; background: url('../images/secondary-bg.png') no-repeat top left; color: #000000; }
|
||||
#epanel-content ul.idTabs li a span { background: url('../images/secondary-li-mark.png') no-repeat center left; padding-left: 8px; }
|
||||
#epanel-content ul.idTabs li { padding-right: 22px; }
|
||||
|
||||
#epanel-content ul.idTabs li.ui-tabs-selected, #epanel-content ul.idTabs li.ui-tabs-active { background: url('../images/secondary-active-bg.png') no-repeat top right; }
|
||||
#epanel-content ul.idTabs li.ui-tabs-selected a, #epanel-content ul.idTabs li.ui-tabs-active a { font-weight: bold; color: #657783; background: url('../images/secondary-active-bg.png') no-repeat top left; }
|
||||
/*#epanel-content .tab-content { position: relative; } */
|
||||
|
||||
|
||||
#epanel-content .epanel-box { width: 470px; border: 1px solid #d4dee5; background: #ffffff; margin-bottom: 18px; }
|
||||
#epanel .epanel-box div.box-title { border-bottom: 1px solid #c9d5dd; border-top: 1px solid #ffffff; background: #e1eaef url('../images/box-title-mark.png') no-repeat 11px 16px; padding: 10px 0px 10px 20px; min-height: 18px; width: 450px; float: left; }
|
||||
#epanel .epanel-box-small-1 div.box-title, #epanel .epanel-box-small-2 div.box-title { width: 203px; }
|
||||
#epanel .epanel-box div.box-title h3 { color: #657783; font-weight: bold; font-size: 12px; float: left; width: 90%; }
|
||||
#epanel .epanel-box-small-1 div.box-title h3, #epanel .epanel-box-small-2 div.box-title h3 { width: 168px; }
|
||||
#epanel-content .epanel-box img.box-description { float: right; margin: -1px 10px 0px 0px; }
|
||||
#epanel-content .epanel-box .box-content { padding: 22px 17px 22px 16px; /*margin-bottom: 18px;*/ clear: both; }
|
||||
|
||||
#epanel-content .epanel-box input, #epanel-content .epanel-box select, .epanel-box textarea { border: 1px solid #d5d5d5; background: #ffffff url('../images/top-input-bg.png') repeat-x; padding: 10px 18px; font-size: 15px; color: #646464; width: 433px; -moz-border-radius: 0px; font-family: Arial, sans-serif; }
|
||||
#epanel-content .epanel-box select { width: 434px; height: 40px; }
|
||||
#epanel-content .epanel-box textarea { height: 145px; }
|
||||
#epanel-content .epanel-box input.usual-checkbox { border: none; background: none; padding: 0px; width: 15px; }
|
||||
#epanel-content .epanel-box p.inputs { margin-bottom: 5px; }
|
||||
#epanel-bottom { background: url('../images/epanel-bottom-bg.png') no-repeat; width: 737px; height: 62px; float: left; margin-bottom: 50px; }
|
||||
#epanel-save, #epanel-reset { text-indent: -9999px; border: none; cursor: pointer; }
|
||||
#epanel-save { background: url('../images/save.png') no-repeat; width: 84px; height: 34px; float: right; margin: 9px 19px 10px 0px; }
|
||||
.defaults-hover { display: none; position: absolute; background-image: url(../images/defaults-hover.png); width: 222px; height: 119px; font-size: 11px; padding: 15px; line-height: 18px; top: -300px; left: 453px; }
|
||||
.defaults-button { cursor: pointer; float: right; margin-right: 10px;margin: 9px 10px 10px 0px; }
|
||||
#epanel-reset { background: url('../images/yes.gif') no-repeat; width: 47px; height: 24px; float: right; margin: 5px 6px 0px 0px; }
|
||||
.no { float: right; cursor: pointer; margin: 5px 5px 0px 0px;}
|
||||
.box-desc { position: fixed; top: 25%; left: 35%; width: 394px; z-index:10000; overflow: auto; font-family: Arial, sans-serif; }
|
||||
.box-desc-top { background: url('../images/description-top.png') no-repeat top left; width: 394px; height: 11px; }
|
||||
.box-desc-content { background: url('../images/description-main.png') repeat-y; display: block; padding: 12px 30px 20px 22px; color: #858585; font-size: 12px; line-height: 23px; position: relative; }
|
||||
.box-desc-content h3 { color: #6195b8; font-size: 18px; line-height: 25px; margin: 0px 0px 15px; width: 320px; font-weight: normal; }
|
||||
.box-desc-content p { margin: 0px; line-height: 23px; }
|
||||
.box-desc-content .lightboxclose { position: absolute; top: 8px; right: 24px; }
|
||||
.box-desc-bottom { background: url('../images/description-bottom.png') no-repeat; width: 394px; height: 16px;}
|
||||
|
||||
.ui-tabs-hide, .box-descr { display: none; }
|
||||
div.shadow { position: fixed; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:9500; }
|
||||
.box-description, .lightboxclose { cursor: pointer; }
|
||||
|
||||
/*epanel css changes*/
|
||||
/*#epanel-content .epanel-box { clear: both; } */
|
||||
#epanel-content .epanel-box-small-1, #epanel-content .epanel-box-small-2 { width: 223px; float: left; display: inline; clear: none; }
|
||||
#epanel-content .epanel-box-small-1 { margin-right: 22px; }
|
||||
|
||||
/*additions for jquery checkbox*/
|
||||
.jquery-checkbox { cursor: pointer; }
|
||||
.jquery-checkbox img { vertical-align: middle; width: 155px; height: 34px; background: transparent url(../images/checkbox.gif) no-repeat; margin-left: 17px !important; }
|
||||
.jquery-checkbox img { background-position: -155px 0px; }
|
||||
.jquery-checkbox-checked img { background-position: 0px 0px; }
|
||||
|
||||
#epanel p.inputs { width: 126px; float: left; margin: 0px 15px 15px 0px; }
|
||||
#epanel p.inputs.last { margin: 0px 0px 8px 0px;}
|
||||
#epanel p.inputs .jquery-checkbox img { vertical-align: middle; width: 23px; height: 19px; background: transparent url(../images/checkbox-2.gif) no-repeat; margin-right: 5px; margin-left: 0px !important; }
|
||||
#epanel p.inputs .jquery-checkbox img { background-position: 0px 0px; }
|
||||
#epanel p.inputs .jquery-checkbox-checked img { background-position: -26px 0px; }
|
||||
|
||||
#epanel p.inputs.different .jquery-checkbox img { background-position:-26px 0; }
|
||||
#epanel p.inputs.different .jquery-checkbox-checked img { background-position: 0px 0; }
|
||||
|
||||
#epanel p.inputs span.jquery-checkbox { float: left; }
|
||||
#epanel p.inputs label {vertical-align: middle; font-size: 12px; float: left; width: 98px; margin-bottom: 15px;}
|
||||
|
||||
#epanel p.postinfo-author, #epanel p.postinfo-date, #epanel p.postinfo-comments, #epanel p.postinfo-categories { float: left; margin-right: 25px; }
|
||||
#epanel p.postinfo-author img { vertical-align: middle; width: 63px; height: 19px; background: transparent url(../images/postinfo-author.gif) no-repeat; margin-right: 5px; margin-top: -1px; margin-left: 0px !important;}
|
||||
#epanel p.postinfo-categories img { vertical-align: middle; width: 91px; height: 19px; background: transparent url(../images/postinfo-categories.gif) no-repeat; margin-right: 5px; margin-left: 0px !important;}
|
||||
#epanel p.postinfo-date img { vertical-align: middle; width: 55px; height: 19px; background: transparent url(../images/postinfo-date.gif) no-repeat; margin-right: 5px; margin-left: 0px !important;}
|
||||
#epanel p.postinfo-comments img { vertical-align: middle; width: 89px; height: 19px; background: transparent url(../images/postinfo-comments.gif) no-repeat; margin-right: 5px; margin-left: 0px !important;}
|
||||
|
||||
#epanel p.postinfo-author .jquery-checkbox img, #epanel p.postinfo-categories .jquery-checkbox img, #epanel p.postinfo-comments .jquery-checkbox img, #epanel p.postinfo-date .jquery-checkbox img { background-position: 0px -22px; }
|
||||
#epanel p.postinfo-categories .jquery-checkbox img, #epanel p.postinfo-comments .jquery-checkbox img { background-position: 0px -21px; }
|
||||
|
||||
#epanel p.postinfo-author .jquery-checkbox-checked img, #epanel p.postinfo-categories .jquery-checkbox-checked img, #epanel p.postinfo-date .jquery-checkbox-checked img, #epanel p.postinfo-comments .jquery-checkbox-checked img { background-position: 0px 0px; }
|
||||
|
||||
#epanel p.postinfo-categories .jquery-checkbox-checked img, #epanel p.postinfo-comments .jquery-checkbox-checked img { background-position: 0px 1px; }
|
||||
|
||||
#epanel-content div.content-div .inner-content { padding: 0px 25px 0px 0px; }
|
||||
#epanel-content div.content-div .inner-content .boldtext { color:#657783; font-size:15px; font-weight:bold; }
|
||||
#epanel-content div.content-div .inner-content .indent { margin-bottom:15px; margin-top:6px; padding-left:27px; }
|
||||
#epanel-content div.content-div .inner-content p { padding: 10px 0px; color:#535353; font-family:Arial,Helvetica,sans-serif; font-size:12px;
|
||||
line-height:22px; }
|
||||
|
||||
.colorpicker { width: 356px; height: 176px; overflow: hidden; position: absolute; background: url(../images/custom_background.png); font-family: Arial, Helvetica, sans-serif; display: none; margin-left: 40px; }
|
||||
.colorpicker_color { width: 150px; height: 150px; left: 14px; top: 13px; position: absolute; background: #f00; overflow: hidden; cursor: crosshair;
|
||||
}
|
||||
.colorpicker_color div { position: absolute; top: 0; left: 0; width: 150px; height: 150px; background: url(../images/colorpicker_overlay.png); }
|
||||
.colorpicker_color div div { position: absolute; top: 0; left: 0; width: 11px; height: 11px; overflow: hidden; background: url(../images/colorpicker_select.gif); margin: -5px 0 0 -5px; }
|
||||
.colorpicker_hue { position: absolute; top: 13px; left: 171px; width: 35px; height: 150px; cursor: n-resize; }
|
||||
.colorpicker_hue div { position: absolute; width: 35px; height: 9px; overflow: hidden; background: url(../images/custom_indic.gif) left top; margin: -4px 0 0 0; left: 0px; }
|
||||
.colorpicker_new_color { position: absolute; width: 60px; height: 30px; left: 213px; top: 13px; background: #f00; }
|
||||
.colorpicker_current_color { position: absolute; width: 60px; height: 30px; left: 283px; top: 13px; background: #f00; }
|
||||
#epanel .colorpicker input, .colorpicker input { background-color: transparent !important; border: 1px solid transparent !important; position: absolute !important; font-size: 10px !important; font-family: Arial, Helvetica, sans-serif !important; color: #898989 !important; top: 4px !important; right: 11px !important; text-align: right !important; margin: 0 !important; padding: 0 !important; height: 12px !important; background-image: none !important;
|
||||
width: 35px;}
|
||||
.colorpicker_hex { position: absolute; width: 72px; height: 22px; background: url(../images/custom_hex.png) top; left: 212px; top: 142px; }
|
||||
#epanel .colorpicker_hex input, .colorpicker_hex input { width: 39px; }
|
||||
.colorpicker_field { height: 22px; width: 62px; background-position: top; position: absolute; }
|
||||
.colorpicker_field span { position: absolute; width: 12px; height: 22px; overflow: hidden; top: 0; right: 0; cursor: n-resize; }
|
||||
.colorpicker_rgb_r { background-image: url(../images/custom_rgb_r.png); top: 52px; left: 212px; }
|
||||
.colorpicker_rgb_g { background-image: url(../images/custom_rgb_g.png); top: 82px; left: 212px; }
|
||||
.colorpicker_rgb_b { background-image: url(../images/custom_rgb_b.png); top: 112px; left: 212px; }
|
||||
.colorpicker_hsb_h { background-image: url(../images/custom_hsb_h.png); top: 52px; left: 282px; }
|
||||
.colorpicker_hsb_s { background-image: url(../images/custom_hsb_s.png); top: 82px; left: 282px; }
|
||||
.colorpicker_hsb_b { background-image: url(../images/custom_hsb_b.png); top: 112px; left: 282px; }
|
||||
.colorpicker_submit { position: absolute; width: 22px; height: 22px; background: url(../images/custom_submit.png) top; left: 322px; top: 142px;
|
||||
overflow: hidden;}
|
||||
.colorpicker_focus { background-position: center; }
|
||||
.colorpicker_hex.colorpicker_focus { background-position: bottom; }
|
||||
.colorpicker_submit.colorpicker_focus { background-position: bottom; }
|
||||
.colorpicker_slider { background-position: bottom; }
|
||||
|
||||
.navigationTabs { height: 23px; line-height: 23px; border-bottom: 1px solid #ccc; }
|
||||
.navigationTabs li { float: left; height: 23px; line-height: 23px; padding-right: 3px; }
|
||||
.navigationTabs li a{ float: left; display: block; height: 23px; line-height: 23px; padding: 0 10px; overflow: hidden; color: #52697E; background-color: #eee; position: relative; text-decoration: none; }
|
||||
.navigationTabs li a:hover { background-color: #f0f0f0; }
|
||||
.navigationTabs li a.active { background-color: #fff; border: 1px solid #ccc; border-bottom: 0px solid; }
|
||||
.tabsContent { border: 1px solid #ccc; border-top: 0px solid; width: 698px; overflow: hidden; }
|
||||
.tab { padding: 16px; display: none; }
|
||||
.tab h2 { font-weight: bold; font-size: 16px; }
|
||||
.tab h3 { font-weight: bold; font-size: 14px; margin-top: 20px; }
|
||||
.tab p { margin-top: 16px; clear: both; }
|
||||
.tab ul { margin-top: 16px; list-style: disc; }
|
||||
.tab li { margin: 10px 0 0 35px; }
|
||||
.tab a { color: #8FB0CF; }
|
||||
.tab strong { font-weight: bold; }
|
||||
.tab pre { font-size: 11px; margin-top: 20px; width: 668px; overflow: auto; clear: both; }
|
||||
.tab table { width: 100%; }
|
||||
.tab table td { padding: 6px 10px 6px 0; vertical-align: top; }
|
||||
.tab dt { margin-top: 16px; }
|
||||
|
||||
#colorSelector { position: relative; width: 36px; height: 36px; background: url(../images/select.png); }
|
||||
#colorSelector div { position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; background: url(../images/select.png) center; }
|
||||
#colorSelector2 { position: absolute; top: 0; left: 0; width: 36px; height: 36px; background: url(../images/select2.png); }
|
||||
#colorSelector2 div { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; background: url(../images/select2.png) center; }
|
||||
#colorpickerHolder2 { top: 32px; left: 0; width: 356px; height: 0; overflow: hidden; position: absolute; }
|
||||
#colorpickerHolder2 .colorpicker { background-image: url(../images/custom_background.png); position: absolute; bottom: 0; left: 0; }
|
||||
#colorpickerHolder2 .colorpicker_hue div { background-image: url(../images/custom_indic.gif); }
|
||||
#colorpickerHolder2 .colorpicker_hex { background-image: url(../images/custom_hex.png); }
|
||||
#colorpickerHolder2 .colorpicker_rgb_r { background-image: url(../images/custom_rgb_r.png); }
|
||||
#colorpickerHolder2 .colorpicker_rgb_g { background-image: url(../images/custom_rgb_g.png); }
|
||||
#colorpickerHolder2 .colorpicker_rgb_b { background-image: url(../images/custom_rgb_b.png); }
|
||||
#colorpickerHolder2 .colorpicker_hsb_s { background-image: url(../images/custom_hsb_s.png); display: none; }
|
||||
#colorpickerHolder2 .colorpicker_hsb_h { background-image: url(../images/custom_hsb_h.png); display: none; }
|
||||
#colorpickerHolder2 .colorpicker_hsb_b { background-image: url(../images/custom_hsb_b.png); display: none; }
|
||||
#colorpickerHolder2 .colorpicker_submit { background-image: url(../images/custom_submit.png); }
|
||||
#colorpickerHolder2 .colorpicker input { color: #778398; }
|
||||
|
||||
.clearfix { clear: both; }
|
||||
|
||||
div#epanel-ajax-saving { position: fixed; top: 35%; left: 44%; padding: 20px 40px 20px 34px; background: #ffffff; overflow: hidden; border: 1px solid #eeeeee; -webkit-box-shadow: 2px 2px 5px #888; -moz-box-shadow: 2px 2px 5px #888;display: none; width: 142px; }
|
||||
div#epanel-ajax-saving img { float: left; }
|
||||
div#epanel-ajax-saving span { font-size: 20px; color: #c6c6c6; letter-spacing: -1px; margin: 6px 0px 0px 30px; float: right; }
|
||||
|
||||
.upload_buttons { float: right; }
|
||||
|
||||
#epanel-content .epanel-box .upload_image_button, #epanel-content .epanel-box .upload_image_reset { color:#000000; float:left; font-size:11px; font-weight:bold; margin-top:10px; padding:4px; width:100px; cursor: pointer; }
|
||||
|
||||
#epanel-content .epanel-box .upload_image_reset { margin-right: 7px; background:url("../images/top-input-bg.png") repeat-x scroll 0 0 #FFFFFF; border:1px solid #D5D5D5; padding:3px 7px 3px 8px; width:33px; color: #666666; }
|
||||
#epanel-content .epanel-box .upload_image_reset:hover { color: #111111; }
|
||||
|
||||
#epanel-content .epanel-box .upload_image_button { padding: 6px 4px; }
|
||||
1772
wp-content/themes/Divi/epanel/custom_functions.php
Normal file
@@ -0,0 +1,94 @@
|
||||
.et_google_font_options { display: none; background: #eee; height: 280px; overflow: auto; }
|
||||
.et_filter_text { position: relative; }
|
||||
.et_filter_text:before { content: ''; width: 0; height: 0; border-color: #ccc transparent; border-style: solid; border-width: 6px 6px 0; position: absolute; top: 18px; right: 8px; z-index: 1; }
|
||||
.et_google_font_options, .et_filter_text { background: #fff; border: 1px solid #dfdfdf; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
|
||||
.et_filter_text, .et_google_font_options li { display: block; padding: 5px 10px; text-indent: -9999px; background-repeat: no-repeat; height: 30px; background-image: url(images/all-fonts.png); margin-bottom: 0; }
|
||||
.et_gf_default_theme_font { background-position: 0 0; }
|
||||
.et_gf_abel { background-position: 0 -40px; }
|
||||
.et_gf_amatic_sc { background-position: 0 -80px; }
|
||||
.et_gf_arimo { background-position: 0 -120px; }
|
||||
.et_gf_arvo { background-position: 0 -160px; }
|
||||
.et_gf_bevan { background-position: 0 -200px; }
|
||||
.et_gf_bitter { background-position: 0 -240px; }
|
||||
.et_gf_black_ops_one { background-position: 0 -280px; }
|
||||
.et_gf_boogaloo { background-position: 0 -320px; }
|
||||
.et_gf_bree_serif { background-position: 0 -360px; }
|
||||
.et_gf_calligraffitti { background-position: 0 -400px; }
|
||||
.et_gf_cantata_one { background-position: 0 -440px; }
|
||||
.et_gf_cardo { background-position: 0 -480px; }
|
||||
.et_gf_changa_one { background-position: 0 -520px; }
|
||||
.et_gf_cherry_cream_soda { background-position: 0 -560px; }
|
||||
.et_gf_chewy { background-position: 0 -600px; }
|
||||
.et_gf_comfortaa { background-position: 0 -640px; }
|
||||
.et_gf_coming_soon { background-position: 0 -680px; }
|
||||
.et_gf_covered_by_your_grace { background-position: 0 -720px; }
|
||||
.et_gf_crafty_girls { background-position: 0 -760px; }
|
||||
.et_gf_crete_round { background-position: 0 -800px; }
|
||||
.et_gf_crimson_text { background-position: 0 -840px; }
|
||||
.et_gf_cuprum { background-position: 0 -880px; }
|
||||
.et_gf_dancing_script { background-position: 0 -920px; }
|
||||
.et_gf_dosis { background-position: 0 -960px; }
|
||||
.et_gf_droid_sans { background-position: 0 -1000px; }
|
||||
.et_gf_droid_serif { background-position: 0 -1040px; }
|
||||
.et_gf_francois_one { background-position: 0 -1080px; }
|
||||
.et_gf_fredoka_one { background-position: 0 -1120px; }
|
||||
.et_gf_the_girl_next_door { background-position: 0 -1160px; }
|
||||
.et_gf_gloria_hallelujah { background-position: 0 -1200px; }
|
||||
.et_gf_happy_monkey { background-position: 0 -1240px; }
|
||||
.et_gf_indie_flower { background-position: 0 -1280px; }
|
||||
.et_gf_josefin_slab { background-position: 0 -1320px; }
|
||||
.et_gf_judson { background-position: 0 -1360px; }
|
||||
.et_gf_kreon { background-position: 0 -1400px; }
|
||||
.et_gf_lato { background-position: 0 -1440px; }
|
||||
.et_gf_lato_light { background-position: 0 -1480px; }
|
||||
.et_gf_leckerli_one { background-position: 0 -1520px; }
|
||||
.et_gf_lobster { background-position: 0 -1560px; }
|
||||
.et_gf_lobster_two { background-position: 0 -1600px; }
|
||||
.et_gf_lora { background-position: 0 -1640px; }
|
||||
.et_gf_luckiest_guy { background-position: 0 -1680px; }
|
||||
.et_gf_merriweather { background-position: 0 -1720px; }
|
||||
.et_gf_metamorphous { background-position: 0 -1760px; }
|
||||
.et_gf_montserrat { background-position: 0 -1800px; }
|
||||
.et_gf_noticia_text { background-position: 0 -1840px; }
|
||||
.et_gf_nova_square { background-position: 0 -1880px; }
|
||||
.et_gf_nunito { background-position: 0 -1920px; }
|
||||
.et_gf_old_standard_tt { background-position: 0 -1960px; }
|
||||
.et_gf_open_sans { background-position: 0 -2000px; }
|
||||
.et_gf_open_sans_condensed { background-position: 0 -2040px; }
|
||||
.et_gf_open_sans_light { background-position: 0 -2080px; }
|
||||
.et_gf_oswald { background-position: 0 -2120px; }
|
||||
.et_gf_pacifico { background-position: 0 -2160px; }
|
||||
.et_gf_passion_one { background-position: 0 -2200px; }
|
||||
.et_gf_patrick_hand { background-position: 0 -2240px; }
|
||||
.et_gf_permanent_marker { background-position: 0 -2280px; }
|
||||
.et_gf_play { background-position: 0 -2320px; }
|
||||
.et_gf_playfair_display { background-position: 0 -2360px; }
|
||||
.et_gf_poiret_one { background-position: 0 -2400px; }
|
||||
.et_gf_pt_sans { background-position: 0 -2440px; }
|
||||
.et_gf_pt_sans_narrow { background-position: 0 -2480px; }
|
||||
.et_gf_pt_serif { background-position: 0 -2520px; }
|
||||
.et_gf_raleway { background-position: 0 -2560px; }
|
||||
.et_gf_raleway_light { background-position: 0 -2600px; }
|
||||
.et_gf_reenie_beanie { background-position: 0 -2640px; }
|
||||
.et_gf_righteous { background-position: 0 -2680px; }
|
||||
.et_gf_roboto { background-position: 0 -2720px; }
|
||||
.et_gf_roboto_condensed { background-position: 0 -2760px; }
|
||||
.et_gf_roboto_light { background-position: 0 -2800px; }
|
||||
.et_gf_rock_salt { background-position: 0 -2840px; }
|
||||
.et_gf_rokkitt { background-position: 0 -2880px; }
|
||||
.et_gf_sanchez { background-position: 0 -2920px; }
|
||||
.et_gf_satisfy { background-position: 0 -2960px; }
|
||||
.et_gf_schoolbell { background-position: 0 -3000px; }
|
||||
.et_gf_shadows_into_light { background-position: 0 -3040px; }
|
||||
.et_gf_source_sans_pro { background-position: 0 -3080px; }
|
||||
.et_gf_source_sans_pro_light { background-position: 0 -3120px; }
|
||||
.et_gf_special_elite { background-position: 0 -3160px; }
|
||||
.et_gf_squada_one { background-position: 0 -3200px; }
|
||||
.et_gf_tangerine { background-position: 0 -3240px; }
|
||||
.et_gf_ubuntu { background-position: 0 -3280px; }
|
||||
.et_gf_unkempt { background-position: 0 -3320px; }
|
||||
.et_gf_vollkorn { background-position: 0 -3360px; }
|
||||
.et_gf_walter_turncoat { background-position: 0 -3400px; }
|
||||
.et_gf_yanone_kaffeesatz { background-position: 0 -3440px; }
|
||||
|
||||
.et_google_font_active, .et_google_font_options li:hover { background-color: #effbff; }
|
||||
191
wp-content/themes/Divi/epanel/google-fonts/et_google_fonts.js
Normal file
@@ -0,0 +1,191 @@
|
||||
(function($){
|
||||
var ET_Google_Fonts = function(element, options){
|
||||
this.element = element;
|
||||
this.custom_select_link = null;
|
||||
this.custom_dropdown = null;
|
||||
this.frontend_customizer = $('body').hasClass( 'et_frontend_customizer' ) ? true : false;
|
||||
|
||||
this.options = jQuery.extend({}, this.defaults, options);
|
||||
|
||||
this.create_dropdown();
|
||||
}
|
||||
|
||||
ET_Google_Fonts.prototype = {
|
||||
defaults: {
|
||||
apply_font_to : 'body',
|
||||
used_for : 'et_body_font'
|
||||
},
|
||||
|
||||
create_dropdown: function(){
|
||||
var $et_google_font_main_select = this.element,
|
||||
et_filter_options_html = '',
|
||||
$selected_option,
|
||||
$dropdown_selected_option,
|
||||
self = this;
|
||||
|
||||
$et_google_font_main_select.hide().addClass( 'et_google_font_main_select' );
|
||||
|
||||
$et_google_font_main_select.change( $.proxy( self.change_font, self ) );
|
||||
|
||||
$et_google_font_main_select.find( 'option' ).each( function() {
|
||||
var $this_option = $(this),
|
||||
selected = $(this).is( ':selected' ) ? ' class="et_google_font_active"' : '',
|
||||
data_parent = typeof $this_option.data( 'parent_font' ) !== 'undefined' && '' !== $this_option.data( 'parent_font' ) ? ' data-parent_font="' + $this_option.data( 'parent_font' ) + '"' : '';
|
||||
|
||||
et_filter_options_html += '<li class="' + self.fontname_to_class( $this_option.text() ) + '" data-value="' + $this_option.attr( 'value' ) + '"' + data_parent + selected +'>' + $this_option.text() + '</li>';
|
||||
} );
|
||||
|
||||
$et_google_font_main_select.after( '<a href="#" class="et_google_font_custom_select">' + '<span class="et_filter_text"></span>' + '</a>' + '<ul class="et_google_font_options">' + et_filter_options_html + '</ul>' );
|
||||
|
||||
this.custom_select_link = $et_google_font_main_select.next( '.et_google_font_custom_select' );
|
||||
|
||||
this.custom_dropdown = this.custom_select_link.next('.et_google_font_options');
|
||||
|
||||
$selected_option = $et_google_font_main_select.find( ':selected' );
|
||||
|
||||
if ( $selected_option.length ) {
|
||||
this.custom_select_link.find('.et_filter_text').text( $selected_option.text() );
|
||||
|
||||
$dropdown_selected_option = ( $selected_option.val() == 'none' ) ? this.custom_dropdown.find('li').eq(0) : this.custom_dropdown.find('li[data-value="' + $selected_option.text() + '"]');
|
||||
|
||||
this.custom_select_link.find('.et_filter_text').addClass( $dropdown_selected_option.attr('class') ).attr( 'data-gf-class', $dropdown_selected_option.attr('class') );
|
||||
|
||||
$dropdown_selected_option.addClass( 'et_google_font_active' );
|
||||
}
|
||||
|
||||
this.custom_select_link.click( $.proxy( self.open_dropdown, self ) );
|
||||
|
||||
this.custom_dropdown.find('li').click( $.proxy( self.select_option, self ) );
|
||||
},
|
||||
|
||||
open_dropdown: function(event) {
|
||||
var self = this,
|
||||
$this_link = $(event.target);
|
||||
|
||||
if ( self.custom_dropdown.hasClass( 'et_google_font_open' ) ) return false;
|
||||
|
||||
self.custom_dropdown.show().addClass( 'et_google_font_open' );
|
||||
|
||||
$this_link.hide();
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
select_option: function(event) {
|
||||
var self = this,
|
||||
$this_option = $(event.target),
|
||||
this_option_value = $this_option.text(),
|
||||
$main_text = self.custom_select_link.find( '.et_filter_text' ),
|
||||
$main_select_active_element = self.element.find( 'option[value="' + this_option_value + '"]' ),
|
||||
main_text_gf_class = $main_text.attr( 'data-gf-class' );
|
||||
|
||||
if ( $this_option.hasClass( 'et_google_font_active' ) ) {
|
||||
self.close_dropdown();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
$this_option.siblings().removeClass( 'et_google_font_active' );
|
||||
|
||||
$main_text.removeClass( main_text_gf_class ).addClass( $this_option.attr( 'class' ) ).attr( 'data-gf-class', $this_option.attr( 'class' ) );
|
||||
|
||||
$this_option.addClass('et_google_font_active');
|
||||
|
||||
self.close_dropdown();
|
||||
|
||||
if ( ! $main_select_active_element.length )
|
||||
self.element.val( 'none' ).trigger( 'change' );
|
||||
else
|
||||
self.element.val( this_option_value ).trigger( 'change' );
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
close_dropdown: function() {
|
||||
this.custom_select_link.find( '.et_filter_text' ).show();
|
||||
this.custom_dropdown.hide().removeClass( 'et_google_font_open' );
|
||||
},
|
||||
|
||||
maybe_request_font: function( font_name, font_option ) {
|
||||
if ( font_option.val() === 'none' ) return;
|
||||
var font_styles = typeof font_option.data( 'parent_styles' ) !== 'undefined' && '' !== font_option.data( 'parent_styles' ) ? ':' + font_option.data( 'parent_styles' ) : '',
|
||||
subset = typeof font_option.data( 'parent_subset' ) !== 'undefined' && '' !== font_option.data( 'parent_subset' ) ? '&' + subset : '';
|
||||
|
||||
var $head = this.frontend_customizer ? $('head') : $( "#customize-preview iframe" ).contents().find('head');
|
||||
|
||||
if ( $head.find( 'link#' + this.fontname_to_class( font_name ) ).length ) return;
|
||||
|
||||
$head.append( '<link id="' + this.fontname_to_class( font_name ) + '" href="//fonts.googleapis.com/css?family=' + this.convert_to_google_font_name( font_name ) + font_styles + subset + '" rel="stylesheet" type="text/css" />' );
|
||||
},
|
||||
|
||||
apply_font: function( font_name, font_option ) {
|
||||
var $head = this.frontend_customizer ? $('head') : $( "#customize-preview iframe" ).contents().find('head'),
|
||||
font_weight = '';
|
||||
|
||||
$head.find( 'style.' + this.options.used_for ).remove();
|
||||
|
||||
if ( font_option.val() === 'none' )
|
||||
return;
|
||||
|
||||
font_weight = typeof font_option.data( 'parent_font' ) !== 'undefined' && '' !== font_option.data( 'parent_font' ) ? 'font-weight:' + font_option.data( 'current_styles' ) : '';
|
||||
|
||||
$head.append( '<style class="' + this.options.used_for + '">' + this.options.apply_font_to + ' { font-family: "' + font_name + '", sans-serif; ' + font_weight + ' } </style>' );
|
||||
},
|
||||
|
||||
change_font: function() {
|
||||
var self = this,
|
||||
$active_option = self.element.find('option:selected'),
|
||||
active_option_value = $active_option.val(),
|
||||
active_option_name = typeof $active_option.data( 'parent_font' ) !== 'undefined' && '' !== $active_option.data( 'parent_font' ) ? $active_option.data( 'parent_font' ) : $active_option.val(),
|
||||
$this_option = this.custom_dropdown.find('li[data-value="' + active_option_value + '"]'),
|
||||
$main_text = self.custom_select_link.find( '.et_filter_text' ),
|
||||
main_text_gf_class = $main_text.attr( 'data-gf-class' );
|
||||
|
||||
self.maybe_request_font( active_option_name, $active_option );
|
||||
self.apply_font( active_option_name, $active_option );
|
||||
|
||||
// set correct custom dropdown values on first load
|
||||
if ( this.custom_dropdown.find('li.et_google_font_active').data( 'value' ) !== active_option_value ) {
|
||||
this.custom_dropdown.find('li').removeClass( 'et_google_font_active' );
|
||||
$main_text.removeClass( main_text_gf_class ).addClass( $this_option.attr( 'class' ) ).attr( 'data-gf-class', $this_option.attr( 'class' ) );
|
||||
|
||||
$this_option.addClass('et_google_font_active');
|
||||
}
|
||||
},
|
||||
|
||||
convert_to_google_font_name: function( font_name ) {
|
||||
return font_name.replace(/ /g,'+');
|
||||
},
|
||||
|
||||
fontname_to_class: function( option_value ) {
|
||||
return 'et_gf_' + option_value.replace(/ /g,'_').toLowerCase();
|
||||
}
|
||||
}
|
||||
|
||||
$.fn.et_google_fonts = function(options){
|
||||
new ET_Google_Fonts(this, options)
|
||||
return this;
|
||||
};
|
||||
|
||||
$(document).ready( function() {
|
||||
var et_heading_font_option_name = '[heading_font]',
|
||||
et_body_font_option_name = '[body_font]',
|
||||
et_buttons_font_option_name = '[all_buttons_font]',
|
||||
et_secondary_nav_font_option_name = '[secondary_nav_font]',
|
||||
et_primary_nav_font_option_name = '[primary_nav_font]';
|
||||
|
||||
if ( typeof et_google_fonts !== 'undefined' && et_google_fonts.options_in_one_row == 0 ) {
|
||||
et_heading_font_option_name = '_heading_font';
|
||||
et_body_font_option_name = '_body_font';
|
||||
et_buttons_font_option_name = '_all_buttons_font';
|
||||
et_primary_nav_font_option_name = '_primary_nav_font';
|
||||
et_secondary_nav_font_option_nam = '_secondary_nav_font';
|
||||
}
|
||||
|
||||
$('select[data-customize-setting-link$="' + et_heading_font_option_name + '"]').et_google_fonts({apply_font_to : 'h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a', used_for : 'et_heading_font'});
|
||||
$('select[data-customize-setting-link$="' + et_body_font_option_name + '"]').et_google_fonts({apply_font_to : 'body', used_for : 'et_body_font'});
|
||||
$('select[data-customize-setting-link$="' + et_buttons_font_option_name + '"]').et_google_fonts({apply_font_to : '.et_pb_button', used_for : 'et_all_buttons_font'});
|
||||
$('select[data-customize-setting-link$="' + et_primary_nav_font_option_name + '"]').et_google_fonts({apply_font_to : '#main-header, #et-top-navigation', used_for : 'et_primary_nav_font'});
|
||||
$('select[data-customize-setting-link$="' + et_secondary_nav_font_option_name + '"]').et_google_fonts({apply_font_to : '#top-header .container', used_for : 'et_secondary_nav_font'});
|
||||
} );
|
||||
})(jQuery)
|
||||
BIN
wp-content/themes/Divi/epanel/google-fonts/images/all-fonts.png
Normal file
|
After Width: | Height: | Size: 119 KiB |
BIN
wp-content/themes/Divi/epanel/images/active-mainlink-bg.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
wp-content/themes/Divi/epanel/images/ad-icon.png
Normal file
|
After Width: | Height: | Size: 187 B |
BIN
wp-content/themes/Divi/epanel/images/ajax-loader.gif
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
wp-content/themes/Divi/epanel/images/blank.gif
Normal file
|
After Width: | Height: | Size: 49 B |
BIN
wp-content/themes/Divi/epanel/images/box-title-mark.png
Normal file
|
After Width: | Height: | Size: 160 B |
BIN
wp-content/themes/Divi/epanel/images/checkbox-2.gif
Normal file
|
After Width: | Height: | Size: 415 B |
BIN
wp-content/themes/Divi/epanel/images/checkbox.gif
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
wp-content/themes/Divi/epanel/images/colorization-icon.png
Normal file
|
After Width: | Height: | Size: 868 B |
BIN
wp-content/themes/Divi/epanel/images/colorpicker_overlay.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
wp-content/themes/Divi/epanel/images/colorpicker_select.gif
Normal file
|
After Width: | Height: | Size: 78 B |
BIN
wp-content/themes/Divi/epanel/images/custom_background.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
wp-content/themes/Divi/epanel/images/custom_hex.png
Normal file
|
After Width: | Height: | Size: 562 B |
BIN
wp-content/themes/Divi/epanel/images/custom_hsb_b.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
wp-content/themes/Divi/epanel/images/custom_hsb_h.png
Normal file
|
After Width: | Height: | Size: 970 B |
BIN
wp-content/themes/Divi/epanel/images/custom_hsb_s.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
wp-content/themes/Divi/epanel/images/custom_indic.gif
Normal file
|
After Width: | Height: | Size: 86 B |
BIN
wp-content/themes/Divi/epanel/images/custom_rgb_b.png
Normal file
|
After Width: | Height: | Size: 1008 B |
BIN
wp-content/themes/Divi/epanel/images/custom_rgb_g.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
wp-content/themes/Divi/epanel/images/custom_rgb_r.png
Normal file
|
After Width: | Height: | Size: 1018 B |
BIN
wp-content/themes/Divi/epanel/images/custom_submit.png
Normal file
|
After Width: | Height: | Size: 997 B |
BIN
wp-content/themes/Divi/epanel/images/defaults-hover.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
wp-content/themes/Divi/epanel/images/defaults.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
wp-content/themes/Divi/epanel/images/description-bottom.png
Normal file
|
After Width: | Height: | Size: 742 B |
BIN
wp-content/themes/Divi/epanel/images/description-close.png
Normal file
|
After Width: | Height: | Size: 815 B |
BIN
wp-content/themes/Divi/epanel/images/description-main.png
Normal file
|
After Width: | Height: | Size: 183 B |
BIN
wp-content/themes/Divi/epanel/images/description-top.png
Normal file
|
After Width: | Height: | Size: 489 B |
BIN
wp-content/themes/Divi/epanel/images/empty.png
Normal file
|
After Width: | Height: | Size: 137 B |
BIN
wp-content/themes/Divi/epanel/images/epanel-bg.png
Normal file
|
After Width: | Height: | Size: 864 B |
BIN
wp-content/themes/Divi/epanel/images/epanel-bottom-bg.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
wp-content/themes/Divi/epanel/images/epanel-content-bg.png
Normal file
|
After Width: | Height: | Size: 171 B |
BIN
wp-content/themes/Divi/epanel/images/epanel-content-bottombg.png
Normal file
|
After Width: | Height: | Size: 461 B |
BIN
wp-content/themes/Divi/epanel/images/epanel-content-topbg.png
Normal file
|
After Width: | Height: | Size: 371 B |
BIN
wp-content/themes/Divi/epanel/images/gallery-overlay.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
wp-content/themes/Divi/epanel/images/general-icon.png
Normal file
|
After Width: | Height: | Size: 326 B |
BIN
wp-content/themes/Divi/epanel/images/help-image.png
Normal file
|
After Width: | Height: | Size: 745 B |
BIN
wp-content/themes/Divi/epanel/images/integration-icon.png
Normal file
|
After Width: | Height: | Size: 240 B |
BIN
wp-content/themes/Divi/epanel/images/layout-icon.png
Normal file
|
After Width: | Height: | Size: 354 B |
BIN
wp-content/themes/Divi/epanel/images/logo.gif
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
wp-content/themes/Divi/epanel/images/logo.png
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
wp-content/themes/Divi/epanel/images/mainlink-bg.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
wp-content/themes/Divi/epanel/images/mainmenu-li-bottom.png
Normal file
|
After Width: | Height: | Size: 317 B |
BIN
wp-content/themes/Divi/epanel/images/navigation-icon.png
Normal file
|
After Width: | Height: | Size: 165 B |
BIN
wp-content/themes/Divi/epanel/images/no.gif
Normal file
|
After Width: | Height: | Size: 518 B |
BIN
wp-content/themes/Divi/epanel/images/panel-top-bg.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
wp-content/themes/Divi/epanel/images/postinfo-author.gif
Normal file
|
After Width: | Height: | Size: 533 B |
BIN
wp-content/themes/Divi/epanel/images/postinfo-categories.gif
Normal file
|
After Width: | Height: | Size: 527 B |
BIN
wp-content/themes/Divi/epanel/images/postinfo-comments.gif
Normal file
|
After Width: | Height: | Size: 497 B |
BIN
wp-content/themes/Divi/epanel/images/postinfo-date.gif
Normal file
|
After Width: | Height: | Size: 550 B |
BIN
wp-content/themes/Divi/epanel/images/save.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
wp-content/themes/Divi/epanel/images/saver.gif
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
wp-content/themes/Divi/epanel/images/secondary-active-bg.png
Normal file
|
After Width: | Height: | Size: 614 B |
BIN
wp-content/themes/Divi/epanel/images/secondary-bg.png
Normal file
|
After Width: | Height: | Size: 611 B |
BIN
wp-content/themes/Divi/epanel/images/secondary-li-mark.png
Normal file
|
After Width: | Height: | Size: 126 B |
BIN
wp-content/themes/Divi/epanel/images/select.png
Normal file
|
After Width: | Height: | Size: 506 B |
BIN
wp-content/themes/Divi/epanel/images/select2.png
Normal file
|
After Width: | Height: | Size: 518 B |
BIN
wp-content/themes/Divi/epanel/images/seo-icon.png
Normal file
|
After Width: | Height: | Size: 854 B |
BIN
wp-content/themes/Divi/epanel/images/slider.png
Normal file
|
After Width: | Height: | Size: 315 B |
BIN
wp-content/themes/Divi/epanel/images/support-icon.png
Normal file
|
After Width: | Height: | Size: 694 B |
BIN
wp-content/themes/Divi/epanel/images/top-input-bg.png
Normal file
|
After Width: | Height: | Size: 117 B |
BIN
wp-content/themes/Divi/epanel/images/yes.gif
Normal file
|
After Width: | Height: | Size: 528 B |
12
wp-content/themes/Divi/epanel/js/checkbox.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* jQuery custom checkboxes
|
||||
*
|
||||
* Copyright (c) 2008 Khavilo Dmitry (http://widowmaker.kiev.ua/checkbox/)
|
||||
* Licensed under the MIT License:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*
|
||||
* @version 1.3.0 Beta 1
|
||||
* @author Khavilo Dmitry
|
||||
* @mailto wm.morgun@gmail.com
|
||||
**/
|
||||
(function($){var i=function(e){if(!e)var e=window.event;e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation()};$.fn.checkbox=function(f){try{document.execCommand('BackgroundImageCache',false,true)}catch(e){}var g={cls:'jquery-checkbox',empty:clearpath};g=$.extend(g,f||{});var h=function(a){var b=a.checked;var c=a.disabled;var d=$(a);if(a.stateInterval)clearInterval(a.stateInterval);a.stateInterval=setInterval(function(){if(a.disabled!=c)d.trigger((c=!!a.disabled)?'disable':'enable');if(a.checked!=b)d.trigger((b=!!a.checked)?'check':'uncheck')},10);return d};return this.each(function(){var a=this;var b=h(a);if(a.wrapper)a.wrapper.remove();a.wrapper=$('<span class="'+g.cls+'"><span class="mark"><img src="'+g.empty+'" /></span></span>');a.wrapperInner=a.wrapper.children('span:eq(0)');a.wrapper.hover(function(e){a.wrapperInner.addClass(g.cls+'-hover');i(e)},function(e){a.wrapperInner.removeClass(g.cls+'-hover');i(e)});b.css({position:'absolute',zIndex:-1,visibility:'hidden'}).after(a.wrapper);var c=false;if(b.attr('id')){c=$('label[for='+b.attr('id')+']');if(!c.length)c=false}if(!c){c=b.closest?b.closest('label'):b.parents('label:eq(0)');if(!c.length)c=false}if(c){c.hover(function(e){a.wrapper.trigger('mouseover',[e])},function(e){a.wrapper.trigger('mouseout',[e])});c.click(function(e){b.trigger('click',[e]);i(e);return false})}a.wrapper.click(function(e){b.trigger('click',[e]);i(e);return false});b.click(function(e){i(e)});b.bind('disable',function(){a.wrapperInner.addClass(g.cls+'-disabled')}).bind('enable',function(){a.wrapperInner.removeClass(g.cls+'-disabled')});b.bind('check',function(){a.wrapper.addClass(g.cls+'-checked')}).bind('uncheck',function(){a.wrapper.removeClass(g.cls+'-checked')});$('img',a.wrapper).bind('dragstart',function(){return false}).bind('mousedown',function(){return false});if(window.getSelection)a.wrapper.css('MozUserSelect','none');if(a.checked)a.wrapper.addClass(g.cls+'-checked');if(a.disabled)a.wrapperInner.addClass(g.cls+'-disabled')})}})(jQuery);
|
||||
484
wp-content/themes/Divi/epanel/js/colorpicker.js
Normal file
@@ -0,0 +1,484 @@
|
||||
/**
|
||||
*
|
||||
* Color picker
|
||||
* Author: Stefan Petre www.eyecon.ro
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses
|
||||
*
|
||||
*/
|
||||
(function ($) {
|
||||
var ColorPicker = function () {
|
||||
var
|
||||
ids = {},
|
||||
inAction,
|
||||
charMin = 65,
|
||||
visible,
|
||||
tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',
|
||||
defaults = {
|
||||
eventName: 'click',
|
||||
onShow: function () {},
|
||||
onBeforeShow: function(){},
|
||||
onHide: function () {},
|
||||
onChange: function () {},
|
||||
onSubmit: function () {},
|
||||
color: 'ff0000',
|
||||
livePreview: true,
|
||||
flat: false
|
||||
},
|
||||
fillRGBFields = function (hsb, cal) {
|
||||
var rgb = HSBToRGB(hsb);
|
||||
$(cal).data('colorpicker').fields
|
||||
.eq(1).val(rgb.r).end()
|
||||
.eq(2).val(rgb.g).end()
|
||||
.eq(3).val(rgb.b).end();
|
||||
},
|
||||
fillHSBFields = function (hsb, cal) {
|
||||
$(cal).data('colorpicker').fields
|
||||
.eq(4).val(hsb.h).end()
|
||||
.eq(5).val(hsb.s).end()
|
||||
.eq(6).val(hsb.b).end();
|
||||
},
|
||||
fillHexFields = function (hsb, cal) {
|
||||
$(cal).data('colorpicker').fields
|
||||
.eq(0).val(HSBToHex(hsb)).end();
|
||||
},
|
||||
setSelector = function (hsb, cal) {
|
||||
$(cal).data('colorpicker').selector.css('backgroundColor', '#' + HSBToHex({h: hsb.h, s: 100, b: 100}));
|
||||
$(cal).data('colorpicker').selectorIndic.css({
|
||||
left: parseInt(150 * hsb.s/100, 10),
|
||||
top: parseInt(150 * (100-hsb.b)/100, 10)
|
||||
});
|
||||
},
|
||||
setHue = function (hsb, cal) {
|
||||
$(cal).data('colorpicker').hue.css('top', parseInt(150 - 150 * hsb.h/360, 10));
|
||||
},
|
||||
setCurrentColor = function (hsb, cal) {
|
||||
$(cal).data('colorpicker').currentColor.css('backgroundColor', '#' + HSBToHex(hsb));
|
||||
},
|
||||
setNewColor = function (hsb, cal) {
|
||||
$(cal).data('colorpicker').newColor.css('backgroundColor', '#' + HSBToHex(hsb));
|
||||
},
|
||||
keyDown = function (ev) {
|
||||
var pressedKey = ev.charCode || ev.keyCode || -1;
|
||||
if ((pressedKey > charMin && pressedKey <= 90) || pressedKey == 32) {
|
||||
return false;
|
||||
}
|
||||
var cal = $(this).parent().parent();
|
||||
if (cal.data('colorpicker').livePreview === true) {
|
||||
change.apply(this);
|
||||
}
|
||||
},
|
||||
change = function (ev) {
|
||||
var cal = $(this).parent().parent(), col;
|
||||
if (this.parentNode.className.indexOf('_hex') > 0) {
|
||||
cal.data('colorpicker').color = col = HexToHSB(fixHex(this.value));
|
||||
} else if (this.parentNode.className.indexOf('_hsb') > 0) {
|
||||
cal.data('colorpicker').color = col = fixHSB({
|
||||
h: parseInt(cal.data('colorpicker').fields.eq(4).val(), 10),
|
||||
s: parseInt(cal.data('colorpicker').fields.eq(5).val(), 10),
|
||||
b: parseInt(cal.data('colorpicker').fields.eq(6).val(), 10)
|
||||
});
|
||||
} else {
|
||||
cal.data('colorpicker').color = col = RGBToHSB(fixRGB({
|
||||
r: parseInt(cal.data('colorpicker').fields.eq(1).val(), 10),
|
||||
g: parseInt(cal.data('colorpicker').fields.eq(2).val(), 10),
|
||||
b: parseInt(cal.data('colorpicker').fields.eq(3).val(), 10)
|
||||
}));
|
||||
}
|
||||
if (ev) {
|
||||
fillRGBFields(col, cal.get(0));
|
||||
fillHexFields(col, cal.get(0));
|
||||
fillHSBFields(col, cal.get(0));
|
||||
}
|
||||
setSelector(col, cal.get(0));
|
||||
setHue(col, cal.get(0));
|
||||
setNewColor(col, cal.get(0));
|
||||
cal.data('colorpicker').onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]);
|
||||
},
|
||||
blur = function (ev) {
|
||||
var cal = $(this).parent().parent();
|
||||
cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus');
|
||||
},
|
||||
focus = function () {
|
||||
charMin = this.parentNode.className.indexOf('_hex') > 0 ? 70 : 65;
|
||||
$(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');
|
||||
$(this).parent().addClass('colorpicker_focus');
|
||||
},
|
||||
downIncrement = function (ev) {
|
||||
var field = $(this).parent().find('input').focus();
|
||||
var current = {
|
||||
el: $(this).parent().addClass('colorpicker_slider'),
|
||||
max: this.parentNode.className.indexOf('_hsb_h') > 0 ? 360 : (this.parentNode.className.indexOf('_hsb') > 0 ? 100 : 255),
|
||||
y: ev.pageY,
|
||||
field: field,
|
||||
val: parseInt(field.val(), 10),
|
||||
preview: $(this).parent().parent().data('colorpicker').livePreview
|
||||
};
|
||||
$(document).bind('mouseup', current, upIncrement);
|
||||
$(document).bind('mousemove', current, moveIncrement);
|
||||
},
|
||||
moveIncrement = function (ev) {
|
||||
ev.data.field.val(Math.max(0, Math.min(ev.data.max, parseInt(ev.data.val + ev.pageY - ev.data.y, 10))));
|
||||
if (ev.data.preview) {
|
||||
change.apply(ev.data.field.get(0), [true]);
|
||||
}
|
||||
return false;
|
||||
},
|
||||
upIncrement = function (ev) {
|
||||
change.apply(ev.data.field.get(0), [true]);
|
||||
ev.data.el.removeClass('colorpicker_slider').find('input').focus();
|
||||
$(document).unbind('mouseup', upIncrement);
|
||||
$(document).unbind('mousemove', moveIncrement);
|
||||
return false;
|
||||
},
|
||||
downHue = function (ev) {
|
||||
var current = {
|
||||
cal: $(this).parent(),
|
||||
y: $(this).offset().top
|
||||
};
|
||||
current.preview = current.cal.data('colorpicker').livePreview;
|
||||
$(document).bind('mouseup', current, upHue);
|
||||
$(document).bind('mousemove', current, moveHue);
|
||||
},
|
||||
moveHue = function (ev) {
|
||||
change.apply(
|
||||
ev.data.cal.data('colorpicker')
|
||||
.fields
|
||||
.eq(4)
|
||||
.val(parseInt(360*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.y))))/150, 10))
|
||||
.get(0),
|
||||
[ev.data.preview]
|
||||
);
|
||||
return false;
|
||||
},
|
||||
upHue = function (ev) {
|
||||
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
||||
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
||||
$(document).unbind('mouseup', upHue);
|
||||
$(document).unbind('mousemove', moveHue);
|
||||
return false;
|
||||
},
|
||||
downSelector = function (ev) {
|
||||
var current = {
|
||||
cal: $(this).parent(),
|
||||
pos: $(this).offset()
|
||||
};
|
||||
current.preview = current.cal.data('colorpicker').livePreview;
|
||||
$(document).bind('mouseup', current, upSelector);
|
||||
$(document).bind('mousemove', current, moveSelector);
|
||||
},
|
||||
moveSelector = function (ev) {
|
||||
change.apply(
|
||||
ev.data.cal.data('colorpicker')
|
||||
.fields
|
||||
.eq(6)
|
||||
.val(parseInt(100*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.pos.top))))/150, 10))
|
||||
.end()
|
||||
.eq(5)
|
||||
.val(parseInt(100*(Math.max(0,Math.min(150,(ev.pageX - ev.data.pos.left))))/150, 10))
|
||||
.get(0),
|
||||
[ev.data.preview]
|
||||
);
|
||||
return false;
|
||||
},
|
||||
upSelector = function (ev) {
|
||||
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
||||
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
||||
$(document).unbind('mouseup', upSelector);
|
||||
$(document).unbind('mousemove', moveSelector);
|
||||
return false;
|
||||
},
|
||||
enterSubmit = function (ev) {
|
||||
$(this).addClass('colorpicker_focus');
|
||||
},
|
||||
leaveSubmit = function (ev) {
|
||||
$(this).removeClass('colorpicker_focus');
|
||||
},
|
||||
clickSubmit = function (ev) {
|
||||
var cal = $(this).parent();
|
||||
var col = cal.data('colorpicker').color;
|
||||
cal.data('colorpicker').origColor = col;
|
||||
setCurrentColor(col, cal.get(0));
|
||||
cal.data('colorpicker').onSubmit(col, HSBToHex(col), HSBToRGB(col), cal.data('colorpicker').el);
|
||||
},
|
||||
show = function (ev) {
|
||||
var cal = $('#' + $(this).data('colorpickerId'));
|
||||
cal.data('colorpicker').onBeforeShow.apply(this, [cal.get(0)]);
|
||||
var pos = $(this).offset();
|
||||
var viewPort = getViewport();
|
||||
var top = pos.top + this.offsetHeight;
|
||||
var left = pos.left;
|
||||
if (top + 176 > viewPort.t + viewPort.h) {
|
||||
top -= this.offsetHeight + 176;
|
||||
}
|
||||
if (left + 356 > viewPort.l + viewPort.w) {
|
||||
left -= 356;
|
||||
}
|
||||
cal.css({left: left + 'px', top: top + 'px'});
|
||||
if (cal.data('colorpicker').onShow.apply(this, [cal.get(0)]) != false) {
|
||||
cal.show();
|
||||
}
|
||||
$(document).bind('mousedown', {cal: cal}, hide);
|
||||
return false;
|
||||
},
|
||||
hide = function (ev) {
|
||||
if (!isChildOf(ev.data.cal.get(0), ev.target, ev.data.cal.get(0))) {
|
||||
if (ev.data.cal.data('colorpicker').onHide.apply(this, [ev.data.cal.get(0)]) != false) {
|
||||
ev.data.cal.hide();
|
||||
}
|
||||
$(document).unbind('mousedown', hide);
|
||||
}
|
||||
},
|
||||
isChildOf = function(parentEl, el, container) {
|
||||
if (parentEl == el) {
|
||||
return true;
|
||||
}
|
||||
if (parentEl.contains) {
|
||||
return parentEl.contains(el);
|
||||
}
|
||||
if ( parentEl.compareDocumentPosition ) {
|
||||
return !!(parentEl.compareDocumentPosition(el) & 16);
|
||||
}
|
||||
var prEl = el.parentNode;
|
||||
while(prEl && prEl != container) {
|
||||
if (prEl == parentEl)
|
||||
return true;
|
||||
prEl = prEl.parentNode;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
getViewport = function () {
|
||||
var m = document.compatMode == 'CSS1Compat';
|
||||
return {
|
||||
l : window.pageXOffset || (m ? document.documentElement.scrollLeft : document.body.scrollLeft),
|
||||
t : window.pageYOffset || (m ? document.documentElement.scrollTop : document.body.scrollTop),
|
||||
w : window.innerWidth || (m ? document.documentElement.clientWidth : document.body.clientWidth),
|
||||
h : window.innerHeight || (m ? document.documentElement.clientHeight : document.body.clientHeight)
|
||||
};
|
||||
},
|
||||
fixHSB = function (hsb) {
|
||||
return {
|
||||
h: Math.min(360, Math.max(0, hsb.h)),
|
||||
s: Math.min(100, Math.max(0, hsb.s)),
|
||||
b: Math.min(100, Math.max(0, hsb.b))
|
||||
};
|
||||
},
|
||||
fixRGB = function (rgb) {
|
||||
return {
|
||||
r: Math.min(255, Math.max(0, rgb.r)),
|
||||
g: Math.min(255, Math.max(0, rgb.g)),
|
||||
b: Math.min(255, Math.max(0, rgb.b))
|
||||
};
|
||||
},
|
||||
fixHex = function (hex) {
|
||||
var len = 6 - hex.length;
|
||||
if (len > 0) {
|
||||
var o = [];
|
||||
for (var i=0; i<len; i++) {
|
||||
o.push('0');
|
||||
}
|
||||
o.push(hex);
|
||||
hex = o.join('');
|
||||
}
|
||||
return hex;
|
||||
},
|
||||
HexToRGB = function (hex) {
|
||||
var hex = parseInt(((hex.indexOf('#') > -1) ? hex.substring(1) : hex), 16);
|
||||
return {r: hex >> 16, g: (hex & 0x00FF00) >> 8, b: (hex & 0x0000FF)};
|
||||
},
|
||||
HexToHSB = function (hex) {
|
||||
return RGBToHSB(HexToRGB(hex));
|
||||
},
|
||||
RGBToHSB = function (rgb) {
|
||||
var hsb = {
|
||||
h: 0,
|
||||
s: 0,
|
||||
b: 0
|
||||
};
|
||||
var min = Math.min(rgb.r, rgb.g, rgb.b);
|
||||
var max = Math.max(rgb.r, rgb.g, rgb.b);
|
||||
var delta = max - min;
|
||||
hsb.b = max;
|
||||
if (max != 0) {
|
||||
|
||||
}
|
||||
hsb.s = max != 0 ? 255 * delta / max : 0;
|
||||
if (hsb.s != 0) {
|
||||
if (rgb.r == max) {
|
||||
hsb.h = (rgb.g - rgb.b) / delta;
|
||||
} else if (rgb.g == max) {
|
||||
hsb.h = 2 + (rgb.b - rgb.r) / delta;
|
||||
} else {
|
||||
hsb.h = 4 + (rgb.r - rgb.g) / delta;
|
||||
}
|
||||
} else {
|
||||
hsb.h = -1;
|
||||
}
|
||||
hsb.h *= 60;
|
||||
if (hsb.h < 0) {
|
||||
hsb.h += 360;
|
||||
}
|
||||
hsb.s *= 100/255;
|
||||
hsb.b *= 100/255;
|
||||
return hsb;
|
||||
},
|
||||
HSBToRGB = function (hsb) {
|
||||
var rgb = {};
|
||||
var h = Math.round(hsb.h);
|
||||
var s = Math.round(hsb.s*255/100);
|
||||
var v = Math.round(hsb.b*255/100);
|
||||
if(s == 0) {
|
||||
rgb.r = rgb.g = rgb.b = v;
|
||||
} else {
|
||||
var t1 = v;
|
||||
var t2 = (255-s)*v/255;
|
||||
var t3 = (t1-t2)*(h%60)/60;
|
||||
if(h==360) h = 0;
|
||||
if(h<60) {rgb.r=t1; rgb.b=t2; rgb.g=t2+t3}
|
||||
else if(h<120) {rgb.g=t1; rgb.b=t2; rgb.r=t1-t3}
|
||||
else if(h<180) {rgb.g=t1; rgb.r=t2; rgb.b=t2+t3}
|
||||
else if(h<240) {rgb.b=t1; rgb.r=t2; rgb.g=t1-t3}
|
||||
else if(h<300) {rgb.b=t1; rgb.g=t2; rgb.r=t2+t3}
|
||||
else if(h<360) {rgb.r=t1; rgb.g=t2; rgb.b=t1-t3}
|
||||
else {rgb.r=0; rgb.g=0; rgb.b=0}
|
||||
}
|
||||
return {r:Math.round(rgb.r), g:Math.round(rgb.g), b:Math.round(rgb.b)};
|
||||
},
|
||||
RGBToHex = function (rgb) {
|
||||
var hex = [
|
||||
rgb.r.toString(16),
|
||||
rgb.g.toString(16),
|
||||
rgb.b.toString(16)
|
||||
];
|
||||
$.each(hex, function (nr, val) {
|
||||
if (val.length == 1) {
|
||||
hex[nr] = '0' + val;
|
||||
}
|
||||
});
|
||||
return hex.join('');
|
||||
},
|
||||
HSBToHex = function (hsb) {
|
||||
return RGBToHex(HSBToRGB(hsb));
|
||||
},
|
||||
restoreOriginal = function () {
|
||||
var cal = $(this).parent();
|
||||
var col = cal.data('colorpicker').origColor;
|
||||
cal.data('colorpicker').color = col;
|
||||
fillRGBFields(col, cal.get(0));
|
||||
fillHexFields(col, cal.get(0));
|
||||
fillHSBFields(col, cal.get(0));
|
||||
setSelector(col, cal.get(0));
|
||||
setHue(col, cal.get(0));
|
||||
setNewColor(col, cal.get(0));
|
||||
};
|
||||
return {
|
||||
init: function (opt) {
|
||||
opt = $.extend({}, defaults, opt||{});
|
||||
if (typeof opt.color == 'string') {
|
||||
opt.color = HexToHSB(opt.color);
|
||||
} else if (opt.color.r != undefined && opt.color.g != undefined && opt.color.b != undefined) {
|
||||
opt.color = RGBToHSB(opt.color);
|
||||
} else if (opt.color.h != undefined && opt.color.s != undefined && opt.color.b != undefined) {
|
||||
opt.color = fixHSB(opt.color);
|
||||
} else {
|
||||
return this;
|
||||
}
|
||||
return this.each(function () {
|
||||
if (!$(this).data('colorpickerId')) {
|
||||
var options = $.extend({}, opt);
|
||||
options.origColor = opt.color;
|
||||
var id = 'collorpicker_' + parseInt(Math.random() * 1000);
|
||||
$(this).data('colorpickerId', id);
|
||||
var cal = $(tpl).attr('id', id);
|
||||
if (options.flat) {
|
||||
cal.appendTo(this).show();
|
||||
} else {
|
||||
cal.appendTo(document.body);
|
||||
}
|
||||
options.fields = cal
|
||||
.find('input')
|
||||
.bind('keyup', keyDown)
|
||||
.bind('change', change)
|
||||
.bind('blur', blur)
|
||||
.bind('focus', focus);
|
||||
cal
|
||||
.find('span').bind('mousedown', downIncrement).end()
|
||||
.find('>div.colorpicker_current_color').bind('click', restoreOriginal);
|
||||
options.selector = cal.find('div.colorpicker_color').bind('mousedown', downSelector);
|
||||
options.selectorIndic = options.selector.find('div div');
|
||||
options.el = this;
|
||||
options.hue = cal.find('div.colorpicker_hue div');
|
||||
cal.find('div.colorpicker_hue').bind('mousedown', downHue);
|
||||
options.newColor = cal.find('div.colorpicker_new_color');
|
||||
options.currentColor = cal.find('div.colorpicker_current_color');
|
||||
cal.data('colorpicker', options);
|
||||
cal.find('div.colorpicker_submit')
|
||||
.bind('mouseenter', enterSubmit)
|
||||
.bind('mouseleave', leaveSubmit)
|
||||
.bind('click', clickSubmit);
|
||||
fillRGBFields(options.color, cal.get(0));
|
||||
fillHSBFields(options.color, cal.get(0));
|
||||
fillHexFields(options.color, cal.get(0));
|
||||
setHue(options.color, cal.get(0));
|
||||
setSelector(options.color, cal.get(0));
|
||||
setCurrentColor(options.color, cal.get(0));
|
||||
setNewColor(options.color, cal.get(0));
|
||||
if (options.flat) {
|
||||
cal.css({
|
||||
position: 'relative',
|
||||
display: 'block'
|
||||
});
|
||||
} else {
|
||||
$(this).bind(options.eventName, show);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
showPicker: function() {
|
||||
return this.each( function () {
|
||||
if ($(this).data('colorpickerId')) {
|
||||
show.apply(this);
|
||||
}
|
||||
});
|
||||
},
|
||||
hidePicker: function() {
|
||||
return this.each( function () {
|
||||
if ($(this).data('colorpickerId')) {
|
||||
$('#' + $(this).data('colorpickerId')).hide();
|
||||
}
|
||||
});
|
||||
},
|
||||
setColor: function(col) {
|
||||
if (typeof col == 'string') {
|
||||
col = HexToHSB(col);
|
||||
} else if (col.r != undefined && col.g != undefined && col.b != undefined) {
|
||||
col = RGBToHSB(col);
|
||||
} else if (col.h != undefined && col.s != undefined && col.b != undefined) {
|
||||
col = fixHSB(col);
|
||||
} else {
|
||||
return this;
|
||||
}
|
||||
return this.each(function(){
|
||||
if ($(this).data('colorpickerId')) {
|
||||
var cal = $('#' + $(this).data('colorpickerId'));
|
||||
cal.data('colorpicker').color = col;
|
||||
cal.data('colorpicker').origColor = col;
|
||||
fillRGBFields(col, cal.get(0));
|
||||
fillHSBFields(col, cal.get(0));
|
||||
fillHexFields(col, cal.get(0));
|
||||
setHue(col, cal.get(0));
|
||||
setSelector(col, cal.get(0));
|
||||
setCurrentColor(col, cal.get(0));
|
||||
setNewColor(col, cal.get(0));
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}();
|
||||
$.fn.extend({
|
||||
ColorPicker: ColorPicker.init,
|
||||
ColorPickerHide: ColorPicker.hidePicker,
|
||||
ColorPickerShow: ColorPicker.showPicker,
|
||||
ColorPickerSetColor: ColorPicker.setColor
|
||||
});
|
||||
})(jQuery)
|
||||
37
wp-content/themes/Divi/epanel/js/custom_uploader.js
Normal file
@@ -0,0 +1,37 @@
|
||||
jQuery(document).ready(function() {
|
||||
var et_file_frame;
|
||||
|
||||
jQuery( '.upload_image_button' ).click(function( event ) {
|
||||
var this_el = jQuery( this ),
|
||||
use_for = this_el.parents( '.epanel-box' ).find( '.box-title > h3' ).text(),
|
||||
button_text = this_el.data( 'button_text' ),
|
||||
window_title = epanel_uploader.media_window_title,
|
||||
fileInput = this_el.parent().prev('input.uploadfield');
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
et_file_frame = wp.media.frames.et_file_frame = wp.media({
|
||||
title: window_title,
|
||||
library: {
|
||||
type: 'image'
|
||||
},
|
||||
button: {
|
||||
text: button_text,
|
||||
},
|
||||
multiple: false
|
||||
});
|
||||
|
||||
et_file_frame.on( 'select', function() {
|
||||
var attachment = et_file_frame.state().get( 'selection' ).first().toJSON();
|
||||
fileInput.val( attachment.url );
|
||||
});
|
||||
|
||||
et_file_frame.open();
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
jQuery( '.upload_image_reset' ).click( function() {
|
||||
jQuery(this).parent().prev( 'input.uploadfield' ).val( '' );
|
||||
});
|
||||
});
|
||||
51
wp-content/themes/Divi/epanel/js/eye.js
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
*
|
||||
* Zoomimage
|
||||
* Author: Stefan Petre www.eyecon.ro
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
var EYE = window.EYE = function() {
|
||||
var _registered = {
|
||||
init: []
|
||||
};
|
||||
return {
|
||||
init: function() {
|
||||
$.each(_registered.init, function(nr, fn){
|
||||
fn.call();
|
||||
});
|
||||
},
|
||||
extend: function(prop) {
|
||||
for (var i in prop) {
|
||||
if (prop[i] != undefined) {
|
||||
this[i] = prop[i];
|
||||
}
|
||||
}
|
||||
},
|
||||
register: function(fn, type) {
|
||||
if (!_registered[type]) {
|
||||
_registered[type] = [];
|
||||
}
|
||||
_registered[type].push(fn);
|
||||
}
|
||||
};
|
||||
}();
|
||||
$(EYE.init);
|
||||
})(jQuery);
|
||||
|
||||
(function($){
|
||||
var initLayout = function() {
|
||||
$('#colorpickerHolder').ColorPicker({flat: true});
|
||||
$('.colorpopup').ColorPicker({
|
||||
onSubmit: function(hsb, hex, rgb, el) {
|
||||
$(el).val(hex);
|
||||
$(el).ColorPickerHide();
|
||||
},
|
||||
onBeforeShow: function () {
|
||||
$(this).ColorPickerSetColor(this.value);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
EYE.register(initLayout, 'init');
|
||||
})(jQuery);
|
||||
64
wp-content/themes/Divi/epanel/js/functions-init.js
Normal file
@@ -0,0 +1,64 @@
|
||||
/* <![CDATA[ */
|
||||
var clearpath = ePanelSettings.clearpath,
|
||||
et_saving_text = ePanelSettings.et_saving_text,
|
||||
et_options_saved_text = ePanelSettings.et_options_saved_text;
|
||||
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('#epanel-content,#epanel-content > div').tabs({ fx: { opacity: 'toggle', duration:'fast' }, selected: 0 });
|
||||
jQuery(".box-description").click(function(){
|
||||
var descheading = jQuery(this).prev("h3").html();
|
||||
var desctext = jQuery(this).next(".box-descr").html();
|
||||
|
||||
jQuery('body').append("<div id='custom-lbox'><div class='shadow'></div><div class='box-desc'><div class='box-desc-top'></div><div class='box-desc-content'><h3>"+descheading+"</h3>"+desctext+"<div class='lightboxclose'></div> </div> <div class='box-desc-bottom'></div> </div></div>");
|
||||
jQuery(".shadow").animate({ opacity: "show" }, "fast").fadeTo("fast", 0.75);
|
||||
jQuery('.lightboxclose').click(function(){
|
||||
jQuery(".shadow").animate({ opacity: "hide" }, "fast", function(){jQuery("#custom-lbox").remove();});
|
||||
});
|
||||
});
|
||||
|
||||
jQuery(".defaults-button").click(function() {
|
||||
jQuery(".defaults-hover").animate({opacity: "show", top: "-240"}, "fast");
|
||||
});
|
||||
jQuery(".no").click(function() {
|
||||
jQuery(".defaults-hover").animate({opacity: "hide", top: "-300"}, "fast");
|
||||
});
|
||||
// ":not([safari])" is desirable but not necessary selector
|
||||
jQuery('input:checkbox:not([safari])').checkbox();
|
||||
jQuery('input[safari]:checkbox').checkbox({cls:'jquery-safari-checkbox'});
|
||||
jQuery('input:radio').checkbox();
|
||||
|
||||
|
||||
var $save_message = jQuery("#epanel-ajax-saving");
|
||||
|
||||
jQuery('input#epanel-save').click(function($){
|
||||
var options_fromform = jQuery('#main_options_form').formSerialize(),
|
||||
add_nonce = '&_ajax_nonce='+ePanelSettings.epanel_nonce;
|
||||
|
||||
options_fromform += add_nonce;
|
||||
|
||||
var save_button=jQuery(this);
|
||||
jQuery.ajax({
|
||||
type: "POST",
|
||||
url: ajaxurl,
|
||||
data: options_fromform,
|
||||
beforeSend: function ( xhr ){
|
||||
$save_message.children("img").css("display","block");
|
||||
$save_message.children("span").css("margin","6px 0px 0px 30px").html( et_saving_text );
|
||||
$save_message.fadeIn('fast');
|
||||
},
|
||||
success: function(response){
|
||||
$save_message.children("img").css("display","none");
|
||||
$save_message.children("span").css("margin","0px").html( et_options_saved_text );
|
||||
|
||||
save_button.blur();
|
||||
|
||||
setTimeout(function(){
|
||||
$save_message.fadeOut("slow");
|
||||
},500);
|
||||
}
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
/* ]]> */
|
||||
37
wp-content/themes/Divi/epanel/js/layout.js
Normal file
@@ -0,0 +1,37 @@
|
||||
(function($){
|
||||
var initLayout = function() {
|
||||
var hash = window.location.hash.replace('#', '');
|
||||
var currentTab = $('ul.navigationTabs a')
|
||||
.bind('click', showTab)
|
||||
.filter('a[rel=' + hash + ']');
|
||||
if (currentTab.size() == 0) {
|
||||
currentTab = $('ul.navigationTabs a:first');
|
||||
}
|
||||
showTab.apply(currentTab.get(0));
|
||||
$('#colorpickerHolder').ColorPicker({flat: true});
|
||||
$('.colorpopup').ColorPicker({
|
||||
onSubmit: function(hsb, hex, rgb, el) {
|
||||
$(el).val(hex);
|
||||
$(el).ColorPickerHide();
|
||||
},
|
||||
onBeforeShow: function () {
|
||||
$(this).ColorPickerSetColor(this.value);
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
var showTab = function(e) {
|
||||
var tabIndex = $('ul.navigationTabs a')
|
||||
.removeClass('active')
|
||||
.index(this);
|
||||
$(this)
|
||||
.addClass('active')
|
||||
.blur();
|
||||
$('div.tab')
|
||||
.hide()
|
||||
.eq(tabIndex)
|
||||
.show();
|
||||
};
|
||||
|
||||
EYE.register(initLayout, 'init');
|
||||
})(jQuery)
|
||||
918
wp-content/themes/Divi/epanel/options_divi.php
Normal file
@@ -0,0 +1,918 @@
|
||||
<?php
|
||||
global $epanelMainTabs, $themename, $shortname, $options;
|
||||
|
||||
$epanelMainTabs = array('general','navigation','layout','ad','seo','integration','support');
|
||||
|
||||
$cats_array = get_categories('hide_empty=0');
|
||||
$pages_array = get_pages('hide_empty=0');
|
||||
$pages_number = count($pages_array);
|
||||
|
||||
$site_pages = array();
|
||||
$site_cats = array();
|
||||
$pages_ids = array();
|
||||
$cats_ids = array();
|
||||
|
||||
foreach ($pages_array as $pagg) {
|
||||
$site_pages[$pagg->ID] = htmlspecialchars($pagg->post_title);
|
||||
$pages_ids[] = $pagg->ID;
|
||||
}
|
||||
|
||||
foreach ($cats_array as $categs) {
|
||||
$site_cats[$categs->cat_ID] = $categs->cat_name;
|
||||
$cats_ids[] = $categs->cat_ID;
|
||||
}
|
||||
|
||||
$shortname = esc_html( $shortname );
|
||||
$pages_ids = array_map( 'intval', $pages_ids );
|
||||
$cats_ids = array_map( 'intval', $cats_ids );
|
||||
|
||||
$options = array (
|
||||
|
||||
array( "name" => "wrap-general",
|
||||
"type" => "contenttab-wrapstart",),
|
||||
|
||||
array( "type" => "subnavtab-start",),
|
||||
|
||||
array( "name" => "general-1",
|
||||
"type" => "subnav-tab",
|
||||
"desc" => esc_html__("General",$themename)),
|
||||
|
||||
array( "type" => "subnavtab-end",),
|
||||
|
||||
array( "name" => "general-1",
|
||||
"type" => "subcontent-start",),
|
||||
|
||||
array( "name" => esc_html__("Logo",$themename),
|
||||
"id" => $shortname."_logo",
|
||||
"type" => "upload",
|
||||
"button_text" => __( "Set As Logo", $themename ),
|
||||
"std" => "",
|
||||
"desc" => esc_html__("If you would like to use your own custom logo image click the Upload Image button.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Favicon",$themename),
|
||||
"id" => $shortname."_favicon",
|
||||
"type" => "upload",
|
||||
"button_text" => __( "Set As Favicon", $themename ),
|
||||
"std" => "",
|
||||
"desc" => esc_html__("If you would like to use your own custom favicon image click the Upload Image button.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Fixed Navigation Bar",$themename),
|
||||
"id" => $shortname."_fixed_nav",
|
||||
"type" => "checkbox",
|
||||
"std" => "on",
|
||||
"desc" => esc_html__("By default the navigation bar stays on top of the screen at all times. We suggest to disable this option, if you need to use a logo taller than the default one.",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Grab the first post image",$themename),
|
||||
"id" => $shortname."_grab_image",
|
||||
"type" => "checkbox",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("By default thumbnail images are created using custom fields. However, if you would rather use the images that are already in your post for your thumbnail (and bypass using custom fields) you can activate this option. Once activcated thumbnail images will be generated automatically using the first image in your post. The image must be hosted on your own server.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Blog Style Mode",$themename),
|
||||
"id" => $shortname."_blog_style",
|
||||
"type" => "checkbox2",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("By default the theme truncates your posts on index/homepages automatically to create post previews. If you would rather show your posts in full on index pages like a traditional blog then you can activate this feature.",$themename),
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__( "Shop Page & Category Page Layout for WooCommerce", $themename ),
|
||||
"id" => $shortname . "_shop_page_sidebar",
|
||||
"type" => "select",
|
||||
"options" => array(
|
||||
'et_right_sidebar' => __( 'Right Sidebar', $themename ),
|
||||
'et_left_sidebar' => __( 'Left Sidebar', $themename ),
|
||||
'et_full_width_page' => __( 'Full Width', $themename ),
|
||||
),
|
||||
"std" => 'et_right_sidebar',
|
||||
"desc" => esc_html__( "Here you can choose Shop Page & Category Page Layout for WooCommerce.", $themename ),
|
||||
'et_save_values' => true,
|
||||
),
|
||||
|
||||
array( "name" => __( "MailChimp API Key", $themename ),
|
||||
"id" => $shortname . "_mailchimp_api_key",
|
||||
"std" => "",
|
||||
"type" => "text",
|
||||
"validation_type" => "nohtml",
|
||||
"desc" => sprintf( __( 'Enter your MailChimp API key. You can create an api key <a target="_blank" href="%1$s">here</a>', $themename ), 'https://us3.admin.mailchimp.com/account/api/' ),
|
||||
),
|
||||
|
||||
array( "name" => __( "Aweber Authorization", $themename ),
|
||||
"type" => "callback_function",
|
||||
"desc" => __( 'Authorize your Aweber account here.', $themename ),
|
||||
"function_name" => 'et_aweber_authorization_option',
|
||||
),
|
||||
|
||||
array( "name" => __( "Regenerate MailChimp Lists", $themename ),
|
||||
"id" => $shortname."_regenerate_mailchimp_lists",
|
||||
"type" => "checkbox",
|
||||
"std" => "false",
|
||||
"desc" => __( "By default, MailChimp lists are cached for one day. If you added new list, but it doesn't appear within the Email Optin module settings, activate this option. Don't forget to disable it once the list has been regenerated.",$themename ) ),
|
||||
|
||||
array( "name" => __( "Regenerate Aweber Lists", $themename ),
|
||||
"id" => $shortname."_regenerate_aweber_lists",
|
||||
"type" => "checkbox2",
|
||||
"std" => "false",
|
||||
"desc" => __( "By default, Aweber lists are cached for one day. If you added new list, but it doesn't appear within the Email Optin module settings, activate this option. Don't forget to disable it once the list has been regenerated.", $themename ) ),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => __( "Show Facebook Icon", $themename ),
|
||||
"id" => $shortname."_show_facebook_icon",
|
||||
"type" => "checkbox",
|
||||
"std" => "on",
|
||||
"desc" => __( "Here you can choose to display the Facebook Icon on your homepage. ", $themename ) ),
|
||||
|
||||
array( "name" => __( "Show Twitter Icon", $themename ),
|
||||
"id" => $shortname."_show_twitter_icon",
|
||||
"type" => "checkbox2",
|
||||
"std" => "on",
|
||||
"desc" => __( "Here you can choose to display the Twitter Icon. ", $themename ) ),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => __( "Show Google+ Icon", $themename ),
|
||||
"id" => $shortname."_show_google_icon",
|
||||
"type" => "checkbox",
|
||||
"std" => "on",
|
||||
"desc" => __( "Here you can choose to display the Google+ Icon on your homepage. ", $themename ) ),
|
||||
|
||||
array( "name" => __( "Show RSS Icon", $themename ),
|
||||
"id" => $shortname."_show_rss_icon",
|
||||
"type" => "checkbox2",
|
||||
"std" => "on",
|
||||
"desc" => __( "Here you can choose to display the RSS Icon. ", $themename ) ),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => __( "Facebook Profile Url", $themename ),
|
||||
"id" => $shortname."_facebook_url",
|
||||
"std" => "#",
|
||||
"type" => "text",
|
||||
"validation_type" => "url",
|
||||
"desc" => __( "Enter the URL of your Facebook Profile. ", $themename ) ),
|
||||
|
||||
array( "name" => __( "Twitter Profile Url", $themename ),
|
||||
"id" => $shortname."_twitter_url",
|
||||
"std" => "#",
|
||||
"type" => "text",
|
||||
"validation_type" => "url",
|
||||
"desc" => __( "Enter the URL of your Twitter Profile.", $themename ) ),
|
||||
|
||||
array( "name" => __( "Google+ Profile Url", $themename ),
|
||||
"id" => $shortname."_google_url",
|
||||
"std" => "#",
|
||||
"type" => "text",
|
||||
"validation_type" => "url",
|
||||
"desc" => __( "Enter the URL of your Google+ Profile. ", $themename ) ),
|
||||
|
||||
array( "name" => __( "RSS Icon Url", $themename ),
|
||||
"id" => $shortname."_rss_url",
|
||||
"std" => "",
|
||||
"type" => "text",
|
||||
"validation_type" => "url",
|
||||
"desc" => __( "Enter the URL of your RSS feed. ", $themename ) ),
|
||||
|
||||
array( "name" => esc_html__("Number of Posts displayed on Category page",$themename),
|
||||
"id" => $shortname."_catnum_posts",
|
||||
"std" => "6",
|
||||
"type" => "text",
|
||||
"desc" => esc_html__("Here you can designate how many recent articles are displayed on the Category page. This option works independently from the Settings > Reading options in wp-admin.",$themename),
|
||||
"validation_type" => "number"
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Number of Posts displayed on Archive pages",$themename),
|
||||
"id" => $shortname."_archivenum_posts",
|
||||
"std" => "5",
|
||||
"type" => "text",
|
||||
"desc" => esc_html__("Here you can designate how many recent articles are displayed on the Archive pages. This option works independently from the Settings > Reading options in wp-admin.",$themename),
|
||||
"validation_type" => "number"
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Number of Posts displayed on Search pages",$themename),
|
||||
"id" => $shortname."_searchnum_posts",
|
||||
"std" => "5",
|
||||
"type" => "text",
|
||||
"desc" => esc_html__("Here you can designate how many recent articles are displayed on the Search results pages. This option works independently from the Settings > Reading options in wp-admin.",$themename),
|
||||
"validation_type" => "number"
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Number of Posts displayed on Tag pages",$themename),
|
||||
"id" => $shortname."_tagnum_posts",
|
||||
"std" => "5",
|
||||
"type" => "text",
|
||||
"desc" => esc_html__("Here you can designate how many recent articles are displayed on the Tag pages. This option works independently from the Settings > Reading options in wp-admin.",$themename),
|
||||
"validation_type" => "number"
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Date format",$themename),
|
||||
"id" => $shortname."_date_format",
|
||||
"std" => "M j, Y",
|
||||
"type" => "text",
|
||||
"desc" => __("This option allows you to change how your dates are displayed. For more information please refer to the WordPress codex here:<a href='http://codex.wordpress.org/Formatting_Date_and_Time' target='_blank'>Formatting Date and Time</a>",$themename),
|
||||
"validation_type" => "date_format"
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Use excerpts when defined",$themename),
|
||||
"id" => $shortname."_use_excerpt",
|
||||
"type" => "checkbox",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("This will enable the use of excerpts in posts or pages.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Responsive shortcodes",$themename),
|
||||
"id" => $shortname."_responsive_shortcodes",
|
||||
"type" => "checkbox2",
|
||||
"std" => "on",
|
||||
"desc" => esc_html__("Enable this option to make shortcodes respond to various screen sizes",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Google Fonts subsets",$themename),
|
||||
"id" => $shortname."_gf_enable_all_character_sets",
|
||||
"type" => "checkbox",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("This will enable Google Fonts for Non-English languages.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Back To Top Button",$themename),
|
||||
"id" => $shortname."_back_to_top",
|
||||
"type" => "checkbox",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("Enable this option to display Back To Top Button while scrolling",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__( "Smooth Scrolling", $themename ),
|
||||
"id" => $shortname . "_smooth_scroll",
|
||||
"type" => "checkbox2",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__( "Enable this option to get the smooth scrolling effect with mouse wheel", $themename )
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__( "Custom CSS", $themename ),
|
||||
"id" => $shortname . "_custom_css",
|
||||
"type" => "textarea",
|
||||
"std" => "",
|
||||
"desc" => esc_html__( "Here you can add custom css to override or extend default styles.", $themename ),
|
||||
"validation_type" => "nohtml"
|
||||
),
|
||||
|
||||
array( "name" => "general-1",
|
||||
"type" => "subcontent-end",),
|
||||
|
||||
array( "name" => "wrap-general",
|
||||
"type" => "contenttab-wrapend",),
|
||||
|
||||
//-------------------------------------------------------------------------------------//
|
||||
|
||||
array( "name" => "wrap-navigation",
|
||||
"type" => "contenttab-wrapstart",),
|
||||
|
||||
array( "type" => "subnavtab-start",),
|
||||
|
||||
array( "name" => "navigation-1",
|
||||
"type" => "subnav-tab",
|
||||
"desc" => esc_html__("Pages",$themename)
|
||||
),
|
||||
|
||||
array( "name" => "navigation-2",
|
||||
"type" => "subnav-tab",
|
||||
"desc" => esc_html__("Categories",$themename)
|
||||
),
|
||||
|
||||
array( "name" => "navigation-3",
|
||||
"type" => "subnav-tab",
|
||||
"desc" => esc_html__("General Settings",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "subnavtab-end",),
|
||||
|
||||
array( "name" => "navigation-1",
|
||||
"type" => "subcontent-start",),
|
||||
|
||||
array( "name" => esc_html__("Exclude pages from the navigation bar",$themename),
|
||||
"id" => $shortname."_menupages",
|
||||
"type" => "checkboxes",
|
||||
"std" => "",
|
||||
"desc" => esc_html__("Here you can choose to remove certain pages from the navigation menu. All pages marked with an X will not appear in your navigation bar. ",$themename),
|
||||
"usefor" => "pages",
|
||||
"options" => $pages_ids),
|
||||
|
||||
array( "name" => esc_html__("Show dropdown menus",$themename),
|
||||
"id" => $shortname."_enable_dropdowns",
|
||||
"type" => "checkbox",
|
||||
"std" => "on",
|
||||
"desc" => esc_html__("If you would like to remove the dropdown menus from the pages navigation bar disable this feature.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Display Home link",$themename),
|
||||
"id" => $shortname."_home_link",
|
||||
"type" => "checkbox2",
|
||||
"std" => "on",
|
||||
"desc" => esc_html__("By default the theme creates a Home link that, when clicked, leads back to your blog's homepage. If, however, you are using a static homepage and have already created a page called Home to use, this will result in a duplicate link. In this case you should disable this feature to remove the link.",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Sort Pages Links",$themename),
|
||||
"id" => $shortname."_sort_pages",
|
||||
"type" => "select",
|
||||
"std" => "post_title",
|
||||
"desc" => esc_html__("Here you can choose to sort your pages links.",$themename),
|
||||
"options" => array("post_title", "menu_order","post_date","post_modified","ID","post_author","post_name")),
|
||||
|
||||
array( "name" => esc_html__("Order Pages Links by Ascending/Descending",$themename),
|
||||
"id" => $shortname."_order_page",
|
||||
"type" => "select",
|
||||
"std" => "asc",
|
||||
"desc" => esc_html__("Here you can choose to reverse the order that your pages links are displayed. You can choose between ascending and descending.",$themename),
|
||||
"options" => array("asc", "desc")),
|
||||
|
||||
array( "name" => esc_html__("Number of dropdown tiers shown",$themename),
|
||||
"id" => $shortname."_tiers_shown_pages",
|
||||
"type" => "text",
|
||||
"std" => "3",
|
||||
"desc" => esc_html__("This options allows you to control how many teirs your pages dropdown menu has. Increasing the number allows for additional menu items to be shown.",$themename),
|
||||
"validation_type" => "number"
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
|
||||
array( "name" => "navigation-1",
|
||||
"type" => "subcontent-end",),
|
||||
|
||||
array( "name" => "navigation-2",
|
||||
"type" => "subcontent-start",),
|
||||
|
||||
array( "name" => esc_html__("Exclude categories from the navigation bar",$themename),
|
||||
"id" => $shortname."_menucats",
|
||||
"type" => "checkboxes",
|
||||
"std" => "",
|
||||
"desc" => esc_html__("Here you can choose to remove certain categories from the navigation menu. All categories marked with an X will not appear in your navigation bar. ",$themename),
|
||||
"usefor" => "categories",
|
||||
"options" => $cats_ids),
|
||||
|
||||
array( "name" => esc_html__("Show dropdown menus",$themename),
|
||||
"id" => $shortname."_enable_dropdowns_categories",
|
||||
"type" => "checkbox",
|
||||
"std" => "on",
|
||||
"desc" => esc_html__("If you would like to remove the dropdown menus from the categories navigation bar disable this feature.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Hide empty categories",$themename),
|
||||
"id" => $shortname."_categories_empty",
|
||||
"type" => "checkbox",
|
||||
"std" => "on",
|
||||
"desc" => esc_html__("If you would like categories to be displayed in your navigationbar that don't have any posts in them then disable this option. By default empty categories are hidden",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Number of dropdown tiers shown",$themename),
|
||||
"id" => $shortname."_tiers_shown_categories",
|
||||
"type" => "text",
|
||||
"std" => "3",
|
||||
"desc" => esc_html__("This options allows you to control how many teirs your pages dropdown menu has. Increasing the number allows for additional menu items to be shown.",$themename),
|
||||
"validation_type" => "number"
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Sort Categories Links by Name/ID/Slug/Count/Term Group",$themename),
|
||||
"id" => $shortname."_sort_cat",
|
||||
"type" => "select",
|
||||
"std" => "name",
|
||||
"desc" => esc_html__("By default pages are sorted by name. However if you would rather have them sorted by ID you can adjust this setting.",$themename),
|
||||
"options" => array("name", "ID", "slug", "count", "term_group")),
|
||||
|
||||
array( "name" => esc_html__("Order Category Links by Ascending/Descending",$themename),
|
||||
"id" => $shortname."_order_cat",
|
||||
"type" => "select",
|
||||
"std" => "asc",
|
||||
"desc" => esc_html__("Here you can choose to reverse the order that your categories links are displayed. You can choose between ascending and descending.",$themename),
|
||||
"options" => array("asc", "desc")),
|
||||
|
||||
array( "name" => "navigation-2",
|
||||
"type" => "subcontent-end",),
|
||||
|
||||
array( "name" => "navigation-3",
|
||||
"type" => "subcontent-start",),
|
||||
|
||||
array( "name" => esc_html__("Disable top tier dropdown menu links",$themename),
|
||||
"id" => $shortname."_disable_toptier",
|
||||
"type" => "checkbox2",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("In some cases users will want to create parent categories or links as placeholders to hold a list of child links or categories. In this case it is not desirable to have the parent links lead anywhere, but instead merely serve an organizational function. Enabling this options will remove the links from all parent pages/categories so that they don't lead anywhere when clicked.",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => "navigation-3",
|
||||
"type" => "subcontent-end",),
|
||||
|
||||
array( "name" => "wrap-navigation",
|
||||
"type" => "contenttab-wrapend",),
|
||||
|
||||
//-------------------------------------------------------------------------------------//
|
||||
|
||||
array( "name" => "wrap-layout",
|
||||
"type" => "contenttab-wrapstart",),
|
||||
|
||||
array( "type" => "subnavtab-start",),
|
||||
|
||||
array( "name" => "layout-1",
|
||||
"type" => "subnav-tab",
|
||||
"desc" => esc_html__("Single Post Layout",$themename)
|
||||
),
|
||||
|
||||
array( "name" => "layout-2",
|
||||
"type" => "subnav-tab",
|
||||
"desc" => esc_html__("Single Page Layout",$themename)
|
||||
),
|
||||
|
||||
array( "name" => "layout-3",
|
||||
"type" => "subnav-tab",
|
||||
"desc" => esc_html__("General Settings",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "subnavtab-end",),
|
||||
|
||||
array( "name" => "layout-1",
|
||||
"type" => "subcontent-start",),
|
||||
|
||||
array( "name" => esc_html__("Choose which items to display in the postinfo section",$themename),
|
||||
"id" => $shortname."_postinfo2",
|
||||
"type" => "different_checkboxes",
|
||||
"std" => array("author","date","categories","comments"),
|
||||
"desc" => esc_html__("Here you can choose which items appear in the postinfo section on single post pages. This is the area, usually below the post title, which displays basic information about your post. The highlighted itmes shown below will appear. ",$themename),
|
||||
"options" => array("author","date","categories","comments")),
|
||||
|
||||
array(
|
||||
"name" => esc_html__("Show comments on posts",$themename),
|
||||
"id" => $shortname."_show_postcomments",
|
||||
"type" => "checkbox",
|
||||
"std" => "on",
|
||||
"desc" => esc_html__("You can disable this option if you want to remove the comments and comment form from single post pages. ",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Place Thumbs on Posts",$themename),
|
||||
"id" => $shortname."_thumbnails",
|
||||
"type" => "checkbox2",
|
||||
"std" => "on",
|
||||
"desc" => esc_html__("By default thumbnails are placed at the beginning of your post on single post pages. If you would like to remove this initial thumbnail image to avoid repetition simply disable this option. ",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => "layout-1",
|
||||
"type" => "subcontent-end",),
|
||||
|
||||
array( "name" => "layout-2",
|
||||
"type" => "subcontent-start",),
|
||||
|
||||
array( "name" => esc_html__("Place Thumbs on Pages",$themename),
|
||||
"id" => $shortname."_page_thumbnails",
|
||||
"type" => "checkbox",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("By default thumbnails are not placed on pages (they are only used on posts). However, if you want to use thumbnails on pages you can! Just enable this option. ",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Show comments on pages",$themename),
|
||||
"id" => $shortname."_show_pagescomments",
|
||||
"type" => "checkbox2",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("By default comments are not placed on pages, however, if you would like to allow people to comment on your pages simply enable this option. ",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => "layout-2",
|
||||
"type" => "subcontent-end",),
|
||||
|
||||
array( "name" => "layout-3",
|
||||
"type" => "subcontent-start",),
|
||||
|
||||
array( "name" => esc_html__("Post info section",$themename),
|
||||
"id" => $shortname."_postinfo1",
|
||||
"type" => "different_checkboxes",
|
||||
"std" => array("author","date","categories"),
|
||||
"desc" => esc_html__("Here you can choose which items appear in the postinfo section on pages. This is the area, usually below the post title, which displays basic information about your post. The highlighted itmes shown below will appear. ",$themename),
|
||||
"options" => array("author","date","categories","comments")),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Show Thumbs on Index pages",$themename),
|
||||
"id" => $shortname."_thumbnails_index",
|
||||
"type" => "checkbox",
|
||||
"std" => "on",
|
||||
"desc" => esc_html__("Enable this option to show thumbnails on Index Pages.",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => "layout-3",
|
||||
"type" => "subcontent-end",),
|
||||
|
||||
array( "name" => "wrap-layout",
|
||||
"type" => "contenttab-wrapend",),
|
||||
|
||||
//-------------------------------------------------------------------------------------//
|
||||
array( "name" => "wrap-seo",
|
||||
"type" => "contenttab-wrapstart",),
|
||||
|
||||
array( "type" => "subnavtab-start",),
|
||||
|
||||
array( "name" => "seo-1",
|
||||
"type" => "subnav-tab",
|
||||
"desc" => esc_html__("Homepage SEO",$themename)
|
||||
),
|
||||
|
||||
array( "name" => "seo-2",
|
||||
"type" => "subnav-tab",
|
||||
"desc" => esc_html__("Single Post Page SEO",$themename)
|
||||
),
|
||||
|
||||
array( "name" => "seo-3",
|
||||
"type" => "subnav-tab",
|
||||
"desc" => esc_html__("Index Page SEO",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "subnavtab-end",),
|
||||
|
||||
array( "name" => "seo-1",
|
||||
"type" => "subcontent-start",),
|
||||
|
||||
array( "name" => esc_html__(" Enable custom title ",$themename),
|
||||
"id" => $shortname."_seo_home_title",
|
||||
"type" => "checkbox",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("By default the theme uses a combination of your blog name and your blog description, as defined when you created your blog, to create your homepage titles. However if you want to create a custom title then simply enable this option and fill in the custom title field below. ",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__(" Enable meta description",$themename),
|
||||
"id" => $shortname."_seo_home_description",
|
||||
"type" => "checkbox",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("By default the theme uses your blog description, as defined when you created your blog, to fill in the meta description field. If you would like to use a different description then enable this option and fill in the custom description field below. ",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__(" Enable meta keywords",$themename),
|
||||
"id" => $shortname."_seo_home_keywords",
|
||||
"type" => "checkbox",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("By default the theme does not add keywords to your header. Most search engines don't use keywords to rank your site anymore, but some people define them anyway just in case. If you want to add meta keywords to your header then enable this option and fill in the custom keywords field below. ",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__(" Enable canonical URL's",$themename),
|
||||
"id" => $shortname."_seo_home_canonical",
|
||||
"type" => "checkbox",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("Canonicalization helps to prevent the indexing of duplicate content by search engines, and as a result, may help avoid duplicate content penalties and pagerank degradation. Some pages may have different URLs all leading to the same place. For example domain.com, domain.com/index.html, and www.domain.com are all different URLs leading to your homepage. From a search engine's perspective these duplicate URLs, which also occur often due to custom permalinks, may be treated individually instead of as a single destination. Defining a canonical URL tells the search engine which URL you would like to use officially. The theme bases its canonical URLs off your permalinks and the domain name defined in the settings tab of wp-admin.",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Homepage custom title (if enabled)",$themename),
|
||||
"id" => $shortname."_seo_home_titletext",
|
||||
"type" => "text",
|
||||
"std" => "",
|
||||
"desc" => esc_html__("If you have enabled custom titles you can add your custom title here. Whatever you type here will be placed between the < title >< /title > tags in header.php",$themename),
|
||||
"validation_type" => "nohtml"
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Homepage meta description (if enabled)",$themename),
|
||||
"id" => $shortname."_seo_home_descriptiontext",
|
||||
"type" => "textarea",
|
||||
"std" => "",
|
||||
"desc" => esc_html__("If you have enabled meta descriptions you can add your custom description here.",$themename),
|
||||
"validation_type" => "nohtml"
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Homepage meta keywords (if enabled)",$themename),
|
||||
"id" => $shortname."_seo_home_keywordstext",
|
||||
"type" => "text",
|
||||
"std" => "",
|
||||
"desc" => esc_html__("If you have enabled meta keywords you can add your custom keywords here. Keywords should be separated by comas. For example: wordpress,themes,templates,elegant",$themename),
|
||||
"validation_type" => "nohtml"
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("If custom titles are disabled, choose autogeneration method",$themename),
|
||||
"id" => $shortname."_seo_home_type",
|
||||
"type" => "select",
|
||||
"std" => "BlogName | Blog description",
|
||||
"options" => array("BlogName | Blog description", "Blog description | BlogName", "BlogName only"),
|
||||
"desc" => esc_html__("If you are not using cutsom post titles you can still have control over how your titles are generated. Here you can choose which order you would like your post title and blog name to be displayed, or you can remove the blog name from the title completely.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Define a character to separate BlogName and Post title",$themename),
|
||||
"id" => $shortname."_seo_home_separate",
|
||||
"type" => "text",
|
||||
"std" => " | ",
|
||||
"desc" => esc_html__("Here you can change which character separates your blog title and post name when using autogenerated post titles. Common values are | or -",$themename),
|
||||
"validation_type" => "nohtml"
|
||||
),
|
||||
|
||||
array( "name" => "seo-1",
|
||||
"type" => "subcontent-end",),
|
||||
|
||||
array( "name" => "seo-2",
|
||||
"type" => "subcontent-start",),
|
||||
|
||||
array( "name" => esc_html__("Enable custom titles",$themename),
|
||||
"id" => $shortname."_seo_single_title",
|
||||
"type" => "checkbox",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("By default the theme creates post titles based on the title of your post and your blog name. If you would like to make your meta title different than your actual post title you can define a custom title for each post using custom fields. This option must be enabled for custom titles to work, and you must choose a custom field name for your title below.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Enable custom description",$themename),
|
||||
"id" => $shortname."_seo_single_description",
|
||||
"type" => "checkbox2",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("If you would like to add a meta description to your post you can do so using custom fields. This option must be enabled for descriptions to be displayed on post pages. You can add your meta description using custom fields based off the custom field name you define below.",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Enable custom keywords",$themename),
|
||||
"id" => $shortname."_seo_single_keywords",
|
||||
"type" => "checkbox",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("If you would like to add meta keywords to your post you can do so using custom fields. This option must be enabled for keywords to be displayed on post pages. You can add your meta keywords using custom fields based off the custom field name you define below.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Enable canonical URL's",$themename),
|
||||
"id" => $shortname."_seo_single_canonical",
|
||||
"type" => "checkbox2",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("Canonicalization helps to prevent the indexing of duplicate content by search engines, and as a result, may help avoid duplicate content penalties and pagerank degradation. Some pages may have different URLs all leading to the same place. For example domain.com, domain.com/index.html, and www.domain.com are all different URLs leading to your homepage. From a search engine's perspective these duplicate URLs, which also occur often due to custom permalinks, may be treated individually instead of as a single destination. Defining a canonical URL tells the search engine which URL you would like to use officially. The theme bases its canonical URLs off your permalinks and the domain name defined in the settings tab of wp-admin.",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Custom field Name to be used for title",$themename),
|
||||
"id" => $shortname."_seo_single_field_title",
|
||||
"type" => "text",
|
||||
"std" => "seo_title",
|
||||
"desc" => esc_html__("When you define your title using custom fields you should use this value for the custom field Name. The Value of your custom field should be the custom title you would like to use.",$themename),
|
||||
"validation_type" => "nohtml"
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Custom field Name to be used for description",$themename),
|
||||
"id" => $shortname."_seo_single_field_description",
|
||||
"type" => "text",
|
||||
"std" => "seo_description",
|
||||
"desc" => esc_html__("When you define your meta description using custom fields you should use this value for the custom field Name. The Value of your custom field should be the custom description you would like to use.",$themename),
|
||||
"validation_type" => "nohtml"
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Custom field Name to be used for keywords",$themename),
|
||||
"id" => $shortname."_seo_single_field_keywords",
|
||||
"type" => "text",
|
||||
"std" => "seo_keywords",
|
||||
"desc" => esc_html__("When you define your keywords using custom fields you should use this value for the custom field Name. The Value of your custom field should be the meta keywords you would like to use, separated by comas.",$themename),
|
||||
"validation_type" => "nohtml"
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("If custom titles are disabled, choose autogeneration method",$themename),
|
||||
"id" => $shortname."_seo_single_type",
|
||||
"type" => "select",
|
||||
"std" => "Post title | BlogName",
|
||||
"options" => array("Post title | BlogName", "BlogName | Post title", "Post title only"),
|
||||
"desc" => esc_html__("If you are not using cutsom post titles you can still have control over hw your titles are generated. Here you can choose which order you would like your post title and blog name to be displayed, or you can remove the blog name from the title completely.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Define a character to separate BlogName and Post title",$themename),
|
||||
"id" => $shortname."_seo_single_separate",
|
||||
"type" => "text",
|
||||
"std" => " | ",
|
||||
"desc" => esc_html__("Here you can change which character separates your blog title and post name when using autogenerated post titles. Common values are | or -",$themename),
|
||||
"validation_type" => "nohtml"
|
||||
),
|
||||
|
||||
array( "name" => "seo-2",
|
||||
"type" => "subcontent-end",),
|
||||
|
||||
array( "name" => "seo-3",
|
||||
"type" => "subcontent-start",),
|
||||
|
||||
array( "name" => esc_html__(" Enable canonical URL's",$themename),
|
||||
"id" => $shortname."_seo_index_canonical",
|
||||
"type" => "checkbox",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("Canonicalization helps to prevent the indexing of duplicate content by search engines, and as a result, may help avoid duplicate content penalties and pagerank degradation. Some pages may have different URLs all leading to the same place. For example domain.com, domain.com/index.html, and www.domain.com are all different URLs leading to your homepage. From a search engine's perspective these duplicate URLs, which also occur often due to custom permalinks, may be treated individually instead of as a single destination. Defining a canonical URL tells the search engine which URL you would like to use officially. The theme bases its canonical URLs off your permalinks and the domain name defined in the settings tab of wp-admin.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Enable meta descriptions",$themename),
|
||||
"id" => $shortname."_seo_index_description",
|
||||
"type" => "checkbox2",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("Check this box if you want to display meta descriptions on category/archive pages. The description is based off the category description you choose when creating/edit your category in wp-admin.",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Choose title autogeneration method",$themename),
|
||||
"id" => $shortname."_seo_index_type",
|
||||
"type" => "select",
|
||||
"std" => "Category name | BlogName",
|
||||
"options" => array("Category name | BlogName", "BlogName | Category name", "Category name only"),
|
||||
"desc" => esc_html__("Here you can choose how your titles on index pages are generated. You can change which order your blog name and index title are displayed, or you can remove the blog name from the title completely.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Define a character to separate BlogName and Post title",$themename),
|
||||
"id" => $shortname."_seo_index_separate",
|
||||
"type" => "text",
|
||||
"std" => " | ",
|
||||
"desc" => esc_html__("Here you can change which character separates your blog title and index page name when using autogenerated post titles. Common values are | or -",$themename),
|
||||
"validation_type" => "nohtml"
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => "seo-3",
|
||||
"type" => "subcontent-end",),
|
||||
|
||||
array( "name" => "wrap-seo",
|
||||
"type" => "contenttab-wrapend",),
|
||||
|
||||
//-------------------------------------------------------------------------------------//
|
||||
|
||||
array( "name" => "wrap-integration",
|
||||
"type" => "contenttab-wrapstart",),
|
||||
|
||||
array( "type" => "subnavtab-start",),
|
||||
|
||||
array( "name" => "integration-1",
|
||||
"type" => "subnav-tab",
|
||||
"desc" => esc_html__("Code Integration",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "subnavtab-end",),
|
||||
|
||||
array( "name" => "integration-1",
|
||||
"type" => "subcontent-start",),
|
||||
|
||||
array( "name" => esc_html__("Enable header code",$themename),
|
||||
"id" => $shortname."_integrate_header_enable",
|
||||
"type" => "checkbox",
|
||||
"std" => "on",
|
||||
"desc" => esc_html__("Disabling this option will remove the header code below from your blog. This allows you to remove the code while saving it for later use.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Enable body code",$themename),
|
||||
"id" => $shortname."_integrate_body_enable",
|
||||
"type" => "checkbox2",
|
||||
"std" => "on",
|
||||
"desc" => esc_html__("Disabling this option will remove the body code below from your blog. This allows you to remove the code while saving it for later use.",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Enable single top code",$themename),
|
||||
"id" => $shortname."_integrate_singletop_enable",
|
||||
"type" => "checkbox",
|
||||
"std" => "on",
|
||||
"desc" => esc_html__("Disabling this option will remove the single top code below from your blog. This allows you to remove the code while saving it for later use.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Enable single bottom code",$themename),
|
||||
"id" => $shortname."_integrate_singlebottom_enable",
|
||||
"type" => "checkbox2",
|
||||
"std" => "on",
|
||||
"desc" => esc_html__("Disabling this option will remove the single bottom code below from your blog. This allows you to remove the code while saving it for later use.",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Add code to the < head > of your blog",$themename),
|
||||
"id" => $shortname."_integration_head",
|
||||
"type" => "textarea",
|
||||
"std" => "",
|
||||
"desc" => esc_html__("Any code you place here will appear in the head section of every page of your blog. This is useful when you need to add javascript or css to all pages.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Add code to the < body > (good for tracking codes such as google analytics)",$themename),
|
||||
"id" => $shortname."_integration_body",
|
||||
"type" => "textarea",
|
||||
"std" => "",
|
||||
"desc" => esc_html__("Any code you place here will appear in body section of all pages of your blog. This is usefull if you need to input a tracking pixel for a state counter such as Google Analytics.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Add code to the top of your posts",$themename),
|
||||
"id" => $shortname."_integration_single_top",
|
||||
"type" => "textarea",
|
||||
"std" => "",
|
||||
"desc" => esc_html__("Any code you place here will be placed at the top of all single posts. This is useful if you are looking to integrating things such as social bookmarking links.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Add code to the bottom of your posts, before the comments",$themename),
|
||||
"id" => $shortname."_integration_single_bottom",
|
||||
"type" => "textarea",
|
||||
"std" => "",
|
||||
"desc" => esc_html__("Any code you place here will be placed at the top of all single posts. This is useful if you are looking to integrating things such as social bookmarking links.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => "integration-1",
|
||||
"type" => "subcontent-end",),
|
||||
|
||||
array( "name" => "wrap-integration",
|
||||
"type" => "contenttab-wrapend",),
|
||||
|
||||
//-------------------------------------------------------------------------------------//
|
||||
|
||||
array( "name" => "wrap-support",
|
||||
"type" => "contenttab-wrapstart",),
|
||||
|
||||
array( "type" => "subnavtab-start",),
|
||||
|
||||
array( "name" => "support-1",
|
||||
"type" => "subnav-tab",
|
||||
"desc" => esc_html__("Documentation",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "subnavtab-end",),
|
||||
|
||||
array( "name" => "support-1",
|
||||
"type" => "subcontent-start",),
|
||||
|
||||
array( "name" => "installation",
|
||||
"type" => "support",),
|
||||
|
||||
array( "name" => "support-1",
|
||||
"type" => "subcontent-end",),
|
||||
|
||||
array( "name" => "wrap-support",
|
||||
"type" => "contenttab-wrapend",),
|
||||
|
||||
//-------------------------------------------------------------------------------------//
|
||||
|
||||
array( "name" => "wrap-advertisements",
|
||||
"type" => "contenttab-wrapstart",),
|
||||
|
||||
array( "type" => "subnavtab-start",),
|
||||
|
||||
array( "name" => "advertisements-1",
|
||||
"type" => "subnav-tab",
|
||||
"desc" => esc_html__("Manage Un-widgetized Advertisements",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "subnavtab-end",),
|
||||
|
||||
array( "name" => "advertisements-1",
|
||||
"type" => "subcontent-start",),
|
||||
|
||||
array( "name" => esc_html__("Enable Single Post 468x60 banner",$themename),
|
||||
"id" => $shortname."_468_enable",
|
||||
"type" => "checkbox2",
|
||||
"std" => "false",
|
||||
"desc" => esc_html__("Enabling this option will display a 468x60 banner ad on the bottom of your post pages below the single post content. If enabled you must fill in the banner image and destination url below.",$themename)
|
||||
),
|
||||
|
||||
array( "type" => "clearfix",),
|
||||
|
||||
array( "name" => esc_html__("Input 468x60 advertisement banner image",$themename),
|
||||
"id" => $shortname."_468_image",
|
||||
"type" => "text",
|
||||
"std" => "",
|
||||
"desc" => esc_html__("Here you can provide 468x60 banner image url",$themename),
|
||||
"validation_type" => "url"
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Input 468x60 advertisement destination url",$themename),
|
||||
"id" => $shortname."_468_url",
|
||||
"type" => "text",
|
||||
"std" => "",
|
||||
"desc" => esc_html__("Here you can provide 468x60 banner destination url",$themename),
|
||||
"validation_type" => "url"
|
||||
),
|
||||
|
||||
array( "name" => esc_html__("Input 468x60 adsense code",$themename),
|
||||
"id" => $shortname."_468_adsense",
|
||||
"type" => "textarea",
|
||||
"std" => "",
|
||||
"desc" => esc_html__("Place your adsense code here.",$themename)
|
||||
),
|
||||
|
||||
array( "name" => "advertisements-1",
|
||||
"type" => "subcontent-end",),
|
||||
|
||||
array( "name" => "wrap-support",
|
||||
"type" => "contenttab-wrapend",),
|
||||
|
||||
//-------------------------------------------------------------------------------------//
|
||||
|
||||
);
|
||||
27
wp-content/themes/Divi/epanel/post_thumbnails_divi.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
|
||||
global $et_theme_image_sizes;
|
||||
|
||||
$et_theme_image_sizes = array(
|
||||
'400x250' => 'et-pb-post-main-image',
|
||||
'1080x675' => 'et-pb-post-main-image-fullwidth',
|
||||
'400x284' => 'et-pb-portfolio-image',
|
||||
'1080x9999' => 'et-pb-portfolio-image-single',
|
||||
);
|
||||
|
||||
$et_theme_image_sizes = apply_filters( 'et_theme_image_sizes', $et_theme_image_sizes );
|
||||
$crop = apply_filters( 'et_post_thumbnails_crop', true );
|
||||
|
||||
if ( is_array( $et_theme_image_sizes ) ){
|
||||
foreach ( $et_theme_image_sizes as $image_size_dimensions => $image_size_name ){
|
||||
$dimensions = explode( 'x', $image_size_dimensions );
|
||||
|
||||
if ( in_array( $image_size_name, array( 'et-pb-portfolio-image-single' ) ) )
|
||||
$crop = false;
|
||||
|
||||
add_image_size( $image_size_name, $dimensions[0], $dimensions[1], $crop );
|
||||
|
||||
$crop = apply_filters( 'et_post_thumbnails_crop', true );
|
||||
}
|
||||
}
|
||||
284
wp-content/themes/Divi/epanel/shortcodes/css/shortcodes.css
Normal file
@@ -0,0 +1,284 @@
|
||||
/*------------------------------------------------*/
|
||||
/*-------------------[SHORTCODES]-----------------*/
|
||||
/*------------------------------------------------*/
|
||||
|
||||
.et-box { margin: 0px 0px 10px; -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.1); -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.1); box-shadow: 0 1px 1px rgba(0,0,0,0.1); font-size: 14px; position: relative; }
|
||||
.et-box-content { text-shadow: 1px 1px 1px #ffffff; padding: 27px 43px 17px 66px; min-height: 35px; }
|
||||
.et-box-content strong { color: #000000; font-weight: bold; }
|
||||
|
||||
.et-warning:before, .et-download:before, .et-info:before, .et-bio:before, .et-shadow:before { content: ''; position: absolute; top: 32px; left: 28px; }
|
||||
|
||||
.et-info { border: 1px solid #e2e2ba; }
|
||||
.et-info:before { width: 22px; height: 20px; background: url(../images/shortcodes-sprite.png) no-repeat -97px -2px; }
|
||||
.et-info .et-box-content { color: #ada771; background: #f9f9dc; border: 1px solid #fbfbef; -moz-box-shadow: inset 0 0 45px #efefc0; -webkit-box-shadow: inset 0 0 45px #efefc0; box-shadow: inset 0 0 45px #efefc0; }
|
||||
.et-info .et-box-content h1, .et-info .et-box-content h2, .et-info .et-box-content h3, .et-info .et-box-content h4, .et-info .et-box-content h5, .et-info .et-box-content h6 { color: #ada771; }
|
||||
|
||||
.et-warning { border: 1px solid #e0b1b1; }
|
||||
.et-warning:before { width: 17px; height: 17px; background: url(../images/shortcodes-sprite.png) no-repeat -75px -41px; }
|
||||
.et-warning .et-box-content { color: #ad7676; background: #ffd9d5; border: 1px solid #fceeec; -moz-box-shadow: inset 0 0 45px #f0bfba; -webkit-box-shadow: inset 0 0 45px #f0bfba; box-shadow: inset 0 0 45px #f0bfba; }
|
||||
.et-warning .et-box-content h1, .et-warning .et-box-content h2, .et-warning .et-box-content h3, .et-warning .et-box-content h4, .et-warning .et-box-content h5, .et-warning .et-box-content h6 { color: #ad7676; }
|
||||
|
||||
.et-download { border: 1px solid #b9dbb6; }
|
||||
.et-download:before { width: 19px; height: 14px; background: url(../images/shortcodes-sprite.png) no-repeat -23px -19px; }
|
||||
.et-download .et-box-content { color: #7ea57b; background: #dff7dd; border: 1px solid #f1f9f0; -moz-box-shadow: inset 0 0 45px #cbe5c9; -webkit-box-shadow: inset 0 0 45px #cbe5c9; box-shadow: inset 0 0 45px #cbe5c9; }
|
||||
.et-download .et-box-content h1, .et-download .et-box-content h2, .et-download .et-box-content h3, .et-download .et-box-content h4, .et-download .et-box-content h5, .et-download .et-box-content h6 { color: #7ea57b; }
|
||||
|
||||
.et-bio { border: 1px solid #b3d8d3; }
|
||||
.et-bio:before { width: 19px; height: 15px; background: url(../images/shortcodes-sprite.png) no-repeat -23px -2px; top: 33px; }
|
||||
.et-bio .et-box-content { color: #80acb0; background: #ddf5f7; border: 1px solid #f1fafb; -moz-box-shadow: inset 0 0 45px #c6edf0; -webkit-box-shadow: inset 0 0 45px #c6edf0; box-shadow: inset 0 0 45px #c6edf0; }
|
||||
.et-bio .et-box-content h1, .et-bio .et-box-content h2, .et-bio .et-box-content h3, .et-bio .et-box-content h4, .et-bio .et-box-content h5, .et-bio .et-box-content h6 { color: #80acb0; }
|
||||
|
||||
.et-shadow { border: 1px solid #ddd; }
|
||||
.et-shadow .et-box-content { color: #737373; background: #fafafa; border: 1px solid #fafafa; -moz-box-shadow: inset 0 0 45px #e7e7e7; -webkit-box-shadow: inset 0 0 45px #e7e7e7; box-shadow: inset 0 0 45px #e7e7e7; }
|
||||
.et-shadow .et-box-content h1, .et-shadow .et-box-content h2, .et-shadow .et-box-content h3, .et-shadow .et-box-content h4, .et-shadow .et-box-content h5, .et-shadow .et-box-content h6 { color: #737373; }
|
||||
|
||||
|
||||
.et-tooltip { position: relative; }
|
||||
.et-tooltip-box { display: none; color: #6d6e6e; line-height: 18px; background: #ffffff; border: 1px solid #dbdbdb; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; position: absolute; bottom:35px; left: -94px; width: 235px; padding: 20px 25px 22px 25px; -moz-box-shadow:1px 1px 5px 1px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.1); box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.1); }
|
||||
.et-tooltip-arrow { background: url(../images/shortcodes-sprite.png) no-repeat -120px -2px; width: 24px; height: 13px; display: block; position: absolute; bottom: -13px; left: 129px; }
|
||||
|
||||
|
||||
.et-learn-more { background: #fff; border: 1px solid #e7e7e7; margin: 10px 0px; -moz-box-shadow: 1px -1px 0 0 #fff; -webkit-box-shadow: 1px -1px 0 0 #fff; box-shadow: 1px -1px 0 0 #fff; }
|
||||
.et-learn-more h3.heading-more { cursor: pointer; padding: 16px 50px 16px 22px; font-size: 14px; color: #999; letter-spacing: 0px; text-shadow: 1px 1px 0 #fff; position: relative; border-left: 1px solid #fff; border-top: 1px solid #fff; margin: 0 !important; }
|
||||
.et-learn-more h3.heading-more span.et_learnmore_arrow { display: block; position: absolute; top: 0; right: 0; width: 48px; height: 100%; border-left: 1px solid #fff; -moz-box-shadow: -1px 0 0 0 #e7e7e7; -webkit-box-shadow: -1px 0 0 0 #e7e7e7; box-shadow: -1px 0 0 0 #e7e7e7; }
|
||||
.et-learn-more span.et_learnmore_arrow span { display: block; position: absolute; top: 50%; left: 50%; margin-top: -5px; margin-left: -6px; width: 13px; height: 10px; background: url(../images/shortcodes-sprite.png) no-repeat -58px -2px; }
|
||||
.et-learn-more .open span.et_learnmore_arrow span { background-position: -58px -14px; }
|
||||
.et-learn-more .learn-more-content { padding: 30px 30px 20px; visibility: hidden; border-top: 1px solid #e7e7e7; }
|
||||
.et_slidecontent .et-learn-more .learn-more-content { display: block; visibility: hidden; }
|
||||
.et-open .learn-more-content { display: block; visibility: visible !important; }
|
||||
|
||||
.et_shortcodes_controller_nav { border-top: 1px solid #e7e7e7; -moz-box-shadow: inset 1px 1px 0 0 #fff; -webkit-box-shadow: inset 1px 1px 0 0 #fff; box-shadow: inset 1px 1px 0 0 #fff; min-height: 53px; position: relative; }
|
||||
.et_shortcodes_controls_arrows, .et_shortcodes_controls { list-style: none !important; margin: 0 !important; padding: 0 !important; line-height: 26px !important; }
|
||||
.et_shortcodes_controls { text-align: center; padding-top: 20px !important; line-height: 0 !important; }
|
||||
.et_shortcodes_controls li { display: inline-block; margin: 0 3px; }
|
||||
.et_shortcodes_controls a { background: url(../images/shortcodes-sprite.png) no-repeat -45px -1px; width: 11px; height: 11px; display: inline-block; }
|
||||
.et_shortcodes_controls .et_shortcodes_active_control a { background-position: -45px -14px; }
|
||||
.et_shortcodes_controls_arrows a { font-size: 14px; color: #999 !important; text-shadow: 1px 1px 0 #fff; position: absolute; top: 0; }
|
||||
.et_shortcodes_controls_arrows a:hover { color: #4c4c4c; text-decoration: none; }
|
||||
.et_shortcodes_controls_arrows .et_sc_nav_prev { padding: 14px 38px 12px 48px; border-right: 1px solid #e7e7e7; -moz-box-shadow: 1px 0 0 0 #fff; -webkit-box-shadow: 1px 0 0 0 #fff; box-shadow: 1px 0 0 0 #fff; left: 0; }
|
||||
.et_shortcodes_controls_arrows .et_sc_nav_next { padding: 14px 48px 12px 38px; border-left: 1px solid #fff; -moz-box-shadow: -1px 0 0 0 #e7e7e7; -webkit-box-shadow: -1px 0 0 0 #e7e7e7; box-shadow: -1px 0 0 0 #e7e7e7; right: 0; }
|
||||
.et_shortcodes_controls_arrows .et_sc_nav_next span, .et_shortcodes_controls_arrows .et_sc_nav_prev span { top: 21px; }
|
||||
.et_shortcodes_controls_arrows .et_sc_nav_next span { right: 30px; }
|
||||
.et_shortcodes_controls_arrows .et_sc_nav_prev span { left: 30px; }
|
||||
|
||||
.et-simple-slider { background: #fff; border: 1px solid #e7e7e7; margin: 10px 0; position: relative; }
|
||||
.et-simple-slider h1, .et-simple-slider h2, .et-simple-slider h3, .et-simple-slider h4, .et-simple-slider h5, .et-simple-slider h6 { font-family: Century Gothic, Arial, sans-serif; color: #333333; }
|
||||
.et-simple-slides { overflow: hidden; margin: 30px 30px 20px; }
|
||||
.et-simple-slider div.et-slide { display: none; width:100% !important; }
|
||||
|
||||
.one_half, .one_third, .two_third, .one_fourth , .three_fourth { float:left; margin-right:4%; position:relative; }
|
||||
.one_half { width: 48%; }
|
||||
.one_third { width: 30.66%; }
|
||||
.two_third { width:65.32%; }
|
||||
.one_fourth { width:22%; }
|
||||
.three_fourth { width:74%; }
|
||||
|
||||
a.small-button, a.big-button, a.icon-button { display: inline-block; text-shadow: 1px 1px 0 rgba(255,255,255,0.3); -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.4), 1px 1px 1px rgba(0,0,0,0.1); -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.4), 1px 1px 1px rgba(0,0,0,0.1); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.4), 1px 1px 1px rgba(0,0,0,0.1); -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; line-height: 26px; }
|
||||
|
||||
a.small-button, a.icon-button { padding: 6px 14px; font-weight: bold !important; font-size: 12px; margin: 0 5px 8px 0; }
|
||||
a.small-button:hover, a.big-button:hover, a.icon-button:hover { text-decoration: none; }
|
||||
|
||||
a.smallblue, a.bigblue { color: #2b63a8 !important; background: #88bdff; background: -moz-linear-gradient(top, #88bdff 0%, #60a7ff 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#88bdff), color-stop(100%,#60a7ff)); background: -webkit-linear-gradient(top, #88bdff 0%,#60a7ff 100%); background: -o-linear-gradient(top, #88bdff 0%,#60a7ff 100%); background: -ms-linear-gradient(top, #88bdff 0%,#60a7ff 100%); background: linear-gradient(to bottom, #88bdff 0%,#60a7ff 100%); border: 1px solid #3e8ff4; }
|
||||
a.smallblue:hover, a.bigblue:hover { color: #23528c !important; }
|
||||
|
||||
a.smalllightblue { color: #348db6 !important; background: #8edbff; background: -moz-linear-gradient(top, #8edbff 0%, #60cdff 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#8edbff), color-stop(100%,#60cdff)); background: -webkit-linear-gradient(top, #8edbff 0%,#60cdff 100%); background: -o-linear-gradient(top, #8edbff 0%,#60cdff 100%); background: -ms-linear-gradient(top, #8edbff 0%,#60cdff 100%); background: linear-gradient(to bottom, #8edbff 0%,#60cdff 100%); border: 1px solid #51b5e4; }
|
||||
a.smalllightblue:hover { color: #287295 !important; }
|
||||
|
||||
a.smallteal, a.bigteal, a.bigturquoise { color: #3da7a9 !important; background: #61eef0; background: -moz-linear-gradient(top, #61eef0 0%, #59dcde 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#61eef0), color-stop(100%,#59dcde)); background: -webkit-linear-gradient(top, #61eef0 0%,#59dcde 100%); background: -o-linear-gradient(top, #61eef0 0%,#59dcde 100%); background: -ms-linear-gradient(top, #61eef0 0%,#59dcde 100%); background: linear-gradient(to bottom, #61eef0 0%,#59dcde 100%); border: 1px solid #48bec0;}
|
||||
a.smallteal:hover, a.bigteal:hover, a.bigturquoise:hover { color: #309192 !important; }
|
||||
|
||||
a.smallgreen, a.biggreen { color: #569d51 !important; background: #94e48d; background: -moz-linear-gradient(top, #94e48d 0%, #82cf7c 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#94e48d), color-stop(100%,#82cf7c)); background: -webkit-linear-gradient(top, #94e48d 0%,#82cf7c 100%); background: -o-linear-gradient(top, #94e48d 0%,#82cf7c 100%); background: -ms-linear-gradient(top, #94e48d 0%,#82cf7c 100%); background: linear-gradient(to bottom, #94e48d 0%,#82cf7c 100%); border: 1px solid #4dab46; }
|
||||
a.smallgreen:hover, a.biggreen:hover { color: #478542 !important; }
|
||||
|
||||
a.smallorange, a.bigorange { color: #c7822f !important; background: #ffcb8c; background: -moz-linear-gradient(top, #ffcb8c 0%, #ffb660 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffcb8c), color-stop(100%,#ffb660)); background: -webkit-linear-gradient(top, #ffcb8c 0%,#ffb660 100%); background: -o-linear-gradient(top, #ffcb8c 0%,#ffb660 100%); background: -ms-linear-gradient(top, #ffcb8c 0%,#ffb660 100%); background: linear-gradient(to bottom, #ffcb8c 0%,#ffb660 100%); border: 1px solid #db9c51; }
|
||||
a.smallorange:hover, a.bigorange:hover { color: #a96c23 !important; }
|
||||
|
||||
a.smallsilver { color: #595a5a !important; background: #f5f5f5; background: -moz-linear-gradient(top, #f5f5f5 0%, #e2e2e2 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#e2e2e2)); background: -webkit-linear-gradient(top, #f5f5f5 0%,#e2e2e2 100%); background: -o-linear-gradient(top, #f5f5f5 0%,#e2e2e2 100%); background: -ms-linear-gradient(top, #f5f5f5 0%,#e2e2e2 100%); background: linear-gradient(to bottom, #f5f5f5 0%,#e2e2e2 100%); border: 1px solid #c3c3c3; text-shadow: 1px 1px 1px #fff; -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.9), 1px 1px 1px rgba(0,0,0,0.1); -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.9), 1px 1px 1px rgba(0,0,0,0.1); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.9), 1px 1px 1px rgba(0,0,0,0.1); }
|
||||
a.smallsilver:hover { color: #454545 !important; }
|
||||
|
||||
a.smallblack { color: #fff !important; background: #5b5b5b; background: -moz-linear-gradient(top, #5b5b5b 0%, #383838 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5b5b5b), color-stop(100%,#383838)); background: -webkit-linear-gradient(top, #5b5b5b 0%,#383838 100%); background: -o-linear-gradient(top, #5b5b5b 0%,#383838 100%); background: -ms-linear-gradient(top, #5b5b5b 0%,#383838 100%); background: linear-gradient(to bottom, #5b5b5b 0%,#383838 100%); border: 1px solid #0e0e0e; -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2), 1px 1px 1px rgba(0,0,0,0.1); -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2), 1px 1px 1px rgba(0,0,0,0.1); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2), 1px 1px 1px rgba(0,0,0,0.1); text-shadow: -1px -1px 0 #000; }
|
||||
a.smallblack:hover { color: #f7f7f7 !important; }
|
||||
|
||||
a.smallred, a.bigred { color: #9a3e3e !important; background: #ff7979; background: -moz-linear-gradient(top, #ff7979 0%, #ff5f5f 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff7979), color-stop(100%,#ff5f5f)); background: -webkit-linear-gradient(top, #ff7979 0%,#ff5f5f 100%); background: -o-linear-gradient(top, #ff7979 0%,#ff5f5f 100%); background: -ms-linear-gradient(top, #ff7979 0%,#ff5f5f 100%); background: linear-gradient(to bottom, #ff7979 0%,#ff5f5f 100%); border: 1px solid #d85353; }
|
||||
a.smallred:hover, a.bigred:hover { color: #803030 !important; }
|
||||
|
||||
a.smallpink { color: #914d97 !important; background: #e782f1; background: -moz-linear-gradient(top, #e782f1 0%, #d271da 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e782f1), color-stop(100%,#d271da)); background: -webkit-linear-gradient(top, #e782f1 0%,#d271da 100%); background: -o-linear-gradient(top, #e782f1 0%,#d271da 100%); background: -ms-linear-gradient(top, #e782f1 0%,#d271da 100%); background: linear-gradient(to bottom, #e782f1 0%,#d271da 100%); border: 1px solid #b15cb9; }
|
||||
a.smallpink:hover { color: #753b7a !important; }
|
||||
|
||||
a.smallpurple, a.bigpurple { color: #653e9a !important; background: #b279ff; background: -moz-linear-gradient(top, #b279ff 0%, #a35fff 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b279ff), color-stop(100%,#a35fff)); background: -webkit-linear-gradient(top, #b279ff 0%,#a35fff 100%); background: -o-linear-gradient(top, #b279ff 0%,#a35fff 100%);background: -ms-linear-gradient(top, #b279ff 0%,#a35fff 100%); background: linear-gradient(to bottom, #b279ff 0%,#a35fff 100%); border: 1px solid #8b53d8; }
|
||||
a.smallpurple:hover, a.bigpurple:hover { color: #563386 !important; }
|
||||
|
||||
a.big-button { font-weight: normal !important; font-size: 20px; padding: 14px 24px; margin: 8px 6px 8px 0; }
|
||||
a.big-button:hover { text-decoration: none; }
|
||||
|
||||
a.icon-button { color: #595a5a !important; background: #f5f5f5; background: -moz-linear-gradient(top, #f5f5f5 0%, #e1e1e1 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#e1e1e1)); background: -webkit-linear-gradient(top, #f5f5f5 0%,#e1e1e1 100%); background: -o-linear-gradient(top, #f5f5f5 0%,#e1e1e1 100%);background: -ms-linear-gradient(top, #f5f5f5 0%,#e1e1e1 100%); background: linear-gradient(to bottom, #f5f5f5 0%,#e1e1e1 100%); border: 1px solid #c3c3c3; text-shadow: 1px 1px 1px #fff; -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.9), 1px 1px 1px rgba(0,0,0,0.1); -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.9), 1px 1px 1px rgba(0,0,0,0.1); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.9), 1px 1px 1px rgba(0,0,0,0.1); padding-left: 36px; position: relative; }
|
||||
a.icon-button:hover { color: #404040; }
|
||||
a.icon-button span.et-icon { position: absolute; top: 10px; left: 12px; width: 18px; height: 16px; }
|
||||
|
||||
|
||||
a.download-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -3px -2px; width: 17px; height: 20px; top: 7px; }
|
||||
a.search-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -206px -2px; top: 9px; }
|
||||
a.refresh-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -169px -19px; }
|
||||
a.question-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -164px -2px; }
|
||||
a.people-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -151px -33px; height: 17px; top: 9px; }
|
||||
a.warning-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -188px -19px; width: 15px; }
|
||||
a.mail-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -131px -33px; height: 15px; }
|
||||
a.heart-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -131px -18px; width: 14px; height: 13px; top: 12px; left: 14px; }
|
||||
a.paper-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -147px -17px; width: 15px; height: 15px; }
|
||||
a.notice-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -147px -2px; width: 15px; height: 13px; top: 11px; }
|
||||
a.stats-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -184px -2px; width: 15px; height: 14px; top: 11px; }
|
||||
a.rss-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -171px -36px; width: 15px; top: 9px; }
|
||||
|
||||
|
||||
ul.et_shortcodes_mobile_nav { margin: 0 !important; padding: 0 !important; list-style:none outside none !important; display: none; z-index: 2; }
|
||||
ul.et_shortcodes_mobile_nav a { position: relative; }
|
||||
ul.et_shortcodes_mobile_nav span, .et_shortcodes_controls_arrows span { position: absolute; top: 23px; display: block; width: 10px; height: 14px; }
|
||||
ul.et_shortcodes_mobile_nav .et_sc_nav_prev span, .et_shortcodes_controls_arrows .et_sc_nav_prev span { background: url(../images/shortcodes-sprite.png) no-repeat -3px -24px; }
|
||||
ul.et_shortcodes_mobile_nav .et_sc_nav_next span, .et_shortcodes_controls_arrows .et_sc_nav_next span { background: url(../images/shortcodes-sprite.png) no-repeat -3px -40px; }
|
||||
|
||||
.et-tabs-container { background: #fff; border: 1px solid #e7e7e7; position: relative; margin: 50px 0px 15px; }
|
||||
.et-learn-more h3.heading-more, .et-tabs-container .et-tabs-control, .et-tabs-container ul.et_shortcodes_mobile_nav, .et_shortcodes_controller_nav, .et-testimonial-author-info, .et-protected-title, .pricing-heading, .pricing-content-bottom { background: #f9f9f9; background: -moz-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#f5f5f5)); background: -webkit-linear-gradient(top, #f9f9f9 0%,#f5f5f5 100%); background: -o-linear-gradient(top, #f9f9f9 0%,#f5f5f5 100%); background: -ms-linear-gradient(top, #f9f9f9 0%,#f5f5f5 100%); background: linear-gradient(to bottom, #f9f9f9 0%,#f5f5f5 100%); }
|
||||
.et-tabs-container .et-tabs-control, .et-tabs-container ul.et_shortcodes_mobile_nav { margin: 0px !important; overflow: hidden; border-top: 1px solid #fff; position: relative; }
|
||||
.et-tabs-container .et-tabs-control:before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: #e7e7e7; }
|
||||
.et-tabs-container .et-tabs-control li { list-style:none outside none; margin: 0 !important; float: left; padding: 0 !important; border-left: 1px solid #e7e7e7; -moz-box-shadow: -1px 0 0 #fff; -webkit-box-shadow: -1px 0 0 #fff; box-shadow: -1px 0 0 #fff; position: relative; }
|
||||
.et-tabs-container .et-tabs-control li:first-child { border-left: 1px solid #fff; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; }
|
||||
.et-tabs-container .et-tabs-control li a { font-size: 14px; color: #999 !important; text-shadow: 1px 1px 0 #fff !important; display: block; padding: 15px 20px; }
|
||||
.et-tabs-container .et-tabs-control li a:hover { color: #4c4c4c !important; text-decoration: none; }
|
||||
.et-tabs-container .et-tabs-control li.active:before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: #fff; }
|
||||
.et-tabs-container .et-tabs-control li.active a { background: #fff; color: #4c4c4c !important; }
|
||||
.et-tabs-content-wrapper > div { display: none; }
|
||||
.et_sliderfx_slide .et-tabs-content-wrapper { width: 1200%; position: relative; left: 0; }
|
||||
.et_sliderfx_slide .et-tabs-content-wrapper > div { float: left; display: block; height: 1px; visibility: hidden; }
|
||||
.et_sliderfx_slide .et-tabs-content-wrapper > div, .et_sliderfx_fade .et_slidecontent { word-wrap: break-word; }
|
||||
.et_sliderfx_slide .et_shortcode_slide_active { height: auto !important; }
|
||||
.et-tabs-container .et-tabs-content { margin: 30px 30px 20px; }
|
||||
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav { border-bottom: 1px solid #e7e7e7; }
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav li { float: right; line-height: 26px; }
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav a { display: block; padding: 16px 10px 16px 45px; color: #999 !important; font-size: 14px; text-shadow: 1px 1px 0 #fff !important; }
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav a.et_sc_nav_next { padding: 16px 45px 16px 10px; text-align: right; }
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav a:hover { text-decoration: none; color: #4c4c4c !important; }
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav .et_sc_nav_next:before { position: absolute; content: ''; top: 0; left: 0; width: 1px; height: 100%; background: #e7e7e7; -moz-box-shadow: 1px 0 0 #fff; -webkit-box-shadow: 1px 0 0 #fff; box-shadow: 1px 0 0 #fff; }
|
||||
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav .et_sc_nav_next span { right: 28px; }
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav .et_sc_nav_prev span { left: 28px; }
|
||||
|
||||
.et-tabs-container, .tabs-left, .et-simple-slider, .et-image-slider, .et-testimonial-box, .author-shortcodes, .et-protected { -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
|
||||
|
||||
.tabs-left { background: #fff; border: 1px solid #e7e7e7; position: relative; margin-bottom: 15px; }
|
||||
.tabs-left .et-tabs-control, .tabs-left ul.et_shortcodes_mobile_nav { width: 149px; border-top: 1px solid #fff; float: left; list-style:none outside none !important; margin:0 !important; position: relative; }
|
||||
.tabs-left ul.et_shortcodes_mobile_nav { position: absolute; top: 0; left: 0; }
|
||||
.tabs-left .et-tabs-control li, .tabs-left ul.et_shortcodes_mobile_nav li { padding-right: 0 !important; padding-left: 0 !important; background: none !important; list-style: none !important; border-bottom: 1px solid #e7e7e7; -moz-box-shadow: 0 1px 0 0 #fff; -webkit-box-shadow: 0 1px 0 0 #fff; box-shadow: 0 1px 0 0 #fff; }
|
||||
.tabs-left .et-tabs-control li a { color: #999 !important; font-size: 14px; text-shadow: 1px 1px 0 #fff !important; display: block; padding: 15px 10px 15px 20px; }
|
||||
.tabs-left .et-tabs-control li.active a { background: #fff; margin-right: -1px; }
|
||||
.tabs-left .et-tabs-control li a:hover, .tabs-left .et-tabs-control li.active a { text-decoration: none; color: #4c4c4c !important; }
|
||||
.tabs-left .et-tabs-content { padding: 30px 30px 20px; position: relative; }
|
||||
.tabs-left.et_sliderfx_slide .et-tabs-content-main-wrap { overflow: hidden; }
|
||||
.tabs-left .et-tabs-content h3 { padding-bottom: 14px; color: #333333; }
|
||||
.et_left_tabs_bg { position: absolute; top: 0; left: 0; width: 148px; height: 100%; border-right: 1px solid #e7e7e7; border-left: 1px solid #fff; background: #f5f5f5; background: -moz-linear-gradient(left, #f9f9f9 0%, #f5f5f5 100%); background: -webkit-gradient(linear, left top, right top, color-stop(0%,#f9f9f9), color-stop(100%,#f5f5f5)); background: -webkit-linear-gradient(left, #f9f9f9 0%,#f5f5f5 100%); background: -o-linear-gradient(left, #f9f9f9 0%,#f5f5f5 100%); background: -ms-linear-gradient(left, #f9f9f9 0%,#f5f5f5 100%); background: linear-gradient(to right, #f9f9f9 0%,#f5f5f5 100%); }
|
||||
|
||||
.tabs-left ul.et_shortcodes_mobile_nav a { text-indent: -9999px; }
|
||||
.tabs-left ul.et_shortcodes_mobile_nav a span { top: 50%; margin-top: -7px; }
|
||||
.tabs-left ul.et_shortcodes_mobile_nav .et_sc_nav_next span { right: 50%; margin-right: -4px; }
|
||||
.tabs-left ul.et_shortcodes_mobile_nav .et_sc_nav_prev span { left: 50%; margin-left: -4px; }
|
||||
|
||||
.author-shortcodes { background: #fff; border: 1px solid #e7e7e7; color: #363636; font-size: 14px; margin-bottom: 10px; }
|
||||
.author-shortcodes .author-inner { position: relative; padding: 30px 30px 20px 117px; min-height: 60px; }
|
||||
.author-shortcodes .author-image { position: absolute; top: 32px; left: 30px; width: 60px; height: 60px; }
|
||||
.author-shortcodes .author-image img { max-width: 100%; height: auto; width: auto; }
|
||||
.author-shortcodes .author-image .author-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-box-shadow: inset 0 0 4px rgba(0,0,0,0.5); -moz-box-shadow: inset 0 0 4px rgba(0,0,0,0.5); box-shadow: inset 0 0 4px rgba(0,0,0,0.5); }
|
||||
|
||||
.et-protected { border: 1px solid #e7e7e7; width: 390px; background: #fff; margin-bottom: 10px; }
|
||||
.et-protected-title { border-left: 1px solid #fff; border-top: 1px solid #fff; border-bottom: 1px solid #e7e7e7; padding: 18px 10px 17px 50px; position: relative; color: #999; text-shadow: 0 1px 0 #fff; font-size: 14px; }
|
||||
.et-protected-title:before { content: ''; position: absolute; top: 16px; left: 20px; background: url(../images/shortcodes-sprite.png) no-repeat -23px -36px; width: 17px; height: 19px; }
|
||||
.et-protected-form { padding: 32px 37px 32px 32px; text-align: right; }
|
||||
.et-protected-form p { padding-bottom: 16px; }
|
||||
.et-protected-form p label { position: relative; }
|
||||
.et-protected-form p .et_protected_icon { width: 10px; height: 20px; position: absolute; top: 2px; left: 18px; background: url(../images/shortcodes-sprite.png) no-repeat -190px -37px; display: block; }
|
||||
.et-protected-form p .et_protected_password { height: 23px; background-position: -275px -2px; }
|
||||
.et-protected-form label span { display: none; }
|
||||
.et-protected-form p input { margin: 0 !important; border: 1px solid #e7e7e7; color: #363636; font-size: 14px; background: #f3f3f3; background: -moz-linear-gradient(top, #f3f3f3 1%, #fefefe 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#f3f3f3), color-stop(100%,#fefefe)); background: -webkit-linear-gradient(top, #f3f3f3 1%,#fefefe 100%); background: -o-linear-gradient(top, #f3f3f3 1%,#fefefe 100%); background: -ms-linear-gradient(top, #f3f3f3 1%,#fefefe 100%); background: linear-gradient(to bottom, #f3f3f3 1%,#fefefe 100%); padding: 20px 20px 20px 40px; width: 100%; -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0.1); -moz-box-shadow: inset 0 0 1px rgba(0,0,0,0.1); box-shadow: inset 0 0 1px rgba(0,0,0,0.1); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; position: relative; }
|
||||
|
||||
.et-protected-form input.etlogin-button { background: #f9f9f9; background: -moz-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#f5f5f5)); background: -webkit-linear-gradient(top, #f9f9f9 0%,#f5f5f5 100%); background: -o-linear-gradient(top, #f9f9f9 0%,#f5f5f5 100%); background: -ms-linear-gradient(top, #f9f9f9 0%,#f5f5f5 100%); background: linear-gradient(to bottom, #f9f9f9 0%,#f5f5f5 100%); border: 1px solid #e7e7e7; padding: 14px 24px; color: #999; text-shadow: 0 1px 0 #fff; font-size: 14px; -webkit-box-shadow: inset 1px 1px 0 0 #fff; -moz-box-shadow: inset 1px 1px 0 0 #fff; box-shadow: inset 1px 1px 0 0 #fff; }
|
||||
|
||||
.et-simple-slides .et_slidecontent { width: auto; }
|
||||
|
||||
.et-image-slides { background: #555; }
|
||||
.et-image-slider { background: #fff; border: 1px solid #e7e7e7; margin-bottom:25px; }
|
||||
.et-image-slide { position: relative; }
|
||||
.et-image-slider img { display: block; width: auto; margin: 0 auto; height: auto; }
|
||||
.et-image-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.6); -moz-box-shadow: inset 0 0 5px rgba(0,0,0,0.6); box-shadow: inset 0 0 5px rgba(0,0,0,0.6); }
|
||||
|
||||
.et-learn-more, .et-tabs-container, .tabs-left, .et-simple-slider, .author-shortcodes, .et-tooltip-box { color:#201F1F !important; text-shadow: none !important; }
|
||||
.et-learn-more a, .et-tabs-container a, .tabs-left a, .et-simple-slider a, .author-shortcodes a, .et-tooltip-box a { text-shadow: none !important; }
|
||||
|
||||
.et-custom-list ul { list-style: none !important; list-style-image: none !important; padding-left: 0 !important; margin: 0 !important; line-height: 26px; }
|
||||
.et-custom-list ul li { padding-left: 28px !important; margin: 5px 0 !important; list-style: none !important; position: relative; }
|
||||
.et-custom-list ul li:before { content: ''; position: absolute; top: 5px; left: 0; background: url(../images/shortcodes-sprite.png) no-repeat -74px -2px; width: 22px; height: 18px; }
|
||||
.etlist-x ul li:before { content: ''; position: absolute; top: 6px; left: 0; background: url(../images/shortcodes-sprite.png) no-repeat -75px -21px; width: 22px; height: 18px; }
|
||||
.etlist-dot ul li { padding-left: 25px !important; }
|
||||
.etlist-dot ul li:before { content: ''; position: absolute; top: 9px; left: 0; background: url(../images/shortcodes-sprite.png) no-repeat -230px -3px; width: 10px; height: 9px; }
|
||||
.et-custom-list ul li ul { padding: 2px 0px !important; margin: 0 !important; }
|
||||
|
||||
.et-pricing { margin: 40px 0 10px; }
|
||||
.pricing-table { float: left; width: 25%; margin-bottom: 22px; position: relative; margin-left: -1px; }
|
||||
.pricing-table-wrap { border: 1px solid #e7e7e7; border-bottom: none; }
|
||||
.pricing-heading { border-bottom: 1px solid #e7e7e7; padding: 23px 10px 22px; text-shadow: 1px 1px 0 #fff; font-size: 12px; color: #999; text-align: center; -moz-box-shadow: inset 1px 1px 0 0 #fff; -webkit-box-shadow: inset 1px 1px 0 0 #fff; box-shadow: inset 1px 1px 0 0 #fff; }
|
||||
.pricing-title { text-transform: uppercase; font-size: 20px; color: #53b4c7 !important; font-weight: bold; text-shadow: none !important; }
|
||||
.pricing-heading p { padding-bottom: 0 !important; }
|
||||
|
||||
.pricing-table ul.pricing { padding: 0 !important; list-style: none !important; margin: 0 !important; list-style-image: none !important; line-height: 26px; }
|
||||
.pricing-table ul.pricing li { list-style: none !important; border-top: 1px solid #fff; border-bottom: 1px solid #e7e7e7; background: #f5f5f5; background: -moz-linear-gradient(top, #f5f5f5 0%, #fefefe 7%, #ffffff 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(7%,#fefefe), color-stop(100%,#ffffff)); background: -webkit-linear-gradient(top, #f5f5f5 0%,#fefefe 7%,#ffffff 100%); background: -o-linear-gradient(top, #f5f5f5 0%,#fefefe 7%,#ffffff 100%); background: -ms-linear-gradient(top, #f5f5f5 0%,#fefefe 7%,#ffffff 100%); background: linear-gradient(to bottom, #f5f5f5 0%,#fefefe 7%,#ffffff 100%); padding: 14px 7px 14px 63px; position: relative; font-size: 12px; color: #363636; text-shadow: none !important; }
|
||||
.pricing-table ul.pricing li span.pricing-mark { position: absolute; top: 19px; left: 30px; width: 22px; height: 18px; background: url(../images/shortcodes-sprite.png) no-repeat -74px -2px; }
|
||||
.pricing-table ul.pricing li.x-mark span.pricing-mark { background-position: -74px -20px; }
|
||||
|
||||
.pricing-content-bottom { border-top: 1px solid #fff; border-bottom: 1px solid #e7e7e7; -webkit-box-shadow: inset 1px 0 0 0 #fff; -moz-box-shadow: inset 1px 0 0 0 #fff; box-shadow: inset 1px 0 0 0 #fff; padding: 20px 5px 43px; text-align: center; }
|
||||
span.et-price { font-size: 48px; color: #94c65c; text-shadow: 0 1px 0 #fff; font-family: Georgia, serif; }
|
||||
span.et-price sup { font-size: 24px; bottom: 13px; left: 1px; }
|
||||
span.et-price span.dollar-sign { font-size: 36px; }
|
||||
.pricing-table a.icon-button { margin: 0; padding-left: 15px; position: absolute; bottom: -13px; left: 50%; }
|
||||
.pricing-table a.icon-button { visibility: hidden; }
|
||||
.pricing-big { top: -20px; -webkit-box-shadow: 0 0 18px rgba(0,0,0,0.2); -moz-box-shadow: 0 0 18px rgba(0,0,0,0.2); box-shadow: 0 0 18px rgba(0,0,0,0.2); z-index: 2; }
|
||||
.pricing-big .pricing-table-wrap { border-color: #d6d5d5; }
|
||||
.pricing-big .pricing-heading { padding-top: 43px; }
|
||||
.pricing-big .pricing-content-bottom { padding-bottom: 63px; border-bottom: 1px solid #d6d5d5; }
|
||||
|
||||
.et-testimonial-box { border: 1px solid #e7e7e7; background: #fff; position: relative; margin: 10px 0 45px; }
|
||||
.et-testimonial-author-info { border-left: 1px solid #fff; border-top: 1px solid #fff; border-bottom: 1px solid #e7e7e7; padding: 20px 20px 15px; text-shadow: 0 1px 0 #fff; }
|
||||
.t-img { width: 60px; height: 60px; float: left; margin: 0 25px 5px 0; -moz-box-shadow: 0 1px 0 0 #fff; -webkit-box-shadow: 0 1px 0 0 #fff; box-shadow: 0 1px 0 0 #fff; position: relative; }
|
||||
.t-img img { max-width: 100%; height: auto; }
|
||||
.t-overlay { width: 100%; height: 100%; box-shadow: inset 0 0 4px rgba(0,0,0,0.4); display: block; position: absolute; top: 0; left: 0; }
|
||||
.t-author, .t-position { display: block; }
|
||||
.t-author { font-size: 18px; color: #999; padding: 10px 0 5px; }
|
||||
.t-position { color: #595959; }
|
||||
.t-position, .et-testimonial { font-family: Georgia, serif; font-style: italic; font-size: 14px; }
|
||||
.et-testimonial { padding: 43px 35px 30px 77px; color: #363636; position: relative; text-shadow: none !important; }
|
||||
.et-testimonial:before { content: ''; position: absolute; top: 43px; left: 35px; width: 25px; height: 19px; background: url(../images/shortcodes-sprite.png) no-repeat -45px -35px; }
|
||||
.t-bottom-arrow { background: url(../images/shortcodes-sprite.png) no-repeat -97px -25px; width: 31px; height: 32px; position: absolute; bottom: -32px; right: 40px; }
|
||||
|
||||
|
||||
.et-dropcap { font-size: 48px; float: left; display:block; margin:0 7px 0 0; line-height: 1; }
|
||||
|
||||
.et_quote { padding-left: 57px; min-height: 40px; font-family: Georgia, serif; font-size: 14px; font-style: italic; position: relative; line-height: 1.5; margin-bottom: 10px; }
|
||||
.et_quote .et_quote_sign { background: url(../images/shortcodes-sprite.png) no-repeat -206px -20px; position: absolute; top: 0; left: 0; display: block; width: 40px; height: 34px; }
|
||||
.quote-center .et_quote_sign { background-position: -251px -2px; width: 20px; height: 16px; top: 3px; }
|
||||
.quote-center .et_quote_additional_sign { background: url(../images/shortcodes-sprite.png) no-repeat -251px -22px; position: absolute; top: 3px; right: 13px; display: block; width: 20px; height: 16px; }
|
||||
.et_right_quote { width: 100%; }
|
||||
.quote-center { font-size: 24px; line-height: 1.2; text-align: center; padding-left: 30px; }
|
||||
.quote-center .et_right_quote { padding-right: 30px; width: 95%; }
|
||||
|
||||
|
||||
.et-tabs-container .et-tabs-control { padding: 0; }
|
||||
.tabs-left .et-tabs-control { padding-left: 0; }
|
||||
.author-info h1, .author-info h2, .author-info h3, .author-info h4, .author-info h5, .author-info h6 { color:#201F1F !important; text-shadow: none !important; }
|
||||
|
||||
.et-tabs-container .et-tabs-control li a, .tabs-left .et-tabs-control li a { text-decoration: none !important; }
|
||||
|
||||
a.big-button, a.small-button, a.icon-button { cursor: pointer; }
|
||||
|
||||
.clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
|
||||
* html .clearfix { zoom: 1; } /* IE6 */
|
||||
*:first-child+html .clearfix { zoom: 1; } /* IE7 */
|
||||
|
||||
.et_column_last { margin-right: 0px !important; clear:right; }
|
||||
.clear { clear:both; }
|
||||
@@ -0,0 +1,61 @@
|
||||
/* Responsive Shortcodes */
|
||||
body.et_right_sidebar .pricing-table, body.et_left_sidebar .pricing-table { width: 50%; }
|
||||
@media all and ( max-width: 959px ) {
|
||||
body.et_right_sidebar .one_third, body.et_right_sidebar .one_half, body.et_right_sidebar .one_third, body.et_right_sidebar .two_third, body.et_right_sidebar .one_fourth, body.et_right_sidebar .three_fourth,
|
||||
body.et_left_sidebar .one_third, body.et_left_sidebar .one_half, body.et_left_sidebar .one_third, body.et_left_sidebar .two_third, body.et_left_sidebar .one_fourth, body.et_left_sidebar .three_fourth { float: none; margin-right: 0; width: auto; margin-bottom: 10px; }
|
||||
|
||||
body.et_right_sidebar .et-testimonial-box, body.et_right_sidebar .et-protected,
|
||||
body.et_left_sidebar .et-testimonial-box, body.et_left_sidebar .et-protected { width: auto !important; }
|
||||
body.et_right_sidebar .et-protected-form,
|
||||
body.et_left_sidebar .et-protected-form { padding: 15px !important; }
|
||||
}
|
||||
@media all and (min-width: 768px) and (max-width: 959px) {
|
||||
body.et_full_width_page .pricing-table { width: 50%; }
|
||||
}
|
||||
@media all and ( max-width: 767px ) {
|
||||
.et_left_tabs_bg { width: 50px; }
|
||||
.tabs-left .et-tabs-control, .et-tabs-container .et-tabs-control { display: none; }
|
||||
.tabs-left ul.et_shortcodes_mobile_nav { display: block; width: 51px; }
|
||||
.tabs-left ul.et_shortcodes_mobile_nav a { display: block; height: 49px; width: 100%; }
|
||||
.tabs-left .et-tabs-content { margin-left: 75px; }
|
||||
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav { display: block; }
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav li { width: 50%; }
|
||||
|
||||
.et-pricing { margin-top: 0; }
|
||||
body.et_right_sidebar .pricing-table, body.et_left_sidebar .pricing-table, body.et_full_width_page .pricing-table { width: 100%; margin-bottom: 35px; }
|
||||
.pricing-big { top: 0; }
|
||||
|
||||
body.et_full_width_page .one_third, body.et_full_width_page .one_half, body.et_full_width_page .one_third, body.et_full_width_page .two_third, body.et_full_width_page .one_fourth, body.et_full_width_page .three_fourth { float: none; margin-right: 0; width: auto; margin-bottom: 10px; }
|
||||
|
||||
body.et_full_width_page .et-testimonial-box, body.et_full_width_page .et-protected { width: auto !important; }
|
||||
body.et_full_width_page .et-protected-form { padding: 15px !important; }
|
||||
|
||||
body.et_right_sidebar .author-shortcodes .author-inner,
|
||||
body.et_left_sidebar .author-shortcodes .author-inner { padding: 27px 27px 17px; }
|
||||
body.et_right_sidebar .author-shortcodes .author-image,
|
||||
body.et_left_sidebar .author-shortcodes .author-image { position: relative; top: 0; left: 0; margin-bottom: 10px; }
|
||||
|
||||
body.et_right_sidebar .quote-center .et_quote_additional_sign,
|
||||
body.et_left_sidebar .quote-center .et_quote_additional_sign { right: -13px; }
|
||||
body.et_right_sidebar .et_shortcodes_controls,
|
||||
body.et_left_sidebar .et_shortcodes_controls { display: none; }
|
||||
body.et_right_sidebar .et_shortcodes_controls_arrows a,
|
||||
body.et_left_sidebar .et_shortcodes_controls_arrows a { text-indent: -9999px; }
|
||||
}
|
||||
@media all and ( max-width: 479px ) {
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav a.et_sc_nav_prev { padding-left: 26px; }
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav .et_sc_nav_prev span { left: 10px; }
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav a.et_sc_nav_next { padding-right: 26px; }
|
||||
.et-tabs-container ul.et_shortcodes_mobile_nav .et_sc_nav_next span { right: 10px; }
|
||||
|
||||
body.et_full_width_page .author-shortcodes .author-inner { padding: 27px 27px 17px; }
|
||||
body.et_full_width_page .author-shortcodes .author-image { position: relative; top: 0; left: 0; margin-bottom: 10px; }
|
||||
body.et_full_width_page .quote-center .et_quote_additional_sign { right: -13px; }
|
||||
body.et_full_width_page .et_shortcodes_controls { display: none; }
|
||||
body.et_full_width_page .et_shortcodes_controls_arrows a { text-indent: -9999px; }
|
||||
|
||||
.et-box:before, .et-testimonial:before { display: none; }
|
||||
.et-box-content { padding: 27px 27px 17px 27px; }
|
||||
.et-testimonial { padding: 25px; }
|
||||
}
|
||||
BIN
wp-content/themes/Divi/epanel/shortcodes/images/icon-author.gif
Normal file
|
After Width: | Height: | Size: 621 B |
BIN
wp-content/themes/Divi/epanel/shortcodes/images/icon-boxes.gif
Normal file
|
After Width: | Height: | Size: 221 B |
BIN
wp-content/themes/Divi/epanel/shortcodes/images/icon-buttons.gif
Normal file
|
After Width: | Height: | Size: 165 B |
BIN
wp-content/themes/Divi/epanel/shortcodes/images/icon-tabs.gif
Normal file
|
After Width: | Height: | Size: 140 B |
BIN
wp-content/themes/Divi/epanel/shortcodes/images/icon-toggle.gif
Normal file
|
After Width: | Height: | Size: 165 B |
|
After Width: | Height: | Size: 17 KiB |
@@ -0,0 +1,80 @@
|
||||
(function(){
|
||||
tinymce.create('tinymce.plugins.etquicktags', {
|
||||
/**
|
||||
* Initializes the plugin, this will be executed after the plugin has been created.
|
||||
* This call is done before the editor instance has finished it's initialization so use the onInit event
|
||||
* of the editor instance to intercept that event.
|
||||
*
|
||||
* @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
|
||||
* @param {string} url Absolute URL to where the plugin is located.
|
||||
*/
|
||||
init : function(ed, url) {
|
||||
ed.addButton('et_learn_more', {
|
||||
title : et_quicktags_strings.learn_more,
|
||||
image : url + '/../images/icon-toggle.gif',
|
||||
onclick : function() {
|
||||
CustomButtonClick('learn_more');
|
||||
}
|
||||
});
|
||||
ed.addButton('et_box', {
|
||||
title : et_quicktags_strings.box,
|
||||
image : url + '/../images/icon-boxes.gif',
|
||||
onclick : function() {
|
||||
CustomButtonClick('box');
|
||||
}
|
||||
});
|
||||
ed.addButton('et_button', {
|
||||
title : et_quicktags_strings.button,
|
||||
image : url + '/../images/icon-buttons.gif',
|
||||
onclick : function() {
|
||||
CustomButtonClick('button');
|
||||
}
|
||||
});
|
||||
ed.addButton('et_tabs', {
|
||||
title : et_quicktags_strings.tabs,
|
||||
image : url + '/../images/icon-tabs.gif',
|
||||
onclick : function() {
|
||||
CustomButtonClick('tabs');
|
||||
}
|
||||
});
|
||||
ed.addButton('et_author', {
|
||||
title : et_quicktags_strings.author,
|
||||
image : url + '/../images/icon-author.gif',
|
||||
onclick : function() {
|
||||
CustomButtonClick('author');
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* Creates control instances based in the incomming name. This method is normally not
|
||||
* needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
|
||||
* but you sometimes need to create more complex controls like listboxes, split buttons etc then this
|
||||
* method can be used to create those.
|
||||
*
|
||||
* @param {String} n Name of the control to create.
|
||||
* @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
|
||||
* @return {tinymce.ui.Control} New control instance or null if no control was created.
|
||||
*/
|
||||
createControl : function(n, cm) {
|
||||
return null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns information about the plugin as a name/value array.
|
||||
* The current keys are longname, author, authorurl, infourl and version.
|
||||
*
|
||||
* @return {Object} Name/value array containing information about the plugin.
|
||||
*/
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : "Elegant Themes " + et_quicktags_strings.shortcodes,
|
||||
author : 'Elegant Themes',
|
||||
authorurl : 'http://www.elegantthemes.com/',
|
||||
infourl : 'http://www.elegantthemes.com/',
|
||||
version : "1.0"
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
tinymce.PluginManager.add('et_quicktags', tinymce.plugins.etquicktags);
|
||||
})()
|
||||
@@ -0,0 +1 @@
|
||||
(function(){tinymce.create("tinymce.plugins.etquicktags",{init:function(e,t){e.addButton("et_learn_more",{title:et_quicktags_strings.learn_more,image:t+"/../images/icon-toggle.gif",onclick:function(){CustomButtonClick("learn_more")}});e.addButton("et_box",{title:et_quicktags_strings.box,image:t+"/../images/icon-boxes.gif",onclick:function(){CustomButtonClick("box")}});e.addButton("et_button",{title:et_quicktags_strings.button,image:t+"/../images/icon-buttons.gif",onclick:function(){CustomButtonClick("button")}});e.addButton("et_tabs",{title:et_quicktags_strings.tabs,image:t+"/../images/icon-tabs.gif",onclick:function(){CustomButtonClick("tabs")}});e.addButton("et_author",{title:et_quicktags_strings.author,image:t+"/../images/icon-author.gif",onclick:function(){CustomButtonClick("author")}})},createControl:function(e,t){return null},getInfo:function(){return{longname:"Elegant Themes "+et_quicktags_strings.shortcodes,author:"Elegant Themes",authorurl:"http://www.elegantthemes.com/",infourl:"http://www.elegantthemes.com/",version:"1.0"}}});tinymce.PluginManager.add("et_quicktags",tinymce.plugins.etquicktags)})()
|
||||
@@ -0,0 +1,361 @@
|
||||
// et_switcher plugin v2.2
|
||||
(function($)
|
||||
{
|
||||
$.fn.et_shortcodes_switcher = function(options)
|
||||
{
|
||||
var defaults =
|
||||
{
|
||||
slides: '>div',
|
||||
activeClass: 'active',
|
||||
linksNav: '',
|
||||
findParent: true, //use parent elements to define active states
|
||||
lengthElement: 'li', //parent element, used only if findParent is set to true
|
||||
useArrows: false,
|
||||
arrowLeft: 'a#prev-arrow',
|
||||
arrowRight: 'a#next-arrow',
|
||||
auto: false,
|
||||
autoSpeed: 5000,
|
||||
slidePadding: '',
|
||||
pauseOnHover: true,
|
||||
fx: 'fade',
|
||||
sliderType: ''
|
||||
}
|
||||
|
||||
var options = $.extend(defaults, options);
|
||||
|
||||
return this.each(function()
|
||||
{
|
||||
var slidesContainer = jQuery(this).parent().css('position','relative'),
|
||||
$slides = jQuery(this).css({'overflow':'hidden','position':'relative'}),
|
||||
$slides_wrapper_box = slidesContainer.find('.et-tabs-content-wrapper'),
|
||||
$slides_wrapper = $slides_wrapper_box.parent(),
|
||||
$slide = $slides.find( '.et-tabs-content-wrapper' + options.slides),
|
||||
slidesNum = $slide.length,
|
||||
zIndex = slidesNum,
|
||||
currentPosition = 1,
|
||||
slideHeight = 0,
|
||||
$activeSlide,
|
||||
$nextSlide,
|
||||
slides_wrapper_width = $slides_wrapper.width(),
|
||||
$et_shortcodes_mobile_nav,
|
||||
$et_shortcodes_mobile_controls;
|
||||
|
||||
if (options.fx === 'slide') {
|
||||
$slides_wrapper_box.width( ( ( slidesNum + 2 ) * 200 ) + '%' );
|
||||
$slide.css({ 'width' : slides_wrapper_width, 'visibility' : 'visible' });
|
||||
|
||||
$slides_wrapper_box.append( $slide.filter(':first').clone().removeClass().addClass('et_slidecontent_cloned') );
|
||||
$slides_wrapper_box.prepend( $slide.filter(':last').clone().removeClass().addClass('et_slidecontent_cloned') );
|
||||
|
||||
$slides_wrapper_box.css( 'left', -slides_wrapper_width );
|
||||
}
|
||||
|
||||
$slide.filter(':first').css({'display':'block'}).addClass('et_shortcode_slide_active');
|
||||
|
||||
if (options.slidePadding != '') $slide.css('padding',options.slidePadding);
|
||||
|
||||
if (options.linksNav != '') {
|
||||
var linkSwitcher = jQuery(options.linksNav);
|
||||
|
||||
var linkSwitcherTab = '';
|
||||
if (options.findParent) linkSwitcherTab = linkSwitcher.parent();
|
||||
else linkSwitcherTab = linkSwitcher;
|
||||
|
||||
if (!linkSwitcherTab.filter('.active').length) linkSwitcherTab.filter(':first').addClass('active');
|
||||
|
||||
linkSwitcher.click(function(){
|
||||
|
||||
var targetElement, orderNum;
|
||||
|
||||
if (options.findParent) targetElement = jQuery(this).parent();
|
||||
else targetElement = jQuery(this);
|
||||
|
||||
orderNum = targetElement.prevAll(options.lengthElement).length+1;
|
||||
|
||||
if (orderNum > currentPosition) gotoSlide(orderNum, 1);
|
||||
else gotoSlide(orderNum, -1);
|
||||
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if (options.useArrows) {
|
||||
var $right_arrow = jQuery(options.arrowRight),
|
||||
$left_arrow = jQuery(options.arrowLeft);
|
||||
|
||||
$right_arrow.click( function(){
|
||||
et_shortcodes_go_to_next_slide();
|
||||
return false;
|
||||
} );
|
||||
|
||||
$left_arrow.click( function(){
|
||||
et_shortcodes_go_to_previous_slide();
|
||||
return false;
|
||||
} );
|
||||
|
||||
}
|
||||
|
||||
function changeTab(){
|
||||
if (linkSwitcherTab != '') {
|
||||
linkSwitcherTab.siblings().removeClass('active');
|
||||
linkSwitcherTab.filter(':eq('+(currentPosition-1)+')').addClass('active');
|
||||
}
|
||||
}
|
||||
|
||||
function gotoSlide(slideNumber,dir){
|
||||
if ($slide.filter(':animated').length) return;
|
||||
|
||||
$activeSlide = $slide.parent().find('.et_slidecontent').filter(':eq('+(currentPosition-1)+')');
|
||||
|
||||
if (currentPosition === slideNumber) return;
|
||||
|
||||
$activeSlide.removeClass('et_shortcode_slide_active');
|
||||
|
||||
$nextSlide = $slide.parent().find('.et_slidecontent').filter(':eq('+(slideNumber-1)+')').addClass('et_shortcode_slide_active');
|
||||
|
||||
if ((currentPosition > slideNumber || currentPosition === 1) && (dir === -1)) {
|
||||
if (options.fx === 'slide') slideBack(500);
|
||||
if (options.fx === 'fade') slideFade(500);
|
||||
} else {
|
||||
if (options.fx === 'slide') slideForward(500);
|
||||
if (options.fx === 'fade') slideFade(500);
|
||||
}
|
||||
|
||||
currentPosition = $nextSlide.prevAll('.et_slidecontent').length + 1;
|
||||
|
||||
if (options.linksNav != '') changeTab();
|
||||
|
||||
if ( options.sliderType === 'images' || options.sliderType === 'simple' ){
|
||||
$et_shortcodes_mobile_controls.find('li').removeClass('et_shortcodes_active_control');
|
||||
$et_shortcodes_mobile_controls.find('li').eq(currentPosition-1).addClass('et_shortcodes_active_control');
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (options.auto) {
|
||||
auto_rotate();
|
||||
var pauseSlider = false;
|
||||
}
|
||||
|
||||
if (options.pauseOnHover) {
|
||||
slidesContainer.hover(function(){
|
||||
pauseSlider = true;
|
||||
},function(){
|
||||
pauseSlider = false;
|
||||
});
|
||||
}
|
||||
|
||||
function auto_rotate(){
|
||||
interval_shortcodes = setInterval(function(){
|
||||
if (!pauseSlider) {
|
||||
if (currentPosition === slidesNum)
|
||||
gotoSlide(1,1);
|
||||
else
|
||||
gotoSlide(currentPosition+1,1);
|
||||
|
||||
if (options.linksNav != '') changeTab();
|
||||
}
|
||||
},options.autoSpeed);
|
||||
}
|
||||
|
||||
function slideFade(speed){
|
||||
$activeSlide.css( { 'display' : 'none', 'opacity' : '0' } );
|
||||
|
||||
$nextSlide.css({'opacity' : '0', 'display':'block'}).animate( { opacity : 1 }, 700 );
|
||||
}
|
||||
|
||||
function slideForward(speed){
|
||||
var next_slide_order = $nextSlide.prevAll('.et_slidecontent').length+1,
|
||||
go_to_first_slide = false;
|
||||
|
||||
if ( $activeSlide.next('.et_slidecontent_cloned').length ) {
|
||||
next_slide_order = $activeSlide.prevAll().length+1;
|
||||
go_to_first_slide = true;
|
||||
}
|
||||
|
||||
$slides_wrapper_box.animate( { left : - ( $slides_wrapper.width() * next_slide_order ) }, 500, function(){
|
||||
if ( go_to_first_slide ) $slides_wrapper_box.css( 'left', - ( $slides_wrapper.width() ) );
|
||||
} );
|
||||
}
|
||||
|
||||
function slideBack(speed){
|
||||
var next_slide_order = $nextSlide.prevAll('.et_slidecontent').length+1,
|
||||
go_to_last_slide = false;
|
||||
|
||||
if ( $activeSlide.prev('.et_slidecontent_cloned').length ) {
|
||||
next_slide_order = 0;
|
||||
go_to_last_slide = true;
|
||||
}
|
||||
|
||||
$slides_wrapper_box.animate( { left : - ( $slides_wrapper.width() * next_slide_order ) }, 500, function(){
|
||||
if ( go_to_last_slide ) $slides_wrapper_box.css( 'left', - ( $slides_wrapper.width() * slidesNum ) );
|
||||
} );
|
||||
}
|
||||
|
||||
if (options.fx === 'slide') {
|
||||
$(window).resize( function(){
|
||||
$slides_wrapper_box.find('>div').css({ 'width' : $slides_wrapper.width() });
|
||||
$slides_wrapper_box.css( 'left', -( $slides_wrapper.width() * currentPosition ) );
|
||||
} );
|
||||
}
|
||||
|
||||
et_generate_mobile_nav();
|
||||
|
||||
function et_generate_mobile_nav(){
|
||||
var et_shortcodes_slides_num = slidesContainer.find( '.et_slidecontent' ).length,
|
||||
et_shortcodes_controllers_html = '';
|
||||
|
||||
if ( et_shortcodes_slides_num > 1 && ( options.sliderType === 'images' || options.sliderType === 'simple' ) ){
|
||||
slidesContainer.append( '<div class="et_shortcodes_controller_nav">' + '<ul class="et_shortcodes_controls"></ul>' + '<ul class="et_shortcodes_controls_arrows"><li><a href="#" class="et_sc_nav_next">' + et_shortcodes_strings.next + '<span></span></a></li><li><a href="#" class="et_sc_nav_prev">' + et_shortcodes_strings.previous + '<span></span></a></li></ul>' + '</div>' );
|
||||
|
||||
$et_shortcodes_mobile_controls = slidesContainer.find('.et_shortcodes_controls');
|
||||
for ( var i = 0; i < et_shortcodes_slides_num; i++ ) {
|
||||
et_shortcodes_controllers_html += '<li><a href="#"></a></li>';
|
||||
}
|
||||
$et_shortcodes_mobile_controls.prepend( et_shortcodes_controllers_html );
|
||||
$et_shortcodes_mobile_controls.find( 'li:first' ).addClass('et_shortcodes_active_control');
|
||||
$et_shortcodes_mobile_controls.find( 'a' ).click( function(){
|
||||
var $this_control = $(this),
|
||||
$this_control_li = $this_control.parent('li'),
|
||||
this_order = $this_control_li.prevAll().length+1;
|
||||
|
||||
if ( this_order == currentPosition ) return false;
|
||||
|
||||
if ( this_order > currentPosition ) gotoSlide(this_order, 1);
|
||||
else gotoSlide(this_order, -1);
|
||||
|
||||
return false;
|
||||
} );
|
||||
|
||||
$et_shortcodes_mobile_nav = slidesContainer.find('.et_shortcodes_controls_arrows');
|
||||
$et_shortcodes_mobile_nav.find('a').click( function(){
|
||||
var $this_link = jQuery(this),
|
||||
et_active_slide_order;
|
||||
|
||||
if ( $this_link.hasClass( 'et_sc_nav_next' ) )
|
||||
et_shortcodes_go_to_next_slide();
|
||||
|
||||
if ( $this_link.hasClass( 'et_sc_nav_prev' ) )
|
||||
et_shortcodes_go_to_previous_slide();
|
||||
|
||||
$et_shortcodes_mobile_controls.find('li').removeClass('et_shortcodes_active_control');
|
||||
|
||||
et_active_slide_order = currentPosition - 1;
|
||||
|
||||
$et_shortcodes_mobile_controls.find('li').eq( et_active_slide_order ).addClass('et_shortcodes_active_control');
|
||||
|
||||
return false;
|
||||
} );
|
||||
} else if ( options.sliderType !== 'images' && options.sliderType !== 'simple' ) {
|
||||
slidesContainer.prepend( '<ul class="et_shortcodes_mobile_nav"><li><a href="#" class="et_sc_nav_next">' + et_shortcodes_strings.next + '<span></span></a></li><li><a href="#" class="et_sc_nav_prev">' + et_shortcodes_strings.previous + '<span></span></a></li></ul>' );
|
||||
$et_shortcodes_mobile_nav = slidesContainer.find('.et_shortcodes_mobile_nav');
|
||||
$et_shortcodes_mobile_nav.find('a').click( function(){
|
||||
var $this_link = jQuery(this);
|
||||
|
||||
if ( $this_link.hasClass( 'et_sc_nav_next' ) )
|
||||
et_shortcodes_go_to_next_slide();
|
||||
|
||||
if ( $this_link.hasClass( 'et_sc_nav_prev' ) )
|
||||
et_shortcodes_go_to_previous_slide();
|
||||
|
||||
return false;
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
function et_shortcodes_go_to_next_slide(){
|
||||
if (currentPosition === slidesNum)
|
||||
gotoSlide(1,1);
|
||||
else
|
||||
gotoSlide(currentPosition+1),1;
|
||||
|
||||
if (options.linksNav != '') changeTab();
|
||||
}
|
||||
|
||||
function et_shortcodes_go_to_previous_slide(){
|
||||
if (currentPosition === 1)
|
||||
gotoSlide(slidesNum,-1);
|
||||
else
|
||||
gotoSlide(currentPosition-1,-1);
|
||||
|
||||
if (options.linksNav != '') changeTab();
|
||||
}
|
||||
});
|
||||
}
|
||||
})(jQuery);
|
||||
// end et_switcher plugin v2
|
||||
|
||||
/////// Shortcodes Javascript ///////
|
||||
jQuery(document).ready(function($){
|
||||
var $et_pricing_table_button = $('.pricing-table a.icon-button');
|
||||
|
||||
$et_tooltip = $('.et-tooltip');
|
||||
$et_tooltip.live('mouseover mouseout', function(event){
|
||||
if (event.type == 'mouseover') {
|
||||
$(this).find('.et-tooltip-box').stop(true,true).animate({ opacity: 'show', bottom: '25px' }, 300);
|
||||
} else {
|
||||
$(this).find('.et-tooltip-box').delay(200).animate({ opacity: 'hide', bottom: '35px' }, 300);
|
||||
}
|
||||
});
|
||||
// learn more
|
||||
$et_learn_more = $('.et-learn-more .heading-more');
|
||||
$et_learn_more.live('click', function() {
|
||||
if ( $(this).hasClass('open') )
|
||||
$(this).removeClass('open');
|
||||
else
|
||||
$(this).addClass('open');
|
||||
|
||||
$(this).parent('.et-learn-more').find('.learn-more-content').animate({ opacity: 'toggle', height: 'toggle' }, 300);
|
||||
});
|
||||
|
||||
$('.et-learn-more').not('.et-open').find('.learn-more-content').css( { 'visibility' : 'visible', 'display' : 'none' } );
|
||||
|
||||
$et_pricing_table_button.each( function(){
|
||||
var $this_button = $(this),
|
||||
this_button_width = $this_button.width(),
|
||||
this_button_innerwidth = $this_button.innerWidth();
|
||||
|
||||
$this_button.css( { width : this_button_width, 'marginLeft' : '-' + ( this_button_innerwidth / 2 ) + 'px', 'visibility' : 'visible' } );
|
||||
} );
|
||||
|
||||
var $et_shortcodes_tabs = $('.et-tabs-container, .tabs-left, .et-simple-slider, .et-image-slider');
|
||||
$et_shortcodes_tabs.each(function(i){
|
||||
var et_shortcodes_tab_class = $(this).attr('class'),
|
||||
et_shortcodes_tab_autospeed_class_value = /et_sliderauto_speed_(\d+)/g,
|
||||
et_shortcodes_tab_autospeed = et_shortcodes_tab_autospeed_class_value.exec( et_shortcodes_tab_class ),
|
||||
et_shortcodes_tab_auto_class_value = /et_sliderauto_(\w+)/g,
|
||||
et_shortcodes_tab_auto = et_shortcodes_tab_auto_class_value.exec( et_shortcodes_tab_class ),
|
||||
et_shortcodes_tab_type_class_value = /et_slidertype_(\w+)/g,
|
||||
et_shortcodes_tab_type = et_shortcodes_tab_type_class_value.exec( et_shortcodes_tab_class ),
|
||||
et_shortcodes_tab_fx_class_value = /et_sliderfx_(\w+)/g,
|
||||
et_shortcodes_tab_fx = et_shortcodes_tab_fx_class_value.exec( et_shortcodes_tab_class ),
|
||||
et_shortcodes_tab_apply_to_element = '.et-tabs-content',
|
||||
et_shortcodes_tab_settings = {};
|
||||
|
||||
et_shortcodes_tab_settings.linksNav = $(this).find('.et-tabs-control li a');
|
||||
et_shortcodes_tab_settings.findParent = true;
|
||||
et_shortcodes_tab_settings.fx = et_shortcodes_tab_fx[1];
|
||||
et_shortcodes_tab_settings.auto = 'false' === et_shortcodes_tab_auto[1] ? false : true;
|
||||
et_shortcodes_tab_settings.autoSpeed = et_shortcodes_tab_autospeed[1];
|
||||
|
||||
if ( 'simple' === et_shortcodes_tab_type[1] ){
|
||||
et_shortcodes_tab_settings = {};
|
||||
et_shortcodes_tab_settings.fx = et_shortcodes_tab_fx[1];
|
||||
et_shortcodes_tab_settings.auto = 'false' === et_shortcodes_tab_auto[1] ? false : true;
|
||||
et_shortcodes_tab_settings.autoSpeed = et_shortcodes_tab_autospeed[1];
|
||||
et_shortcodes_tab_settings.sliderType = 'simple';
|
||||
et_shortcodes_tab_apply_to_element = '.et-simple-slides';
|
||||
} else if ( 'images' === et_shortcodes_tab_type[1] ){
|
||||
et_shortcodes_tab_settings.sliderType = 'images';
|
||||
et_shortcodes_tab_settings.linksNav = '#' + $(this).attr('id') + ' .controllers a.switch';
|
||||
et_shortcodes_tab_settings.findParent = false;
|
||||
et_shortcodes_tab_settings.lengthElement = '#' + $(this).attr('id') + ' a.switch';
|
||||
et_shortcodes_tab_apply_to_element = '.et-image-slides';
|
||||
}
|
||||
|
||||
$(this).find(et_shortcodes_tab_apply_to_element).et_shortcodes_switcher( et_shortcodes_tab_settings );
|
||||
});
|
||||
});
|
||||
1353
wp-content/themes/Divi/epanel/shortcodes/shortcodes.php
Normal file
17
wp-content/themes/Divi/et-pagebuilder/et-pagebuilder.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
define( 'ET_BUILDER_THEME', true );
|
||||
function et_setup_builder() {
|
||||
define( 'ET_BUILDER_DIR', get_template_directory() . '/includes/builder/' );
|
||||
define( 'ET_BUILDER_URI', get_template_directory_uri() . '/includes/builder' );
|
||||
define( 'ET_BUILDER_LAYOUT_POST_TYPE', 'et_pb_layout' );
|
||||
|
||||
$theme_version = et_get_theme_version();
|
||||
define( 'ET_BUILDER_VERSION', $theme_version );
|
||||
|
||||
load_theme_textdomain( 'et_builder', ET_BUILDER_DIR . 'languages' );
|
||||
require ET_BUILDER_DIR . 'framework.php';
|
||||
|
||||
et_pb_register_posttypes();
|
||||
}
|
||||
add_action( 'init', 'et_setup_builder' );
|
||||
52
wp-content/themes/Divi/footer.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php if ( 'on' == et_get_option( 'divi_back_to_top', 'false' ) ) : ?>
|
||||
|
||||
<span class="et_pb_scroll_top et-pb-icon"></span>
|
||||
|
||||
<?php endif;
|
||||
|
||||
if ( ! is_page_template( 'page-template-blank.php' ) ) : ?>
|
||||
|
||||
<footer id="main-footer">
|
||||
<?php get_sidebar( 'footer' ); ?>
|
||||
|
||||
|
||||
<?php
|
||||
if ( has_nav_menu( 'footer-menu' ) ) : ?>
|
||||
|
||||
<div id="et-footer-nav">
|
||||
<div class="container">
|
||||
<?php
|
||||
wp_nav_menu( array(
|
||||
'theme_location' => 'footer-menu',
|
||||
'depth' => '1',
|
||||
'menu_class' => 'bottom-nav',
|
||||
'container' => '',
|
||||
'fallback_cb' => '',
|
||||
) );
|
||||
?>
|
||||
</div>
|
||||
</div> <!-- #et-footer-nav -->
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="footer-bottom">
|
||||
<div class="container clearfix">
|
||||
<?php
|
||||
if ( false !== et_get_option( 'show_footer_social_icons', true ) ) {
|
||||
get_template_part( 'includes/social_icons', 'footer' );
|
||||
}
|
||||
?>
|
||||
|
||||
<p id="footer-info"><?php printf( __( 'Designed by %1$s | Powered by %2$s', 'Divi' ), '<a href="http://www.elegantthemes.com" title="Premium WordPress Themes">Elegant Themes</a>', '<a href="http://www.wordpress.org">WordPress</a>' ); ?></p>
|
||||
</div> <!-- .container -->
|
||||
</div>
|
||||
</footer> <!-- #main-footer -->
|
||||
</div> <!-- #et-main-area -->
|
||||
|
||||
<?php endif; // ! is_page_template( 'page-template-blank.php' ) ?>
|
||||
|
||||
</div> <!-- #page-container -->
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
</html>
|
||||
8037
wp-content/themes/Divi/functions.php
Normal file
189
wp-content/themes/Divi/header.php
Normal file
@@ -0,0 +1,189 @@
|
||||
<?php if ( ! isset( $_SESSION ) ) session_start(); ?>
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 6]>
|
||||
<html id="ie6" <?php language_attributes(); ?>>
|
||||
<![endif]-->
|
||||
<!--[if IE 7]>
|
||||
<html id="ie7" <?php language_attributes(); ?>>
|
||||
<![endif]-->
|
||||
<!--[if IE 8]>
|
||||
<html id="ie8" <?php language_attributes(); ?>>
|
||||
<![endif]-->
|
||||
<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
|
||||
<html <?php language_attributes(); ?>>
|
||||
<!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
||||
<title><?php wp_title(); ?></title>
|
||||
<?php elegant_description(); ?>
|
||||
<?php elegant_keywords(); ?>
|
||||
<?php elegant_canonical(); ?>
|
||||
|
||||
<?php do_action( 'et_head_meta' ); ?>
|
||||
|
||||
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
|
||||
|
||||
<?php $template_directory_uri = get_template_directory_uri(); ?>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="<?php echo esc_url( $template_directory_uri . '/js/html5.js"' ); ?>" type="text/javascript"></script>
|
||||
<![endif]-->
|
||||
|
||||
<script type="text/javascript">
|
||||
document.documentElement.className = 'js';
|
||||
</script>
|
||||
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
<body <?php body_class(); ?>>
|
||||
<div id="page-container">
|
||||
<?php
|
||||
if ( is_page_template( 'page-template-blank.php' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$et_secondary_nav_items = et_divi_get_top_nav_items();
|
||||
|
||||
$et_phone_number = $et_secondary_nav_items->phone_number;
|
||||
|
||||
$et_email = $et_secondary_nav_items->email;
|
||||
|
||||
$et_contact_info_defined = $et_secondary_nav_items->contact_info_defined;
|
||||
|
||||
$show_header_social_icons = $et_secondary_nav_items->show_header_social_icons;
|
||||
|
||||
$et_secondary_nav = $et_secondary_nav_items->secondary_nav;
|
||||
|
||||
$et_top_info_defined = $et_secondary_nav_items->top_info_defined;
|
||||
?>
|
||||
|
||||
<?php if ( $et_top_info_defined ) : ?>
|
||||
<div id="top-header">
|
||||
<div class="container clearfix">
|
||||
|
||||
<?php if ( $et_contact_info_defined ) : ?>
|
||||
|
||||
<div id="et-info">
|
||||
<?php if ( '' !== ( $et_phone_number = et_get_option( 'phone_number' ) ) ) : ?>
|
||||
<span id="et-info-phone"><?php echo esc_html( $et_phone_number ); ?></span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( '' !== ( $et_email = et_get_option( 'header_email' ) ) ) : ?>
|
||||
<a href="<?php echo esc_attr( 'mailto:' . $et_email ); ?>"><span id="et-info-email"><?php echo esc_html( $et_email ); ?></span></a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if ( true === $show_header_social_icons ) {
|
||||
get_template_part( 'includes/social_icons', 'header' );
|
||||
} ?>
|
||||
</div> <!-- #et-info -->
|
||||
|
||||
<?php endif; // true === $et_contact_info_defined ?>
|
||||
|
||||
<div id="et-secondary-menu">
|
||||
<?php
|
||||
if ( ! $et_contact_info_defined && true === $show_header_social_icons ) {
|
||||
get_template_part( 'includes/social_icons', 'header' );
|
||||
} else if ( $et_contact_info_defined && true === $show_header_social_icons ) {
|
||||
ob_start();
|
||||
|
||||
get_template_part( 'includes/social_icons', 'header' );
|
||||
|
||||
$duplicate_social_icons = ob_get_contents();
|
||||
|
||||
ob_end_clean();
|
||||
|
||||
printf(
|
||||
'<div class="et_duplicate_social_icons">
|
||||
%1$s
|
||||
</div>',
|
||||
$duplicate_social_icons
|
||||
);
|
||||
}
|
||||
|
||||
if ( '' !== $et_secondary_nav ) {
|
||||
echo $et_secondary_nav;
|
||||
}
|
||||
|
||||
et_show_cart_total();
|
||||
?>
|
||||
</div> <!-- #et-secondary-menu -->
|
||||
|
||||
</div> <!-- .container -->
|
||||
</div> <!-- #top-header -->
|
||||
<?php endif; // true ==== $et_top_info_defined ?>
|
||||
|
||||
<header id="main-header" data-height-onload="<?php echo esc_attr( et_get_option( 'menu_height', '66' ) ); ?>">
|
||||
<div class="container clearfix et_menu_container">
|
||||
<?php
|
||||
$logo = ( $user_logo = et_get_option( 'divi_logo' ) ) && '' != $user_logo
|
||||
? $user_logo
|
||||
: $template_directory_uri . '/images/logo.png';
|
||||
?>
|
||||
<div class="logo_container">
|
||||
<span class="logo_helper"></span>
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
|
||||
<img src="<?php echo esc_attr( $logo ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" id="logo" data-height-percentage="<?php echo esc_attr( et_get_option( 'logo_height', '54' ) ); ?>" />
|
||||
</a>
|
||||
|
||||
|
||||
</div>
|
||||
<div id="et-top-navigation" data-height="<?php echo esc_attr( et_get_option( 'menu_height', '66' ) ); ?>" data-fixed-height="<?php echo esc_attr( et_get_option( 'minimized_menu_height', '40' ) ); ?>">
|
||||
<nav id="top-menu-nav">
|
||||
<?php
|
||||
$menuClass = 'nav';
|
||||
if ( 'on' == et_get_option( 'divi_disable_toptier' ) ) $menuClass .= ' et_disable_top_tier';
|
||||
$primaryNav = '';
|
||||
|
||||
$primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'menu_id' => 'top-menu', 'echo' => false ) );
|
||||
|
||||
if ( '' == $primaryNav ) :
|
||||
?>
|
||||
<ul id="top-menu" class="<?php echo esc_attr( $menuClass ); ?>">
|
||||
<?php if ( 'on' == et_get_option( 'divi_home_link' ) ) { ?>
|
||||
<li <?php if ( is_home() ) echo( 'class="current_page_item"' ); ?>><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e( 'Home', 'Divi' ); ?></a></li>
|
||||
<?php }; ?>
|
||||
|
||||
|
||||
<?php show_categories_menu( $menuClass, false ); ?>
|
||||
</ul>
|
||||
<?php
|
||||
else :
|
||||
echo( $primaryNav );
|
||||
endif;
|
||||
?>
|
||||
</nav>
|
||||
|
||||
<?php
|
||||
if ( ! $et_top_info_defined ) {
|
||||
et_show_cart_total( array(
|
||||
'no_text' => true,
|
||||
) );
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if ( false !== et_get_option( 'show_search_icon', true ) ) : ?>
|
||||
<div id="et_top_search">
|
||||
<span id="et_search_icon"></span>
|
||||
</div>
|
||||
<?php endif; // true === et_get_option( 'show_search_icon', false ) ?>
|
||||
|
||||
<?php do_action( 'et_header_top' ); ?>
|
||||
</div> <!-- #et-top-navigation -->
|
||||
</div> <!-- .container -->
|
||||
<div class="et_search_outer">
|
||||
<div class="container et_search_form_container">
|
||||
<form role="search" method="get" class="et-search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
|
||||
<?php
|
||||
printf( '<input type="search" class="et-search-field" placeholder="%1$s" value="%2$s" name="s" title="%3$s" />',
|
||||
esc_attr__( 'Search …', 'Divi' ),
|
||||
get_search_query(),
|
||||
esc_attr__( 'Search for:', 'Divi' )
|
||||
);
|
||||
?>
|
||||
</form>
|
||||
<span class="et_close_search_field"></span>
|
||||
</div>
|
||||
</div>
|
||||
</header> <!-- #main-header -->
|
||||
|
||||
<div id="et-main-area">
|
||||
BIN
wp-content/themes/Divi/images/footer-layouts.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
wp-content/themes/Divi/images/logo.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |