Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1,82 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Addons configuration
|
||||
*
|
||||
* @filter us_config_addons
|
||||
*/
|
||||
|
||||
return array(
|
||||
array(
|
||||
'name' => 'WPBakery Page Builder',
|
||||
'slug' => 'js_composer',
|
||||
'description' => __( 'Save time working on your website content.', 'us' ),
|
||||
'premium' => TRUE,
|
||||
// for NOT free plugins we need to provide "url" and "changelog url"
|
||||
'changelog_url' => 'https://kb.wpbakery.com/docs/preface/release-notes/',
|
||||
'url' => 'https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431',
|
||||
),
|
||||
array(
|
||||
'name' => 'Header Builder',
|
||||
'slug' => 'us-header-builder',
|
||||
'description' => __( 'Create custom website headers layouts with any elements.', 'us' ),
|
||||
'premium' => TRUE,
|
||||
'changelog_url' => 'https://help.us-themes.com/' . strtolower( US_THEMENAME ) . '/changelog/',
|
||||
'url' => 'https://help.us-themes.com/' . strtolower( US_THEMENAME ) . '/hb/',
|
||||
),
|
||||
array(
|
||||
'name' => 'Slider Revolution',
|
||||
'slug' => 'revslider',
|
||||
'description' => __( 'Create interactive sliders and presentations.', 'us' ),
|
||||
'premium' => TRUE,
|
||||
'changelog_url' => 'http://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380',
|
||||
'url' => 'https://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380',
|
||||
),
|
||||
array(
|
||||
'name' => 'WooCommerce',
|
||||
'slug' => 'woocommerce',
|
||||
'description' => __( 'Most popular eCommerce plugin that allows you to sell anything.', 'us' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'Custom Post Type UI',
|
||||
'slug' => 'custom-post-type-ui',
|
||||
'description' => __( 'Create and manage custom post types and taxonomies.', 'us' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'Advanced Custom Fields',
|
||||
'slug' => 'advanced-custom-fields',
|
||||
'description' => __( 'Add fields to edit screens and display their values on website pages.', 'us' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'TablePress',
|
||||
'slug' => 'tablepress',
|
||||
'description' => __( 'Create and manage tables.', 'us' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'Contact Form 7',
|
||||
'slug' => 'contact-form-7',
|
||||
'description' => __( 'Create customizable contact forms and edit the mail contents.', 'us' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'Yoast SEO',
|
||||
'slug' => 'wordpress-seo',
|
||||
'description' => __( 'Improve your website search engine optimization.', 'us' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'Smush Image Compression and Optimization',
|
||||
'slug' => 'wp-smushit',
|
||||
'description' => __( 'Resize, optimize and compress all of your images.', 'us' ),
|
||||
'icon_file' => 'jpg', // in case when PNG icon doesn't exist
|
||||
),
|
||||
array(
|
||||
'name' => 'WP Super Cache',
|
||||
'slug' => 'wp-super-cache',
|
||||
'description' => __( 'Improve your website pages loading speed.', 'us' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'UpdraftPlus Backup',
|
||||
'slug' => 'updraftplus',
|
||||
'description' => __( 'Backup your website files and database.', 'us' ),
|
||||
'icon_file' => 'jpg', // in case when PNG icon doesn't exist
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,292 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Assets configuration (JS and CSS components)
|
||||
*
|
||||
* @filter us_config_assets
|
||||
*/
|
||||
|
||||
return array(
|
||||
|
||||
// Base Components
|
||||
'lazy-load' => array(
|
||||
'title' => '',
|
||||
'js' => '/framework/js/vendor/lazyloadxt.js',
|
||||
'hidden' => TRUE, // component not visible in UI
|
||||
'order' => 'top', // component will be added to the top of generated JS file
|
||||
),
|
||||
'general' => array(
|
||||
'title' => us_translate_x( 'General', 'settings screen' ),
|
||||
'css' => '/css/base/general.css',
|
||||
'js' => '/framework/js/base/general.js',
|
||||
'hidden' => TRUE, // component not visible in UI
|
||||
'order' => 'top', // component will be added to the top of generated JS file
|
||||
),
|
||||
'animation' => array(
|
||||
'title' => __( 'Animation', 'us' ),
|
||||
'css' => '/css/base/animation.css',
|
||||
'js' => '/framework/js/base/animation.js',
|
||||
'group' => __( 'Base Components', 'us' ),
|
||||
),
|
||||
'carousel' => array(
|
||||
'title' => __( 'Carousel', 'us' ),
|
||||
'css' => '/css/base/carousel.css',
|
||||
),
|
||||
'columns' => array(
|
||||
'title' => us_translate( 'Columns' ),
|
||||
'css' => '/css/base/columns.css',
|
||||
),
|
||||
'comments' => array(
|
||||
'title' => us_translate( 'Comments' ),
|
||||
'css' => '/css/base/comments.css',
|
||||
'js' => '/framework/js/base/comments.js',
|
||||
),
|
||||
'filters' => array(
|
||||
'title' => us_translate( 'Filter' ),
|
||||
'css' => '/css/base/filters.css',
|
||||
),
|
||||
'forms' => array(
|
||||
'title' => __( 'Forms', 'us' ),
|
||||
'css' => '/css/base/forms.css',
|
||||
'js' => '/framework/js/base/forms.js',
|
||||
),
|
||||
'header' => array(
|
||||
'title' => _x( 'Header', 'site top area', 'us' ),
|
||||
'css' => '/css/base/header.css',
|
||||
'js' => '/framework/js/base/header.js',
|
||||
),
|
||||
'parallax-hor' => array(
|
||||
'title' => __( 'Horizontal Parallax', 'us' ),
|
||||
'js' => '/framework/js/base/parallax-hor.js',
|
||||
),
|
||||
'pagination' => array(
|
||||
'title' => us_translate( 'Pagination' ),
|
||||
'css' => '/css/base/pagination.css',
|
||||
),
|
||||
'preloader' => array(
|
||||
'title' => __( 'Preloader', 'us' ),
|
||||
'css' => '/css/base/preloader.css',
|
||||
'js' => '/framework/js/base/preloader.js',
|
||||
),
|
||||
'print' => array(
|
||||
'title' => __( 'Print styles', 'us' ),
|
||||
'css' => '/css/base/print.css',
|
||||
),
|
||||
'popups' => array(
|
||||
'title' => __( 'Popups', 'us' ),
|
||||
'css' => '/css/base/popups.css',
|
||||
),
|
||||
'scroll' => array(
|
||||
'title' => __( 'Scroll events', 'us' ),
|
||||
'js' => '/framework/js/base/scroll.js',
|
||||
'order' => 'top',
|
||||
),
|
||||
'parallax-ver' => array(
|
||||
'title' => __( 'Vertical Parallax', 'us' ),
|
||||
'js' => '/framework/js/base/parallax-ver.js',
|
||||
),
|
||||
'ripple' => array(
|
||||
'title' => 'Ripple Effect',
|
||||
'css' => '/css/base/ripple.css',
|
||||
),
|
||||
'font-awesome' => array(
|
||||
'title' => sprintf( __( '"%s" icons', 'us' ), 'Font Awesome' ),
|
||||
'css' => '/css/base/fontawesome.css',
|
||||
),
|
||||
'material-icons' => array(
|
||||
'title' => sprintf( __( '"%s" icons', 'us' ), 'Material' ),
|
||||
'css' => '/css/base/material-icons.css',
|
||||
),
|
||||
|
||||
// Content Elements
|
||||
'actionbox' => array(
|
||||
'title' => __( 'ActionBox', 'us' ),
|
||||
'css' => '/css/elements/actionbox.css',
|
||||
'group' => __( 'Content Elements', 'us' ),
|
||||
),
|
||||
'buttons' => array(
|
||||
'title' => __( 'Buttons', 'us' ),
|
||||
'css' => '/css/elements/buttons.css',
|
||||
),
|
||||
'charts' => array(
|
||||
'title' => __( 'Charts', 'us' ),
|
||||
'css' => '/css/elements/charts.css',
|
||||
),
|
||||
'contacts' => array(
|
||||
'title' => us_translate( 'Contact Info' ),
|
||||
'css' => '/css/elements/contacts.css',
|
||||
),
|
||||
'counter' => array(
|
||||
'title' => __( 'Counter', 'us' ),
|
||||
'css' => '/css/elements/counter.css',
|
||||
'js' => '/framework/js/elements/counter.js',
|
||||
),
|
||||
'dropdown' => array(
|
||||
'title' => __( 'Dropdown', 'us' ),
|
||||
'css' => '/css/elements/dropdown.css',
|
||||
'js' => '/framework/js/elements/dropdown.js',
|
||||
),
|
||||
'flipbox' => array(
|
||||
'title' => __( 'FlipBox', 'us' ),
|
||||
'css' => '/css/elements/flipbox.css',
|
||||
'js' => '/framework/js/elements/flipbox.js',
|
||||
),
|
||||
'gmaps' => array(
|
||||
'title' => sprintf( __( '%s Maps', 'us' ), 'Google' ),
|
||||
'css' => '/css/elements/gmaps.css',
|
||||
'js' => '/framework/js/elements/gmaps.js',
|
||||
),
|
||||
'lmaps' => array(
|
||||
'title' => sprintf( __( '%s Maps', 'us' ), 'OpenStreetMap' ),
|
||||
'css' => '/css/vendor/leaflet.css',
|
||||
'js' => '/framework/js/elements/lmaps.js',
|
||||
),
|
||||
'grid' => array(
|
||||
'title' => __( 'Grid', 'us' ),
|
||||
'css' => '/css/elements/grid.css',
|
||||
'js' => '/framework/js/elements/grid.js',
|
||||
),
|
||||
'gallery' => array(
|
||||
'title' => __( 'Image Gallery', 'us' ),
|
||||
'css' => '/css/elements/gallery.css',
|
||||
'js' => '/framework/js/elements/gallery.js',
|
||||
),
|
||||
'slider' => array(
|
||||
'title' => __( 'Image Slider', 'us' ),
|
||||
'css' => '/css/elements/slider.css',
|
||||
'js' => '/framework/js/elements/slider.js',
|
||||
),
|
||||
'iconbox' => array(
|
||||
'title' => __( 'IconBox', 'us' ),
|
||||
'css' => '/css/elements/iconbox.css',
|
||||
),
|
||||
'image' => array(
|
||||
'title' => us_translate( 'Image' ),
|
||||
'css' => '/css/elements/image.css',
|
||||
),
|
||||
'itext' => array(
|
||||
'title' => __( 'Interactive Text', 'us' ),
|
||||
'css' => '/css/elements/itext.css',
|
||||
'js' => '/framework/js/elements/itext.js',
|
||||
),
|
||||
'menu' => array(
|
||||
'title' => us_translate( 'Menu' ),
|
||||
'css' => '/css/elements/menu.css',
|
||||
'js' => '/framework/js/elements/menu.js',
|
||||
),
|
||||
'message' => array(
|
||||
'title' => __( 'Message Box', 'us' ),
|
||||
'css' => '/css/elements/message.css',
|
||||
'js' => '/framework/js/elements/message.js',
|
||||
),
|
||||
'scroller' => array(
|
||||
'title' => __( 'Page Scroller', 'us' ),
|
||||
'css' => '/css/elements/page-scroller.css',
|
||||
'js' => '/framework/js/elements/page-scroller.js',
|
||||
),
|
||||
'person' => array(
|
||||
'title' => __( 'Person', 'us' ),
|
||||
'css' => '/css/elements/person.css',
|
||||
),
|
||||
'popup' => array(
|
||||
'title' => __( 'Popup', 'us' ),
|
||||
'css' => '/css/elements/popup.css',
|
||||
'js' => '/framework/js/elements/popup.js',
|
||||
),
|
||||
'pricing' => array(
|
||||
'title' => __( 'Pricing Table', 'us' ),
|
||||
'css' => '/css/elements/pricing.css',
|
||||
),
|
||||
'progbar' => array(
|
||||
'title' => __( 'Progress Bar', 'us' ),
|
||||
'css' => '/css/elements/progbar.css',
|
||||
'js' => '/framework/js/elements/progbar.js',
|
||||
),
|
||||
'search' => array(
|
||||
'title' => us_translate( 'Search' ),
|
||||
'css' => '/css/elements/search.css',
|
||||
),
|
||||
'separator' => array(
|
||||
'title' => __( 'Separator', 'us' ),
|
||||
'css' => '/css/elements/separator.css',
|
||||
),
|
||||
'sharing' => array(
|
||||
'title' => __( 'Sharing Buttons', 'us' ),
|
||||
'css' => '/css/elements/sharing.css',
|
||||
'js' => '/framework/js/elements/sharing.js',
|
||||
),
|
||||
'socials' => array(
|
||||
'title' => __( 'Social Links', 'us' ),
|
||||
'css' => '/css/elements/socials.css',
|
||||
),
|
||||
'tabs' => array(
|
||||
'title' => us_translate( 'Tabs', 'js_composer' ) . ', ' . us_translate( 'Tour', 'js_composer' ) . ', ' . us_translate( 'Accordion', 'js_composer' ),
|
||||
'css' => '/css/elements/tabs.css',
|
||||
'js' => '/framework/js/elements/tabs.js',
|
||||
),
|
||||
'video' => array(
|
||||
'title' => us_translate( 'Video Player', 'js_composer' ),
|
||||
'css' => '/css/elements/video.css',
|
||||
),
|
||||
|
||||
// Plugins
|
||||
'gravityforms' => array(
|
||||
'title' => 'Gravity Forms',
|
||||
'css' => '/css/plugins/gravityforms.css',
|
||||
'separated' => TRUE, // component will be minified into a separate file via "US Minify" plugin
|
||||
'apply_if' => class_exists( 'GFForms' ),
|
||||
'group' => us_translate( 'Plugins' ),
|
||||
),
|
||||
'tribe-events' => array(
|
||||
'title' => 'The Events Calendar',
|
||||
'css' => '/css/plugins/tribe-events.css',
|
||||
'separated' => TRUE,
|
||||
'apply_if' => class_exists( 'Tribe__Events__Main' ),
|
||||
),
|
||||
'ultimate-addons' => array(
|
||||
'title' => 'Ultimate Addons',
|
||||
'css' => '/css/plugins/ultimate-addons.css',
|
||||
'js' => '/framework/js/plugins/ultimate-addons.js',
|
||||
'apply_if' => class_exists( 'Ultimate_VC_Addons' ),
|
||||
),
|
||||
'bbpress' => array(
|
||||
'title' => 'bbPress',
|
||||
'css' => '/css/plugins/bbpress.css',
|
||||
'separated' => TRUE,
|
||||
'hidden' => TRUE,
|
||||
'apply_if' => class_exists( 'bbPress' ),
|
||||
),
|
||||
'slider-revolution' => array(
|
||||
'title' => 'Slider Revolution',
|
||||
'css' => '/css/plugins/slider-revolution.css',
|
||||
'hidden' => TRUE,
|
||||
'apply_if' => class_exists( 'RevSliderFront' ),
|
||||
),
|
||||
'tablepress' => array(
|
||||
'title' => 'TablePress',
|
||||
'css' => '/css/plugins/tablepress.css',
|
||||
'hidden' => TRUE,
|
||||
'apply_if' => class_exists( 'TablePress' ),
|
||||
),
|
||||
'woocommerce' => array(
|
||||
'title' => 'WooCommerce',
|
||||
'css' => '/css/plugins/woocommerce.css',
|
||||
'js' => '/framework/js/plugins/woocommerce.js',
|
||||
'separated' => TRUE,
|
||||
'hidden' => TRUE,
|
||||
'apply_if' => class_exists( 'woocommerce' ),
|
||||
),
|
||||
'wpml' => array(
|
||||
'title' => 'WPML',
|
||||
'css' => '/css/plugins/wpml.css',
|
||||
'hidden' => TRUE,
|
||||
'apply_if' => class_exists( 'SitePress' ),
|
||||
),
|
||||
|
||||
// Theme Customs
|
||||
'theme' => array(
|
||||
'title' => '',
|
||||
'js' => '/js/us.custom.js',
|
||||
'hidden' => TRUE,
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,206 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
// Define variables to use them in the config below, if needed
|
||||
$misc = us_config( 'elements_misc' );
|
||||
|
||||
// Structure template for all usage cases
|
||||
return array(
|
||||
|
||||
// Shows element's name in the editors UI
|
||||
'title' => 'Element name',
|
||||
|
||||
// Shows element's description in the WPB "Add New Element" window
|
||||
'description' => 'Element description',
|
||||
|
||||
// Defines tab in the WPB "Add New Element" window
|
||||
'category' => 'Post Elements',
|
||||
|
||||
// Defines icon in the WPB "Add New Element" window
|
||||
'icon' => 'icon-wpb-graph',
|
||||
|
||||
// Load JS file in the WPB element editing window
|
||||
'admin_enqueue_js' => 'site/framework/plugins-support/js_composer/js/us_icon_view.js',
|
||||
|
||||
// Defines JS class to apply custom appearance in the WPB editor UI
|
||||
'js_view' => 'ViewUsIcon',
|
||||
|
||||
// Sets element's settings and default values
|
||||
'params' => array(
|
||||
|
||||
// Common params, which can be used in all options types
|
||||
'option_name' => array(
|
||||
|
||||
// Shows name of option, can be absent
|
||||
'title' => 'Option name',
|
||||
|
||||
// Sets type of option control. See all available types below
|
||||
'type' => 'text',
|
||||
|
||||
// Shows description of option. Its appearance depends on "desc_" class
|
||||
'description' => 'Option description',
|
||||
|
||||
// Sets default value
|
||||
'std' => '',
|
||||
|
||||
// Adds css classes to customize appearance of option in the editing window
|
||||
'classes' => '',
|
||||
|
||||
// Sets appearance of option via 2 or 3 columns in the editing window
|
||||
'cols' => 2,
|
||||
|
||||
// Sets display conditions depending on other option's values
|
||||
'show_if' => array( 'some_option', '=', 'some_value' ),
|
||||
|
||||
// Combines several options into separate tab in the editing window
|
||||
'group' => 'Tab Name',
|
||||
|
||||
// Sets where the option can be used
|
||||
'context' => array( 'header', 'grid', 'shortcode', 'widget' ),
|
||||
|
||||
// Shows option's name and value in the editors UI
|
||||
'admin_label' => TRUE,
|
||||
|
||||
// Shows option's value inside a <div> in the editors UI
|
||||
'holder' => 'div',
|
||||
|
||||
// Outputs the option depending on "if" condition, e.g. "plugin is active"
|
||||
'place_if' => class_exists( 'woocommerce' ),
|
||||
),
|
||||
|
||||
/************ OPTIONS TYPES ************/
|
||||
|
||||
// TEXT: single line text field with free user input, based on <input type="text">
|
||||
'option_name' => array(
|
||||
'type' => 'text',
|
||||
'placeholder' => '', // shows text inside a field
|
||||
'std' => '', // string
|
||||
),
|
||||
|
||||
// TEXTAREA: multiple lines text field with free user input, based on <textarea>
|
||||
'option_name' => array(
|
||||
'type' => 'textarea',
|
||||
'placeholder' => '', // shows text inside a field
|
||||
'std' => '', // string
|
||||
),
|
||||
|
||||
// SELECT: single selection between several values, based on <select>
|
||||
'option_name' => array(
|
||||
'type' => 'select',
|
||||
'is_advanced' => TRUE, // adds search field while selecting, based on "select2" script
|
||||
'options' => array( // shows possible values for selection
|
||||
'key1' => 'Value Name',
|
||||
'key2' => 'Value Name',
|
||||
'key3' => array( // sets <optgroup> for several values
|
||||
'optgroup' => TRUE,
|
||||
'title' => 'Values Group Name',
|
||||
),
|
||||
),
|
||||
'std' => 'key1', // string
|
||||
),
|
||||
|
||||
// RADIO: single selection between several values, based on <input type="radio">
|
||||
'option_name' => array(
|
||||
'type' => 'radio',
|
||||
'options' => array( // shows possible values for selection
|
||||
'key1' => 'Value Name',
|
||||
'key2' => 'Value Name',
|
||||
'key3' => 'Value Name',
|
||||
),
|
||||
'std' => 'key1', // string
|
||||
),
|
||||
|
||||
// CHECKBOXES: multiple selection between several values, based on several <input type="checkbox">
|
||||
'option_name' => array(
|
||||
'type' => 'checkboxes',
|
||||
'options' => array( // shows possible values for selection
|
||||
'key1' => 'Value Name',
|
||||
'key2' => 'Value Name',
|
||||
'key3' => 'Value Name',
|
||||
),
|
||||
'std' => array( 'key2' ), // array
|
||||
),
|
||||
|
||||
// SWITCH: ON/OFF switch, based on a single <input type="checkbox">
|
||||
'option_name' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => '', // shows text after switch, text is also clickable
|
||||
'std' => FALSE, // bool
|
||||
),
|
||||
|
||||
// ICON: icon selection with preview, based on combined controls
|
||||
'option_name' => array(
|
||||
'type' => 'icon',
|
||||
'std' => 'fas|star', // string: "set|name"
|
||||
),
|
||||
|
||||
// LINK: text field with checkboxes, based on combined controls
|
||||
'option_name' => array(
|
||||
'type' => 'link',
|
||||
'std' => array(), // array
|
||||
'shortcode_std' => '', // empty string for shortcode param
|
||||
),
|
||||
|
||||
// COLOR: color picker, based on custom controls
|
||||
'option_name' => array(
|
||||
'type' => 'color',
|
||||
'std' => '#fff', // string: HEX or RGBA value
|
||||
),
|
||||
|
||||
// UPLOAD: shows button with selection files from WordPress Media Library
|
||||
'option_name' => array(
|
||||
'type' => 'upload',
|
||||
'is_multiple' => TRUE, // enables slection of several files, default is FALSE
|
||||
'button_label' => 'Set image', // sets text on the button
|
||||
'extension' => 'png,jpg,jpeg,gif,svg', // sets available file types
|
||||
),
|
||||
|
||||
// HEADING: used as visual separator between options
|
||||
'option_name' => array(
|
||||
'type' => 'heading',
|
||||
),
|
||||
|
||||
// EDITOR: WordPress Classic Editor, used in shortcodes only
|
||||
'option_name' => array(
|
||||
'type' => 'editor',
|
||||
'std' => '', // string
|
||||
),
|
||||
|
||||
// HTML: used for code input, based on <textarea>
|
||||
'option_name' => array(
|
||||
'type' => 'html',
|
||||
'encoded' => TRUE, // encodes the value to the base64
|
||||
'std' => '', // string
|
||||
),
|
||||
|
||||
// USOF Design Options: adds special control for box properties: position, margin, border, padding
|
||||
'option_name' => array(
|
||||
'type' => 'design_options',
|
||||
'states' => array( 'default', 'tablets', 'mobiles' ), // separates box properties for every responsive state
|
||||
'with_position' => TRUE, // enables "position" property with "Position: absolute" switcher
|
||||
'std' => array(), // array
|
||||
),
|
||||
|
||||
// WPB Design Options: adds special control for box properties: margin, border, padding and some additional options
|
||||
'option_name' => array(
|
||||
'type' => 'css_editor',
|
||||
),
|
||||
|
||||
// GROUP: Group of several items. Every item may have all other option types. Group allows to add/delete/reorder items
|
||||
'option_name_group' => array(
|
||||
'type' => 'group',
|
||||
'is_sortable' => TRUE, // enables ordering items in the editing window
|
||||
'params' => array( // items with their settings and default values
|
||||
'item_name_1' => array(
|
||||
'type' => 'image',
|
||||
'std' => '',
|
||||
),
|
||||
'item_name_2' => array(
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
),
|
||||
),
|
||||
'std' => array(), // array
|
||||
),
|
||||
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$body_fontsize = us_get_option( 'body_fontsize', '16px' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
return array(
|
||||
'title' => sprintf( __( 'Product "%s" block', 'us' ), us_translate( 'Add to cart', 'woocommerce' ) ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'params' => array_merge( array(
|
||||
|
||||
'font_size' => array(
|
||||
'title' => us_translate( 'Size' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => $body_fontsize,
|
||||
'grid_cols' => 2,
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'font_size_mobiles' => array(
|
||||
'title' => __( 'Size on Mobiles', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'view_cart_link' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show link to cart when adding products', 'us' ),
|
||||
'std' => FALSE,
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
|
||||
), $design_options, $hover_options ),
|
||||
);
|
||||
@@ -0,0 +1,127 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Links Menu', 'us' ),
|
||||
'icon' => 'fas fa-bars',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'source' => array(
|
||||
'title' => us_translate( 'Menu' ),
|
||||
'description' => $misc['desc_menu_select'],
|
||||
'type' => 'select',
|
||||
'options' => us_get_nav_menus(),
|
||||
'std' => '',
|
||||
),
|
||||
'size' => array(
|
||||
'title' => __( 'Font Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
),
|
||||
'size_tablets' => array(
|
||||
'title' => __( 'Font Size on Tablets', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
),
|
||||
'size_mobiles' => array(
|
||||
'title' => __( 'Font Size on Mobiles', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
),
|
||||
'indents' => array(
|
||||
'title' => __( 'Items Indents', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '10px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 0,
|
||||
'max' => 100,
|
||||
'step' => 2,
|
||||
),
|
||||
'rem' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 6.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
'em' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 6.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
'vw' => array(
|
||||
'min' => 0,
|
||||
'max' => 20,
|
||||
),
|
||||
),
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
),
|
||||
'indents_tablets' => array(
|
||||
'title' => __( 'Items Indents on Tablets', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '10px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 0,
|
||||
'max' => 100,
|
||||
'step' => 2,
|
||||
),
|
||||
'rem' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 6.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
'em' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 6.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
'vw' => array(
|
||||
'min' => 0,
|
||||
'max' => 20,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
),
|
||||
'indents_mobiles' => array(
|
||||
'title' => __( 'Items Indents on Mobiles', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '10px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 0,
|
||||
'max' => 100,
|
||||
'step' => 2,
|
||||
),
|
||||
'rem' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 6.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
'em' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 6.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
'vw' => array(
|
||||
'min' => 0,
|
||||
'max' => 20,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Breadcrumbs', 'us' ),
|
||||
'description' => __( 'Shows current page location', 'us' ),
|
||||
'icon' => 'fas fa-angle-double-right',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'home' => array(
|
||||
'title' => __( 'Homepage Label', 'us' ),
|
||||
'description' => __( 'Leave blank to hide the homepage link', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => us_translate( 'Home' ),
|
||||
),
|
||||
'show_current' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show current page', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'font_size' => array(
|
||||
'title' => __( 'Font Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'align' => array(
|
||||
'title' => us_translate( 'Alignment' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'cols' => 2,
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'separator_type' => array(
|
||||
'title' => __( 'Separator between items', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'icon' => __( 'Icon', 'us' ),
|
||||
'custom' => __( 'Custom symbol', 'us' ),
|
||||
),
|
||||
'std' => 'icon',
|
||||
),
|
||||
'separator_icon' => array(
|
||||
'type' => 'icon',
|
||||
'std' => 'far|angle-right',
|
||||
'show_if' => array( 'separator_type', '=', 'icon' ),
|
||||
),
|
||||
'separator_symbol' => array(
|
||||
'type' => 'text',
|
||||
'std' => '/',
|
||||
'show_if' => array( 'separator_type', '=', 'custom' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,128 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
global $us_template_directory_uri;
|
||||
$body_fontsize = us_get_option( 'body_fontsize', '16px' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Button', 'us' ),
|
||||
'icon' => 'icon-wpb-ui-button',
|
||||
'admin_enqueue_js' => $us_template_directory_uri . '/framework/plugins-support/js_composer/js/us_icon_view.js',
|
||||
'js_view' => 'ViewUsIcon',
|
||||
'params' => array_merge( array(
|
||||
|
||||
// General
|
||||
'label' => array(
|
||||
'title' => __( 'Button Label', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => __( 'Click Me', 'us' ),
|
||||
'holder' => 'button',
|
||||
),
|
||||
'link_type' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'post' => __( 'To a Post', 'us' ),
|
||||
'custom' => __( 'Custom', 'us' ),
|
||||
),
|
||||
'std' => 'post',
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'link' => array(
|
||||
'header_title' => us_translate( 'Link' ),
|
||||
'shortcode_title' => us_translate( 'Link' ),
|
||||
'placeholder' => us_translate( 'Enter the URL' ),
|
||||
'grid_description' => $misc['desc_grid_custom_link'],
|
||||
'type' => 'link',
|
||||
'std' => array(),
|
||||
'shortcode_std' => '',
|
||||
'grid_classes' => 'desc_3',
|
||||
'grid_show_if' => array( 'link_type', '=', 'custom' ),
|
||||
),
|
||||
'style' => array(
|
||||
'title' => us_translate( 'Style' ),
|
||||
'description' => $misc['desc_btn_styles'],
|
||||
'type' => 'select',
|
||||
'options' => us_get_btn_styles(),
|
||||
'std' => '1',
|
||||
),
|
||||
'font_size' => array(
|
||||
'title' => us_translate( 'Size' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'placeholder' => $body_fontsize,
|
||||
'type' => 'text',
|
||||
'cols' => 2,
|
||||
'header_cols' => 3,
|
||||
'std' => $body_fontsize,
|
||||
),
|
||||
'font_size_tablets' => array(
|
||||
'title' => __( 'Size on Tablets', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
'context' => array( 'header' ),
|
||||
),
|
||||
'font_size_mobiles' => array(
|
||||
'title' => __( 'Size on Mobiles', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'header_cols' => 3,
|
||||
),
|
||||
'width_type' => array(
|
||||
'title' => us_translate( 'Width' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'auto' => us_translate( 'Auto' ),
|
||||
'full' => __( 'Stretch to the full width', 'us' ),
|
||||
'custom' => __( 'Set a width', 'us' ),
|
||||
'max' => __( 'Set a maximum width', 'us' ),
|
||||
),
|
||||
'std' => 'auto',
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
'custom_width' => array(
|
||||
'description' => $misc['desc_width'],
|
||||
'type' => 'text',
|
||||
'std' => '200px',
|
||||
'show_if' => array( 'width_type', '=', array( 'custom', 'max' ) ),
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
'align' => array(
|
||||
'title' => __( 'Button Position', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'show_if' => array( 'width_type', '=', array( 'auto', 'custom', 'max' ) ),
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
|
||||
// Icon
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
'group' => __( 'Icon', 'us' ),
|
||||
),
|
||||
'iconpos' => array(
|
||||
'title' => __( 'Icon Position', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'group' => __( 'Icon', 'us' ),
|
||||
),
|
||||
|
||||
), $design_options, $hover_options ),
|
||||
);
|
||||
@@ -0,0 +1,206 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
// Get params from Grid config and exclude unneeded
|
||||
$grid_params = us_config( 'elements/grid.params' );
|
||||
foreach( $grid_params as $grid_param_name => $grid_param ) {
|
||||
|
||||
if ( strpos( $grid_param_name, 'pagination' ) !== FALSE ) { // exclude Pagination options
|
||||
unset( $grid_params[ $grid_param_name ] );
|
||||
} elseif ( strpos( $grid_param_name, 'filter' ) !== FALSE ) { // exclude Filter options
|
||||
unset( $grid_params[ $grid_param_name ] );
|
||||
} elseif ( strpos( $grid_param_name, 'breakpoint' ) !== FALSE ) { // exclude Responsive options
|
||||
unset( $grid_params[ $grid_param_name ] );
|
||||
} elseif ( in_array( $grid_param_name, array_keys( $design_options ) ) ) { // exclude Design options for correct params order
|
||||
unset( $grid_params[ $grid_param_name ] );
|
||||
}
|
||||
}
|
||||
unset( $grid_params['type'] ); // exclude "Display as" option
|
||||
|
||||
return array(
|
||||
'title' => __( 'Carousel', 'us' ),
|
||||
'description' => __( 'List of images, posts, pages or any custom post types', 'us' ),
|
||||
'icon' => 'fas fa-laptop-code',
|
||||
'params' => array_merge( $grid_params, array(
|
||||
|
||||
// Carousel options
|
||||
'carousel_arrows' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Prev/Next arrows', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
'carousel_arrows_style' => array(
|
||||
'title' => __( 'Arrows Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'circle' => __( 'Circles', 'us' ),
|
||||
'block' => __( 'Full height blocks', 'us' ),
|
||||
),
|
||||
'std' => 'circle',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'carousel_arrows', '!=', FALSE ),
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
'carousel_arrows_pos' => array(
|
||||
'title' => __( 'Arrows Position', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'outside' => __( 'Outside', 'us' ),
|
||||
'inside' => __( 'Inside', 'us' ),
|
||||
),
|
||||
'std' => 'outside',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'carousel_arrows', '!=', FALSE ),
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
'carousel_arrows_size' => array(
|
||||
'title' => __( 'Arrows Size', 'us' ),
|
||||
'description' => __( 'Examples:', 'us' ) . ' <span class="usof-example">26px</span>, <span class="usof-example">3rem</span>',
|
||||
'type' => 'text',
|
||||
'std' => '1.8rem',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'carousel_arrows', '!=', FALSE ),
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
'carousel_arrows_offset' => array(
|
||||
'title' => __( 'Arrows Offset', 'us' ),
|
||||
'description' => __( 'Examples:', 'us' ) . ' <span class="usof-example">20px</span>, <span class="usof-example">2rem</span>',
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'carousel_arrows', '!=', FALSE ),
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
'carousel_dots' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Navigation Dots', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
'carousel_center' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'First item in the center', 'us' ),
|
||||
'std' => FALSE,
|
||||
'show_if' => array( 'type', '=', 'carousel' ),
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
'carousel_slideby' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Slide by several items instead of one', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
'carousel_autoheight' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Auto height (for 1 column only)', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
'carousel_autoplay' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Auto Rotation', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
'carousel_interval' => array(
|
||||
'title' => __( 'Auto Rotation Interval (in seconds)', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '3',
|
||||
'show_if' => array( 'carousel_autoplay', '!=', FALSE ),
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
'carousel_autoplay_smooth' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Continual Rotation', 'us' ),
|
||||
'std' => FALSE,
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'carousel_autoplay', '!=', FALSE ),
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
'carousel_speed' => array(
|
||||
'title' => __( 'Slide Speed (in milliseconds)', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '250',
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
'carousel_transition' => array(
|
||||
'title' => __( 'Transition Effect', 'us' ),
|
||||
'description' => '<a href="http://cubic-bezier.com/" target="_blank">' . __( 'Use timing function', 'us' ) . '</a>' . '. ' . __( 'Examples:', 'us' ) . ' <span class="usof-example">linear</span>, <span class="usof-example">cubic-bezier(0,1,.8,1)</span>, <span class="usof-example">cubic-bezier(.78,.13,.15,.86)</span>',
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'group' => __( 'Carousel', 'us' ),
|
||||
),
|
||||
|
||||
// Responsive
|
||||
'breakpoint_1_width' => array(
|
||||
'title' => __( 'Below screen width', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '1200px',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_1_cols' => array(
|
||||
'title' => __( 'show', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['column_values'],
|
||||
'std' => '3',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_1_autoplay' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Auto Rotation', 'us' ),
|
||||
'std' => TRUE,
|
||||
'classes' => 'for_above',
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_2_width' => array(
|
||||
'title' => __( 'Below screen width', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '900px',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_2_cols' => array(
|
||||
'title' => __( 'show', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['column_values'],
|
||||
'std' => '2',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_2_autoplay' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Auto Rotation', 'us' ),
|
||||
'std' => TRUE,
|
||||
'classes' => 'for_above',
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_3_width' => array(
|
||||
'title' => __( 'Below screen width', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '600px',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_3_cols' => array(
|
||||
'title' => __( 'show', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['column_values'],
|
||||
'std' => '1',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_3_autoplay' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Auto Rotation', 'us' ),
|
||||
'std' => TRUE,
|
||||
'classes' => 'for_above',
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,67 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$color_bg = us_get_color( 'color_menu_button_bg', TRUE );
|
||||
$color_text = us_get_color( 'color_menu_button_text' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Cart', 'us' ),
|
||||
'icon' => 'fas fa-shopping-cart',
|
||||
'place_if' => class_exists( 'woocommerce' ),
|
||||
'params' => array_merge( array(
|
||||
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => 'fas|shopping-cart',
|
||||
),
|
||||
'size' => array(
|
||||
'title' => __( 'Icon Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '20px',
|
||||
'cols' => 3,
|
||||
),
|
||||
'size_tablets' => array(
|
||||
'title' => __( 'Icon Size on Tablets', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '20px',
|
||||
'cols' => 3,
|
||||
),
|
||||
'size_mobiles' => array(
|
||||
'title' => __( 'Icon Size on Mobiles', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '20px',
|
||||
'cols' => 3,
|
||||
),
|
||||
'quantity_color_bg' => array(
|
||||
'title' => __( 'Quantity Badge Background', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => $color_bg,
|
||||
'cols' => 2,
|
||||
),
|
||||
'quantity_color_text' => array(
|
||||
'title' => __( 'Quantity Badge Text', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => $color_text,
|
||||
'cols' => 2,
|
||||
),
|
||||
'vstretch' => array(
|
||||
'title' => us_translate( 'Height' ),
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Stretch to the full available height', 'us' ),
|
||||
'std' => TRUE,
|
||||
),
|
||||
'dropdown_effect' => array(
|
||||
'title' => __( 'Dropdown Effect', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['dropdown_effect_values'],
|
||||
'std' => 'height',
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,204 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$receiver_email = get_option( 'admin_email' );
|
||||
$body_fontsize = us_get_option( 'body_fontsize', '16px' );
|
||||
$btn_styles = us_get_btn_styles();
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
// Default Form Fields
|
||||
$default_fields = array(
|
||||
array(
|
||||
'type' => 'text',
|
||||
'label' => '',
|
||||
'placeholder' => us_translate( 'Name' ),
|
||||
),
|
||||
array(
|
||||
'type' => 'email',
|
||||
'label' => '',
|
||||
'placeholder' => us_translate( 'Email' ),
|
||||
),
|
||||
array(
|
||||
'type' => 'textarea',
|
||||
'label' => '',
|
||||
'placeholder' => us_translate( 'Message' ),
|
||||
),
|
||||
);
|
||||
|
||||
return array(
|
||||
'title' => __( 'Contact Form', 'us' ),
|
||||
'icon' => 'fas fa-envelope',
|
||||
'params' => array_merge(
|
||||
|
||||
array(
|
||||
// Fields
|
||||
'items' => array(
|
||||
'type' => 'group',
|
||||
'group' => __( 'Fields', 'us' ),
|
||||
'is_sortable' => TRUE,
|
||||
'params' => array(
|
||||
'type' => array(
|
||||
'title' => us_translate( 'Type' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'text' => us_translate( 'Text' ) . ' ' . __( '(single line)', 'us' ),
|
||||
'textarea' => us_translate( 'Text' ) . ' ' . __( '(multiple lines)', 'us' ),
|
||||
'email' => us_translate( 'Email' ),
|
||||
'select' => __( 'Dropdown', 'us' ),
|
||||
'checkboxes' => __( 'Checkboxes', 'us' ),
|
||||
'radio' => __( 'Radio buttons', 'us' ),
|
||||
'info' => us_translate( 'Text Block', 'js_composer' ),
|
||||
'agreement' => __( 'Agreement checkbox', 'us' ),
|
||||
'captcha' => __( 'Captcha', 'us' ),
|
||||
),
|
||||
'std' => 'text',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'label' => array(
|
||||
'title' => us_translate( 'Title' ),
|
||||
'description' => __( 'Shown above the field', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'type', '!=', 'info' ),
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'description' => array(
|
||||
'title' => us_translate( 'Description' ),
|
||||
'description' => __( 'Shown below the field', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'type', '!=', 'info' ),
|
||||
),
|
||||
'placeholder' => array(
|
||||
'title' => __( 'Placeholder', 'us' ),
|
||||
'description' => __( 'Shown inside the field', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'show_if' => array( 'type', 'in', array( 'text', 'email', 'textarea' ) ),
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'values' => array(
|
||||
'title' => __( 'Values', 'us' ),
|
||||
'description' => __( 'Each value on a new line', 'us' ),
|
||||
'type' => 'textarea',
|
||||
'encoded' => TRUE,
|
||||
'std' => '',
|
||||
'show_if' => array( 'type', 'in', array( 'select', 'checkboxes', 'radio' ) ),
|
||||
),
|
||||
'value' => array(
|
||||
'title' => us_translate( 'Text' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'show_if' => array( 'type', 'in', array( 'info', 'agreement' ) ),
|
||||
),
|
||||
'required' => array(
|
||||
'switch_text' => __( 'Required field', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'show_if' => array(
|
||||
'type',
|
||||
'in',
|
||||
array( 'text', 'email', 'textarea', 'checkboxes' ),
|
||||
),
|
||||
),
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
'show_if' => array(
|
||||
'type',
|
||||
'in',
|
||||
array( 'text', 'email', 'textarea', 'select', 'captcha' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
'std' => urlencode( json_encode( $default_fields ) ),
|
||||
),
|
||||
|
||||
// Button
|
||||
'button_text' => array(
|
||||
'title' => __( 'Button Label', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => us_translate( 'Submit' ),
|
||||
'group' => __( 'Button', 'us' ),
|
||||
),
|
||||
'button_style' => array(
|
||||
'title' => us_translate( 'Style' ),
|
||||
'description' => $misc['desc_btn_styles'],
|
||||
'type' => 'select',
|
||||
'options' => $btn_styles,
|
||||
'std' => '1',
|
||||
'group' => __( 'Button', 'us' ),
|
||||
),
|
||||
'button_size' => array(
|
||||
'title' => us_translate( 'Size' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => $body_fontsize,
|
||||
'cols' => 2,
|
||||
'group' => __( 'Button', 'us' ),
|
||||
),
|
||||
'button_size_mobiles' => array(
|
||||
'title' => __( 'Size on Mobiles', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'Button', 'us' ),
|
||||
),
|
||||
'button_fullwidth' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Stretch to the full width', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => __( 'Button', 'us' ),
|
||||
),
|
||||
'button_align' => array(
|
||||
'title' => __( 'Button Alignment', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'group' => __( 'Button', 'us' ),
|
||||
),
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
'group' => __( 'Button', 'us' ),
|
||||
),
|
||||
'iconpos' => array(
|
||||
'title' => __( 'Icon Position', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'group' => __( 'Button', 'us' ),
|
||||
),
|
||||
|
||||
// More Options
|
||||
'receiver_email' => array(
|
||||
'title' => __( 'Receiver Email', 'us' ),
|
||||
'description' => __( 'Requests will be sent to this email. You can insert multiple comma-separated emails as well.', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => $receiver_email,
|
||||
'admin_label' => TRUE,
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'success_message' => array(
|
||||
'title' => __( 'Message after sending', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => __( 'Thank you! Your message was sent.', 'us' ),
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
|
||||
), $design_options
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => us_translate( 'Contact Info' ),
|
||||
'icon' => 'fas fa-phone',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'address' => array(
|
||||
'title' => __( 'Address', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
),
|
||||
'phone' => array(
|
||||
'title' => __( 'Phone', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
),
|
||||
'fax' => array(
|
||||
'title' => __( 'Fax', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
),
|
||||
'email' => array(
|
||||
'title' => us_translate( 'Email' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,148 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Counter', 'us' ),
|
||||
'description' => __( 'Animated number with text', 'us' ),
|
||||
'params' => array_merge( array(
|
||||
|
||||
// General
|
||||
'initial' => array(
|
||||
'title' => __( 'Initial counting value', 'us' ),
|
||||
'description' => __( 'With all the prefixes, suffixes and decimal marks if needed.', 'us' ) . ' ' . __( 'Examples:', 'us' ) . ' 0, $0, 1%, 0.001, 1kg',
|
||||
'type' => 'text',
|
||||
'std' => '1',
|
||||
),
|
||||
'final' => array(
|
||||
'title' => __( 'Final counting value', 'us' ),
|
||||
'description' => __( 'The way it should look like, when the animation ends.', 'us' ) . ' ' . __( 'Examples:', 'us' ) . ' 100, $70, 98%, 0.374, 35kg',
|
||||
'type' => 'text',
|
||||
'std' => '99',
|
||||
'holder' => 'div',
|
||||
),
|
||||
'color' => array(
|
||||
'title' => us_translate( 'Color' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'primary' => __( 'Primary (theme color)', 'us' ),
|
||||
'secondary' => __( 'Secondary (theme color)', 'us' ),
|
||||
'heading' => __( 'Heading (theme color)', 'us' ),
|
||||
'text' => __( 'Text (theme color)', 'us' ),
|
||||
'custom' => us_translate( 'Custom' ),
|
||||
),
|
||||
'std' => 'primary',
|
||||
'cols' => 2,
|
||||
),
|
||||
'size' => array(
|
||||
'title' => us_translate( 'Size' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '5rem',
|
||||
'cols' => 2,
|
||||
),
|
||||
'custom_color' => array(
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'show_if' => array( 'color', '=', 'custom' ),
|
||||
),
|
||||
'font' => array(
|
||||
'title' => __( 'Font', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => us_get_fonts( 'without_groups' ),
|
||||
'std' => 'body',
|
||||
),
|
||||
'font_weight' => array(
|
||||
'title' => __( 'Font Weight', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'' => us_translate( 'Default' ),
|
||||
'100' => '100 ' . __( 'thin', 'us' ),
|
||||
'200' => '200 ' . __( 'extra-light', 'us' ),
|
||||
'300' => '300 ' . __( 'light', 'us' ),
|
||||
'400' => '400 ' . __( 'normal', 'us' ),
|
||||
'500' => '500 ' . __( 'medium', 'us' ),
|
||||
'600' => '600 ' . __( 'semi-bold', 'us' ),
|
||||
'700' => '700 ' . __( 'bold', 'us' ),
|
||||
'800' => '800 ' . __( 'extra-bold', 'us' ),
|
||||
'900' => '900 ' . __( 'ultra-bold', 'us' ),
|
||||
),
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
),
|
||||
'text_transform' => array(
|
||||
'title' => __( 'Text Transform', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'' => us_translate( 'Default' ),
|
||||
'none' => us_translate( 'None' ),
|
||||
'uppercase' => 'UPPERCASE',
|
||||
'lowercase' => 'lowercase',
|
||||
'capitalize' => 'Capitalize',
|
||||
),
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
),
|
||||
'font_style' => array(
|
||||
'title' => __( 'Font Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'' => us_translate( 'Default' ),
|
||||
'normal' => __( 'normal', 'us' ),
|
||||
'italic' => __( 'italic', 'us' ),
|
||||
),
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
),
|
||||
|
||||
// More Options
|
||||
'title' => array(
|
||||
'title' => us_translate( 'Title' ),
|
||||
'type' => 'text',
|
||||
'std' => __( 'Projects completed', 'us' ),
|
||||
'holder' => 'div',
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'title_size' => array(
|
||||
'title' => __( 'Title Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'title_tag' => array(
|
||||
'title' => __( 'Title HTML tag', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['html_tag_values'],
|
||||
'std' => 'h6',
|
||||
'cols' => 2,
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'title_color' => array(
|
||||
'title' => __( 'Title Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'align' => array(
|
||||
'title' => us_translate( 'Alignment' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'center',
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'duration' => array(
|
||||
'title' => __( 'Animation Duration (in seconds)', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '2',
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,180 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$body_fontsize = us_get_option( 'body_fontsize', '16px' );
|
||||
$btn_styles = us_get_btn_styles();
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'ActionBox', 'us' ),
|
||||
'description' => __( 'Content box with call to action button', 'us' ),
|
||||
'icon' => 'icon-wpb-call-to-action',
|
||||
'params' => array_merge( array(
|
||||
|
||||
// General
|
||||
'title' => array(
|
||||
'title' => us_translate( 'Title' ),
|
||||
'type' => 'text',
|
||||
'std' => 'This is ActionBox',
|
||||
'holder' => 'div',
|
||||
),
|
||||
'title_size' => array(
|
||||
'title' => __( 'Title Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'title', '!=', '' ),
|
||||
),
|
||||
'title_tag' => array(
|
||||
'title' => __( 'Title HTML tag', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['html_tag_values'],
|
||||
'std' => 'h2',
|
||||
'show_if' => array( 'title', '!=', '' ),
|
||||
'cols' => 2,
|
||||
),
|
||||
'content' => array(
|
||||
'title' => us_translate( 'Description' ),
|
||||
'type' => 'textarea',
|
||||
'std' => '',
|
||||
'holder' => 'div',
|
||||
),
|
||||
'color' => array(
|
||||
'title' => us_translate( 'Colors' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'primary' => __( 'Primary bg & White text', 'us' ),
|
||||
'secondary' => __( 'Secondary bg & White text', 'us' ),
|
||||
'light' => __( 'Alternate bg & Content text', 'us' ),
|
||||
'custom' => us_translate( 'Custom' ),
|
||||
),
|
||||
'std' => 'primary',
|
||||
),
|
||||
'bg_color' => array(
|
||||
'title' => __( 'Background Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'show_if' => array( 'color', '=', 'custom' ),
|
||||
),
|
||||
'text_color' => array(
|
||||
'title' => __( 'Text Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'show_if' => array( 'color', '=', 'custom' ),
|
||||
),
|
||||
'controls' => array(
|
||||
'title' => __( 'Buttons Location', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'right' => us_translate( 'Right' ),
|
||||
'bottom' => us_translate( 'Bottom' ),
|
||||
),
|
||||
'std' => 'right',
|
||||
),
|
||||
|
||||
// Button 1
|
||||
'btn_label' => array(
|
||||
'title' => __( 'Button Label', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => __( 'Click Me', 'us' ),
|
||||
'group' => __( 'Button', 'us' ) . ' 1',
|
||||
),
|
||||
'btn_link' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'type' => 'link',
|
||||
'std' => '',
|
||||
'group' => __( 'Button', 'us' ) . ' 1',
|
||||
),
|
||||
'btn_style' => array(
|
||||
'title' => us_translate( 'Style' ),
|
||||
'description' => $misc['desc_btn_styles'],
|
||||
'type' => 'select',
|
||||
'options' => $btn_styles,
|
||||
'std' => '1',
|
||||
'group' => __( 'Button', 'us' ) . ' 1',
|
||||
),
|
||||
'btn_size' => array(
|
||||
'title' => us_translate( 'Size' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => $body_fontsize,
|
||||
'group' => __( 'Button', 'us' ) . ' 1',
|
||||
),
|
||||
'btn_icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
'group' => __( 'Button', 'us' ) . ' 1',
|
||||
),
|
||||
'btn_iconpos' => array(
|
||||
'title' => __( 'Icon Position', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'group' => __( 'Button', 'us' ) . ' 1',
|
||||
),
|
||||
|
||||
// Button 2
|
||||
'second_button' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Display second button', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => __( 'Button', 'us' ) . ' 2',
|
||||
),
|
||||
'btn2_label' => array(
|
||||
'title' => __( 'Button Label', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => __( 'Click Me', 'us' ),
|
||||
'show_if' => array( 'second_button', '!=', FALSE ),
|
||||
'group' => __( 'Button', 'us' ) . ' 2',
|
||||
),
|
||||
'btn2_link' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'type' => 'link',
|
||||
'std' => '',
|
||||
'show_if' => array( 'second_button', '!=', FALSE ),
|
||||
'group' => __( 'Button', 'us' ) . ' 2',
|
||||
),
|
||||
'btn2_style' => array(
|
||||
'title' => us_translate( 'Style' ),
|
||||
'description' => $misc['desc_btn_styles'],
|
||||
'type' => 'select',
|
||||
'options' => $btn_styles,
|
||||
'std' => '1',
|
||||
'show_if' => array( 'second_button', '!=', FALSE ),
|
||||
'group' => __( 'Button', 'us' ) . ' 2',
|
||||
),
|
||||
'btn2_size' => array(
|
||||
'title' => us_translate( 'Size' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => $body_fontsize,
|
||||
'show_if' => array( 'second_button', '!=', FALSE ),
|
||||
'group' => __( 'Button', 'us' ) . ' 2',
|
||||
),
|
||||
'btn2_icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
'show_if' => array( 'second_button', '!=', FALSE ),
|
||||
'group' => __( 'Button', 'us' ) . ' 2',
|
||||
),
|
||||
'btn2_iconpos' => array(
|
||||
'title' => __( 'Icon Position', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'show_if' => array( 'second_button', '!=', FALSE ),
|
||||
'group' => __( 'Button', 'us' ) . ' 2',
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,145 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
$dropdown_source_values = array(
|
||||
'own' => us_translate( 'Custom Links' ),
|
||||
'sidebar' => __( 'Sidebar with Widgets', 'us' ),
|
||||
);
|
||||
if ( class_exists( 'SitePress' ) ) {
|
||||
$dropdown_source_values['wpml'] = 'WPML ' . us_translate( 'Language Switcher', 'sitepress' );
|
||||
}
|
||||
if ( class_exists( 'Polylang' ) ) {
|
||||
$dropdown_source_values['polylang'] = 'Polylang ' . us_translate( 'Language Switcher', 'polylang' );
|
||||
}
|
||||
|
||||
return array(
|
||||
'title' => __( 'Dropdown', 'us' ),
|
||||
'icon' => 'fas fa-caret-square-down',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'source' => array(
|
||||
'title' => us_translate( 'Show' ),
|
||||
'type' => 'select',
|
||||
'options' => $dropdown_source_values,
|
||||
'std' => 'own',
|
||||
),
|
||||
'link_title' => array(
|
||||
'title' => __( 'Dropdown Title', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => __( 'Click Me', 'us' ),
|
||||
'show_if' => array( 'source', 'in', array( 'own', 'sidebar' ) ),
|
||||
),
|
||||
'link_icon' => array(
|
||||
'title' => __( 'Dropdown Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
'show_if' => array( 'source', 'in', array( 'own', 'sidebar' ) ),
|
||||
),
|
||||
'h_links' => array(
|
||||
'title' => __( 'Dropdown Links', 'us' ),
|
||||
'type' => 'heading',
|
||||
'show_if' => array( 'source', '=', 'own' ),
|
||||
'classes' => 'as_field_title',
|
||||
),
|
||||
'links' => array(
|
||||
'title' => '{{label}}',
|
||||
'type' => 'group',
|
||||
'is_sortable' => TRUE,
|
||||
'is_accordion' => TRUE,
|
||||
'show_if' => array( 'source', '=', 'own' ),
|
||||
'params' => array(
|
||||
'label' => array(
|
||||
'title' => us_translate( 'Title' ),
|
||||
'type' => 'text',
|
||||
'std' => us_translate( 'Custom Link' ),
|
||||
),
|
||||
'url' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'placeholder' => us_translate( 'Enter the URL' ),
|
||||
'type' => 'link',
|
||||
'std' => array(),
|
||||
),
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
),
|
||||
),
|
||||
),
|
||||
'sidebar_id' => array(
|
||||
'title' => __( 'Sidebar', 'us' ),
|
||||
'description' => sprintf( __( 'Add or edit Sidebar on the %s page', 'us' ), '<a href="' . admin_url( 'widgets.php' ) . '" target="_blank">' . us_translate( 'Widgets' ) . '</a>' ),
|
||||
'type' => 'select',
|
||||
'options' => us_get_sidebars(),
|
||||
'std' => 'default_sidebar',
|
||||
'show_if' => array( 'source', '=', 'sidebar' ),
|
||||
),
|
||||
'wpml_switcher' => array(
|
||||
'type' => 'checkboxes',
|
||||
'options' => array(
|
||||
'flag' => us_translate( 'Flag', 'sitepress' ),
|
||||
'native_lang' => us_translate( 'Native language name', 'sitepress' ),
|
||||
'display_lang' => us_translate( 'Language name in current language', 'sitepress' ),
|
||||
),
|
||||
'std' => array( 'native_lang', 'display_lang' ),
|
||||
'show_if' => array( 'source', '=', 'wpml' ),
|
||||
'place_if' => class_exists( 'SitePress' ),
|
||||
),
|
||||
'size' => array(
|
||||
'title' => us_translate( 'Size' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '16px',
|
||||
'cols' => 3,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'size_tablets' => array(
|
||||
'title' => __( 'Size on Tablets', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '15px',
|
||||
'cols' => 3,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'size_mobiles' => array(
|
||||
'title' => __( 'Size on Mobiles', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '14px',
|
||||
'cols' => 3,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'dropdown_open' => array(
|
||||
'title' => __( 'Open Dropdown', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'click' => __( 'On click', 'us' ),
|
||||
'hover' => __( 'On hover', 'us' ),
|
||||
),
|
||||
'std' => 'click',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'dropdown_dir' => array(
|
||||
'title' => __( 'Dropdown Direction', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'right',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'dropdown_effect' => array(
|
||||
'title' => __( 'Dropdown Effect', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['dropdown_effect_values'],
|
||||
'std' => 'height',
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,328 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'FlipBox', 'us' ),
|
||||
'description' => __( 'Two-sided content element, flipping on hover', 'us' ),
|
||||
'icon' => 'fas fa-cube',
|
||||
'params' => array_merge( array(
|
||||
|
||||
// Front Side
|
||||
'front_title' => array(
|
||||
'title' => us_translate( 'Title' ),
|
||||
'type' => 'text',
|
||||
'std' => __( 'Front Side', 'us' ),
|
||||
'holder' => 'div',
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_title_size' => array(
|
||||
'title' => __( 'Title Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'front_title', '!=', '' ),
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_title_tag' => array(
|
||||
'title' => __( 'Title HTML tag', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['html_tag_values'],
|
||||
'std' => 'h4',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'front_title', '!=', '' ),
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_desc' => array(
|
||||
'title' => us_translate( 'Description' ),
|
||||
'type' => 'textarea',
|
||||
'std' => '',
|
||||
'holder' => 'div',
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_bgcolor' => array(
|
||||
'title' => __( 'Background Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_textcolor' => array(
|
||||
'title' => __( 'Text Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_bgimage' => array(
|
||||
'title' => __( 'Background Image', 'us' ),
|
||||
'type' => 'upload',
|
||||
'cols' => 2,
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_bgimage_size' => array(
|
||||
'title' => __( 'Background Image Size', 'us' ),
|
||||
'description' => $misc['desc_img_sizes'],
|
||||
'type' => 'select',
|
||||
'options' => us_image_sizes_select_values(),
|
||||
'std' => 'large',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'front_bgimage', '!=', '' ),
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_icon_type' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'none' => us_translate( 'None' ),
|
||||
'font' => __( 'Font icon', 'us' ),
|
||||
'image' => __( 'Custom', 'us' ),
|
||||
),
|
||||
'std' => 'none',
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_icon_name' => array(
|
||||
'type' => 'icon',
|
||||
'show_if' => array( 'front_icon_type', '=', 'font' ),
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_icon_size' => array(
|
||||
'title' => __( 'Icon Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '2rem',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'front_icon_type', '=', 'font' ),
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_icon_style' => array(
|
||||
'title' => __( 'Icon Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'default' => __( 'Simple', 'us' ),
|
||||
'circle' => __( 'Inside the Solid circle', 'us' ),
|
||||
),
|
||||
'std' => 'default',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'front_icon_type', '=', 'font' ),
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_icon_color' => array(
|
||||
'title' => __( 'Icon Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'show_if' => array( 'front_icon_type', '=', 'font' ),
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_icon_bgcolor' => array(
|
||||
'title' => __( 'Icon Circle Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'show_if' => array( 'front_icon_type', '=', 'font' ),
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_icon_image' => array(
|
||||
'title' => us_translate( 'Image' ),
|
||||
'type' => 'upload',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'front_icon_type', '=', 'image' ),
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_icon_image_width' => array(
|
||||
'title' => us_translate( 'Width' ),
|
||||
'description' => $misc['desc_width'],
|
||||
'type' => 'text',
|
||||
'std' => '4rem',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'front_icon_type', '=', 'image' ),
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
'front_icon_pos' => array(
|
||||
'title' => __( 'Icon Position', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'above_title' => __( 'Above Title', 'us' ),
|
||||
'below_title' => __( 'Below Title', 'us' ),
|
||||
'below_desc' => __( 'Below Description', 'us' ),
|
||||
),
|
||||
'std' => 'above_title',
|
||||
'show_if' => array( 'front_icon_type', 'in', array( 'font', 'image' ) ),
|
||||
'group' => __( 'Front Side', 'us' ),
|
||||
),
|
||||
|
||||
// Back Side
|
||||
'back_title' => array(
|
||||
'title' => us_translate( 'Title' ),
|
||||
'type' => 'text',
|
||||
'std' => __( 'Back Side', 'us' ),
|
||||
'holder' => 'div',
|
||||
'group' => __( 'Back Side', 'us' ),
|
||||
),
|
||||
'back_title_size' => array(
|
||||
'title' => __( 'Title Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'back_title', '!=', '' ),
|
||||
'group' => __( 'Back Side', 'us' ),
|
||||
),
|
||||
'back_title_tag' => array(
|
||||
'title' => __( 'Title HTML tag', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['html_tag_values'],
|
||||
'std' => 'h4',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'back_title', '!=', '' ),
|
||||
'group' => __( 'Back Side', 'us' ),
|
||||
),
|
||||
'back_desc' => array(
|
||||
'title' => us_translate( 'Description' ),
|
||||
'type' => 'textarea',
|
||||
'std' => '',
|
||||
'group' => __( 'Back Side', 'us' ),
|
||||
),
|
||||
'back_bgcolor' => array(
|
||||
'title' => __( 'Background Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'group' => __( 'Back Side', 'us' ),
|
||||
),
|
||||
'back_textcolor' => array(
|
||||
'title' => __( 'Text Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'group' => __( 'Back Side', 'us' ),
|
||||
),
|
||||
'back_bgimage' => array(
|
||||
'title' => __( 'Background Image', 'us' ),
|
||||
'type' => 'upload',
|
||||
'cols' => 2,
|
||||
'group' => __( 'Back Side', 'us' ),
|
||||
),
|
||||
'back_bgimage_size' => array(
|
||||
'title' => __( 'Background Image Size', 'us' ),
|
||||
'description' => $misc['desc_img_sizes'],
|
||||
'type' => 'select',
|
||||
'options' => us_image_sizes_select_values(),
|
||||
'std' => 'large',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'back_bgimage', '!=', '' ),
|
||||
'group' => __( 'Back Side', 'us' ),
|
||||
|
||||
),
|
||||
|
||||
// Link
|
||||
'link_type' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'none' => us_translate( 'None' ),
|
||||
'container' => __( 'The whole element', 'us' ),
|
||||
'btn' => __( 'Button on the Back Side', 'us' ),
|
||||
),
|
||||
'std' => 'none',
|
||||
'group' => us_translate( 'Link' ),
|
||||
),
|
||||
'link' => array(
|
||||
'type' => 'link',
|
||||
'std' => '',
|
||||
'show_if' => array( 'link_type', 'in', array( 'container', 'btn' ) ),
|
||||
'group' => us_translate( 'Link' ),
|
||||
),
|
||||
'btn_label' => array(
|
||||
'title' => __( 'Button Label', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => __( 'Click Me', 'us' ),
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'link_type', '=', 'btn' ),
|
||||
'group' => us_translate( 'Link' ),
|
||||
),
|
||||
'btn_size' => array(
|
||||
'title' => __( 'Button Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'link_type', '=', 'btn' ),
|
||||
'group' => us_translate( 'Link' ),
|
||||
),
|
||||
'btn_style' => array(
|
||||
'title' => __( 'Button Style', 'us' ),
|
||||
'description' => $misc['desc_btn_styles'],
|
||||
'type' => 'select',
|
||||
'options' => us_get_btn_styles(),
|
||||
'std' => '1',
|
||||
'show_if' => array( 'link_type', '=', 'btn' ),
|
||||
'group' => us_translate( 'Link' ),
|
||||
),
|
||||
|
||||
// Appearance
|
||||
'animation' => array(
|
||||
'title' => __( 'Animation Type', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'cardflip' => __( 'Card Flip', 'us' ),
|
||||
'cubetilt' => __( 'Cube Tilt', 'us' ),
|
||||
'cubeflip' => __( 'Cube Flip', 'us' ),
|
||||
'coveropen' => __( 'Cover Open', 'us' ),
|
||||
),
|
||||
'std' => 'cardflip',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'direction' => array(
|
||||
'title' => __( 'Animation Direction', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'n' => us_translate( 'Top' ),
|
||||
'e' => us_translate( 'Right' ),
|
||||
's' => us_translate( 'Bottom' ),
|
||||
'w' => us_translate( 'Left' ),
|
||||
'ne' => us_translate( 'Top Right' ),
|
||||
'se' => us_translate( 'Bottom Right' ),
|
||||
'sw' => us_translate( 'Bottom Left' ),
|
||||
'nw' => us_translate( 'Top Left' ),
|
||||
),
|
||||
'std' => 'w',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'duration' => array(
|
||||
'title' => __( 'Animation Duration (in seconds)', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '0.5',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'easing' => array(
|
||||
'title' => __( 'Animation Easing', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'ease' => 'ease',
|
||||
'easeInOutExpo' => 'easeInOutExpo',
|
||||
'easeInOutCirc' => 'easeInOutCirc',
|
||||
),
|
||||
'std' => 'ease',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'custom_width' => array(
|
||||
'title' => us_translate( 'Width' ),
|
||||
'description' => $misc['desc_width'],
|
||||
'type' => 'text',
|
||||
'std' => '100%',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'custom_height' => array(
|
||||
'title' => us_translate( 'Height' ),
|
||||
'description' => $misc['desc_height'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,200 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Map', 'us' ),
|
||||
'icon' => 'icon-wpb-map-pin',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'marker_address' => array(
|
||||
'title' => __( 'Address', 'us' ),
|
||||
'description' => __( 'Specify address in accordance with the format used by the national postal service of the country concerned.', 'us' ) . ' ' . sprintf( __( 'Or use geo coordinates, for example: %s', 'us' ), '38.6774156, 34.8520661' ),
|
||||
'type' => 'text',
|
||||
'std' => '1600 Amphitheatre Parkway, Mountain View, CA 94043, United States',
|
||||
'holder' => 'div',
|
||||
),
|
||||
'marker_text' => array(
|
||||
'title' => __( 'Marker Text', 'us' ),
|
||||
'description' => __( 'HTML tags are allowed.', 'us' ),
|
||||
'type' => 'html',
|
||||
'encoded' => TRUE,
|
||||
'std' => base64_encode( '<h6>Hey, we are here!</h6><p>We will be glad to see you in our office.</p>' ),
|
||||
'classes' => 'vc_col-sm-12 pretend_textfield', // appearance fix in shortcode editing window
|
||||
),
|
||||
'show_infowindow' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show Marker Text when map is loaded', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'custom_marker_img' => array(
|
||||
'title' => __( 'Custom Marker Image', 'us' ),
|
||||
'type' => 'upload',
|
||||
'cols' => 2,
|
||||
'extension' => 'png,jpg,jpeg,gif,svg',
|
||||
),
|
||||
'custom_marker_size' => array(
|
||||
'title' => __( 'Marker Image Size', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'20' => '20px',
|
||||
'30' => '30px',
|
||||
'40' => '40px',
|
||||
'50' => '50px',
|
||||
'60' => '60px',
|
||||
'70' => '70px',
|
||||
'80' => '80px',
|
||||
),
|
||||
'std' => '30',
|
||||
'show_if' => array( 'custom_marker_img', '!=', '' ),
|
||||
'cols' => 2,
|
||||
),
|
||||
|
||||
// Additional Markers
|
||||
'markers' => array(
|
||||
'type' => 'group',
|
||||
'params' => array(
|
||||
'marker_address' => array(
|
||||
'title' => __( 'Address', 'us' ),
|
||||
'description' => __( 'Specify address in accordance with the format used by the national postal service of the country concerned.', 'us' ) . ' ' . sprintf( __( 'Or use geo coordinates, for example: %s', 'us' ), '38.6774156, 34.8520661' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'marker_text' => array(
|
||||
'title' => __( 'Marker Text', 'us' ),
|
||||
'description' => __( 'HTML tags are allowed.', 'us' ),
|
||||
'type' => 'textarea',
|
||||
'std' => '',
|
||||
'classes' => 'vc_col-sm-12 pretend_textfield', // appearance fix in shortcode editing window
|
||||
),
|
||||
'marker_img' => array(
|
||||
'title' => __( 'Custom Marker Image', 'us' ),
|
||||
'type' => 'upload',
|
||||
'cols' => 2,
|
||||
'extension' => 'png,jpg,jpeg,gif,svg',
|
||||
),
|
||||
'marker_size' => array(
|
||||
'title' => __( 'Marker Image Size', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'20' => '20px',
|
||||
'30' => '30px',
|
||||
'40' => '40px',
|
||||
'50' => '50px',
|
||||
'60' => '60px',
|
||||
'70' => '70px',
|
||||
'80' => '80px',
|
||||
),
|
||||
'std' => '30',
|
||||
'show_if' => array( 'marker_img', '!=', '' ),
|
||||
'cols' => 2,
|
||||
),
|
||||
),
|
||||
'group' => __( 'Additional Markers', 'us' ),
|
||||
),
|
||||
|
||||
// More Options
|
||||
'provider' => array(
|
||||
'title' => __( 'Map Provider', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'google' => __( 'Google Maps', 'us' ),
|
||||
'osm' => 'OpenStreetMap',
|
||||
),
|
||||
'std' => 'google',
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'height' => array(
|
||||
'title' => __( 'Map Height (pixels)', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '400',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'zoom' => array(
|
||||
'title' => __( 'Map Zoom', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'1' => '1',
|
||||
'2' => '2',
|
||||
'3' => '3',
|
||||
'4' => '4',
|
||||
'5' => '5',
|
||||
'6' => '6',
|
||||
'7' => '7',
|
||||
'8' => '8',
|
||||
'9' => '9',
|
||||
'10' => '10',
|
||||
'11' => '11',
|
||||
'12' => '12',
|
||||
'13' => '13',
|
||||
'14' => '14',
|
||||
'15' => '15',
|
||||
'16' => '16',
|
||||
'17' => '17',
|
||||
'18' => '18',
|
||||
'19' => '19',
|
||||
'20' => '20',
|
||||
),
|
||||
'std' => '14',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'hide_controls' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Hide all map controls', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'disable_zoom' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Disable map zoom on mouse wheel scroll', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'disable_dragging' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Disable dragging on touch screens', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'map_bg_color' => array(
|
||||
'title' => __( 'Background Color', 'us' ),
|
||||
'description' => __( 'This color will be visible when map layer has not yet loaded.', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'type' => array(
|
||||
'title' => __( 'Map Type', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'roadmap' => __( 'Roadmap', 'us' ),
|
||||
'terrain' => __( 'Roadmap + Terrain', 'us' ),
|
||||
'satellite' => __( 'Satellite', 'us' ),
|
||||
'hybrid' => __( 'Satellite + Roadmap', 'us' ),
|
||||
),
|
||||
'std' => 'roadmap',
|
||||
'show_if' => array( 'provider', '=', 'google' ),
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'map_style_json' => array(
|
||||
'title' => __( 'Map Style', 'us' ),
|
||||
'description' => sprintf( __( 'Check available styles on %s.', 'us' ), '<a href="https://snazzymaps.com/" target="_blank">snazzymaps.com</a>' ),
|
||||
'type' => 'html',
|
||||
'std' => '',
|
||||
'show_if' => array( 'provider', '=', 'google' ),
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'layer_style' => array(
|
||||
'title' => __( 'Map Style', 'us' ),
|
||||
'description' => sprintf( __( 'Check available styles on %s.', 'us' ), '<a href="https://leaflet-extras.github.io/leaflet-providers/preview/" target="_blank">Leaflet Provider Demo</a>' ) . ' ' . sprintf( __( 'Example: %s', 'us' ), 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'show_if' => array( 'provider', '=', 'osm' ),
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,503 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
// Get the available post types for selection
|
||||
$available_posts_types = us_grid_available_post_types( TRUE );
|
||||
|
||||
// Fetching the available taxonomies for selection
|
||||
$taxonomies_params = $filter_taxonomies_params = $available_taxonomies = array();
|
||||
|
||||
$known_post_type_taxonomies = us_grid_available_taxonomies();
|
||||
|
||||
foreach ( $known_post_type_taxonomies as $post_type => $taxonomy_slugs ) {
|
||||
if ( isset( $available_posts_types[ $post_type ] ) ) {
|
||||
$filter_values = array();
|
||||
foreach ( $taxonomy_slugs as $taxonomy_slug ) {
|
||||
$taxonomy_class = get_taxonomy( $taxonomy_slug );
|
||||
if ( ! empty( $taxonomy_class ) AND ! empty( $taxonomy_class->labels ) AND ! empty( $taxonomy_class->labels->name ) ) {
|
||||
if ( isset ( $available_taxonomies[ $taxonomy_slug ] ) ) {
|
||||
$available_taxonomies[ $taxonomy_slug ]['post_type'][] = $post_type;
|
||||
} else {
|
||||
$available_taxonomies[ $taxonomy_slug ] = array(
|
||||
'name' => $taxonomy_class->labels->name,
|
||||
'post_type' => array( $post_type ),
|
||||
);
|
||||
}
|
||||
$filter_value_label = $taxonomy_class->labels->name;
|
||||
$filter_values[ $taxonomy_slug ] = $filter_value_label;
|
||||
}
|
||||
}
|
||||
if ( count( $filter_values ) > 0 ) {
|
||||
$filter_taxonomies_params[ 'filter_' . $post_type ] = array(
|
||||
'title' => __( 'Filter by', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array_merge(
|
||||
array( '' => '– ' . us_translate( 'None' ) . ' –' ), $filter_values
|
||||
),
|
||||
'std' => '',
|
||||
'show_if' => array( 'post_type', '=', $post_type ),
|
||||
'group' => us_translate( 'Filter' ),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
foreach ( $available_taxonomies as $taxonomy_slug => $taxonomy ) {
|
||||
$taxonomy_items = array();
|
||||
$taxonomy_items_raw = get_categories(
|
||||
array(
|
||||
'taxonomy' => $taxonomy_slug,
|
||||
'hierarchical' => 0,
|
||||
'hide_empty' => FALSE,
|
||||
'number' => 200,
|
||||
)
|
||||
);
|
||||
if ( $taxonomy_items_raw ) {
|
||||
foreach ( $taxonomy_items_raw as $taxonomy_item_raw ) {
|
||||
if ( is_object( $taxonomy_item_raw ) ) {
|
||||
$taxonomy_items[ $taxonomy_item_raw->slug ] = $taxonomy_item_raw->name;
|
||||
}
|
||||
}
|
||||
if ( count( $taxonomy_items ) > 0 ) {
|
||||
// Do not output the only "Uncategorized" of Posts and Products
|
||||
if ( in_array( $taxonomy_slug, array( 'category', 'product_cat' ) ) AND count( $taxonomy_items ) == 1 ) {
|
||||
continue;
|
||||
}
|
||||
foreach ( $taxonomy['post_type'] as $taxonomy_post_type ) {
|
||||
$taxonomies_params[ 'taxonomy_' . $taxonomy_slug ] = array(
|
||||
'title' => sprintf( __( 'Show Items of selected %s', 'us' ), $taxonomy['name'] ),
|
||||
'type' => 'checkboxes',
|
||||
'options' => $taxonomy_items,
|
||||
'show_if' => array( 'post_type', 'in', $taxonomy['post_type'] ),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Additional values for WooCommerce products
|
||||
if ( class_exists( 'woocommerce' ) ) {
|
||||
$products_show_values = array(
|
||||
'product_upsells' => us_translate( 'Upsells', 'woocommerce' ),
|
||||
);
|
||||
$products_orderby_values = array(
|
||||
'popularity' => us_translate( 'Popularity (sales)', 'woocommerce' ),
|
||||
'price_asc' => us_translate( 'Sort by price: low to high', 'woocommerce' ),
|
||||
'price_desc' => us_translate( 'Sort by price: high to low', 'woocommerce' ),
|
||||
'rating' => us_translate( 'Sort by average rating', 'woocommerce' ),
|
||||
);
|
||||
$products_exclude_values = array(
|
||||
'out_of_stock' => us_translate( 'Out of stock', 'woocommerce' ),
|
||||
);
|
||||
} else {
|
||||
$products_orderby_values = $products_exclude_values = $products_show_values = array();
|
||||
}
|
||||
|
||||
// Get "Gallery" and "Post Object" options from ACF PRO plugin
|
||||
$acf_show_values = array();
|
||||
if ( function_exists( 'acf_get_field_groups' ) ) {
|
||||
$acf_groups = acf_get_field_groups();
|
||||
if ( ! empty( $acf_groups ) ) {
|
||||
foreach ( $acf_groups as $group ) {
|
||||
$fields = acf_get_fields( $group['ID'] );
|
||||
foreach ( $fields as $field ) {
|
||||
if ( $field['type'] == 'gallery' ) {
|
||||
$acf_show_values[ 'acf_gallery_' . $field['name'] ] = $group['title'] . ': ' . $field['label'];
|
||||
}
|
||||
if ( $field['type'] == 'post_object' ) {
|
||||
$acf_show_values[ 'acf_posts_' . $field['name'] ] = $group['title'] . ': ' . $field['label'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$grid_config = array(
|
||||
'title' => __( 'Grid', 'us' ),
|
||||
'description' => __( 'List of images, posts, pages or any custom post types', 'us' ),
|
||||
'icon' => 'fas fa-th-large',
|
||||
'params' => array(),
|
||||
);
|
||||
|
||||
// General
|
||||
$general_params = array_merge(
|
||||
array(
|
||||
|
||||
'post_type' => array(
|
||||
'title' => us_translate( 'Show' ),
|
||||
'type' => 'select',
|
||||
'options' => array_merge(
|
||||
$available_posts_types, array(
|
||||
'ids' => __( 'Specific items', 'us' ),
|
||||
'related' => __( 'Items with the same taxonomy of current post', 'us' ),
|
||||
'current_query' => __( 'Items of the current query (used for archives and search results)', 'us' ),
|
||||
'taxonomy_terms' => __( 'Terms of selected taxonomy', 'us' ),
|
||||
'current_child_terms' => __( 'Child terms of current taxonomy', 'us' ),
|
||||
), $products_show_values, $acf_show_values
|
||||
),
|
||||
'std' => 'post',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'related_taxonomy' => array(
|
||||
'type' => 'select',
|
||||
'options' => us_get_taxonomies(),
|
||||
'std' => 'category',
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'post_type', 'in', array( 'related', 'taxonomy_terms' ) ),
|
||||
),
|
||||
'ids' => array(
|
||||
'type' => 'autocomplete',
|
||||
'settings' => array(
|
||||
'multiple' => TRUE,
|
||||
'sortable' => TRUE,
|
||||
'unique_values' => TRUE,
|
||||
),
|
||||
'save_always' => TRUE,
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'post_type', '=', 'ids' ),
|
||||
),
|
||||
'images' => array(
|
||||
'title' => us_translate( 'Images' ),
|
||||
'type' => 'upload',
|
||||
'is_multiple' => TRUE,
|
||||
'extension' => 'png,jpg,jpeg,gif,svg',
|
||||
'show_if' => array( 'post_type', '=', 'attachment' ),
|
||||
),
|
||||
'ignore_sticky' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Ignore sticky posts', 'us' ),
|
||||
'std' => FALSE,
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'post_type', '=', 'post' ),
|
||||
),
|
||||
'products_include' => array(
|
||||
'type' => 'checkboxes',
|
||||
'options' => array(
|
||||
'sale' => us_translate( 'On-sale products', 'woocommerce' ),
|
||||
'featured' => us_translate( 'Featured products', 'woocommerce' ),
|
||||
),
|
||||
'std' => '',
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'post_type', '=', 'product' ),
|
||||
),
|
||||
'terms_include' => array(
|
||||
'type' => 'checkboxes',
|
||||
'options' => array(
|
||||
'children' => __( 'Show child terms', 'us' ),
|
||||
'empty' => __( 'Show empty', 'us' ),
|
||||
),
|
||||
'std' => '',
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'post_type', '=', array( 'taxonomy_terms', 'current_child_terms' ) ),
|
||||
),
|
||||
), $taxonomies_params, array(
|
||||
'orderby' => array(
|
||||
'title' => us_translate( 'Order' ),
|
||||
'type' => 'select',
|
||||
'options' => array_merge(
|
||||
array(
|
||||
'date' => __( 'By date of creation (newer first)', 'us' ),
|
||||
'date_asc' => __( 'By date of creation (older first)', 'us' ),
|
||||
'modified' => __( 'By date of update (newer first)', 'us' ),
|
||||
'modified_asc' => __( 'By date of update (older first)', 'us' ),
|
||||
'alpha' => __( 'Alphabetically', 'us' ),
|
||||
'rand' => us_translate( 'Random' ),
|
||||
'comment_count' => us_translate( 'Number of Comments' ),
|
||||
'menu_order' => sprintf( __( 'By "%s" values from "%s" box', 'us' ), us_translate( 'Order' ), us_translate( 'Page Attributes' ) ),
|
||||
'post__in' => __( 'Manually for images and specific items', 'us' ),
|
||||
), $products_orderby_values
|
||||
),
|
||||
'std' => 'date',
|
||||
'show_if' => array( 'post_type', '!=', array( 'current_query', 'taxonomy_terms', 'current_child_terms' ) ),
|
||||
),
|
||||
'terms_orderby' => array(
|
||||
'title' => us_translate( 'Order' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'title' => __( 'Alphabetically', 'us' ),
|
||||
'rand' => us_translate( 'Random' ),
|
||||
'count' => __( 'Items Quantity', 'us' ),
|
||||
'name' => __( 'Manually, if available', 'us' ),
|
||||
),
|
||||
'std' => 'title',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'post_type', '=', array( 'taxonomy_terms', 'current_child_terms' ) ),
|
||||
),
|
||||
'items_quantity' => array(
|
||||
'title' => __( 'Items Quantity', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '10',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'post_type', '!=', 'current_query' ),
|
||||
),
|
||||
'exclude_items' => array(
|
||||
'title' => __( 'Exclude Items', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array_merge(
|
||||
array(
|
||||
'none' => us_translate( 'None' ),
|
||||
'prev' => __( 'of previous Grids on this page', 'us' ),
|
||||
'offset' => __( 'by the given quantity from the beginning of output', 'us' ),
|
||||
), $products_exclude_values
|
||||
),
|
||||
'std' => 'none',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'post_type', '!=', array( 'current_query', 'taxonomy_terms', 'current_child_terms' ) ),
|
||||
),
|
||||
'items_offset' => array(
|
||||
'title' => __( 'Items Quantity to skip', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '1',
|
||||
'show_if' => array( 'exclude_items', '=', 'offset' ),
|
||||
),
|
||||
'no_items_message' => array(
|
||||
'title' => __( 'Message when no items', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => us_translate( 'No results found' ),
|
||||
),
|
||||
'pagination' => array(
|
||||
'title' => us_translate( 'Pagination' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'none' => us_translate( 'None' ),
|
||||
'regular' => __( 'Numbered pagination', 'us' ),
|
||||
'ajax' => __( 'Load items on button click', 'us' ),
|
||||
'infinite' => __( 'Load items on page scroll', 'us' ),
|
||||
),
|
||||
'std' => 'none',
|
||||
'show_if' => array( 'post_type', '!=', array( 'taxonomy_terms', 'current_child_terms', 'product_upsells' ) ),
|
||||
),
|
||||
'pagination_btn_text' => array(
|
||||
'title' => __( 'Button Label', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => __( 'Load More', 'us' ),
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'pagination', '=', 'ajax' ),
|
||||
),
|
||||
'pagination_btn_size' => array(
|
||||
'title' => __( 'Button Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'pagination', '=', 'ajax' ),
|
||||
),
|
||||
'pagination_btn_style' => array(
|
||||
'title' => __( 'Button Style', 'us' ),
|
||||
'description' => $misc['desc_btn_styles'],
|
||||
'type' => 'select',
|
||||
'options' => us_get_btn_styles(),
|
||||
'std' => '1',
|
||||
'show_if' => array( 'pagination', '=', 'ajax' ),
|
||||
),
|
||||
'pagination_btn_fullwidth' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Stretch to the full width', 'us' ),
|
||||
'std' => FALSE,
|
||||
'show_if' => array( 'pagination', '=', 'ajax' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
// Appearance
|
||||
$appearance_params = array(
|
||||
'items_layout' => array(
|
||||
'title' => __( 'Grid Layout', 'us' ),
|
||||
'type' => 'us_grid_layout',
|
||||
'admin_label' => TRUE,
|
||||
'std' => 'blog_1',
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'type' => array(
|
||||
'title' => __( 'Display as', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'grid' => __( 'Regular Grid', 'us' ),
|
||||
'masonry' => __( 'Masonry', 'us' ),
|
||||
),
|
||||
'std' => 'grid',
|
||||
'admin_label' => TRUE,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'items_valign' => array(
|
||||
'switch_text' => __( 'Center items vertically', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'type', '!=', 'masonry' ),
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'columns' => array(
|
||||
'title' => us_translate( 'Columns' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'1' => '1',
|
||||
'2' => '2',
|
||||
'3' => '3',
|
||||
'4' => '4',
|
||||
'5' => '5',
|
||||
'6' => '6',
|
||||
'7' => '7',
|
||||
'8' => '8',
|
||||
'9' => '9',
|
||||
'10' => '10',
|
||||
),
|
||||
'std' => '2',
|
||||
'admin_label' => TRUE,
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'items_gap' => array(
|
||||
'title' => __( 'Gap between Items', 'us' ),
|
||||
'description' => __( 'Examples:', 'us' ) . ' <span class="usof-example">5px</span>, <span class="usof-example">1.5rem</span>, <span class="usof-example">2vw</span>',
|
||||
'type' => 'text',
|
||||
'std' => '1.5rem',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'img_size' => array(
|
||||
'title' => __( 'Post Image Size', 'us' ),
|
||||
'description' => $misc['desc_img_sizes'],
|
||||
'type' => 'select',
|
||||
'options' => array_merge(
|
||||
array( 'default' => __( 'As in Grid Layout', 'us' ) ), us_image_sizes_select_values()
|
||||
),
|
||||
'std' => 'default',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'title_size' => array(
|
||||
'title' => __( 'Post Title Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'overriding_link' => array(
|
||||
'title' => __( 'Overriding Link', 'us' ),
|
||||
'description' => __( 'Applies to every item of this Grid. All Grid Layout elements become not clickable.', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'none' => us_translate( 'None' ),
|
||||
'post' => __( 'To a Post', 'us' ),
|
||||
'popup_post' => __( 'Opens a Post in a popup', 'us' ),
|
||||
'popup_post_image' => __( 'Opens a Post Image in a popup', 'us' ),
|
||||
),
|
||||
'std' => 'none',
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'popup_width' => array(
|
||||
'title' => __( 'Popup Width', 'us' ),
|
||||
'description' => $misc['desc_width'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'show_if' => array( 'overriding_link', '=', 'popup_post' ),
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'popup_arrows' => array(
|
||||
'switch_text' => __( 'Prev/Next arrows', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => TRUE,
|
||||
'show_if' => array( 'overriding_link', '=', 'popup_post' ),
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
);
|
||||
|
||||
// Filter
|
||||
$filter_params = array_merge(
|
||||
$filter_taxonomies_params, array(
|
||||
'filter_style' => array(
|
||||
'title' => __( 'Filter Bar Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'style_1' => us_translate( 'Style' ) . ' 1',
|
||||
'style_2' => us_translate( 'Style' ) . ' 2',
|
||||
'style_3' => us_translate( 'Style' ) . ' 3',
|
||||
),
|
||||
'std' => 'style_1',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'post_type', 'in', array_keys( $known_post_type_taxonomies ) ),
|
||||
'group' => us_translate( 'Filter' ),
|
||||
),
|
||||
'filter_align' => array(
|
||||
'title' => __( 'Filter Bar Alignment', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'center',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'post_type', 'in', array_keys( $known_post_type_taxonomies ) ),
|
||||
'group' => us_translate( 'Filter' ),
|
||||
),
|
||||
'filter_show_all' => array(
|
||||
'switch_text' => __( 'Show "All" item in filter bar', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => TRUE,
|
||||
'show_if' => array( 'post_type', 'in', array_keys( $known_post_type_taxonomies ) ),
|
||||
'group' => us_translate( 'Filter' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
// Responsive Options
|
||||
$responsive_params = array(
|
||||
'breakpoint_1_width' => array(
|
||||
'title' => __( 'Below screen width', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '1200px',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_1_cols' => array(
|
||||
'title' => __( 'show', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['column_values'],
|
||||
'std' => '3',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_2_width' => array(
|
||||
'title' => __( 'Below screen width', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '900px',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_2_cols' => array(
|
||||
'title' => __( 'show', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['column_values'],
|
||||
'std' => '2',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_3_width' => array(
|
||||
'title' => __( 'Below screen width', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '600px',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_3_cols' => array(
|
||||
'title' => __( 'show', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['column_values'],
|
||||
'std' => '1',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
);
|
||||
|
||||
$grid_config['params'] = array_merge(
|
||||
$general_params, $appearance_params, $filter_params, $responsive_params, $design_options
|
||||
);
|
||||
|
||||
return $grid_config;
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Custom HTML', 'us' ),
|
||||
'icon' => 'fas fa-code',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'content' => array(
|
||||
'description' => sprintf( __( 'Added content will be displayed inside the %s block', 'us' ), '<code><div class="w-html"></div></code>' ),
|
||||
'type' => 'html',
|
||||
'encoded' => TRUE,
|
||||
'std' => '',
|
||||
'classes' => 'desc_2',
|
||||
),
|
||||
|
||||
), $design_options, $hover_options ),
|
||||
);
|
||||
@@ -0,0 +1,46 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Horizontal Wrapper', 'us' ),
|
||||
'icon' => 'fas fa-ellipsis-h',
|
||||
'as_parent' => array(
|
||||
'except' => 'vc_row,vc_column,vc_tta_tabs,vc_tta_tour,vc_tta_accordion,vc_tta_section,us_hwrapper',
|
||||
),
|
||||
'show_settings_on_create' => FALSE,
|
||||
'js_view' => 'VcColumnView',
|
||||
'params' => array_merge(
|
||||
array(
|
||||
'alignment' => array(
|
||||
'title' => __( 'Content Horizontal Alignment', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
'justify' => us_translate( 'Justify' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'cols' => 2,
|
||||
),
|
||||
'valign' => array(
|
||||
'title' => __( 'Content Vertical Alignment', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'top' => us_translate( 'Top' ),
|
||||
'middle' => us_translate( 'Middle' ),
|
||||
'bottom' => us_translate( 'Bottom' ),
|
||||
),
|
||||
'std' => 'top',
|
||||
'cols' => 2,
|
||||
),
|
||||
'wrap' => array(
|
||||
'switch_text' => __( 'Allow move content to the next line', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
),
|
||||
), $design_options, $hover_options
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,135 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
global $us_template_directory_uri;
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'IconBox', 'us' ),
|
||||
'description' => __( 'Icon, title, description', 'us' ),
|
||||
'admin_enqueue_js' => $us_template_directory_uri . '/framework/plugins-support/js_composer/js/us_icon_view.js',
|
||||
'js_view' => 'ViewUsIcon',
|
||||
'params' => array_merge( array(
|
||||
|
||||
// Icon
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => 'fas|star',
|
||||
),
|
||||
'color' => array(
|
||||
'title' => __( 'Icon Color', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'primary' => __( 'Primary (theme color)', 'us' ),
|
||||
'secondary' => __( 'Secondary (theme color)', 'us' ),
|
||||
'light' => __( 'Border (theme color)', 'us' ),
|
||||
'contrast' => __( 'Text (theme color)', 'us' ),
|
||||
'custom' => __( 'Custom colors', 'us' ),
|
||||
),
|
||||
'std' => 'primary',
|
||||
'cols' => 2,
|
||||
),
|
||||
'style' => array(
|
||||
'title' => __( 'Icon Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'default' => __( 'Simple', 'us' ),
|
||||
'circle' => __( 'Inside the Solid circle', 'us' ),
|
||||
'outlined' => __( 'Inside the Outlined circle', 'us' ),
|
||||
),
|
||||
'std' => 'default',
|
||||
'cols' => 2,
|
||||
),
|
||||
'icon_color' => array(
|
||||
'title' => __( 'Icon Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'show_if' => array( 'color', '=', 'custom' ),
|
||||
),
|
||||
'circle_color' => array(
|
||||
'title' => __( 'Icon Circle Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'show_if' => array( 'color', '=', 'custom' ),
|
||||
),
|
||||
'size' => array(
|
||||
'title' => __( 'Icon Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '36px',
|
||||
'cols' => 2,
|
||||
),
|
||||
'iconpos' => array(
|
||||
'title' => __( 'Icon Position', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'top' => us_translate( 'Top' ),
|
||||
'left' => us_translate( 'Left' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'top',
|
||||
'cols' => 2,
|
||||
),
|
||||
|
||||
// Title & Description
|
||||
'title' => array(
|
||||
'title' => us_translate( 'Title' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'holder' => 'div',
|
||||
),
|
||||
'title_size' => array(
|
||||
'title' => __( 'Title Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'title', '!=', '' ),
|
||||
),
|
||||
'title_tag' => array(
|
||||
'title' => __( 'Title HTML tag', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['html_tag_values'],
|
||||
'std' => 'h4',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'title', '!=', '' ),
|
||||
),
|
||||
'content' => array(
|
||||
'title' => us_translate( 'Description' ),
|
||||
'type' => 'editor',
|
||||
'std' => '',
|
||||
'holder' => 'div',
|
||||
),
|
||||
|
||||
// More Options
|
||||
'link' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'description' => __( 'Will be applied to the icon and title', 'us' ),
|
||||
'type' => 'link',
|
||||
'std' => '',
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'alignment' => array(
|
||||
'title' => us_translate( 'Alignment' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'center',
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'img' => array(
|
||||
'title' => us_translate( 'Image' ),
|
||||
'description' => __( 'Will be shown instead of the icon', 'us' ),
|
||||
'type' => 'upload',
|
||||
'is_multiple' => FALSE,
|
||||
'extension' => 'png,jpg,jpeg,gif,svg',
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,255 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => us_translate( 'Image' ),
|
||||
'icon' => 'icon-wpb-single-image',
|
||||
'params' => array_merge( array(
|
||||
|
||||
// General
|
||||
'img' => array(
|
||||
'type' => 'upload',
|
||||
'extension' => 'png,jpg,jpeg,gif,svg',
|
||||
'context' => array( 'header', 'grid' ),
|
||||
),
|
||||
'image' => array(
|
||||
'type' => 'upload',
|
||||
'extension' => 'png,jpg,jpeg,gif,svg',
|
||||
'shortcode_cols' => 2,
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
'size' => array(
|
||||
'title' => __( 'Image Size', 'us' ),
|
||||
'description' => $misc['desc_img_sizes'],
|
||||
'type' => 'select',
|
||||
'options' => us_image_sizes_select_values(),
|
||||
'std' => 'large',
|
||||
'cols' => 2,
|
||||
'admin_label' => TRUE,
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
'align' => array(
|
||||
'title' => us_translate( 'Alignment' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'none' => us_translate( 'None' ),
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'none',
|
||||
'cols' => 2,
|
||||
'admin_label' => TRUE,
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
'style' => array(
|
||||
'title' => __( 'Image Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'' => us_translate( 'None' ),
|
||||
'circle' => __( 'Circle', 'us' ),
|
||||
'outlined' => __( 'Outlined', 'us' ),
|
||||
'shadow-1' => __( 'Simple Shadow', 'us' ),
|
||||
'shadow-2' => __( 'Colored Shadow', 'us' ),
|
||||
'phone6-1' => __( 'Phone 6 Black Realistic', 'us' ),
|
||||
'phone6-2' => __( 'Phone 6 White Realistic', 'us' ),
|
||||
'phone6-3' => __( 'Phone 6 Black Flat', 'us' ),
|
||||
'phone6-4' => __( 'Phone 6 White Flat', 'us' ),
|
||||
),
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
'meta' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show image title and description', 'us' ),
|
||||
'std' => FALSE,
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
'meta_style' => array(
|
||||
'title' => __( 'Title and Description Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'simple' => __( 'Below the image', 'us' ),
|
||||
'modern' => __( 'Over the image', 'us' ),
|
||||
),
|
||||
'std' => 'simple',
|
||||
'show_if' => array( 'meta', '!=', FALSE ),
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
'onclick' => array(
|
||||
'title' => __( 'On click action', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'' => us_translate( 'None' ),
|
||||
'lightbox' => __( 'Open original image in a popup', 'us' ),
|
||||
'custom_link' => __( 'Open custom link', 'us' ),
|
||||
),
|
||||
'std' => '',
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
'link' => array(
|
||||
'header_title' => us_translate( 'Link' ),
|
||||
'placeholder' => us_translate( 'Enter the URL' ),
|
||||
'type' => 'link',
|
||||
'std' => array(),
|
||||
'shortcode_std' => '',
|
||||
'shortcode_show_if' => array( 'onclick', '=', 'custom_link' ),
|
||||
),
|
||||
'img_transparent' => array(
|
||||
'title' => __( 'Different Image for Transparent Header', 'us' ),
|
||||
'type' => 'upload',
|
||||
'extension' => 'png,jpg,jpeg,gif,svg',
|
||||
'context' => array( 'header' ),
|
||||
),
|
||||
'animate' => array(
|
||||
'title' => __( 'Animation', 'us' ),
|
||||
'description' => __( 'Selected animation will be applied to this element, when it enters into the browsers viewport.', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'' => us_translate( 'None' ),
|
||||
'fade' => __( 'Fade', 'us' ),
|
||||
'afc' => __( 'Appear From Center', 'us' ),
|
||||
'afl' => __( 'Appear From Left', 'us' ),
|
||||
'afr' => __( 'Appear From Right', 'us' ),
|
||||
'afb' => __( 'Appear From Bottom', 'us' ),
|
||||
'aft' => __( 'Appear From Top', 'us' ),
|
||||
'hfc' => __( 'Height From Center', 'us' ),
|
||||
'wfc' => __( 'Width From Center', 'us' ),
|
||||
),
|
||||
'std' => '',
|
||||
'admin_label' => TRUE,
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
'animate_delay' => array(
|
||||
'title' => __( 'Animation Delay (in seconds)', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'show_if' => array( 'animate', '!=', '' ),
|
||||
'admin_label' => TRUE,
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
|
||||
// Sizes
|
||||
'heading_1' => array(
|
||||
'title' => __( 'Default Sizes', 'us' ),
|
||||
'type' => 'heading',
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
'context' => array( 'header' ),
|
||||
),
|
||||
'height' => array(
|
||||
'title' => us_translate( 'Height' ),
|
||||
'type' => 'slider',
|
||||
'std' => '35px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 20,
|
||||
'max' => 300,
|
||||
),
|
||||
'vh' => array(
|
||||
'min' => 1,
|
||||
'max' => 20,
|
||||
),
|
||||
),
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
'context' => array( 'header' ),
|
||||
),
|
||||
'height_tablets' => array(
|
||||
'title' => __( 'Height on Tablets', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '30px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 20,
|
||||
'max' => 300,
|
||||
),
|
||||
'vh' => array(
|
||||
'min' => 1,
|
||||
'max' => 20,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
'context' => array( 'header' ),
|
||||
),
|
||||
'height_mobiles' => array(
|
||||
'title' => __( 'Height on Mobiles', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '20px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 20,
|
||||
'max' => 300,
|
||||
),
|
||||
'vh' => array(
|
||||
'min' => 1,
|
||||
'max' => 20,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
'context' => array( 'header' ),
|
||||
),
|
||||
'heading_2' => array(
|
||||
'title' => __( 'Sizes in the Sticky Header', 'us' ),
|
||||
'type' => 'heading',
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
),
|
||||
'height_sticky' => array(
|
||||
'title' => us_translate( 'Height' ),
|
||||
'type' => 'slider',
|
||||
'std' => '35px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 20,
|
||||
'max' => 300,
|
||||
),
|
||||
'vh' => array(
|
||||
'min' => 1,
|
||||
'max' => 20,
|
||||
),
|
||||
),
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
'context' => array( 'header' ),
|
||||
),
|
||||
'height_sticky_tablets' => array(
|
||||
'title' => __( 'Height on Tablets', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '30px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 20,
|
||||
'max' => 300,
|
||||
),
|
||||
'vh' => array(
|
||||
'min' => 1,
|
||||
'max' => 20,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
'context' => array( 'header' ),
|
||||
),
|
||||
'height_sticky_mobiles' => array(
|
||||
'title' => __( 'Height on Mobiles', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '20px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 20,
|
||||
'max' => 300,
|
||||
),
|
||||
'vh' => array(
|
||||
'min' => 1,
|
||||
'max' => 20,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'group' => __( 'Sizes', 'us' ),
|
||||
'context' => array( 'header' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,122 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Image Slider', 'us' ),
|
||||
'icon' => 'icon-wpb-images-carousel',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'ids' => array(
|
||||
'title' => us_translate( 'Images' ),
|
||||
'type' => 'upload',
|
||||
'is_multiple' => TRUE,
|
||||
'extension' => 'png,jpg,jpeg,gif,svg', // sets available file types
|
||||
),
|
||||
'arrows' => array(
|
||||
'title' => __( 'Prev/Next arrows', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'always' => __( 'Show always', 'us' ),
|
||||
'hover' => __( 'Show on hover', 'us' ),
|
||||
'hide' => us_translate( 'Hide' ),
|
||||
),
|
||||
'std' => 'always',
|
||||
'cols' => 2,
|
||||
),
|
||||
'nav' => array(
|
||||
'title' => __( 'Additional Navigation', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'none' => us_translate( 'None' ),
|
||||
'dots' => __( 'Dots', 'us' ),
|
||||
'thumbs' => __( 'Thumbnails', 'us' ),
|
||||
),
|
||||
'std' => 'none',
|
||||
'cols' => 2,
|
||||
),
|
||||
'transition' => array(
|
||||
'title' => __( 'Transition Effect', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'slide' => __( 'Slide', 'us' ),
|
||||
'crossfade' => __( 'Fade', 'us' ),
|
||||
),
|
||||
'std' => 'slide',
|
||||
'cols' => 2,
|
||||
),
|
||||
'transition_speed' => array(
|
||||
'title' => __( 'Slide Speed (in milliseconds)', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '300',
|
||||
'cols' => 2,
|
||||
),
|
||||
'meta' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show image title and description', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'orderby' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Display items in random order', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'fullscreen' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Allow Full Screen view', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'autoplay' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Auto Rotation', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'pause_on_hover' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Pause on hover', 'us' ),
|
||||
'std' => TRUE,
|
||||
'show_if' => array( 'autoplay', '!=', FALSE ),
|
||||
),
|
||||
'autoplay_period' => array(
|
||||
'title' => __( 'Auto Rotation Interval (in seconds)', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '3',
|
||||
'show_if' => array( 'autoplay', '!=', FALSE ),
|
||||
),
|
||||
'img_size' => array(
|
||||
'title' => __( 'Images Size', 'us' ),
|
||||
'description' => $misc['desc_img_sizes'],
|
||||
'type' => 'select',
|
||||
'options' => us_image_sizes_select_values(),
|
||||
'std' => 'large',
|
||||
'cols' => 2,
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'img_fit' => array(
|
||||
'title' => __( 'Images Fit', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'scaledown' => __( 'Initial', 'us' ),
|
||||
'contain' => __( 'Fit to Area', 'us' ),
|
||||
'cover' => __( 'Fill Area', 'us' ),
|
||||
),
|
||||
'std' => 'scaledown',
|
||||
'cols' => 2,
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'style' => array(
|
||||
'title' => __( 'Images Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'none' => us_translate( 'None' ),
|
||||
'phone6-1' => __( 'Phone 6 Black Realistic', 'us' ),
|
||||
'phone6-2' => __( 'Phone 6 White Realistic', 'us' ),
|
||||
'phone6-3' => __( 'Phone 6 Black Flat', 'us' ),
|
||||
'phone6-4' => __( 'Phone 6 White Flat', 'us' ),
|
||||
),
|
||||
'std' => 'none',
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,91 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$typography_options = us_config( 'elements_typography_options' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Interactive Text', 'us' ),
|
||||
'description' => __( 'Text with dynamically changing part', 'us' ),
|
||||
'icon' => 'fas fa-italic',
|
||||
'params' => array_merge( array(
|
||||
|
||||
// General
|
||||
'texts' => array(
|
||||
'title' => __( 'Text States', 'us' ),
|
||||
'description' => __( 'Each value on a new line', 'us' ),
|
||||
'type' => 'textarea',
|
||||
'std' => 'We create great design' . "\n" . 'We create great websites' . "\n" . 'We create great code',
|
||||
'holder' => 'div',
|
||||
),
|
||||
'dynamic_bold' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Make the dynamic part bold', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
|
||||
), $typography_options, array(
|
||||
|
||||
// More Options
|
||||
'align' => array(
|
||||
'title' => us_translate( 'Alignment' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'center',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'tag' => array(
|
||||
'title' => __( 'HTML tag', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['html_tag_values'],
|
||||
'std' => 'h2',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'color' => array(
|
||||
'title' => __( 'Text Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'dynamic_color' => array(
|
||||
'title' => __( 'Dynamic Part Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'animation_type' => array(
|
||||
'title' => __( 'Animation', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'fadeIn' => __( 'Fade in the whole part', 'us' ),
|
||||
'flipInX' => __( 'Flip the whole part', 'us' ),
|
||||
'flipInXChars' => __( 'Flip character by character', 'us' ),
|
||||
'zoomIn' => __( 'Zoom in the whole part', 'us' ),
|
||||
'zoomInChars' => __( 'Zoom in character by character', 'us' ),
|
||||
),
|
||||
'std' => 'fadeIn',
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'duration' => array(
|
||||
'title' => __( 'Animation Duration (in seconds)', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '0.3',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'delay' => array(
|
||||
'title' => __( 'Animation Delay (in seconds)', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '5',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,252 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => us_translate( 'Menu' ),
|
||||
'icon' => 'fas fa-bars',
|
||||
'params' => array_merge( array(
|
||||
'source' => array(
|
||||
'title' => us_translate( 'Menu' ),
|
||||
'description' => $misc['desc_menu_select'],
|
||||
'type' => 'select',
|
||||
'options' => us_get_nav_menus(),
|
||||
'std' => 'header-menu',
|
||||
),
|
||||
'font' => array(
|
||||
'title' => __( 'Font', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => us_get_fonts(),
|
||||
'std' => 'body',
|
||||
),
|
||||
'font_weight' => array(
|
||||
'title' => __( 'Font Weight', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'' => us_translate( 'Default' ),
|
||||
'100' => '100 ' . __( 'thin', 'us' ),
|
||||
'200' => '200 ' . __( 'extra-light', 'us' ),
|
||||
'300' => '300 ' . __( 'light', 'us' ),
|
||||
'400' => '400 ' . __( 'normal', 'us' ),
|
||||
'500' => '500 ' . __( 'medium', 'us' ),
|
||||
'600' => '600 ' . __( 'semi-bold', 'us' ),
|
||||
'700' => '700 ' . __( 'bold', 'us' ),
|
||||
'800' => '800 ' . __( 'extra-bold', 'us' ),
|
||||
'900' => '900 ' . __( 'ultra-bold', 'us' ),
|
||||
),
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
),
|
||||
'text_transform' => array(
|
||||
'title' => __( 'Text Transform', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'' => us_translate( 'Default' ),
|
||||
'none' => us_translate( 'None' ),
|
||||
'uppercase' => 'UPPERCASE',
|
||||
'lowercase' => 'lowercase',
|
||||
'capitalize' => 'Capitalize',
|
||||
),
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
),
|
||||
'font_style' => array(
|
||||
'title' => __( 'Font Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'' => us_translate( 'Default' ),
|
||||
'normal' => __( 'normal', 'us' ),
|
||||
'italic' => __( 'italic', 'us' ),
|
||||
),
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
),
|
||||
'font_size' => array(
|
||||
'title' => __( 'Main Items Font Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '1rem',
|
||||
'cols' => 2,
|
||||
),
|
||||
'indents' => array(
|
||||
'title' => __( 'Distance Between Main Items', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '20px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 0,
|
||||
'max' => 50,
|
||||
),
|
||||
'rem' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 3.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
'em' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 3.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
'vw' => array(
|
||||
'min' => 0,
|
||||
'max' => 10,
|
||||
),
|
||||
'vh' => array(
|
||||
'min' => 0,
|
||||
'max' => 10,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
),
|
||||
'vstretch' => array(
|
||||
'title' => __( 'Main Items Height', 'us' ),
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Stretch to the full available height', 'us' ),
|
||||
'std' => TRUE,
|
||||
),
|
||||
'hover_effect' => array(
|
||||
'title' => __( 'Main Items Hover Effect', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'simple' => __( 'Simple', 'us' ),
|
||||
'underline' => us_translate( 'Underline' ),
|
||||
),
|
||||
'std' => 'simple',
|
||||
),
|
||||
'dropdown_arrow' => array(
|
||||
'title' => __( 'Dropdown Indication', 'us' ),
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show arrows for main items with dropdown', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => __( 'Dropdowns', 'us' ),
|
||||
),
|
||||
'dropdown_effect' => array(
|
||||
'title' => __( 'Dropdown Effect', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['dropdown_effect_values'],
|
||||
'std' => 'height',
|
||||
'group' => __( 'Dropdowns', 'us' ),
|
||||
),
|
||||
'dropdown_font_size' => array(
|
||||
'title' => __( 'Dropdown Font Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '1rem',
|
||||
'group' => __( 'Dropdowns', 'us' ),
|
||||
),
|
||||
'dropdown_width' => array(
|
||||
'title' => __( 'Dropdown Width', 'us' ),
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Limit full-width dropdowns by a menu width', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => __( 'Dropdowns', 'us' ),
|
||||
),
|
||||
'mobile_width' => array(
|
||||
'title' => __( 'Show mobile menu when screen width is less than', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '900px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 300,
|
||||
'max' => 2000,
|
||||
'step' => 10,
|
||||
),
|
||||
),
|
||||
'group' => __( 'Mobile Menu', 'us' ),
|
||||
),
|
||||
'mobile_layout' => array(
|
||||
'title' => __( 'Mobile Menu Layout', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'dropdown' => __( 'Dropdown', 'us' ),
|
||||
'panel' => __( 'Vertical Panel', 'us' ),
|
||||
'fullscreen' => __( 'Full Screen', 'us' ),
|
||||
),
|
||||
'std' => 'dropdown',
|
||||
'group' => __( 'Mobile Menu', 'us' ),
|
||||
),
|
||||
'mobile_effect_p' => array(
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'afl' => __( 'Appear From Left', 'us' ),
|
||||
'afr' => __( 'Appear From Right', 'us' ),
|
||||
),
|
||||
'std' => 'afl',
|
||||
'show_if' => array( 'mobile_layout', '=', 'panel' ),
|
||||
'group' => __( 'Mobile Menu', 'us' ),
|
||||
),
|
||||
'mobile_effect_f' => array(
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'aft' => __( 'Appear From Top', 'us' ),
|
||||
'afc' => __( 'Appear From Center', 'us' ),
|
||||
'afb' => __( 'Appear From Bottom', 'us' ),
|
||||
),
|
||||
'std' => 'aft',
|
||||
'show_if' => array( 'mobile_layout', '=', 'fullscreen' ),
|
||||
'group' => __( 'Mobile Menu', 'us' ),
|
||||
),
|
||||
'mobile_font_size' => array(
|
||||
'title' => __( 'Main Items Font Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '1.1rem',
|
||||
'cols' => 2,
|
||||
'group' => __( 'Mobile Menu', 'us' ),
|
||||
),
|
||||
'mobile_dropdown_font_size' => array(
|
||||
'title' => __( 'Dropdown Font Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '0.9rem',
|
||||
'cols' => 2,
|
||||
'group' => __( 'Mobile Menu', 'us' ),
|
||||
),
|
||||
'mobile_align' => array(
|
||||
'title' => __( 'Menu Items Alignment', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'group' => __( 'Mobile Menu', 'us' ),
|
||||
),
|
||||
'mobile_behavior' => array(
|
||||
'title' => __( 'Dropdown Behavior', 'us' ),
|
||||
'description' => __( 'When this option is OFF, mobile menu dropdown will be shown by click on an arrow only.', 'us' ),
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show dropdown by click on menu item title', 'us' ),
|
||||
'std' => TRUE,
|
||||
'classes' => 'desc_2',
|
||||
'group' => __( 'Mobile Menu', 'us' ),
|
||||
),
|
||||
'mobile_icon_size' => array(
|
||||
'title' => __( 'Icon Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '20px',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Mobile Menu', 'us' ),
|
||||
),
|
||||
'mobile_icon_size_tablets' => array(
|
||||
'title' => __( 'Icon Size on Tablets', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '20px',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Mobile Menu', 'us' ),
|
||||
),
|
||||
'mobile_icon_size_mobiles' => array(
|
||||
'title' => __( 'Icon Size on Mobiles', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '20px',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Mobile Menu', 'us' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Message Box', 'us' ),
|
||||
'description' => __( 'Colored notification box', 'us' ),
|
||||
'icon' => 'icon-wpb-information-white',
|
||||
'js_view' => 'VcMessageView',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'color' => array(
|
||||
'title' => us_translate( 'Color' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'blue' => __( 'Blue', 'us' ),
|
||||
'yellow' => __( 'Yellow', 'us' ),
|
||||
'green' => __( 'Green', 'us' ),
|
||||
'red' => __( 'Red', 'us' ),
|
||||
'custom' => us_translate( 'Custom' ),
|
||||
),
|
||||
'std' => 'blue',
|
||||
),
|
||||
'bg_color' => array(
|
||||
'title' => __( 'Background Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'holder' => 'div',
|
||||
'std' => '',
|
||||
'show_if' => array( 'color', '=', 'custom' ),
|
||||
),
|
||||
'text_color' => array(
|
||||
'title' => __( 'Text Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'holder' => 'div',
|
||||
'std' => '',
|
||||
'show_if' => array( 'color', '=', 'custom' ),
|
||||
),
|
||||
'content' => array(
|
||||
'title' => __( 'Message Text', 'us' ),
|
||||
'type' => 'textarea',
|
||||
'holder' => 'div',
|
||||
'std' => 'I am message box. Click edit button to change this text.',
|
||||
),
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
),
|
||||
'closing' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Enable closing', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
// Get Page Blocks
|
||||
$us_page_blocks_list = us_get_posts_titles_for( 'us_page_block' );
|
||||
|
||||
// Visual Composer sends 'post_id' POST variable to the element popup. We will use it to remove current page block from list.
|
||||
if ( ! empty( $_POST['post_id'] ) AND isset( $us_page_blocks_list[ $_POST['post_id'] ] ) ) {
|
||||
unset( $us_page_blocks_list[ $_POST['post_id'] ] );
|
||||
}
|
||||
|
||||
|
||||
return array(
|
||||
'title' => __( 'Page Block', 'us' ),
|
||||
'icon' => 'far fa-square',
|
||||
'params' => array(
|
||||
|
||||
'id' => array(
|
||||
'title' => __( 'Page Block', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $us_page_blocks_list,
|
||||
'std' => '',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'remove_rows' => array(
|
||||
'switch_text' => __( 'Exclude Rows and Columns in selected Page Block', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
),
|
||||
'force_fullwidth_rows' => array(
|
||||
'switch_text' => __( 'Stretch content of Rows to the full width', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'show_if' => array( 'remove_rows', '=', '' ),
|
||||
),
|
||||
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$typography_options = us_config( 'elements_typography_options' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Page Title', 'us' ),
|
||||
'icon' => 'fas fa-font',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'tag' => array(
|
||||
'title' => __( 'HTML tag', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['html_tag_values'],
|
||||
'std' => 'h1',
|
||||
),
|
||||
'align' => array(
|
||||
'title' => us_translate( 'Alignment' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'color' => array(
|
||||
'title' => us_translate( 'Color' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
),
|
||||
'inline' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show the next text in the same line', 'us' ),
|
||||
'std' => FALSE,
|
||||
'show_if' => array( 'align', '=', array( 'left', 'right' ) ),
|
||||
),
|
||||
'description' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show archive pages description', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
|
||||
), $typography_options, $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,151 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Person', 'us' ),
|
||||
'description' => __( 'Photo, name, description and social links', 'us' ),
|
||||
'icon' => 'fas fa-user',
|
||||
'params' => array_merge( array(
|
||||
|
||||
// General
|
||||
'image' => array(
|
||||
'title' => __( 'Photo', 'us' ),
|
||||
'type' => 'upload',
|
||||
'is_multiple' => FALSE,
|
||||
'extension' => 'png,jpg,jpeg,gif,svg',
|
||||
'cols' => 2,
|
||||
),
|
||||
'image_hover' => array(
|
||||
'title' => __( 'Photo on hover (optional)', 'us' ),
|
||||
'type' => 'upload',
|
||||
'is_multiple' => FALSE,
|
||||
'extension' => 'png,jpg,jpeg,gif,svg',
|
||||
'cols' => 2,
|
||||
),
|
||||
'name' => array(
|
||||
'title' => us_translate( 'Name' ),
|
||||
'type' => 'text',
|
||||
'std' => 'John Doe',
|
||||
'holder' => 'div',
|
||||
'cols' => 2,
|
||||
),
|
||||
'role' => array(
|
||||
'title' => __( 'Role', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => 'UpSolution Team',
|
||||
'holder' => 'div',
|
||||
'cols' => 2,
|
||||
),
|
||||
'content' => array(
|
||||
'title' => us_translate( 'Description' ),
|
||||
'type' => 'textarea',
|
||||
'std' => '',
|
||||
'holder' => 'div',
|
||||
),
|
||||
'link' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'description' => __( 'Applies to the Name and to the Photo', 'us' ),
|
||||
'type' => 'link',
|
||||
'std' => '',
|
||||
),
|
||||
|
||||
// More Options
|
||||
'layout' => array(
|
||||
'title' => __( 'Layout', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'simple' => __( 'Simple', 'us' ),
|
||||
'simple_circle' => __( 'Simple (rounded photo)', 'us' ),
|
||||
'square' => __( 'Compact', 'us' ),
|
||||
'circle' => __( 'Compact (rounded photo)', 'us' ),
|
||||
'modern' => __( 'Modern', 'us' ),
|
||||
'trendy' => __( 'Trendy', 'us' ),
|
||||
),
|
||||
'std' => 'circle',
|
||||
'cols' => 2,
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'effect' => array(
|
||||
'title' => __( 'Photo Effect', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'none' => us_translate( 'None' ),
|
||||
'sepia' => __( 'Sepia', 'us' ),
|
||||
'bw' => __( 'Black & White', 'us' ),
|
||||
'faded' => __( 'Faded', 'us' ),
|
||||
'colored' => __( 'Colored', 'us' ),
|
||||
),
|
||||
'std' => 'none',
|
||||
'cols' => 2,
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'img_size' => array(
|
||||
'title' => __( 'Image Size', 'us' ),
|
||||
'description' => $misc['desc_img_sizes'],
|
||||
'type' => 'select',
|
||||
'options' => us_image_sizes_select_values(),
|
||||
'std' => 'us_350_350_crop',
|
||||
'cols' => 2,
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'email' => array(
|
||||
'title' => us_translate( 'Email' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'facebook' => array(
|
||||
'title' => 'Facebook',
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'twitter' => array(
|
||||
'title' => 'Twitter',
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'google_plus' => array(
|
||||
'title' => 'Google',
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'linkedin' => array(
|
||||
'title' => 'LinkedIn',
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'skype' => array(
|
||||
'title' => 'Skype',
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'custom_link' => array(
|
||||
'title' => __( 'Custom Link', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
'custom_icon' => array(
|
||||
'title' => __( 'Custom Link Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => 'fas|star',
|
||||
'show_if' => array( 'custom_link', '!=', '' ),
|
||||
'group' => __( 'More Options', 'us' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,202 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$body_fontsize = us_get_option( 'body_fontsize', '16px' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Popup', 'us' ),
|
||||
'description' => __( 'Window appears in the foreground of the page content', 'us' ),
|
||||
'icon' => 'fas fa-window-restore',
|
||||
'params' => array_merge( array(
|
||||
|
||||
// General
|
||||
'title' => array(
|
||||
'title' => us_translate( 'Title' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'holder' => 'div',
|
||||
'group' => us_translate( 'Content' ),
|
||||
),
|
||||
'content' => array(
|
||||
'type' => 'editor',
|
||||
'std' => __( 'This content will appear inside a popup...', 'us' ),
|
||||
'group' => us_translate( 'Content' ),
|
||||
),
|
||||
|
||||
// Trigger
|
||||
'show_on' => array(
|
||||
'title' => __( 'Show Popup on', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'btn' => __( 'Button click', 'us' ),
|
||||
'image' => __( 'Image click', 'us' ),
|
||||
'selector' => __( 'Custom element click', 'us' ),
|
||||
'load' => __( 'Page load', 'us' ),
|
||||
),
|
||||
'std' => 'btn',
|
||||
'group' => __( 'Trigger', 'us' ),
|
||||
),
|
||||
'btn_label' => array(
|
||||
'title' => __( 'Button Label', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => __( 'Click Me', 'us' ),
|
||||
'cols' => 2,
|
||||
'admin_label' => TRUE,
|
||||
'show_if' => array( 'show_on', '=', 'btn' ),
|
||||
'group' => __( 'Trigger', 'us' ),
|
||||
),
|
||||
'btn_size' => array(
|
||||
'title' => __( 'Button Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => $body_fontsize,
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'show_on', '=', 'btn' ),
|
||||
'group' => __( 'Trigger', 'us' ),
|
||||
),
|
||||
'btn_style' => array(
|
||||
'title' => __( 'Button Style', 'us' ),
|
||||
'description' => $misc['desc_btn_styles'],
|
||||
'type' => 'select',
|
||||
'options' => us_get_btn_styles(),
|
||||
'std' => '1',
|
||||
'show_if' => array( 'show_on', '=', 'btn' ),
|
||||
'group' => __( 'Trigger', 'us' ),
|
||||
),
|
||||
'image' => array(
|
||||
'title' => us_translate( 'Image' ),
|
||||
'type' => 'upload',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'show_on', '=', 'image' ),
|
||||
'group' => __( 'Trigger', 'us' ),
|
||||
),
|
||||
'image_size' => array(
|
||||
'title' => __( 'Image Size', 'us' ),
|
||||
'description' => $misc['desc_img_sizes'],
|
||||
'type' => 'select',
|
||||
'options' => us_image_sizes_select_values(),
|
||||
'std' => 'large',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'show_on', '=', 'image' ),
|
||||
'group' => __( 'Trigger', 'us' ),
|
||||
),
|
||||
'align' => array(
|
||||
'title' => us_translate( 'Alignment' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'show_if' => array( 'show_on', 'in', array( 'btn', 'image', 'text' ) ),
|
||||
'group' => __( 'Trigger', 'us' ),
|
||||
),
|
||||
'btn_icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
'show_if' => array( 'show_on', '=', 'btn' ),
|
||||
'group' => __( 'Trigger', 'us' ),
|
||||
),
|
||||
'btn_iconpos' => array(
|
||||
'title' => __( 'Icon Position', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'show_if' => array( 'show_on', '=', 'btn' ),
|
||||
'group' => __( 'Trigger', 'us' ),
|
||||
),
|
||||
'trigger_selector' => array(
|
||||
'title' => __( 'Custom element CSS selector', 'us' ),
|
||||
'description' => __( 'Use class or ID.', 'us' ) . ' ' . __( 'Examples:', 'us' ) . ' <span class="usof-example">.my-element</span>, <span class="usof-example">#my-element</span>',
|
||||
'type' => 'text',
|
||||
'std' => '.my-element',
|
||||
'show_if' => array( 'show_on', '=', 'selector' ),
|
||||
'group' => __( 'Trigger', 'us' ),
|
||||
),
|
||||
'show_delay' => array(
|
||||
'title' => __( 'Delay after page load (in seconds)', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '2',
|
||||
'show_if' => array( 'show_on', '=', 'load' ),
|
||||
'group' => __( 'Trigger', 'us' ),
|
||||
),
|
||||
|
||||
// Style
|
||||
'popup_width' => array(
|
||||
'title' => __( 'Popup Width', 'us' ),
|
||||
'description' => $misc['desc_width'],
|
||||
'type' => 'text',
|
||||
'std' => '600px',
|
||||
'group' => us_translate( 'Style' ),
|
||||
),
|
||||
'popup_padding' => array(
|
||||
'title' => __( 'Popup Padding', 'us' ),
|
||||
'description' => $misc['desc_padding'],
|
||||
'type' => 'text',
|
||||
'std' => '5%',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Style' ),
|
||||
),
|
||||
'popup_border_radius' => array(
|
||||
'title' => __( 'Popup Corners Radius', 'us' ),
|
||||
'description' => $misc['desc_border_radius'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Style' ),
|
||||
),
|
||||
'title_bgcolor' => array(
|
||||
'title' => __( 'Title Background Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => us_get_color( 'color_content_bg_alt', TRUE ),
|
||||
'group' => us_translate( 'Style' ),
|
||||
),
|
||||
'title_textcolor' => array(
|
||||
'title' => __( 'Title Text Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => us_get_color( 'color_content_heading' ),
|
||||
'group' => us_translate( 'Style' ),
|
||||
),
|
||||
'content_bgcolor' => array(
|
||||
'title' => __( 'Popup Background Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => us_get_color( 'color_content_bg', TRUE ),
|
||||
'group' => us_translate( 'Style' ),
|
||||
),
|
||||
'content_textcolor' => array(
|
||||
'title' => __( 'Popup Text Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => us_get_color( 'color_content_text' ),
|
||||
'group' => us_translate( 'Style' ),
|
||||
),
|
||||
'overlay_bgcolor' => array(
|
||||
'title' => __( 'Background Overlay', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => 'rgba(0,0,0,0.85)',
|
||||
'group' => us_translate( 'Style' ),
|
||||
),
|
||||
'animation' => array(
|
||||
'title' => __( 'Animation Type', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'fadeIn' => __( 'Fade', 'us' ),
|
||||
'scaleUp' => __( 'Scale Up', 'us' ),
|
||||
'scaleDown' => __( 'Scale Down', 'us' ),
|
||||
'slideTop' => __( 'Slide from the Top', 'us' ),
|
||||
'slideBottom' => __( 'Slide from the Bottom', 'us' ),
|
||||
'flipHor' => __( '3D Flip', 'us' ) . ' (' . __( 'Horizontal', 'us' ) . ')',
|
||||
'flipVer' => __( '3D Flip', 'us' ) . ' (' . __( 'Vertical', 'us' ) . ')',
|
||||
),
|
||||
'std' => 'fadeIn',
|
||||
'group' => us_translate( 'Style' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,88 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$typography_options = us_config( 'elements_typography_options' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Post Author', 'us' ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'icon' => 'fas fa-user',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'link' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'author_page' => __( 'To the page with the Author\'s posts', 'us' ),
|
||||
'author_website' => __( 'To the Author\'s website (if specified on his profile)', 'us' ),
|
||||
'post' => __( 'To a Post', 'us' ),
|
||||
'custom' => __( 'Custom', 'us' ),
|
||||
'none' => us_translate( 'None' ),
|
||||
),
|
||||
'std' => 'author_page',
|
||||
),
|
||||
'custom_link' => array(
|
||||
'placeholder' => us_translate( 'Enter the URL' ),
|
||||
'description' => $misc['desc_grid_custom_link'],
|
||||
'type' => 'link',
|
||||
'std' => array(),
|
||||
'shortcode_std' => '',
|
||||
'grid_classes' => 'desc_3',
|
||||
'show_if' => array( 'link', '=', 'custom' ),
|
||||
),
|
||||
'color_link' => array(
|
||||
'title' => __( 'Link Color', 'us' ),
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Inherit from text color', 'us' ),
|
||||
'std' => TRUE,
|
||||
'show_if' => array( 'link', '!=', 'none' ),
|
||||
),
|
||||
'avatar' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => us_translate( 'Profile Picture' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'avatar_width' => array(
|
||||
'title' => __( 'Picture Width', 'us' ),
|
||||
'description' => $misc['desc_pixels'],
|
||||
'type' => 'text',
|
||||
'std' => '96px',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'avatar', '!=', FALSE ),
|
||||
),
|
||||
'avatar_pos' => array(
|
||||
'title' => __( 'Picture Position', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'top' => us_translate( 'Top' ),
|
||||
'left' => us_translate( 'Left' ),
|
||||
),
|
||||
'std' => 'top',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'avatar', '!=', FALSE ),
|
||||
),
|
||||
'posts_count' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Posts count', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'website' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => us_translate( 'Website' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'info' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => us_translate( 'Biographical Info' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
),
|
||||
|
||||
), $typography_options, $design_options, $hover_options ),
|
||||
);
|
||||
@@ -0,0 +1,72 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$typography_options = us_config( 'elements_typography_options' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Post Comments', 'us' ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'icon' => 'fas fa-comments-alt',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'layout' => array(
|
||||
'title' => us_translate( 'Show' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'comments_template' => __( 'List of comments with response form', 'us' ),
|
||||
'amount' => __( 'Comments amount', 'us' ),
|
||||
),
|
||||
'std' => 'comments_template',
|
||||
'admin_label' => TRUE,
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
'hide_zero' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Hide this element if no comments', 'us' ),
|
||||
'std' => FALSE,
|
||||
'show_if' => array( 'layout', '=', 'amount' ),
|
||||
),
|
||||
'number' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show only number', 'us' ),
|
||||
'std' => FALSE,
|
||||
'show_if' => array( 'layout', '=', 'amount' ),
|
||||
),
|
||||
'link' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'post' => __( 'To a Post comments', 'us' ),
|
||||
'custom' => __( 'Custom', 'us' ),
|
||||
'none' => us_translate( 'None' ),
|
||||
),
|
||||
'std' => 'post',
|
||||
'show_if' => array( 'layout', '=', 'amount' ),
|
||||
),
|
||||
'custom_link' => array(
|
||||
'placeholder' => us_translate( 'Enter the URL' ),
|
||||
'description' => $misc['desc_grid_custom_link'],
|
||||
'type' => 'link',
|
||||
'std' => array(),
|
||||
'shortcode_std' => '',
|
||||
'grid_classes' => 'desc_3',
|
||||
'show_if' => array( 'link', '=', 'custom' ),
|
||||
),
|
||||
'color_link' => array(
|
||||
'title' => __( 'Link Color', 'us' ),
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Inherit from text color', 'us' ),
|
||||
'std' => TRUE,
|
||||
'show_if' => array( 'link', '!=', 'none' ),
|
||||
),
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
'show_if' => array( 'layout', '=', 'amount' ),
|
||||
),
|
||||
|
||||
), $typography_options, $design_options, $hover_options ),
|
||||
);
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$typography_options = us_config( 'elements_typography_options' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Post Content', 'us' ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'icon' => 'fas fa-align-justify',
|
||||
'shortcode_post_type' => array( 'us_page_block' ),
|
||||
'params' => array_merge( array(
|
||||
|
||||
'type' => array(
|
||||
'title' => us_translate( 'Show' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'excerpt_content' => __( 'Excerpt, if it\'s empty, show part of a content', 'us' ),
|
||||
'excerpt_only' => __( 'Excerpt, if it\'s empty, show nothing', 'us' ),
|
||||
'part_content' => __( 'Part of a content', 'us' ),
|
||||
'full_content' => __( 'Full content', 'us' ),
|
||||
),
|
||||
'std' => 'excerpt_content',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'force_fullwidth_rows' => array(
|
||||
'switch_text' => __( 'Stretch content of Rows to the full width', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'type', '=', 'full_content' ),
|
||||
),
|
||||
'length' => array(
|
||||
'title' => __( 'Amount of words', 'us' ),
|
||||
'description' => __( 'All HTML tags of a content will be stripped', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '30',
|
||||
'options' => array(
|
||||
'' => array(
|
||||
'min' => 1,
|
||||
'max' => 100,
|
||||
),
|
||||
),
|
||||
'show_if' => array( 'type', 'in', array( 'excerpt_content', 'part_content' ) ),
|
||||
),
|
||||
|
||||
), $typography_options, $design_options, $hover_options ),
|
||||
);
|
||||
@@ -0,0 +1,83 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$custom_fields_options = array_merge( us_get_custom_fields(), array( 'custom' => __( 'Custom Field', 'us' ) ) );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$typography_options = us_config( 'elements_typography_options' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Post Custom Field', 'us' ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'icon' => 'fas fa-cog',
|
||||
'params' => array_merge( array(
|
||||
'key' => array(
|
||||
'title' => us_translate( 'Show' ),
|
||||
'type' => 'select',
|
||||
'options' => $custom_fields_options,
|
||||
'std' => key( $custom_fields_options ),
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'custom_key' => array(
|
||||
'description' => __( 'Enter custom field name to retrieve its value.', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'admin_label' => TRUE,
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'key', '=', 'custom' ),
|
||||
),
|
||||
'hide_empty' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Hide this element if its value is empty', 'us' ),
|
||||
'std' => FALSE,
|
||||
'show_if' => array( 'key', '!=', 'us_testimonial_rating' ),
|
||||
),
|
||||
'link' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'post' => __( 'To a Post', 'us' ),
|
||||
'custom' => __( 'Custom', 'us' ),
|
||||
'none' => us_translate( 'None' ),
|
||||
),
|
||||
'std' => 'none',
|
||||
),
|
||||
'custom_link' => array(
|
||||
'placeholder' => us_translate( 'Enter the URL' ),
|
||||
'description' => $misc['desc_grid_custom_link'],
|
||||
'type' => 'link',
|
||||
'std' => array(),
|
||||
'shortcode_std' => '',
|
||||
'grid_classes' => 'desc_3',
|
||||
'show_if' => array( 'link', '=', 'custom' ),
|
||||
),
|
||||
'color_link' => array(
|
||||
'title' => __( 'Link Color', 'us' ),
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Inherit from text color', 'us' ),
|
||||
'std' => TRUE,
|
||||
'show_if' => array( 'link', '!=', 'none' ),
|
||||
),
|
||||
'thumbnail_size' => array(
|
||||
'title' => __( 'Image Size', 'us' ),
|
||||
'description' => $misc['desc_img_sizes'],
|
||||
'type' => 'select',
|
||||
'options' => us_image_sizes_select_values(),
|
||||
'std' => 'large',
|
||||
'show_if' => array( 'key', '!=', 'us_testimonial_rating' ),
|
||||
),
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
'show_if' => array( 'key', '!=', 'us_testimonial_rating' ),
|
||||
),
|
||||
'text_before' => array(
|
||||
'title' => __( 'Text before value', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
),
|
||||
|
||||
), $typography_options, $design_options, $hover_options ),
|
||||
);
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$typography_options = us_config( 'elements_typography_options' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Post Date', 'us' ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'icon' => 'fas fa-calendar-alt',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'type' => array(
|
||||
'title' => us_translate( 'Show' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'published' => __( 'Date of creation', 'us' ),
|
||||
'modified' => __( 'Date of update', 'us' ),
|
||||
),
|
||||
'std' => 'published',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'format' => array(
|
||||
'title' => __( 'Format', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'smart' => __( 'Human friendly', 'us' ),
|
||||
'default' => us_translate( 'Default' ) . ': ' . date_i18n( get_option( 'date_format' ) ),
|
||||
'jS F Y' => date_i18n( 'jS F Y' ),
|
||||
'j M, G:i' => date_i18n( 'j M, G:i' ),
|
||||
'm/d/Y' => date_i18n( 'm/d/Y' ),
|
||||
'j.m.y' => date_i18n( 'j.m.y' ),
|
||||
'custom' => __( 'Custom', 'us' ),
|
||||
),
|
||||
'std' => 'default',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'format_custom' => array(
|
||||
'description' => '<a href="https://codex.wordpress.org/Formatting_Date_and_Time" target="_blank">' . __( 'Documentation on date and time formatting.', 'us' ) . '</a>',
|
||||
'type' => 'text',
|
||||
'std' => 'F j, Y',
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'format', '=', 'custom' ),
|
||||
),
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
),
|
||||
'text_before' => array(
|
||||
'title' => __( 'Text before value', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
),
|
||||
|
||||
), $typography_options, $design_options, $hover_options ),
|
||||
);
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Post Image', 'us' ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'icon' => 'fas fa-image',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'link' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'post' => __( 'To a Post', 'us' ),
|
||||
'custom' => __( 'Custom', 'us' ),
|
||||
'none' => us_translate( 'None' ),
|
||||
),
|
||||
'grid_std' => 'post',
|
||||
'shortcode_std' => 'none',
|
||||
),
|
||||
'custom_link' => array(
|
||||
'placeholder' => us_translate( 'Enter the URL' ),
|
||||
'description' => $misc['desc_grid_custom_link'],
|
||||
'type' => 'link',
|
||||
'std' => array(),
|
||||
'shortcode_std' => '',
|
||||
'grid_classes' => 'desc_3',
|
||||
'show_if' => array( 'link', '=', 'custom' ),
|
||||
),
|
||||
'placeholder' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show placeholder when post image is absent', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'media_preview' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show media preview for posts with video, audio and gallery format', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'stretch' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Stretch the image to the container width', 'us' ),
|
||||
'std' => TRUE,
|
||||
),
|
||||
'circle' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Enable rounded image', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'thumbnail_size' => array(
|
||||
'title' => __( 'Image Size', 'us' ),
|
||||
'description' => $misc['desc_img_sizes'],
|
||||
'type' => 'select',
|
||||
'options' => us_image_sizes_select_values(),
|
||||
'std' => 'large',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
|
||||
), $design_options, $hover_options ),
|
||||
);
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$taxonomies_options = us_get_taxonomies();
|
||||
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Post Prev/Next Navigation', 'us' ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'icon' => 'fas fa-exchange',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'layout' => array(
|
||||
'title' => __( 'Layout', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'simple' => __( 'Simple links', 'us' ),
|
||||
'sided' => __( 'On sides of the screen', 'us' ),
|
||||
),
|
||||
'std' => 'simple',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'invert' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Invert position of previous and next', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'in_same_term' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Navigate within the specified taxonomy', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'taxonomy' => array(
|
||||
'type' => 'select',
|
||||
'options' => $taxonomies_options,
|
||||
'std' => key( $taxonomies_options ),
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'in_same_term', '!=', FALSE ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,91 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$taxonomies_options = us_get_taxonomies();
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$typography_options = us_config( 'elements_typography_options' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Post Taxonomy', 'us' ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'icon' => 'fas fa-tags',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'taxonomy_name' => array(
|
||||
'title' => us_translate( 'Show' ),
|
||||
'type' => 'select',
|
||||
'options' => $taxonomies_options,
|
||||
'std' => key( $taxonomies_options ),
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'style' => array(
|
||||
'title' => __( 'Display as', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'simple' => us_translate( 'Text' ),
|
||||
'badge' => __( 'Button', 'us' ),
|
||||
),
|
||||
'std' => 'simple',
|
||||
'cols' => 2,
|
||||
),
|
||||
'btn_style' => array(
|
||||
'title' => __( 'Button Style', 'us' ),
|
||||
'description' => $misc['desc_btn_styles'],
|
||||
'type' => 'select',
|
||||
'options' => us_array_merge(
|
||||
array( 'badge' => '– ' . __( 'Badge by default', 'us' ) . ' –' ),
|
||||
us_get_btn_styles()
|
||||
),
|
||||
'std' => 'badge',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'style', '=', 'badge' ),
|
||||
),
|
||||
'separator' => array(
|
||||
'title' => __( 'Separator between items', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => ', ',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'style', '=', 'simple' ),
|
||||
),
|
||||
'link' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'post' => __( 'To a Post', 'us' ),
|
||||
'archive' => __( 'To a Post Archive', 'us' ),
|
||||
'custom' => __( 'Custom', 'us' ),
|
||||
'none' => us_translate( 'None' ),
|
||||
),
|
||||
'std' => 'archive',
|
||||
),
|
||||
'custom_link' => array(
|
||||
'placeholder' => us_translate( 'Enter the URL' ),
|
||||
'description' => $misc['desc_grid_custom_link'],
|
||||
'type' => 'link',
|
||||
'std' => array(),
|
||||
'shortcode_std' => '',
|
||||
'grid_classes' => 'desc_3',
|
||||
'show_if' => array( 'link', '=', 'custom' ),
|
||||
),
|
||||
'color_link' => array(
|
||||
'title' => __( 'Link Color', 'us' ),
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Inherit from text color', 'us' ),
|
||||
'std' => TRUE,
|
||||
'show_if' => array( 'link', '!=', 'none' ),
|
||||
),
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
),
|
||||
'text_before' => array(
|
||||
'title' => __( 'Text before value', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
),
|
||||
|
||||
), $typography_options, $design_options, $hover_options ),
|
||||
);
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$typography_options = us_config( 'elements_typography_options' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Post Title', 'us' ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'icon' => 'fas fa-font',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'link' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'post' => __( 'To a Post', 'us' ),
|
||||
'custom' => __( 'Custom', 'us' ),
|
||||
'none' => us_translate( 'None' ),
|
||||
),
|
||||
'grid_std' => 'post',
|
||||
'shortcode_std' => 'none',
|
||||
),
|
||||
'custom_link' => array(
|
||||
'placeholder' => us_translate( 'Enter the URL' ),
|
||||
'description' => $misc['desc_grid_custom_link'],
|
||||
'type' => 'link',
|
||||
'std' => array(),
|
||||
'shortcode_std' => '',
|
||||
'grid_classes' => 'desc_3',
|
||||
'show_if' => array( 'link', '=', 'custom' ),
|
||||
),
|
||||
'color_link' => array(
|
||||
'title' => __( 'Link Color', 'us' ),
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Inherit from text color', 'us' ),
|
||||
'std' => TRUE,
|
||||
'show_if' => array( 'link', '!=', 'none' ),
|
||||
),
|
||||
'align' => array(
|
||||
'title' => us_translate( 'Alignment' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'none' => us_translate( 'Default' ),
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'none',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'tag' => array(
|
||||
'title' => __( 'HTML tag', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => $misc['html_tag_values'],
|
||||
'std' => 'h2',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
|
||||
), $typography_options, $design_options, $hover_options ),
|
||||
);
|
||||
@@ -0,0 +1,142 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$btn_styles = us_get_btn_styles();
|
||||
$body_fontsize = us_get_option( 'body_fontsize', '16px' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
$items_std = array(
|
||||
array(
|
||||
'title' => 'Free',
|
||||
'price' => '$0',
|
||||
'substring' => 'per month',
|
||||
'features' => '1 project
|
||||
1 user
|
||||
200 tasks
|
||||
No support',
|
||||
'btn_text' => 'Sign up',
|
||||
'btn_color' => 'light',
|
||||
'btn_style' => 'solid',
|
||||
'btn_size' => '15px',
|
||||
'btn_iconpos' => 'left',
|
||||
),
|
||||
array(
|
||||
'title' => 'Standard',
|
||||
'type' => 'featured',
|
||||
'price' => '$24',
|
||||
'substring' => 'per month',
|
||||
'features' => '10 projects
|
||||
10 users
|
||||
Unlimited tasks
|
||||
Premium support',
|
||||
'btn_text' => 'Sign up',
|
||||
'btn_color' => 'primary',
|
||||
'btn_style' => 'solid',
|
||||
'btn_size' => '15px',
|
||||
'btn_iconpos' => 'left',
|
||||
),
|
||||
array(
|
||||
'title' => 'Premium',
|
||||
'price' => '$50',
|
||||
'substring' => 'per month',
|
||||
'features' => 'Unlimited projects
|
||||
Unlimited users
|
||||
Unlimited tasks
|
||||
Premium support',
|
||||
'btn_text' => 'Sign up',
|
||||
'btn_color' => 'light',
|
||||
'btn_style' => 'solid',
|
||||
'btn_size' => '15px',
|
||||
'btn_iconpos' => 'left',
|
||||
),
|
||||
);
|
||||
|
||||
$items_std_string = urlencode( json_encode( $items_std ) );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Pricing Table', 'us' ),
|
||||
'icon' => 'fas fa-dollar-sign',
|
||||
'params' => array_merge(
|
||||
array(
|
||||
|
||||
// General
|
||||
'items' => array(
|
||||
'type' => 'group',
|
||||
'is_sortable' => TRUE,
|
||||
'params' => array(
|
||||
|
||||
'title' => array(
|
||||
'title' => us_translate( 'Title' ),
|
||||
'type' => 'text',
|
||||
'std' => 'New Item',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'type' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Mark this item as featured', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'price' => array(
|
||||
'title' => __( 'Price', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'substring' => array(
|
||||
'title' => __( 'Price Substring', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
),
|
||||
'features' => array(
|
||||
'title' => __( 'Features List', 'us' ),
|
||||
'type' => 'textarea',
|
||||
'std' => '',
|
||||
),
|
||||
'btn_text' => array(
|
||||
'title' => __( 'Button Label', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => 'Sign up',
|
||||
),
|
||||
'btn_link' => array(
|
||||
'title' => __( 'Button Link', 'us' ),
|
||||
'type' => 'link',
|
||||
'std' => '',
|
||||
),
|
||||
'btn_style' => array(
|
||||
'title' => __( 'Button Style', 'us' ),
|
||||
'description' => $misc['desc_btn_styles'],
|
||||
'type' => 'select',
|
||||
'options' => $btn_styles,
|
||||
'std' => '1',
|
||||
),
|
||||
'btn_size' => array(
|
||||
'title' => __( 'Button Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => $body_fontsize,
|
||||
),
|
||||
'btn_icon' => array(
|
||||
'title' => __( 'Button Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
),
|
||||
'btn_iconpos' => array(
|
||||
'title' => __( 'Button Icon Position', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
),
|
||||
|
||||
),
|
||||
'std' => $items_std_string,
|
||||
),
|
||||
|
||||
), $design_options
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$typography_options = us_config( 'elements_typography_options' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
// Get products attributes
|
||||
$product_attributes_options = array();
|
||||
if ( class_exists( 'woocommerce' ) ) {
|
||||
$attribute_taxonomies = wc_get_attribute_taxonomies();
|
||||
if ( ! empty( $attribute_taxonomies ) ) {
|
||||
foreach ( $attribute_taxonomies as $tax ) {
|
||||
$attribute_taxonomy_name = wc_attribute_taxonomy_name( $tax->attribute_name );
|
||||
$label = $tax->attribute_label ? $tax->attribute_label : $tax->attribute_name;
|
||||
$product_attributes_options[ $attribute_taxonomy_name ] = $label . ' (' . $attribute_taxonomy_name . ')';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return array(
|
||||
'title' => us_translate( 'Product data', 'woocommerce' ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'params' => array_merge( array(
|
||||
|
||||
'type' => array(
|
||||
'title' => us_translate( 'Show' ),
|
||||
'type' => 'select',
|
||||
'options' => array_merge(
|
||||
array(
|
||||
'price' => us_translate( 'Price', 'woocommerce' ),
|
||||
'rating' => us_translate( 'Rating', 'woocommerce' ),
|
||||
'sku' => us_translate( 'SKU', 'woocommerce' ),
|
||||
'sale_badge' => __( 'Sale Badge', 'us' ),
|
||||
'weight' => us_translate( 'Weight', 'woocommerce' ),
|
||||
'dimensions' => us_translate( 'Dimensions', 'woocommerce' ),
|
||||
), $product_attributes_options
|
||||
),
|
||||
'std' => 'price',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'sale_text' => array(
|
||||
'title' => __( 'Sale Badge Text', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => us_translate( 'Sale!', 'woocommerce' ),
|
||||
'show_if' => array( 'type', '=', 'sale_badge' ),
|
||||
),
|
||||
|
||||
), $typography_options, $design_options, $hover_options ),
|
||||
);
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => us_translate( 'Product gallery', 'woocommerce' ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'params' => array_merge( array(
|
||||
|
||||
'hide_input' => array(
|
||||
'title' => sprintf( __( 'Edit Product gallery appearance on %sTheme Options%s.', 'us' ), '<a target="_blank" href="' . admin_url() . 'admin.php?page=us-theme-options#woocommerce">', '</a>' ),
|
||||
'type' => 'info',
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Product ordering', 'us' ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'params' => $design_options,
|
||||
'show_settings_on_create' => FALSE,
|
||||
);
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Progress Bar', 'us' ),
|
||||
'icon' => 'icon-wpb-graph',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'title' => array(
|
||||
'title' => us_translate( 'Title' ),
|
||||
'type' => 'text',
|
||||
'std' => 'This is Progress Bar',
|
||||
'holder' => 'div',
|
||||
'cols' => 2,
|
||||
),
|
||||
'count' => array(
|
||||
'title' => __( 'Progress Value', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '50',
|
||||
'holder' => 'span',
|
||||
'cols' => 2,
|
||||
),
|
||||
'style' => array(
|
||||
'title' => us_translate( 'Style' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'1' => us_translate( 'Style' ) . ' 1',
|
||||
'2' => us_translate( 'Style' ) . ' 2',
|
||||
'3' => us_translate( 'Style' ) . ' 3',
|
||||
'4' => us_translate( 'Style' ) . ' 4',
|
||||
'5' => us_translate( 'Style' ) . ' 5',
|
||||
),
|
||||
'std' => '1',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'color' => array(
|
||||
'title' => __( 'Progress Bar Color', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'primary' => __( 'Primary (theme color)', 'us' ),
|
||||
'secondary' => __( 'Secondary (theme color)', 'us' ),
|
||||
'heading' => __( 'Heading (theme color)', 'us' ),
|
||||
'switch_text' => __( 'Text (theme color)', 'us' ),
|
||||
'custom' => us_translate( 'Custom color' ),
|
||||
),
|
||||
'std' => 'primary',
|
||||
'cols' => 2,
|
||||
),
|
||||
'size' => array(
|
||||
'title' => __( 'Progress Bar Height', 'us' ),
|
||||
'description' => $misc['desc_font_size'], // don't change to the "desc_height"
|
||||
'type' => 'text',
|
||||
'std' => '10px',
|
||||
'cols' => 2,
|
||||
),
|
||||
'bar_color' => array(
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'show_if' => array( 'color', '=', 'custom' ),
|
||||
),
|
||||
'hide_count' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Hide progress value counter', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,69 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Page Scroller', 'us' ),
|
||||
'description' => __( 'Accurate scroll to page sections', 'us' ),
|
||||
'icon' => 'fas fa-ellipsis-v-alt',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'disable_width' => array(
|
||||
'title' => __( 'Disable scrolling at width', 'us' ),
|
||||
'description' => __( 'When screen width is less than this value, scrolling by rows will be disabled.', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '768px',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'speed' => array(
|
||||
'title' => __( 'Scroll Speed (milliseconds)', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '1000',
|
||||
),
|
||||
'dots' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show Navigation Dots', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'dots_style' => array(
|
||||
'title' => __( 'Dots Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'1' => us_translate( 'Style' ) . ' 1',
|
||||
'2' => us_translate( 'Style' ) . ' 2',
|
||||
'3' => us_translate( 'Style' ) . ' 3',
|
||||
'4' => us_translate( 'Style' ) . ' 4',
|
||||
),
|
||||
'std' => '1',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'dots', '!=', FALSE ),
|
||||
),
|
||||
'dots_pos' => array(
|
||||
'title' => __( 'Dots Position', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'right',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'dots', '!=', FALSE ),
|
||||
),
|
||||
'dots_size' => array(
|
||||
'title' => __( 'Dots Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '10px',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'dots', '!=', FALSE ),
|
||||
),
|
||||
'dots_color' => array(
|
||||
'title' => __( 'Dots Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'show_if' => array( 'dots', '!=', FALSE ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,107 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => us_translate( 'Search' ),
|
||||
'icon' => 'fas fa-search',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'text' => array(
|
||||
'title' => __( 'Placeholder', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => us_translate( 'Search' ),
|
||||
),
|
||||
'layout' => array(
|
||||
'title' => __( 'Layout', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'simple' => __( 'Simple', 'us' ),
|
||||
'modern' => __( 'Modern', 'us' ),
|
||||
'fullwidth' => __( 'Full Width', 'us' ),
|
||||
'fullscreen' => __( 'Full Screen', 'us' ),
|
||||
),
|
||||
'std' => 'fullwidth',
|
||||
),
|
||||
'field_width' => array(
|
||||
'title' => __( 'Field Width', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '240px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 200,
|
||||
'max' => 800,
|
||||
),
|
||||
'rem' => array(
|
||||
'min' => 10,
|
||||
'max' => 60,
|
||||
),
|
||||
'vw' => array(
|
||||
'min' => 10,
|
||||
'max' => 60,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'layout', 'in', array( 'simple', 'modern' ) ),
|
||||
),
|
||||
'field_width_tablets' => array(
|
||||
'title' => __( 'Field Width on Tablets', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '200px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 200,
|
||||
'max' => 600,
|
||||
),
|
||||
'rem' => array(
|
||||
'min' => 10,
|
||||
'max' => 40,
|
||||
),
|
||||
'vw' => array(
|
||||
'min' => 10,
|
||||
'max' => 40,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'layout', 'in', array( 'simple', 'modern' ) ),
|
||||
),
|
||||
'product_search' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Search Shop Products only', 'us' ),
|
||||
'std' => FALSE,
|
||||
'place_if' => class_exists( 'woocommerce' ),
|
||||
),
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => 'fas|search',
|
||||
'group' => __( 'Icon', 'us' ),
|
||||
),
|
||||
'icon_size' => array(
|
||||
'title' => __( 'Icon Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '18px',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Icon', 'us' ),
|
||||
),
|
||||
'icon_size_tablets' => array(
|
||||
'title' => __( 'Icon Size on Tablets', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '18px',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Icon', 'us' ),
|
||||
),
|
||||
'icon_size_mobiles' => array(
|
||||
'title' => __( 'Icon Size on Mobiles', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '18px',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Icon', 'us' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,185 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Separator', 'us' ),
|
||||
'description' => __( 'Gap between elements', 'us' ),
|
||||
'icon' => 'icon-wpb-ui-separator',
|
||||
'params' => array_merge( array(
|
||||
|
||||
// General
|
||||
'size' => array(
|
||||
'title' => us_translate( 'Height' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'small' => __( 'Small', 'us' ),
|
||||
'medium' => __( 'Medium', 'us' ),
|
||||
'large' => __( 'Large', 'us' ),
|
||||
'huge' => __( 'Huge', 'us' ),
|
||||
'custom' => __( 'Custom', 'us' ),
|
||||
),
|
||||
'std' => 'medium',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'height' => array(
|
||||
'description' => __( 'Examples:', 'us' ) . ' <span class="usof-example">30px</span>, <span class="usof-example">2rem</span>, <span class="usof-example">5vh</span>',
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'holder' => 'div',
|
||||
'show_if' => array( 'size', '=', 'custom' ),
|
||||
),
|
||||
'show_line' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Show horizontal line in the middle', 'us' ),
|
||||
'std' => FALSE,
|
||||
),
|
||||
'line_width' => array(
|
||||
'title' => __( 'Line Width', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'default' => __( 'Container width', 'us' ),
|
||||
'screen' => __( 'Screen width', 'us' ),
|
||||
'30' => sprintf( __( '%s of container width', 'us' ), '30%' ),
|
||||
'50' => sprintf( __( '%s of container width', 'us' ), '50%' ),
|
||||
),
|
||||
'std' => 'default',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'show_line', '!=', FALSE ),
|
||||
),
|
||||
'thick' => array(
|
||||
'title' => __( 'Line Thickness', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'1' => '1px',
|
||||
'2' => '2px',
|
||||
'3' => '3px',
|
||||
'4' => '4px',
|
||||
'5' => '5px',
|
||||
),
|
||||
'std' => '1',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'show_line', '!=', FALSE ),
|
||||
),
|
||||
'color' => array(
|
||||
'title' => __( 'Line Color', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'border' => __( 'Border (theme color)', 'us' ),
|
||||
'switch_text' => __( 'Text (theme color)', 'us' ),
|
||||
'primary' => __( 'Primary (theme color)', 'us' ),
|
||||
'secondary' => __( 'Secondary (theme color)', 'us' ),
|
||||
'custom' => us_translate( 'Custom color' ),
|
||||
),
|
||||
'std' => 'border',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'show_line', '!=', FALSE ),
|
||||
),
|
||||
'style' => array(
|
||||
'title' => __( 'Line Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'solid' => __( 'Solid', 'us' ),
|
||||
'dashed' => __( 'Dashed', 'us' ),
|
||||
'dotted' => __( 'Dotted', 'us' ),
|
||||
'double' => __( 'Double', 'us' ),
|
||||
),
|
||||
'std' => 'solid',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'show_line', '!=', FALSE ),
|
||||
),
|
||||
'bdcolor' => array(
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'show_if' => array( 'color', '=', 'custom' ),
|
||||
),
|
||||
|
||||
// Icon and Title
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
'show_if' => array( 'show_line', '!=', FALSE ),
|
||||
'group' => __( 'Icon and Title', 'us' ),
|
||||
),
|
||||
'text' => array(
|
||||
'title' => us_translate( 'Title' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'holder' => 'div',
|
||||
'show_if' => array( 'show_line', '!=', FALSE ),
|
||||
'group' => __( 'Icon and Title', 'us' ),
|
||||
),
|
||||
'link' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'type' => 'link',
|
||||
'std' => '',
|
||||
'show_if' => array( 'text', '!=', '' ),
|
||||
'group' => __( 'Icon and Title', 'us' ),
|
||||
),
|
||||
'title_tag' => array(
|
||||
'title' => __( 'Title HTML tag', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => $misc['html_tag_values'],
|
||||
'std' => 'h6',
|
||||
'show_if' => array( 'text', '!=', '' ),
|
||||
'group' => __( 'Icon and Title', 'us' ),
|
||||
),
|
||||
'title_size' => array(
|
||||
'title' => __( 'Font Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'show_line', '!=', FALSE ),
|
||||
'group' => __( 'Icon and Title', 'us' ),
|
||||
),
|
||||
'align' => array(
|
||||
'title' => us_translate( 'Alignment' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'center',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'show_line', '!=', FALSE ),
|
||||
'group' => __( 'Icon and Title', 'us' ),
|
||||
),
|
||||
|
||||
// Responsive Options
|
||||
'breakpoint_1_width' => array(
|
||||
'title' => __( 'Below screen width', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '1024px',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_1_height' => array(
|
||||
'title' => us_translate( 'Height' ),
|
||||
'description' => __( 'Examples:', 'us' ) . ' <span class="usof-example">10px</span>, <span class="usof-example">1rem</span>, <span class="usof-example">3vh</span>',
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_2_width' => array(
|
||||
'title' => __( 'Below screen width', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '600px',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
'breakpoint_2_height' => array(
|
||||
'title' => us_translate( 'Height' ),
|
||||
'description' => __( 'Examples:', 'us' ) . ' <span class="usof-example">10px</span>, <span class="usof-example">1rem</span>, <span class="usof-example">3vh</span>',
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Responsive Options', 'js_composer' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,100 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Sharing Buttons', 'us' ),
|
||||
'icon' => 'fas fa-share-alt',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'providers' => array(
|
||||
'type' => 'checkboxes',
|
||||
'options' => array(
|
||||
'email' => us_translate( 'Email' ),
|
||||
'facebook' => 'Facebook',
|
||||
'twitter' => 'Twitter',
|
||||
'linkedin' => 'LinkedIn',
|
||||
'pinterest' => 'Pinterest',
|
||||
'vk' => 'Vkontakte',
|
||||
'whatsapp' => 'WhatsApp',
|
||||
'xing' => 'Xing',
|
||||
'reddit' => 'Reddit',
|
||||
),
|
||||
'std' => array( 'facebook', 'twitter' ),
|
||||
),
|
||||
'type' => array(
|
||||
'title' => us_translate( 'Style' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'simple' => __( 'Simple', 'us' ),
|
||||
'solid' => __( 'Solid', 'us' ),
|
||||
'outlined' => __( 'Outlined', 'us' ),
|
||||
'fixed' => __( 'Fixed', 'us' ),
|
||||
),
|
||||
'std' => 'simple',
|
||||
'cols' => 2,
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'align' => array(
|
||||
'title' => us_translate( 'Alignment' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'cols' => 2,
|
||||
),
|
||||
'color' => array(
|
||||
'title' => us_translate( 'Colors' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'default' => __( 'Default brands colors', 'us' ),
|
||||
'primary' => __( 'Primary (theme color)', 'us' ),
|
||||
'secondary' => __( 'Secondary (theme color)', 'us' ),
|
||||
),
|
||||
'std' => 'default',
|
||||
'cols' => 2,
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'counters' => array(
|
||||
'title' => __( 'Share Counters', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'show' => us_translate( 'Show' ),
|
||||
'hide' => us_translate( 'None' ),
|
||||
),
|
||||
'std' => 'show',
|
||||
'cols' => 2,
|
||||
),
|
||||
'font_size' => array(
|
||||
'title' => us_translate( 'Size' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '1.2rem',
|
||||
),
|
||||
'text_selection' => array(
|
||||
'switch_text' => __( 'Allow to share selected text', 'us' ),
|
||||
'description' => __( 'When you select text on a page, a panel with buttons appears, and you can quickly share the selected text.', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
),
|
||||
'text_selection_post' => array(
|
||||
'switch_text' => __( 'Text selection inside post content only', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'text_selection', '=', '1' ),
|
||||
),
|
||||
|
||||
'url' => array(
|
||||
'title' => __( 'Sharing URL (optional)', 'us' ),
|
||||
'description' => __( 'If not specified, the opened page URL will be used by default', 'us' ),
|
||||
'type' => 'textfield',
|
||||
'std' => '',
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,187 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$social_links = array_merge( us_config( 'social_links' ), array( 'custom' => __( 'Custom Icon', 'us' ) ) );
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Social Links', 'us' ),
|
||||
'icon' => 'icon-wpb-balloon-facebook-left',
|
||||
'params' => array_merge( array(
|
||||
|
||||
// General
|
||||
'items' => array(
|
||||
'type' => 'group',
|
||||
'is_sortable' => TRUE,
|
||||
'params' => array(
|
||||
'type' => array(
|
||||
'shortcode_title' => us_translate( 'Type' ),
|
||||
'type' => 'select',
|
||||
'is_advanced' => TRUE,
|
||||
'options' => $social_links,
|
||||
'std' => 's500px',
|
||||
'cols' => 2,
|
||||
'classes' => 'for_social',
|
||||
'admin_label' => TRUE,
|
||||
),
|
||||
'url' => array(
|
||||
'shortcode_title' => us_translate( 'Enter the URL' ),
|
||||
'placeholder' => us_translate( 'Enter the URL' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
),
|
||||
'custom_start' => array(
|
||||
'type' => 'wrapper_start',
|
||||
'show_if' => array( 'type', '=', 'custom' ),
|
||||
),
|
||||
'icon' => array(
|
||||
'type' => 'icon',
|
||||
'std' => 'fab|apple',
|
||||
'show_if' => array( 'type', '=', 'custom' ),
|
||||
),
|
||||
'title' => array(
|
||||
'shortcode_title' => us_translate( 'Title' ),
|
||||
'placeholder' => us_translate( 'Title' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'type', '=', 'custom' ),
|
||||
),
|
||||
'color' => array(
|
||||
'shortcode_title' => us_translate( 'Color' ),
|
||||
'type' => 'color',
|
||||
'std' => '#999',
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'type', '=', 'custom' ),
|
||||
),
|
||||
'custom_end' => array(
|
||||
'type' => 'wrapper_end',
|
||||
),
|
||||
),
|
||||
'std' => array(
|
||||
array(
|
||||
'type' => 'facebook',
|
||||
'url' => '#',
|
||||
),
|
||||
array(
|
||||
'type' => 'twitter',
|
||||
'url' => '#',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Appearance
|
||||
'style' => array(
|
||||
'title' => __( 'Icons Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'default' => __( 'Simple', 'us' ),
|
||||
'outlined' => __( 'With outline', 'us' ),
|
||||
'solid' => __( 'With light background', 'us' ),
|
||||
'colored' => __( 'With colored background', 'us' ),
|
||||
),
|
||||
'std' => 'default',
|
||||
'cols' => 2,
|
||||
'admin_label' => TRUE,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'shape' => array(
|
||||
'title' => __( 'Icons Shape', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'square' => __( 'Square', 'us' ),
|
||||
'rounded' => __( 'Rounded Square', 'us' ),
|
||||
'circle' => __( 'Circle', 'us' ),
|
||||
),
|
||||
'std' => 'square',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'color' => array(
|
||||
'title' => __( 'Icons Color', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'brand' => __( 'Default brands colors', 'us' ),
|
||||
'text' => __( 'Text (theme color)', 'us' ),
|
||||
'link' => __( 'Link (theme color)', 'us' ),
|
||||
),
|
||||
'std' => 'brand',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'hover' => array(
|
||||
'title' => __( 'Hover Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'fade' => __( 'Fade', 'us' ),
|
||||
'slide' => __( 'Slide', 'us' ),
|
||||
'none' => us_translate( 'None' ),
|
||||
),
|
||||
'std' => 'fade',
|
||||
'cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'size' => array(
|
||||
'title' => us_translate( 'Size' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '20px',
|
||||
'shortcode_cols' => 2,
|
||||
'header_cols' => 3,
|
||||
'admin_label' => TRUE,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'size_tablets' => array(
|
||||
'title' => __( 'Size on Tablets', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '18px',
|
||||
'cols' => 3,
|
||||
'context' => array( 'header' ),
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'size_mobiles' => array(
|
||||
'title' => __( 'Size on Mobiles', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '16px',
|
||||
'cols' => 3,
|
||||
'context' => array( 'header' ),
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'gap' => array(
|
||||
'title' => __( 'Gap between Icons', 'us' ),
|
||||
'shortcode_description' => __( 'Examples:', 'us' ) . ' <span class="usof-example">2px</span>, <span class="usof-example">0.1em</span>',
|
||||
'type' => 'slider',
|
||||
'std' => '0',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 0,
|
||||
'max' => 50,
|
||||
),
|
||||
'em' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 2.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
),
|
||||
'shortcode_cols' => 2,
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
'align' => array(
|
||||
'title' => us_translate( 'Alignment' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'context' => array( 'shortcode' ),
|
||||
'group' => us_translate( 'Appearance' ),
|
||||
),
|
||||
|
||||
), $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$typography_options = us_config( 'elements_typography_options' );
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
|
||||
return array(
|
||||
'title' => us_translate( 'Text' ),
|
||||
'icon' => 'fas fa-font',
|
||||
'params' => array_merge( array(
|
||||
'text' => array(
|
||||
'title' => us_translate( 'Text' ),
|
||||
'type' => 'text',
|
||||
'std' => 'Some text',
|
||||
),
|
||||
'wrap' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Allow move content to the next line', 'us' ),
|
||||
'std' => FALSE,
|
||||
'classes' => 'for_above',
|
||||
),
|
||||
'link' => array(
|
||||
'title' => us_translate( 'Link' ),
|
||||
'placeholder' => us_translate( 'Enter the URL' ),
|
||||
'type' => 'link',
|
||||
'std' => array(),
|
||||
),
|
||||
'icon' => array(
|
||||
'title' => __( 'Icon', 'us' ),
|
||||
'type' => 'icon',
|
||||
'std' => '',
|
||||
),
|
||||
'color' => array(
|
||||
'title' => us_translate( 'Custom color' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
),
|
||||
), $typography_options, $design_options ),
|
||||
);
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
$design_options = us_config( 'elements_design_options' );
|
||||
$hover_options = us_config( 'elements_hover_options' );
|
||||
|
||||
return array(
|
||||
'title' => __( 'Vertical Wrapper', 'us' ),
|
||||
'category' => __( 'Post Elements', 'us' ),
|
||||
'icon' => 'fas fa-ellipsis-v',
|
||||
'params' => array_merge( array(
|
||||
|
||||
'alignment' => array(
|
||||
'title' => __( 'Content Horizontal Alignment', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'left',
|
||||
'grid_cols' => 2,
|
||||
),
|
||||
'valign' => array(
|
||||
'title' => __( 'Content Vertical Alignment', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'top' => us_translate( 'Top' ),
|
||||
'middle' => us_translate( 'Middle' ),
|
||||
'bottom' => us_translate( 'Bottom' ),
|
||||
),
|
||||
'std' => 'top',
|
||||
'cols' => 2,
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'bg_gradient' => array(
|
||||
'switch_text' => __( 'Add a transparent gradient to the background', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'color_grad' => array(
|
||||
'type' => 'color',
|
||||
'std' => 'rgba(30,30,30,0.8)',
|
||||
'show_if' => array( 'bg_gradient', '=', TRUE ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
|
||||
), $design_options, $hover_options ),
|
||||
);
|
||||
@@ -0,0 +1,120 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Common Design Options
|
||||
*/
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
|
||||
return array(
|
||||
|
||||
// For Header elements
|
||||
'hide_for_sticky' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Hide this element when the header is sticky', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => __( 'Design Options', 'us' ),
|
||||
'context' => array( 'header' ),
|
||||
),
|
||||
'hide_for_not_sticky' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Hide this element when the header is NOT sticky', 'us' ),
|
||||
'std' => FALSE,
|
||||
'group' => __( 'Design Options', 'us' ),
|
||||
'context' => array( 'header' ),
|
||||
),
|
||||
|
||||
// Extra CSS class
|
||||
'el_class' => array(
|
||||
'title' => __( 'Extra class', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'shortcode_cols' => 2,
|
||||
'group' => __( 'Design Options', 'us' ),
|
||||
),
|
||||
|
||||
// Element ID
|
||||
'el_id' => array(
|
||||
'title' => __( 'Element ID', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'Design Options', 'us' ),
|
||||
'context' => array( 'shortcode' ), // can't be added to Grid Layout
|
||||
),
|
||||
|
||||
// WPB Design Options
|
||||
'css' => array(
|
||||
'type' => 'css_editor',
|
||||
'group' => __( 'Design Options', 'us' ),
|
||||
'context' => array( 'shortcode' ),
|
||||
),
|
||||
|
||||
// USOF Design Options
|
||||
'design_options' => array(
|
||||
'type' => 'design_options',
|
||||
'grid_states' => array( 'default' ),
|
||||
'grid_with_position' => TRUE,
|
||||
'group' => __( 'Design Options', 'us' ),
|
||||
'context' => array( 'header', 'grid' ),
|
||||
),
|
||||
|
||||
// Additional options used in Grid Layout
|
||||
'color_bg' => array(
|
||||
'title' => __( 'Background Сolor', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'Design Options', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'color_border' => array(
|
||||
'title' => __( 'Border Сolor', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'Design Options', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'color_text' => array(
|
||||
'title' => __( 'Text Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'Design Options', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'hide_below' => array(
|
||||
'title' => __( 'Hide the element when the screen width is less than', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => 0,
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 0,
|
||||
'max' => 1600,
|
||||
'step' => 20,
|
||||
),
|
||||
),
|
||||
'group' => __( 'Design Options', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'width' => array(
|
||||
'title' => __( 'Custom Width', 'us' ),
|
||||
'description' => $misc['desc_width'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'Design Options', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'border_radius' => array(
|
||||
'title' => __( 'Corners Radius', 'us' ),
|
||||
'description' => $misc['desc_border_radius'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'group' => __( 'Design Options', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
|
||||
);
|
||||
@@ -0,0 +1,221 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* HOVER EFFECT settings for Grid Layout elements
|
||||
*/
|
||||
|
||||
return array(
|
||||
|
||||
'hover' => array(
|
||||
'switch_text' => __( 'Enable hover effect', 'us' ),
|
||||
'description' => __( 'Change appearance of this element when hover on the whole Grid Layout', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'group' => __( 'Hover Effect', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'opacity' => array(
|
||||
'title' => __( 'Opacity', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '1',
|
||||
'options' => array(
|
||||
'' => array(
|
||||
'min' => 0.00,
|
||||
'max' => 1.00,
|
||||
'step' => 0.05,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'hover', '=', TRUE ),
|
||||
'group' => __( 'Hover Effect', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'opacity_hover' => array(
|
||||
'title' => __( 'Opacity on Hover', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '1',
|
||||
'options' => array(
|
||||
'' => array(
|
||||
'min' => 0.00,
|
||||
'max' => 1.00,
|
||||
'step' => 0.05,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'hover', '=', TRUE ),
|
||||
'group' => __( 'Hover Effect', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'scale' => array(
|
||||
'title' => __( 'Scale', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '1',
|
||||
'options' => array(
|
||||
'' => array(
|
||||
'min' => 0.00,
|
||||
'max' => 2.00,
|
||||
'step' => 0.05,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'hover', '=', TRUE ),
|
||||
'group' => __( 'Hover Effect', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'scale_hover' => array(
|
||||
'title' => __( 'Scale on Hover', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '1',
|
||||
'options' => array(
|
||||
'' => array(
|
||||
'min' => 0.00,
|
||||
'max' => 2.00,
|
||||
'step' => 0.05,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'hover', '=', TRUE ),
|
||||
'group' => __( 'Hover Effect', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'translateX' => array(
|
||||
'title' => __( 'Horizontal Shift', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '0',
|
||||
'options' => array(
|
||||
'%' => array(
|
||||
'min' => - 100,
|
||||
'max' => 100,
|
||||
),
|
||||
'px' => array(
|
||||
'min' => - 100,
|
||||
'max' => 100,
|
||||
),
|
||||
'rem' => array(
|
||||
'min' => - 6.0,
|
||||
'max' => 6.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'hover', '=', TRUE ),
|
||||
'group' => __( 'Hover Effect', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'translateX_hover' => array(
|
||||
'title' => __( 'Horizontal Shift on Hover', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '0',
|
||||
'options' => array(
|
||||
'%' => array(
|
||||
'min' => - 100,
|
||||
'max' => 100,
|
||||
),
|
||||
'px' => array(
|
||||
'min' => - 100,
|
||||
'max' => 100,
|
||||
),
|
||||
'rem' => array(
|
||||
'min' => - 6.0,
|
||||
'max' => 6.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'hover', '=', TRUE ),
|
||||
'group' => __( 'Hover Effect', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'translateY' => array(
|
||||
'title' => __( 'Vertical Shift', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '0',
|
||||
'options' => array(
|
||||
'%' => array(
|
||||
'min' => - 100,
|
||||
'max' => 100,
|
||||
),
|
||||
'px' => array(
|
||||
'min' => - 100,
|
||||
'max' => 100,
|
||||
),
|
||||
'rem' => array(
|
||||
'min' => - 6.0,
|
||||
'max' => 6.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'hover', '=', TRUE ),
|
||||
'group' => __( 'Hover Effect', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'translateY_hover' => array(
|
||||
'title' => __( 'Vertical Shift on Hover', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '0',
|
||||
'options' => array(
|
||||
'%' => array(
|
||||
'min' => - 100,
|
||||
'max' => 100,
|
||||
),
|
||||
'px' => array(
|
||||
'min' => - 100,
|
||||
'max' => 100,
|
||||
),
|
||||
'rem' => array(
|
||||
'min' => - 6.0,
|
||||
'max' => 6.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'hover', '=', TRUE ),
|
||||
'group' => __( 'Hover Effect', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'color_bg_hover' => array(
|
||||
'title' => __( 'Background Сolor on Hover', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'classes' => 'clear_right cols_2',
|
||||
'show_if' => array( 'hover', '=', TRUE ),
|
||||
'group' => __( 'Hover Effect', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'color_border_hover' => array(
|
||||
'title' => __( 'Border Сolor on Hover', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'classes' => 'clear_right cols_2',
|
||||
'show_if' => array( 'hover', '=', TRUE ),
|
||||
'group' => __( 'Hover Effect', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'color_text_hover' => array(
|
||||
'title' => __( 'Text Сolor on Hover', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'classes' => 'clear_right cols_2',
|
||||
'show_if' => array( 'hover', '=', TRUE ),
|
||||
'group' => __( 'Hover Effect', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
'transition_duration' => array(
|
||||
'title' => __( 'Hover Transition Duration', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '0.3s',
|
||||
'options' => array(
|
||||
's' => array(
|
||||
'min' => 0.00,
|
||||
'max' => 2.00,
|
||||
'step' => 0.05,
|
||||
),
|
||||
),
|
||||
'cols' => 2,
|
||||
'show_if' => array( 'hover', '=', TRUE ),
|
||||
'group' => __( 'Hover Effect', 'us' ),
|
||||
'context' => array( 'grid' ),
|
||||
),
|
||||
|
||||
);
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Common variables used in several configs to avoid translation duplications
|
||||
*/
|
||||
|
||||
return array(
|
||||
|
||||
// Columns
|
||||
'column_values' => array(
|
||||
'10' => sprintf( us_translate_n( '%s column', '%s columns', 10 ), 10 ),
|
||||
'9' => sprintf( us_translate_n( '%s column', '%s columns', 9 ), 9 ),
|
||||
'8' => sprintf( us_translate_n( '%s column', '%s columns', 8 ), 8 ),
|
||||
'7' => sprintf( us_translate_n( '%s column', '%s columns', 7 ), 7 ),
|
||||
'6' => sprintf( us_translate_n( '%s column', '%s columns', 6 ), 6 ),
|
||||
'5' => sprintf( us_translate_n( '%s column', '%s columns', 5 ), 5 ),
|
||||
'4' => sprintf( us_translate_n( '%s column', '%s columns', 4 ), 4 ),
|
||||
'3' => sprintf( us_translate_n( '%s column', '%s columns', 3 ), 3 ),
|
||||
'2' => sprintf( us_translate_n( '%s column', '%s columns', 2 ), 2 ),
|
||||
'1' => sprintf( us_translate_n( '%s column', '%s columns', 1 ), 1 ),
|
||||
),
|
||||
|
||||
// Dropdown effects for header
|
||||
'dropdown_effect_values' => array(
|
||||
'none' => us_translate( 'None' ),
|
||||
'opacity' => __( 'Fade', 'us' ),
|
||||
'slide' => __( 'SlideDown', 'us' ),
|
||||
'height' => __( 'Fade + SlideDown', 'us' ),
|
||||
'afb' => __( 'Appear From Bottom', 'us' ),
|
||||
'hor' => __( 'Horizontal Slide', 'us' ),
|
||||
'mdesign' => __( 'Material Design Effect', 'us' ),
|
||||
),
|
||||
|
||||
// HTML tags
|
||||
'html_tag_values' => array(
|
||||
'h1' => 'h1',
|
||||
'h2' => 'h2',
|
||||
'h3' => 'h3',
|
||||
'h4' => 'h4',
|
||||
'h5' => 'h5',
|
||||
'h6' => 'h6',
|
||||
'div' => 'div',
|
||||
'p' => 'p',
|
||||
'span' => 'span',
|
||||
),
|
||||
|
||||
// Font size examples
|
||||
'desc_font_size' => __( 'Examples:', 'us' ) . ' <span class="usof-example">16px</span>, <span class="usof-example">1.2rem</span>',
|
||||
|
||||
// Line height examples
|
||||
'desc_line_height' => __( 'Examples:', 'us' ) . ' <span class="usof-example">28px</span>, <span class="usof-example">1.7</span>',
|
||||
|
||||
// Height examples
|
||||
'desc_height' => __( 'Examples:', 'us' ) . ' <span class="usof-example">200px</span>, <span class="usof-example">15rem</span>, <span class="usof-example">10vh</span>',
|
||||
|
||||
// Width examples
|
||||
'desc_width' => __( 'Examples:', 'us' ) . ' <span class="usof-example">200px</span>, <span class="usof-example">50%</span>, <span class="usof-example">14rem</span>, <span class="usof-example">10vw</span>',
|
||||
|
||||
// Padding examples
|
||||
'desc_padding' => __( 'Examples:', 'us' ) . ' <span class="usof-example">20px</span>, <span class="usof-example">15%</span>, <span class="usof-example">1rem</span>, <span class="usof-example">2vw</span>',
|
||||
|
||||
// Border radius examples
|
||||
'desc_border_radius' => __( 'Examples:', 'us' ) . ' <span class="usof-example">5px</span>, <span class="usof-example">50%</span>, <span class="usof-example">0.2rem</span>',
|
||||
|
||||
// Pixels only
|
||||
'desc_pixels' => __( 'In pixels only.', 'us' ) . ' ' . __( 'Examples:', 'us' ) . ' <span class="usof-example">32px</span>, <span class="usof-example">64px</span>, <span class="usof-example">128px</span>',
|
||||
|
||||
// Menu selection
|
||||
'desc_menu_select' => sprintf( __( 'Add or edit a menu on the %s page', 'us' ), '<a href="' . admin_url( 'nav-menus.php' ) . '" target="_blank">' . us_translate( 'Menus' ) . '</a>' ),
|
||||
|
||||
// Image Sizes
|
||||
'desc_img_sizes' => '<a target="_blank" href="' . admin_url( 'admin.php?page=us-theme-options' ) . '#image_sizes">' . __( 'Edit image sizes', 'us' ) . '</a>.',
|
||||
|
||||
// Button styles
|
||||
'desc_btn_styles' => sprintf( __( 'Add or edit Button Styles on %sTheme Options%s', 'us' ), '<a href="' . admin_url() . 'admin.php?page=us-theme-options#buttons" target="_blank">', '</a>' ),
|
||||
|
||||
// Custom link for Grid Layout
|
||||
'desc_grid_custom_link' => sprintf( __( 'To apply a URL from a custom field, use its name between the %s symbols.', 'us' ), '<code>{{}}</code>' ) . ' ' . __( 'Examples:', 'us' ) . ' <span class="usof-example">{{us_tile_link}}</span>, <span class="usof-example">{{us_testimonial_link}}</span>',
|
||||
|
||||
// Header Description
|
||||
'headers_description' => sprintf( __( 'Add or edit Header on the %s page', 'us' ), '<a href="' . admin_url() . 'edit.php?post_type=us_header" target="_blank">' . _x( 'Headers', 'site top area', 'us' ) . '</a>' ),
|
||||
|
||||
// Content Description
|
||||
'content_description' => sprintf( __( 'Add or edit content template on the %s page', 'us' ), '<a href="' . admin_url() . 'edit.php?post_type=us_page_block" target="_blank">' . __( 'Page Blocks', 'us' ) . '</a>' ),
|
||||
|
||||
// Footer Description
|
||||
'footers_description' => sprintf( __( 'Add or edit Footer on the %s page', 'us' ), '<a href="' . admin_url() . 'edit.php?post_type=us_page_block" target="_blank">' . __( 'Page Blocks', 'us' ) . '</a>' ),
|
||||
|
||||
);
|
||||
@@ -0,0 +1,119 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Common Typography options used for several elements
|
||||
*/
|
||||
|
||||
$misc = us_config( 'elements_misc' );
|
||||
|
||||
return array(
|
||||
'font' => array(
|
||||
'title' => __( 'Font', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => us_get_fonts(),
|
||||
'shortcode_options' => us_get_fonts( 'without_groups' ),
|
||||
'std' => 'body',
|
||||
'group' => __( 'Typography', 'us' ),
|
||||
),
|
||||
'font_weight' => array(
|
||||
'title' => __( 'Font Weight', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'' => us_translate( 'Default' ),
|
||||
'100' => '100 ' . __( 'thin', 'us' ),
|
||||
'200' => '200 ' . __( 'extra-light', 'us' ),
|
||||
'300' => '300 ' . __( 'light', 'us' ),
|
||||
'400' => '400 ' . __( 'normal', 'us' ),
|
||||
'500' => '500 ' . __( 'medium', 'us' ),
|
||||
'600' => '600 ' . __( 'semi-bold', 'us' ),
|
||||
'700' => '700 ' . __( 'bold', 'us' ),
|
||||
'800' => '800 ' . __( 'extra-bold', 'us' ),
|
||||
'900' => '900 ' . __( 'ultra-bold', 'us' ),
|
||||
),
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Typography', 'us' ),
|
||||
),
|
||||
'text_transform' => array(
|
||||
'title' => __( 'Text Transform', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'' => us_translate( 'Default' ),
|
||||
'none' => us_translate( 'None' ),
|
||||
'uppercase' => 'UPPERCASE',
|
||||
'lowercase' => 'lowercase',
|
||||
'capitalize' => 'Capitalize',
|
||||
),
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Typography', 'us' ),
|
||||
),
|
||||
'font_style' => array(
|
||||
'title' => __( 'Font Style', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'' => us_translate( 'Default' ),
|
||||
'normal' => __( 'normal', 'us' ),
|
||||
'italic' => __( 'italic', 'us' ),
|
||||
),
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Typography', 'us' ),
|
||||
),
|
||||
'font_size' => array(
|
||||
'title' => __( 'Font Size', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'header_cols' => 3,
|
||||
'group' => __( 'Typography', 'us' ),
|
||||
),
|
||||
'font_size_tablets' => array(
|
||||
'title' => __( 'Size on Tablets', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Typography', 'us' ),
|
||||
'context' => array( 'header' ),
|
||||
),
|
||||
'font_size_mobiles' => array(
|
||||
'title' => __( 'Font Size on Mobiles', 'us' ),
|
||||
'description' => $misc['desc_font_size'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'header_cols' => 3,
|
||||
'group' => __( 'Typography', 'us' ),
|
||||
'context' => array( 'header', 'grid' ),
|
||||
),
|
||||
'line_height' => array(
|
||||
'title' => __( 'Line height', 'us' ),
|
||||
'description' => $misc['desc_line_height'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'header_cols' => 3,
|
||||
'group' => __( 'Typography', 'us' ),
|
||||
),
|
||||
'line_height_tablets' => array(
|
||||
'title' => __( 'Line height on Tablets', 'us' ),
|
||||
'description' => $misc['desc_line_height'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 3,
|
||||
'group' => __( 'Typography', 'us' ),
|
||||
'context' => array( 'header' ),
|
||||
),
|
||||
'line_height_mobiles' => array(
|
||||
'title' => __( 'Line height on Mobiles', 'us' ),
|
||||
'description' => $misc['desc_line_height'],
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'cols' => 2,
|
||||
'header_cols' => 3,
|
||||
'group' => __( 'Typography', 'us' ),
|
||||
'context' => array( 'header', 'grid' ),
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Defines a proper embeddable rules for vc_video (in future may be used for custom usages as well)
|
||||
*
|
||||
* Note: in 'html' field '<id>' entry will be replaced by match_index's entrance from regex matches.
|
||||
*
|
||||
* @filter us_config_embeds
|
||||
*/
|
||||
|
||||
return array(
|
||||
'youtube' => array(
|
||||
// Source: http://stackoverflow.com/a/10524505
|
||||
'type' => 'video',
|
||||
'regex' => '~^(?:https?://)?(?:www\.|m\.)?(?:youtu\.be/|youtube\.com(?:/embed/|/v/|/watch\?v=|/watch\?.+&v=))([\w-]{11})(?:.+)?$~x',
|
||||
'match_index' => 1,
|
||||
'html' => '<iframe src="//www.youtube.com/embed/<id><video-title>" allowfullscreen="1"></iframe>',
|
||||
),
|
||||
'vimeo' => array(
|
||||
'type' => 'video',
|
||||
'regex' => '/^http(?:s)?:\/\/(?:.*?)\.?vimeo\.com\/(\d+).*$/i',
|
||||
'match_index' => 1,
|
||||
'html' => '<iframe src="//player.vimeo.com/video/<id>?portrait=0&color=00adef<video-title>" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>',
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Envato information configuration
|
||||
*
|
||||
* @var $config array Framework-based theme options config
|
||||
*
|
||||
* @filter us_config_envato
|
||||
*/
|
||||
|
||||
return us_array_merge(
|
||||
$config, array(
|
||||
'purchase_url' => 'http://themeforest.net/user/upsolution/portfolio?ref=UpSolution',
|
||||
'test_url' => 'http://themetest.net/',
|
||||
)
|
||||
);
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,132 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Grid Layout and Elements Options.
|
||||
* Options and elements' fields are described in USOF-style format.
|
||||
*/
|
||||
|
||||
$elements = array(
|
||||
'post_image',
|
||||
'post_title',
|
||||
'post_date',
|
||||
'post_taxonomy',
|
||||
'post_author',
|
||||
'post_comments',
|
||||
'post_content',
|
||||
'post_custom_field',
|
||||
'btn',
|
||||
'html',
|
||||
'hwrapper',
|
||||
'vwrapper',
|
||||
);
|
||||
if ( class_exists( 'woocommerce' ) ) {
|
||||
$elements[] = 'product_field';
|
||||
$elements[] = 'add_to_cart';
|
||||
}
|
||||
|
||||
return array(
|
||||
|
||||
// Supported elements
|
||||
'elements' => $elements,
|
||||
|
||||
// General Options
|
||||
'options' => array(
|
||||
'global' => array(
|
||||
'fixed' => array(
|
||||
'switch_text' => __( 'Set Aspect Ratio', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
),
|
||||
'ratio' => array(
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'4x3' => __( '4:3 (landscape)', 'us' ),
|
||||
'3x2' => __( '3:2 (landscape)', 'us' ),
|
||||
'1x1' => __( '1:1 (square)', 'us' ),
|
||||
'2x3' => __( '2:3 (portrait)', 'us' ),
|
||||
'3x4' => __( '3:4 (portrait)', 'us' ),
|
||||
'16x9' => '16:9',
|
||||
'custom' => __( 'Custom', 'us' ),
|
||||
),
|
||||
'std' => '1x1',
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'fixed', '=', TRUE ),
|
||||
),
|
||||
'ratio_width' => array(
|
||||
'placeholder' => us_translate( 'Width' ),
|
||||
'type' => 'text',
|
||||
'std' => '21',
|
||||
'show_if' => array(
|
||||
array( 'fixed', '=', TRUE ),
|
||||
'and',
|
||||
array( 'ratio', '=', 'custom' ),
|
||||
),
|
||||
),
|
||||
'ratio_height' => array(
|
||||
'placeholder' => us_translate( 'Height' ),
|
||||
'type' => 'text',
|
||||
'std' => '9',
|
||||
'show_if' => array(
|
||||
array( 'fixed', '=', TRUE ),
|
||||
'and',
|
||||
array( 'ratio', '=', 'custom' ),
|
||||
),
|
||||
),
|
||||
'overflow' => array(
|
||||
'switch_text' => __( 'Hide Overflowing Content', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'show_if' => array( 'fixed', '=', FALSE ),
|
||||
),
|
||||
'color_bg' => array(
|
||||
'title' => __( 'Background Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'classes' => 'clear_right',
|
||||
),
|
||||
'color_text' => array(
|
||||
'title' => __( 'Text Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'std' => '',
|
||||
'classes' => 'clear_right',
|
||||
),
|
||||
'border_radius' => array(
|
||||
'title' => __( 'Corners Radius', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '0',
|
||||
'options' => array(
|
||||
'rem' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 3.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
),
|
||||
),
|
||||
'box_shadow' => array(
|
||||
'title' => __( 'Shadow', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '0',
|
||||
'options' => array(
|
||||
'rem' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 3.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
),
|
||||
),
|
||||
'box_shadow_hover' => array(
|
||||
'title' => __( 'Shadow on hover', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '0',
|
||||
'options' => array(
|
||||
'rem' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 3.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
);
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,386 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Header Options used by Header Builder plugin.
|
||||
* Options and elements' fields are described in USOF-style format.
|
||||
*/
|
||||
|
||||
$elements = array(
|
||||
'text',
|
||||
'image',
|
||||
'menu',
|
||||
'additional_menu',
|
||||
'search',
|
||||
'dropdown',
|
||||
'socials',
|
||||
'btn',
|
||||
'html',
|
||||
'hwrapper',
|
||||
'vwrapper',
|
||||
);
|
||||
if ( class_exists( 'woocommerce' ) ) {
|
||||
$elements[] = 'cart';
|
||||
}
|
||||
|
||||
return array(
|
||||
|
||||
// Supported elements
|
||||
'elements' => $elements,
|
||||
|
||||
// General Options
|
||||
'options' => array(
|
||||
'global' => array(
|
||||
'breakpoint' => array(
|
||||
'title' => __( 'Apply when the screen width is less than', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '900px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 300,
|
||||
'max' => 1200,
|
||||
),
|
||||
),
|
||||
'show_if' => array(
|
||||
// Placing stub condition that will always be true but will force to check this show_if rule
|
||||
array( 'orientation', 'in', array( 'hor', 'ver' ) ),
|
||||
'and',
|
||||
array( 'state', '!=', 'default' ),
|
||||
),
|
||||
),
|
||||
'orientation' => array(
|
||||
'title' => __( 'Orientation', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'hor' => __( 'Horizontal', 'us' ),
|
||||
'ver' => __( 'Vertical', 'us' ),
|
||||
),
|
||||
'std' => 'hor',
|
||||
),
|
||||
'sticky' => array(
|
||||
'switch_text' => __( 'Sticky Header', 'us' ),
|
||||
'type' => 'switch',
|
||||
'description' => __( 'Fix the header at the top of a page during scroll', 'us' ),
|
||||
'std' => TRUE,
|
||||
'classes' => 'desc_2',
|
||||
'show_if' => array( 'orientation', '=', 'hor' ),
|
||||
),
|
||||
'scroll_breakpoint' => array(
|
||||
'title' => __( 'Header Scroll Breakpoint', 'us' ),
|
||||
'description' => __( 'This option sets scroll distance from the top of a page after which the sticky header will be shrunk', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '100px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 1,
|
||||
'max' => 200,
|
||||
),
|
||||
),
|
||||
'classes' => 'desc_2 desc_fix',
|
||||
'show_if' => array(
|
||||
array( 'orientation', '=', 'hor' ),
|
||||
'and',
|
||||
array( 'sticky', '=', TRUE ),
|
||||
),
|
||||
),
|
||||
'transparent' => array(
|
||||
'switch_text' => __( 'Transparent Header', 'us' ),
|
||||
'type' => 'switch',
|
||||
'description' => __( 'Make the header transparent at its initial position', 'us' ),
|
||||
'std' => FALSE,
|
||||
'classes' => 'desc_2',
|
||||
'show_if' => array( 'orientation', '=', 'hor' ),
|
||||
),
|
||||
'width' => array(
|
||||
'title' => __( 'Header Width', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '300px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 200,
|
||||
'max' => 400,
|
||||
),
|
||||
'rem' => array(
|
||||
'min' => 10.0,
|
||||
'max' => 30.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
),
|
||||
'show_if' => array( 'orientation', '=', 'ver' ),
|
||||
),
|
||||
'elm_align' => array(
|
||||
'title' => __( 'Elements Alignment', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'center' => us_translate( 'Center' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'center',
|
||||
'show_if' => array( 'orientation', '=', 'ver' ),
|
||||
),
|
||||
'shadow' => array(
|
||||
'title' => __( 'Header Shadow', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'none' => us_translate( 'None' ),
|
||||
'thin' => __( 'Thin', 'us' ),
|
||||
'wide' => __( 'Wide', 'us' ),
|
||||
),
|
||||
'std' => 'thin',
|
||||
),
|
||||
),
|
||||
'top' => array(
|
||||
'top_show' => array(
|
||||
'switch_text' => __( 'Show Area', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => TRUE,
|
||||
),
|
||||
'top_height' => array(
|
||||
'title' => __( 'Area Height', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '40px',
|
||||
'options' => array(
|
||||
// Adding new units needs TONS of changes in "header.css.php", so leave "px" only now
|
||||
'px' => array(
|
||||
'min' => 40,
|
||||
'max' => 300,
|
||||
),
|
||||
),
|
||||
'show_if' => array(
|
||||
array( 'top_show', '=', TRUE ),
|
||||
'and',
|
||||
array( 'orientation', '=', 'hor' ),
|
||||
),
|
||||
),
|
||||
'top_sticky_height' => array(
|
||||
'title' => __( 'Sticky Area Height', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '40px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 0,
|
||||
'max' => 300,
|
||||
),
|
||||
),
|
||||
'show_if' => array(
|
||||
array( 'sticky', '=', TRUE ),
|
||||
'and',
|
||||
array( 'top_show', '=', TRUE ),
|
||||
'and',
|
||||
array( 'orientation', '=', 'hor' ),
|
||||
),
|
||||
),
|
||||
'top_fullwidth' => array(
|
||||
'switch_text' => __( 'Full Width Content', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'show_if' => array(
|
||||
array( 'top_show', '=', TRUE ),
|
||||
'and',
|
||||
array( 'orientation', '=', 'hor' ),
|
||||
'and',
|
||||
array( 'state', '=', 'default' ),
|
||||
),
|
||||
),
|
||||
'top_centering' => array(
|
||||
'switch_text' => __( 'Center the middle cell', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'show_if' => array(
|
||||
array( 'top_show', '=', TRUE ),
|
||||
'and',
|
||||
array( 'orientation', '=', 'hor' ),
|
||||
'and',
|
||||
array( 'state', '=', 'default' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
'middle' => array(
|
||||
'middle_height' => array(
|
||||
'title' => __( 'Area Height', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '80px',
|
||||
'options' => array(
|
||||
// Adding new units needs TONS of changes in "header.css.php", so leave "px" only now
|
||||
'px' => array(
|
||||
'min' => 40,
|
||||
'max' => 300,
|
||||
),
|
||||
),
|
||||
'show_if' => array( 'orientation', '=', 'hor' ),
|
||||
),
|
||||
'middle_sticky_height' => array(
|
||||
'title' => __( 'Sticky Area Height', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '60px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 0,
|
||||
'max' => 300,
|
||||
),
|
||||
),
|
||||
'show_if' => array(
|
||||
array( 'sticky', '=', TRUE ),
|
||||
'and',
|
||||
array( 'orientation', '=', 'hor' ),
|
||||
),
|
||||
),
|
||||
'middle_fullwidth' => array(
|
||||
'switch_text' => __( 'Full Width Content', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'show_if' => array(
|
||||
array( 'orientation', '=', 'hor' ),
|
||||
'and',
|
||||
array( 'state', '=', 'default' ),
|
||||
),
|
||||
),
|
||||
'middle_centering' => array(
|
||||
'switch_text' => __( 'Center the middle cell', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'show_if' => array(
|
||||
array( 'orientation', '=', 'hor' ),
|
||||
'and',
|
||||
array( 'state', '=', 'default' ),
|
||||
),
|
||||
),
|
||||
'elm_valign' => array(
|
||||
'title' => __( 'Elements Vertical Alignment', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'top' => us_translate( 'Top' ),
|
||||
'middle' => us_translate( 'Middle' ),
|
||||
'bottom' => us_translate( 'Bottom' ),
|
||||
),
|
||||
'std' => 'top',
|
||||
'show_if' => array(
|
||||
array( 'orientation', '=', 'ver' ),
|
||||
'and',
|
||||
array( 'state', '=', 'default' ),
|
||||
),
|
||||
),
|
||||
'bg_img' => array(
|
||||
'title' => __( 'Background Image', 'us' ),
|
||||
'type' => 'upload',
|
||||
'std' => '',
|
||||
),
|
||||
'bg_img_wrapper_start' => array(
|
||||
'type' => 'wrapper_start',
|
||||
'show_if' => array( 'bg_img', '!=', '' ),
|
||||
),
|
||||
'bg_img_size' => array(
|
||||
'title' => __( 'Background Image Size', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'cover' => __( 'Fill Area', 'us' ),
|
||||
'contain' => __( 'Fit to Area', 'us' ),
|
||||
'initial' => __( 'Initial', 'us' ),
|
||||
),
|
||||
'std' => 'cover',
|
||||
),
|
||||
'bg_img_repeat' => array(
|
||||
'title' => __( 'Background Image Repeat', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'repeat' => __( 'Repeat', 'us' ),
|
||||
'repeat-x' => __( 'Horizontally', 'us' ),
|
||||
'repeat-y' => __( 'Vertically', 'us' ),
|
||||
'no-repeat' => us_translate( 'None' ),
|
||||
),
|
||||
'std' => 'repeat',
|
||||
),
|
||||
'bg_img_position' => array(
|
||||
'title' => __( 'Background Image Position', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'top left' => '<span class="dashicons dashicons-arrow-left-alt"></span>',
|
||||
'top center' => '<span class="dashicons dashicons-arrow-up-alt"></span>',
|
||||
'top right' => '<span class="dashicons dashicons-arrow-right-alt"></span>',
|
||||
'center left' => '<span class="dashicons dashicons-arrow-left-alt"></span>',
|
||||
'center center' => '<span class="dashicons dashicons-marker"></span>',
|
||||
'center right' => '<span class="dashicons dashicons-arrow-right-alt"></span>',
|
||||
'bottom left' => '<span class="dashicons dashicons-arrow-left-alt"></span>',
|
||||
'bottom center' => '<span class="dashicons dashicons-arrow-down-alt"></span>',
|
||||
'bottom right' => '<span class="dashicons dashicons-arrow-right-alt"></span>',
|
||||
),
|
||||
'std' => 'top left',
|
||||
'classes' => 'bgpos',
|
||||
),
|
||||
'bg_img_attachment' => array(
|
||||
'type' => 'switch',
|
||||
'switch_text' => us_translate( 'Scroll with Page' ),
|
||||
'std' => TRUE,
|
||||
),
|
||||
'bg_img_wrapper_end' => array(
|
||||
'type' => 'wrapper_end',
|
||||
),
|
||||
),
|
||||
'bottom' => array(
|
||||
'bottom_show' => array(
|
||||
'switch_text' => __( 'Show Area', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => TRUE,
|
||||
),
|
||||
'bottom_height' => array(
|
||||
'title' => __( 'Area Height', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '50px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 40,
|
||||
'max' => 300,
|
||||
),
|
||||
),
|
||||
'show_if' => array(
|
||||
array( 'bottom_show', '=', TRUE ),
|
||||
'and',
|
||||
array( 'orientation', '=', 'hor' ),
|
||||
),
|
||||
),
|
||||
'bottom_sticky_height' => array(
|
||||
'title' => __( 'Sticky Area Height', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '50px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 0,
|
||||
'max' => 300,
|
||||
),
|
||||
),
|
||||
'show_if' => array(
|
||||
array( 'sticky', '=', TRUE ),
|
||||
'and',
|
||||
array( 'bottom_show', '=', TRUE ),
|
||||
'and',
|
||||
array( 'orientation', '=', 'hor' ),
|
||||
),
|
||||
),
|
||||
'bottom_fullwidth' => array(
|
||||
'switch_text' => __( 'Full Width Content', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'show_if' => array(
|
||||
array( 'bottom_show', '=', TRUE ),
|
||||
'and',
|
||||
array( 'orientation', '=', 'hor' ),
|
||||
'and',
|
||||
array( 'state', '=', 'default' ),
|
||||
),
|
||||
),
|
||||
'bottom_centering' => array(
|
||||
'switch_text' => __( 'Center the middle cell', 'us' ),
|
||||
'type' => 'switch',
|
||||
'std' => FALSE,
|
||||
'show_if' => array(
|
||||
array( 'bottom_show', '=', TRUE ),
|
||||
'and',
|
||||
array( 'orientation', '=', 'hor' ),
|
||||
'and',
|
||||
array( 'state', '=', 'default' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
);
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,30 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Icon sets for theme "icon" control
|
||||
*
|
||||
* @filter us_config_assets
|
||||
*/
|
||||
|
||||
return array(
|
||||
'fas' => array(
|
||||
'set_name' => 'Font Awesome Solid',
|
||||
'set_url' => 'https://fontawesome.com/icons?s=solid',
|
||||
),
|
||||
'far' => array(
|
||||
'set_name' => 'Font Awesome Regular',
|
||||
'set_url' => 'https://fontawesome.com/icons?s=regular',
|
||||
),
|
||||
'fal' => array(
|
||||
'set_name' => 'Font Awesome Light',
|
||||
'set_url' => 'https://fontawesome.com/icons?s=light',
|
||||
),
|
||||
'fab' => array(
|
||||
'set_name' => 'Font Awesome Brands',
|
||||
'set_url' => 'https://fontawesome.com/icons?s=brands',
|
||||
),
|
||||
'material' => array(
|
||||
'set_name' => 'Material Icons',
|
||||
'set_url' => 'https://material.io/icons/',
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,162 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Mega Menu Settings options
|
||||
*
|
||||
* @filter us_config_mega-menu
|
||||
*/
|
||||
|
||||
return array(
|
||||
'columns' => array(
|
||||
'title' => __( 'Dropdown Columns', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'1' => '1',
|
||||
'2' => '2',
|
||||
'3' => '3',
|
||||
'4' => '4',
|
||||
'5' => '5',
|
||||
'6' => '6',
|
||||
),
|
||||
'std' => '1',
|
||||
),
|
||||
'width' => array(
|
||||
'title' => __( 'Dropdown Width', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'full' => __( 'Full Width', 'us' ),
|
||||
'custom' => __( 'Custom Width', 'us' ),
|
||||
),
|
||||
'std' => 'full',
|
||||
'show_if' => array( 'columns', '!=', '1' ),
|
||||
),
|
||||
'custom_width' => array(
|
||||
'type' => 'slider',
|
||||
'std' => '600px',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 200,
|
||||
'max' => 1000,
|
||||
),
|
||||
'rem' => array(
|
||||
'min' => 10,
|
||||
'max' => 60,
|
||||
),
|
||||
'em' => array(
|
||||
'min' => 10,
|
||||
'max' => 60,
|
||||
),
|
||||
'vw' => array(
|
||||
'min' => 20,
|
||||
'max' => 100,
|
||||
),
|
||||
),
|
||||
'show_if' => array(
|
||||
array( 'columns', '!=', '1' ),
|
||||
'and',
|
||||
array( 'width', '=', 'custom' ),
|
||||
),
|
||||
),
|
||||
'direction' => array(
|
||||
'title' => __( 'Dropdown Direction', 'us' ),
|
||||
'type' => 'switch',
|
||||
'switch_text' => __( 'Invert dropdown direction', 'us' ),
|
||||
'std' => FALSE,
|
||||
'show_if' => array(
|
||||
array( 'columns', '=', '1' ),
|
||||
'or',
|
||||
array( 'width', '!=', 'full' ),
|
||||
),
|
||||
),
|
||||
'padding' => array(
|
||||
'title' => __( 'Dropdown Padding', 'us' ),
|
||||
'type' => 'slider',
|
||||
'std' => '1rem',
|
||||
'options' => array(
|
||||
'px' => array(
|
||||
'min' => 0,
|
||||
'max' => 50,
|
||||
),
|
||||
'rem' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 6.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
'em' => array(
|
||||
'min' => 0.0,
|
||||
'max' => 6.0,
|
||||
'step' => 0.1,
|
||||
),
|
||||
'vw' => array(
|
||||
'min' => 0,
|
||||
'max' => 10,
|
||||
),
|
||||
'vh' => array(
|
||||
'min' => 0,
|
||||
'max' => 10,
|
||||
),
|
||||
),
|
||||
),
|
||||
'color_bg' => array(
|
||||
'type' => 'color',
|
||||
'title' => __( 'Background Color', 'us' ),
|
||||
'std' => '',
|
||||
),
|
||||
'color_text' => array(
|
||||
'type' => 'color',
|
||||
'title' => __( 'Text Color', 'us' ),
|
||||
'std' => '',
|
||||
),
|
||||
'bg_image' => array(
|
||||
'title' => __( 'Background Image', 'us' ),
|
||||
'type' => 'upload',
|
||||
),
|
||||
'wrapper_bg_start' => array(
|
||||
'type' => 'wrapper_start',
|
||||
'classes' => 'force_right',
|
||||
'show_if' => array( 'bg_image', '!=', '' ),
|
||||
),
|
||||
'bg_image_size' => array(
|
||||
'title' => __( 'Background Image Size', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'cover' => __( 'Fill Area', 'us' ),
|
||||
'contain' => __( 'Fit to Area', 'us' ),
|
||||
'initial' => __( 'Initial', 'us' ),
|
||||
),
|
||||
'std' => 'cover',
|
||||
'classes' => 'width_full',
|
||||
),
|
||||
'bg_image_repeat' => array(
|
||||
'title' => __( 'Background Image Repeat', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'repeat' => __( 'Repeat', 'us' ),
|
||||
'repeat-x' => __( 'Horizontally', 'us' ),
|
||||
'repeat-y' => __( 'Vertically', 'us' ),
|
||||
'no-repeat' => us_translate( 'None' ),
|
||||
),
|
||||
'std' => 'repeat',
|
||||
'classes' => 'width_full',
|
||||
),
|
||||
'bg_image_position' => array(
|
||||
'title' => __( 'Background Image Position', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'top left' => '<span class="dashicons dashicons-arrow-left-alt"></span>',
|
||||
'top center' => '<span class="dashicons dashicons-arrow-up-alt"></span>',
|
||||
'top right' => '<span class="dashicons dashicons-arrow-right-alt"></span>',
|
||||
'center left' => '<span class="dashicons dashicons-arrow-left-alt"></span>',
|
||||
'center center' => '<span class="dashicons dashicons-marker"></span>',
|
||||
'center right' => '<span class="dashicons dashicons-arrow-right-alt"></span>',
|
||||
'bottom left' => '<span class="dashicons dashicons-arrow-left-alt"></span>',
|
||||
'bottom center' => '<span class="dashicons dashicons-arrow-down-alt"></span>',
|
||||
'bottom right' => '<span class="dashicons dashicons-arrow-right-alt"></span>',
|
||||
),
|
||||
'std' => 'top left',
|
||||
'classes' => 'bgpos width_full',
|
||||
),
|
||||
'wrapper_bg_end' => array(
|
||||
'type' => 'wrapper_end',
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,221 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Theme Meta Boxes
|
||||
*
|
||||
* @filter us_config_meta-boxes
|
||||
*/
|
||||
|
||||
// Get CPTs
|
||||
$public_cpt = array_keys( us_get_public_cpt() );
|
||||
|
||||
// Get Page Blocks
|
||||
$us_page_blocks_list = us_get_posts_titles_for( 'us_page_block' );
|
||||
|
||||
return array(
|
||||
|
||||
// Page Layout
|
||||
array(
|
||||
'id' => 'us_page_settings',
|
||||
'title' => __( 'Page Layout', 'us' ),
|
||||
'post_types' => array_merge(
|
||||
array( 'post', 'page', 'us_portfolio', 'product' ), // predefined types
|
||||
$public_cpt
|
||||
),
|
||||
'context' => 'side',
|
||||
'priority' => 'low',
|
||||
'fields' => array(
|
||||
|
||||
// Header
|
||||
'us_header_id' => array(
|
||||
'title' => _x( 'Header', 'site top area', 'us' ),
|
||||
'type' => 'select',
|
||||
'hints_for' => 'us_header',
|
||||
'options' => us_array_merge(
|
||||
array(
|
||||
'__defaults__' => '– ' . __( 'As in Theme Options', 'us' ) . ' –',
|
||||
'' => '– ' . __( 'Do not display', 'us' ) . ' –',
|
||||
), us_get_posts_titles_for( 'us_header' )
|
||||
),
|
||||
'std' => '__defaults__',
|
||||
'classes' => 'us_wpml_non_default_hidden',
|
||||
),
|
||||
|
||||
// Titlebar
|
||||
'us_titlebar_id' => array(
|
||||
'title' => __( 'Titlebar', 'us' ),
|
||||
'type' => 'select',
|
||||
'hints_for' => 'us_page_block',
|
||||
'options' => us_array_merge(
|
||||
array(
|
||||
'__defaults__' => '– ' . __( 'As in Theme Options', 'us' ) . ' –',
|
||||
'' => '– ' . __( 'Do not display', 'us' ) . ' –',
|
||||
), $us_page_blocks_list
|
||||
),
|
||||
'std' => '__defaults__',
|
||||
'place_if' => us_get_option( 'enable_sidebar_titlebar', 0 ),
|
||||
),
|
||||
|
||||
// Content template
|
||||
'us_content_id' => array(
|
||||
'title' => __( 'Content template', 'us' ),
|
||||
'type' => 'select',
|
||||
'hints_for' => 'us_page_block',
|
||||
'options' => us_array_merge(
|
||||
array(
|
||||
'__defaults__' => '– ' . __( 'As in Theme Options', 'us' ) . ' –',
|
||||
'' => '– ' . __( 'Show content as is', 'us' ) . ' –',
|
||||
), $us_page_blocks_list
|
||||
),
|
||||
'std' => '__defaults__',
|
||||
),
|
||||
|
||||
// Sidebar
|
||||
'us_sidebar_id' => array(
|
||||
'title' => __( 'Sidebar', 'us' ),
|
||||
'type' => 'select',
|
||||
'options' => us_array_merge(
|
||||
array(
|
||||
'__defaults__' => '– ' . __( 'As in Theme Options', 'us' ) . ' –',
|
||||
'' => '– ' . __( 'Do not display', 'us' ) . ' –',
|
||||
), us_get_sidebars()
|
||||
),
|
||||
'std' => '__defaults__',
|
||||
'place_if' => us_get_option( 'enable_sidebar_titlebar', 0 ),
|
||||
),
|
||||
|
||||
// Sidebar Position
|
||||
'us_sidebar_pos' => array(
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'left' => us_translate( 'Left' ),
|
||||
'right' => us_translate( 'Right' ),
|
||||
),
|
||||
'std' => 'right',
|
||||
'classes' => 'for_above',
|
||||
'show_if' => array( 'us_sidebar_id', 'not in', array( '', '__defaults__' ) ),
|
||||
'place_if' => us_get_option( 'enable_sidebar_titlebar', 0 ),
|
||||
),
|
||||
|
||||
// Footer
|
||||
'us_footer_id' => array(
|
||||
'title' => __( 'Footer', 'us' ),
|
||||
'type' => 'select',
|
||||
'hints_for' => 'us_page_block',
|
||||
'options' => us_array_merge(
|
||||
array(
|
||||
'__defaults__' => '– ' . __( 'As in Theme Options', 'us' ) . ' –',
|
||||
'' => '– ' . __( 'Do not display', 'us' ) . ' –',
|
||||
), $us_page_blocks_list
|
||||
),
|
||||
'std' => '__defaults__',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Custom appearance in Grid
|
||||
array(
|
||||
'id' => 'us_portfolio_settings',
|
||||
'title' => __( 'Custom appearance in Grid', 'us' ),
|
||||
'post_types' => array_merge(
|
||||
array( 'post', 'page', 'us_portfolio', 'product' ), // predefined types
|
||||
$public_cpt
|
||||
),
|
||||
'context' => 'normal',
|
||||
'priority' => 'default',
|
||||
'fields' => array(
|
||||
'us_tile_bg_color' => array(
|
||||
'title' => __( 'Background Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'classes' => 'clear_right',
|
||||
),
|
||||
'us_tile_text_color' => array(
|
||||
'title' => __( 'Text Color', 'us' ),
|
||||
'type' => 'color',
|
||||
'classes' => 'clear_right',
|
||||
),
|
||||
'us_tile_size' => array(
|
||||
'title' => __( 'Custom Size', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'1x1' => us_translate( 'None' ),
|
||||
'2x1' => '2x1',
|
||||
'1x2' => '1x2',
|
||||
'2x2' => '2x2',
|
||||
),
|
||||
'std' => '1x1',
|
||||
),
|
||||
'us_tile_link' => array(
|
||||
'title' => __( 'Custom Link', 'us' ),
|
||||
'type' => 'link',
|
||||
'placeholder' => us_translate( 'Enter the URL' ),
|
||||
'std' => '',
|
||||
),
|
||||
'us_tile_additional_image' => array(
|
||||
'title' => __( 'Additional Image', 'us' ),
|
||||
'type' => 'upload',
|
||||
'extension' => 'png,jpg,jpeg,gif,svg',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Testimonials settings
|
||||
array(
|
||||
'id' => 'us_testimonials_settings',
|
||||
'title' => __( 'More Options', 'us' ),
|
||||
'post_types' => array( 'us_testimonial' ),
|
||||
'context' => 'normal',
|
||||
'priority' => 'high',
|
||||
'fields' => array(
|
||||
'us_testimonial_author' => array(
|
||||
'title' => __( 'Author Name', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => 'John Doe',
|
||||
),
|
||||
'us_testimonial_role' => array(
|
||||
'title' => __( 'Author Role', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
),
|
||||
'us_testimonial_company' => array(
|
||||
'title' => __( 'Author Company', 'us' ),
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
),
|
||||
'us_testimonial_link' => array(
|
||||
'title' => __( 'Author Link', 'us' ),
|
||||
'type' => 'link',
|
||||
'placeholder' => us_translate( 'Enter the URL' ),
|
||||
'std' => '',
|
||||
),
|
||||
'us_testimonial_rating' => array(
|
||||
'title' => __( 'Rating', 'us' ),
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'none' => us_translate( 'None' ),
|
||||
'1' => '1',
|
||||
'2' => '2',
|
||||
'3' => '3',
|
||||
'4' => '4',
|
||||
'5' => '5',
|
||||
),
|
||||
'std' => 'none',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Page Block info
|
||||
array(
|
||||
'id' => 'us_post_info',
|
||||
'title' => __( 'Used in', 'us' ),
|
||||
'post_types' => array( 'us_page_block' ),
|
||||
'context' => 'side',
|
||||
'priority' => 'default',
|
||||
'fields' => array(
|
||||
'used_in_locations' => array(
|
||||
'description' => '',
|
||||
'type' => 'message',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Theme's migrations
|
||||
*
|
||||
* Note: do not change this file. Use separate filters for each theme instead.
|
||||
*
|
||||
* @filter us_config_migrations
|
||||
*/
|
||||
|
||||
return array();
|
||||
@@ -0,0 +1,306 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Shortcodes
|
||||
*
|
||||
* @filter us_config_shortcodes
|
||||
*/
|
||||
|
||||
$elements = array(
|
||||
'page_block',
|
||||
'image',
|
||||
'image_slider',
|
||||
'separator',
|
||||
'btn',
|
||||
'iconbox',
|
||||
'cta',
|
||||
'counter',
|
||||
'sharing',
|
||||
'socials',
|
||||
'grid',
|
||||
'carousel',
|
||||
'popup',
|
||||
'flipbox',
|
||||
'itext',
|
||||
'gmaps',
|
||||
'person',
|
||||
'pricing',
|
||||
'progbar',
|
||||
'cform',
|
||||
'contacts',
|
||||
'message',
|
||||
'scroller',
|
||||
'page_title',
|
||||
'breadcrumbs',
|
||||
|
||||
// Post Elements
|
||||
'post_content',
|
||||
'post_title',
|
||||
'post_image',
|
||||
'post_date',
|
||||
'post_author',
|
||||
'post_taxonomy',
|
||||
'post_comments',
|
||||
'post_navigation',
|
||||
'post_custom_field',
|
||||
'hwrapper',
|
||||
);
|
||||
if ( class_exists( 'woocommerce' ) ) {
|
||||
$elements[] = 'product_gallery';
|
||||
$elements[] = 'product_field';
|
||||
$elements[] = 'add_to_cart';
|
||||
$elements[] = 'product_ordering';
|
||||
}
|
||||
|
||||
return array(
|
||||
|
||||
// Theme elements, which are available for WPB as shortcodes. Used with "us_" prefix. The order affects on "Add New Element" window
|
||||
'theme_elements' => $elements,
|
||||
|
||||
// Shortcodes, which are changed by similar theme elements
|
||||
'alias' => array(
|
||||
'vc_column_inner' => 'vc_column',
|
||||
'vc_tta_accordion' => 'vc_tta_tabs',
|
||||
'vc_tta_tour' => 'vc_tta_tabs',
|
||||
'us_carousel' => 'us_grid',
|
||||
),
|
||||
|
||||
// WPB shortcodes, which are disabled by default
|
||||
'disabled' => array(
|
||||
'vc_btn',
|
||||
'vc_cta',
|
||||
'vc_gallery',
|
||||
'vc_single_image',
|
||||
'vc_message',
|
||||
'vc_gmaps',
|
||||
'vc_icon',
|
||||
'vc_facebook',
|
||||
'vc_tweetmeme',
|
||||
'vc_googleplus',
|
||||
'vc_pinterest',
|
||||
'vc_flickr',
|
||||
'vc_tta_pageable',
|
||||
'vc_toggle',
|
||||
'vc_tour',
|
||||
'vc_posts_slider',
|
||||
'vc_progress_bar',
|
||||
'vc_pie',
|
||||
'vc_basic_grid',
|
||||
'vc_media_grid',
|
||||
'vc_images_carousel',
|
||||
'vc_masonry_grid',
|
||||
'vc_masonry_media_grid',
|
||||
'vc_section',
|
||||
'vc_button2',
|
||||
'vc_separator',
|
||||
'vc_empty_space',
|
||||
'vc_text_separator',
|
||||
'vc_zigzag',
|
||||
'vc_hoverbox',
|
||||
'vc_tabs',
|
||||
'vc_accordion',
|
||||
'vc_tab',
|
||||
'vc_accordion_tab',
|
||||
'vc_gutenberg',
|
||||
'vc_acf',
|
||||
|
||||
// WooCommerce
|
||||
'product',
|
||||
'products',
|
||||
'product_category',
|
||||
'product_categories',
|
||||
'top_rated_products',
|
||||
'best_selling_products',
|
||||
'recent_products',
|
||||
'featured_products',
|
||||
'sale_products',
|
||||
),
|
||||
|
||||
// WPB shortcodes, which are modified via theme custom options
|
||||
'modified' => array(
|
||||
'gallery' => array(
|
||||
'atts' => array(
|
||||
'ids' => '',
|
||||
'columns' => 3,
|
||||
'orderby' => FALSE,
|
||||
'indents' => FALSE,
|
||||
'meta' => FALSE,
|
||||
'link' => FALSE,
|
||||
'masonry' => FALSE,
|
||||
'size' => 'thumbnail',
|
||||
),
|
||||
),
|
||||
'vc_column' => array(
|
||||
'atts' => array(
|
||||
'link' => '',
|
||||
'text_color' => '',
|
||||
'animate' => '',
|
||||
'animate_delay' => '',
|
||||
'width' => '1/1',
|
||||
'offset' => '',
|
||||
'el_id' => '',
|
||||
'el_class' => '',
|
||||
'css' => '',
|
||||
),
|
||||
),
|
||||
'vc_column_inner' => array(
|
||||
'atts' => array(
|
||||
'link' => '',
|
||||
'text_color' => '',
|
||||
'animate' => '',
|
||||
'animate_delay' => '',
|
||||
'width' => '1/1',
|
||||
'offset' => '',
|
||||
'el_id' => '',
|
||||
'el_class' => '',
|
||||
'css' => '',
|
||||
),
|
||||
),
|
||||
'vc_column_text' => array(
|
||||
'atts' => array(
|
||||
'el_id' => '',
|
||||
'el_class' => '',
|
||||
'css' => '',
|
||||
),
|
||||
),
|
||||
'vc_custom_heading' => array(
|
||||
'overload' => FALSE,
|
||||
),
|
||||
'vc_row' => array(
|
||||
'atts' => array(
|
||||
'content_placement' => 'top',
|
||||
'gap' => '',
|
||||
'columns_type' => FALSE,
|
||||
'columns_reverse' => FALSE,
|
||||
'height' => 'default',
|
||||
'valign' => 'top',
|
||||
'width' => '',
|
||||
'color_scheme' => '',
|
||||
'us_bg_color' => '',
|
||||
'us_text_color' => '',
|
||||
'us_bg_image_source' => 'none',
|
||||
'us_bg_image' => '',
|
||||
'us_bg_size' => 'cover',
|
||||
'us_bg_repeat' => 'repeat',
|
||||
'us_bg_pos' => 'center center',
|
||||
'us_bg_parallax' => '',
|
||||
'us_bg_parallax_width' => '130',
|
||||
'us_bg_parallax_reverse' => FALSE,
|
||||
'us_bg_video' => '',
|
||||
'us_bg_slider' => '',
|
||||
'us_bg_overlay_color' => '',
|
||||
'sticky' => FALSE,
|
||||
'sticky_disable_width' => '900px',
|
||||
'disable_element' => '',
|
||||
'el_id' => '',
|
||||
'el_class' => '',
|
||||
'css' => '',
|
||||
),
|
||||
),
|
||||
'vc_row_inner' => array(
|
||||
'atts' => array(
|
||||
'content_placement' => 'top',
|
||||
'gap' => '',
|
||||
'columns_type' => FALSE,
|
||||
'columns_reverse' => FALSE,
|
||||
'disable_element' => '',
|
||||
'el_id' => '',
|
||||
'el_class' => '',
|
||||
'css' => '',
|
||||
),
|
||||
),
|
||||
'vc_tta_accordion' => array(
|
||||
'atts' => array(
|
||||
'toggle' => FALSE,
|
||||
'c_align' => 'left',
|
||||
'c_icon' => 'chevron',
|
||||
'c_position' => 'right',
|
||||
'title_tag' => 'h5',
|
||||
'title_size' => '1.2rem',
|
||||
'el_id' => '',
|
||||
'el_class' => '',
|
||||
'css' => '',
|
||||
),
|
||||
),
|
||||
'vc_tta_section' => array(
|
||||
'atts' => array(
|
||||
'title' => '',
|
||||
'tab_id' => '',
|
||||
'icon' => '',
|
||||
'i_position' => 'left',
|
||||
'active' => FALSE,
|
||||
'indents' => '',
|
||||
'bg_color' => '',
|
||||
'text_color' => '',
|
||||
'c_position' => 'right',
|
||||
'title_tag' => 'h5',
|
||||
'title_size' => '',
|
||||
'el_id' => '',
|
||||
'el_class' => '',
|
||||
'css' => '',
|
||||
),
|
||||
),
|
||||
'vc_tta_tabs' => array(
|
||||
'atts' => array(
|
||||
'layout' => 'default',
|
||||
'stretch' => FALSE,
|
||||
'title_font' => 'heading',
|
||||
'title_weight' => '',
|
||||
'title_transform' => '',
|
||||
'title_size' => '',
|
||||
'title_tag' => 'div',
|
||||
'el_id' => '',
|
||||
'el_class' => '',
|
||||
'css' => '',
|
||||
// Default values for alised shortcodes
|
||||
'toggle' => FALSE,
|
||||
'c_align' => 'left',
|
||||
'c_icon' => 'chevron',
|
||||
'c_position' => 'right',
|
||||
'tab_position' => 'left',
|
||||
'controls_size' => 'auto',
|
||||
),
|
||||
),
|
||||
'vc_tta_tour' => array(
|
||||
'atts' => array(
|
||||
'c_align' => 'left',
|
||||
'tab_position' => 'left',
|
||||
'controls_size' => 'auto',
|
||||
'title_font' => 'heading',
|
||||
'title_weight' => '',
|
||||
'title_transform' => '',
|
||||
'title_size' => '',
|
||||
'title_tag' => 'div',
|
||||
'el_id' => '',
|
||||
'el_class' => '',
|
||||
'css' => '',
|
||||
),
|
||||
),
|
||||
'vc_video' => array(
|
||||
'atts' => array(
|
||||
'link' => 'https://youtu.be/XuWr9gJa6P0',
|
||||
'hide_video_title' => FALSE,
|
||||
'hide_controls' => FALSE,
|
||||
'ratio' => '16x9',
|
||||
'max_width' => '',
|
||||
'align' => 'left',
|
||||
'el_id' => '',
|
||||
'el_class' => '',
|
||||
'css' => '',
|
||||
),
|
||||
),
|
||||
'vc_wp_custommenu' => array(
|
||||
'atts' => array(
|
||||
'title' => '',
|
||||
'layout' => 'ver',
|
||||
'align' => 'left',
|
||||
'font_size' => '',
|
||||
'nav_menu' => NULL,
|
||||
'el_id' => '',
|
||||
'el_class' => '',
|
||||
'css' => '',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
);
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Theme's sidebars
|
||||
*
|
||||
* @filter us_config_sidebars
|
||||
*/
|
||||
|
||||
return array(
|
||||
'default_sidebar' => array(
|
||||
'name' => __( 'Default Sidebar', 'us' ),
|
||||
'id' => 'default_sidebar',
|
||||
'description' => __( 'Default Sidebar', 'us' ),
|
||||
'before_widget' => '<div id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</div>',
|
||||
'before_title' => '<h3 class="widgettitle">',
|
||||
'after_title' => '</h3>',
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Defines list of available social links used across the theme
|
||||
*
|
||||
* @filter us_config_social_links
|
||||
*/
|
||||
|
||||
return array(
|
||||
's500px' => '500px',
|
||||
'behance' => 'Behance',
|
||||
'deviantart' => 'DeviantArt',
|
||||
'discord' => 'Discord',
|
||||
'dribbble' => 'Dribbble',
|
||||
'email' => us_translate( 'Email' ),
|
||||
'facebook' => 'Facebook',
|
||||
'flickr' => 'Flickr',
|
||||
'foursquare' => 'Foursquare',
|
||||
'github' => 'GitHub',
|
||||
'google' => 'Google',
|
||||
'houzz' => 'Houzz',
|
||||
'imdb' => 'IMDb',
|
||||
'instagram' => 'Instagram',
|
||||
'linkedin' => 'LinkedIn',
|
||||
'medium' => 'Medium',
|
||||
'odnoklassniki' => 'Odnoklassniki',
|
||||
'pinterest' => 'Pinterest',
|
||||
'reddit' => 'Reddit',
|
||||
'rss' => 'RSS',
|
||||
'skype' => 'Skype',
|
||||
'soundcloud' => 'SoundCloud',
|
||||
'telegram' => 'Telegram',
|
||||
'tripadvisor' => 'Tripadvisor',
|
||||
'tumblr' => 'Tumblr',
|
||||
'twitch' => 'Twitch',
|
||||
'twitter' => 'Twitter',
|
||||
'vimeo' => 'Vimeo',
|
||||
'vk' => 'Vkontakte',
|
||||
'wechat' => 'WeChat',
|
||||
'whatsapp' => 'WhatsApp',
|
||||
'xing' => 'Xing',
|
||||
'yelp' => 'Yelp',
|
||||
'youtube' => 'YouTube',
|
||||
);
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,21 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Web Safe Fonts
|
||||
*
|
||||
* @filter us_config_web-safe-fonts
|
||||
*/
|
||||
|
||||
return array(
|
||||
'Georgia, serif',
|
||||
'Palatino Linotype, Book Antiqua, Palatino, serif',
|
||||
'Times New Roman, Times, serif',
|
||||
'Arial, Helvetica, sans-serif',
|
||||
'Impact, Charcoal, sans-serif',
|
||||
'Lucida Sans Unicode, Lucida Grande, sans-serif',
|
||||
'Tahoma, Geneva, sans-serif',
|
||||
'Trebuchet MS, Helvetica, sans-serif',
|
||||
'Verdana, Geneva, sans-serif',
|
||||
'Courier New, Courier, monospace',
|
||||
'Lucida Console, Monaco, monospace',
|
||||
);
|
||||
@@ -0,0 +1,326 @@
|
||||
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
|
||||
|
||||
/**
|
||||
* Theme's WordPress widgets
|
||||
*
|
||||
* @filter us_config_widgets
|
||||
*/
|
||||
|
||||
$grid_templates_config = us_config( 'grid-templates', array(), TRUE );
|
||||
$us_grid_layout_list = us_array_merge(
|
||||
array(
|
||||
0 => array(
|
||||
'optgroup' => TRUE,
|
||||
'title' => __( 'Grid Layouts', 'us' ),
|
||||
),
|
||||
),
|
||||
us_get_posts_titles_for( 'us_grid_layout' )
|
||||
);
|
||||
|
||||
$current_tmpl_group = '';
|
||||
foreach ( $grid_templates_config as $template_name => $template ) {
|
||||
if ( ! empty( $template['group'] ) AND $current_tmpl_group != $template['group'] ) {
|
||||
$current_tmpl_group = $template['group'];
|
||||
$us_grid_layout_list[] = array(
|
||||
'optgroup' => TRUE,
|
||||
'title' => $template['group'],
|
||||
);
|
||||
}
|
||||
$us_grid_layout_list[$template_name] = $template['title'];
|
||||
}
|
||||
|
||||
// Social Links fields
|
||||
$old_social_links = array(
|
||||
'email' => 'Email',
|
||||
'facebook' => 'Facebook',
|
||||
'twitter' => 'Twitter',
|
||||
'google' => 'Google',
|
||||
'linkedin' => 'LinkedIn',
|
||||
'youtube' => 'YouTube',
|
||||
'vimeo' => 'Vimeo',
|
||||
'flickr' => 'Flickr',
|
||||
'behance' => 'Behance',
|
||||
'instagram' => 'Instagram',
|
||||
'xing' => 'Xing',
|
||||
'pinterest' => 'Pinterest',
|
||||
'skype' => 'Skype',
|
||||
'whatsapp' => 'WhatsApp',
|
||||
'dribbble' => 'Dribbble',
|
||||
'vk' => 'Vkontakte',
|
||||
'tumblr' => 'Tumblr',
|
||||
'soundcloud' => 'SoundCloud',
|
||||
'twitch' => 'Twitch',
|
||||
'yelp' => 'Yelp',
|
||||
'deviantart' => 'DeviantArt',
|
||||
'foursquare' => 'Foursquare',
|
||||
'github' => 'GitHub',
|
||||
'odnoklassniki' => 'Odnoklassniki',
|
||||
's500px' => '500px',
|
||||
'houzz' => 'Houzz',
|
||||
'medium' => 'Medium',
|
||||
'tripadvisor' => 'Tripadvisor',
|
||||
'rss' => 'RSS',
|
||||
'discord' => 'Discord',
|
||||
'imdb' => 'IMDb',
|
||||
'reddit' => 'Reddit',
|
||||
'telegram' => 'Telegram',
|
||||
'wechat' => 'WeChat',
|
||||
);
|
||||
$social_links_config = array();
|
||||
foreach ( $old_social_links as $name => $title ) {
|
||||
$social_links_config[$name] = array(
|
||||
'type' => 'textfield',
|
||||
'heading' => $title,
|
||||
'std' => '',
|
||||
);
|
||||
}
|
||||
|
||||
return array(
|
||||
|
||||
// Contact Info
|
||||
'us_contacts' => array(
|
||||
'class' => 'US_Widget_Contacts',
|
||||
'name' => us_translate( 'Contact Info' ),
|
||||
'description' => us_translate( 'Contact Info' ),
|
||||
'params' => array(
|
||||
'title' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => us_translate( 'Title' ),
|
||||
'std' => '',
|
||||
),
|
||||
'address' => array(
|
||||
'type' => 'textarea',
|
||||
'heading' => __( 'Address', 'us' ),
|
||||
'std' => '',
|
||||
),
|
||||
'phone' => array(
|
||||
'type' => 'textarea',
|
||||
'heading' => __( 'Phone', 'us' ),
|
||||
'std' => '',
|
||||
),
|
||||
'fax' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => __( 'Fax', 'us' ),
|
||||
'std' => '',
|
||||
),
|
||||
'email' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => us_translate( 'Email' ),
|
||||
'std' => '',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Login
|
||||
'us_login' => array(
|
||||
'class' => 'US_Widget_Login',
|
||||
'name' => __( 'Login', 'us' ),
|
||||
'description' => __( 'Login Form', 'us' ),
|
||||
'params' => array(
|
||||
'title' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => us_translate( 'Title' ),
|
||||
'std' => '',
|
||||
),
|
||||
'register' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => __( 'Register URL', 'us' ),
|
||||
'std' => '',
|
||||
),
|
||||
'lostpass' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => __( 'Lost Password URL', 'us' ),
|
||||
'std' => '',
|
||||
),
|
||||
'login_redirect' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => __( 'Login Redirect URL', 'us' ),
|
||||
'std' => '',
|
||||
),
|
||||
'logout_redirect' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => __( 'Logout Redirect URL', 'us' ),
|
||||
'std' => '',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Portfolio
|
||||
'us_portfolio' => array(
|
||||
'class' => 'US_Widget_Portfolio',
|
||||
'name' => __( 'Portfolio', 'us' ),
|
||||
'description' => __( 'Portfolio', 'us' ),
|
||||
'params' => array(
|
||||
'title' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => us_translate( 'Title' ),
|
||||
'std' => '',
|
||||
),
|
||||
'layout' => array(
|
||||
'type' => 'dropdown',
|
||||
'heading' => __( 'Grid Layout', 'us' ),
|
||||
'value' => $us_grid_layout_list,
|
||||
'std' => 'portfolio_compact',
|
||||
),
|
||||
'orderby' => array(
|
||||
'type' => 'dropdown',
|
||||
'heading' => us_translate( 'Order' ),
|
||||
'value' => array(
|
||||
'date' => __( 'By date of creation (newer first)', 'us' ),
|
||||
'date_asc' => __( 'By date of creation (older first)', 'us' ),
|
||||
'modified' => __( 'By date of update (newer first)', 'us' ),
|
||||
'modified_asc' => __( 'By date of update (older first)', 'us' ),
|
||||
'alpha' => __( 'Alphabetically', 'us' ),
|
||||
'rand' => us_translate( 'Random' ),
|
||||
),
|
||||
'std' => 'date',
|
||||
),
|
||||
'columns' => array(
|
||||
'type' => 'dropdown',
|
||||
'heading' => us_translate( 'Columns' ),
|
||||
'value' => array(
|
||||
'1' => '1',
|
||||
'2' => '2',
|
||||
'3' => '3',
|
||||
'4' => '4',
|
||||
'5' => '5',
|
||||
),
|
||||
'std' => '3',
|
||||
),
|
||||
'items' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => __( 'Items Quantity', 'us' ),
|
||||
'std' => '6',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Blog
|
||||
'us_blog' => array(
|
||||
'class' => 'US_Widget_Blog',
|
||||
'name' => us_translate( 'Blog' ),
|
||||
'description' => us_translate( 'Blog' ),
|
||||
'params' => array(
|
||||
'title' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => us_translate( 'Title' ),
|
||||
'std' => '',
|
||||
),
|
||||
'layout' => array(
|
||||
'type' => 'dropdown',
|
||||
'heading' => __( 'Grid Layout', 'us' ),
|
||||
'value' => $us_grid_layout_list,
|
||||
'std' => 'blog_1',
|
||||
),
|
||||
'orderby' => array(
|
||||
'type' => 'dropdown',
|
||||
'heading' => us_translate( 'Order' ),
|
||||
'value' => array(
|
||||
'date' => __( 'By date of creation (newer first)', 'us' ),
|
||||
'date_asc' => __( 'By date of creation (older first)', 'us' ),
|
||||
'modified' => __( 'By date of update (newer first)', 'us' ),
|
||||
'modified_asc' => __( 'By date of update (older first)', 'us' ),
|
||||
'alpha' => __( 'Alphabetically', 'us' ),
|
||||
'rand' => us_translate( 'Random' ),
|
||||
),
|
||||
'std' => 'date',
|
||||
),
|
||||
'items' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => us_translate( 'Number of posts to show' ),
|
||||
'std' => '3',
|
||||
),
|
||||
'ignore_sticky' => array(
|
||||
'type' => 'checkbox',
|
||||
'heading' => '',
|
||||
'value' => array(
|
||||
__( 'Ignore sticky posts', 'us' ) => TRUE,
|
||||
),
|
||||
'std' => array(),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Social Links
|
||||
'us_socials' => array(
|
||||
'class' => 'US_Widget_Socials',
|
||||
'name' => __( 'Social Links', 'us' ),
|
||||
'description' => __( 'Social Links', 'us' ),
|
||||
'params' => array_merge(
|
||||
array(
|
||||
'title' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => us_translate( 'Title' ),
|
||||
'std' => '',
|
||||
),
|
||||
'size' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => us_translate( 'Size' ),
|
||||
'std' => '20px',
|
||||
),
|
||||
'style' => array(
|
||||
'type' => 'dropdown',
|
||||
'heading' => __( 'Icons Style', 'us' ),
|
||||
'value' => array(
|
||||
'default' => __( 'Simple', 'us' ),
|
||||
'outlined' => __( 'With outline', 'us' ),
|
||||
'solid' => __( 'With light background', 'us' ),
|
||||
'colored' => __( 'With colored background', 'us' ),
|
||||
),
|
||||
'std' => 'default',
|
||||
),
|
||||
'color' => array(
|
||||
'type' => 'dropdown',
|
||||
'heading' => __( 'Icons Color', 'us' ),
|
||||
'value' => array(
|
||||
'brand' => __( 'Default brands colors', 'us' ),
|
||||
'text' => __( 'Text (theme color)', 'us' ),
|
||||
'link' => __( 'Link (theme color)', 'us' ),
|
||||
),
|
||||
'std' => 'brand',
|
||||
),
|
||||
'shape' => array(
|
||||
'type' => 'dropdown',
|
||||
'heading' => __( 'Icons Shape', 'us' ),
|
||||
'value' => array(
|
||||
'square' => __( 'Square', 'us' ),
|
||||
'rounded' => __( 'Rounded Square', 'us' ),
|
||||
'circle' => __( 'Circle', 'us' ),
|
||||
),
|
||||
'std' => 'square',
|
||||
),
|
||||
'hover' => array(
|
||||
'type' => 'dropdown',
|
||||
'heading' => __( 'Hover Style', 'us' ),
|
||||
'value' => array(
|
||||
'fade' => __( 'Fade', 'us' ),
|
||||
'slide' => __( 'Slide', 'us' ),
|
||||
'none' => us_translate( 'None' ),
|
||||
),
|
||||
'std' => 'fade',
|
||||
),
|
||||
), $social_links_config, array(
|
||||
'custom_link' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => __( 'Custom Link', 'us' ),
|
||||
'std' => '',
|
||||
),
|
||||
'custom_title' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => __( 'Custom Link Title', 'us' ),
|
||||
'std' => '',
|
||||
),
|
||||
'custom_icon' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => __( 'Custom Link Icon', 'us' ),
|
||||
'std' => '',
|
||||
),
|
||||
'custom_color' => array(
|
||||
'type' => 'textfield',
|
||||
'heading' => __( 'Custom Link Color', 'us' ),
|
||||
'std' => '#1abc9c',
|
||||
),
|
||||
)
|
||||
),
|
||||
),
|
||||
);
|
||||
Reference in new issue
Block a user