Commit inicial - WordPress Análisis de Precios Unitarios

- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,222 @@
<?php
/**
* Returns CSS generating rules for the Dandyish theme.
*
* @see OnpSL_ThemeManager::getRulesToGenerateCSS
*
* @since 3.3.3
* @return mixed[]
*/
function onp_sl_get_dandyish_theme_css_rules() {
return array(
// background
'background_color' => array(
array(
'css' => 'background: {value};',
'selector' => '.onp-sl-dandyish .onp-sl-inner-wrap'
),
array(
'css' => 'text-shadow: none;',
'selector' => '.onp-sl-dandyish .onp-sl-strong, .onp-sl-dandyish .onp-sl-message, .onp-sl-dandyish .onp-sl-timer'
),
),
'background_image' => array(
array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}',
'{color}',
array(
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-dandyish .onp-sl-inner-wrap'
),
array(
'css' => 'text-shadow: none;',
'selector' => '.onp-sl-dandyish .onp-sl-strong, .onp-sl-dandyish .onp-sl-message, .onp-sl-dandyish .onp-sl-timer'
),
),
'background_gradient' => array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-dandyish .onp-sl-inner-wrap'
),
// end background
// outer border
'outer_border_color' => array(
'css' => 'background: {value|onp_to_rgba};',
'selector' => '.onp-sl-dandyish'
),
'outer_border_image' => array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}',
'{color}',
array(
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-dandyish'
),
'outer_border_gradient' => array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-dandyish'
),
'outer_border_size' => array(
'css' => 'padding: {value}px;',
'selector' => '.onp-sl-dandyish'
),
'outer_border_radius' => array(
'css' => array(
'border-radius: {value}px;',
'-moz-border-radius:{value}px;',
'-webkit-border-radius:{value}px;'
),
'selector' => '.onp-sl-dandyish'
),
// end outer border
// inner border
'inner_border_color' => array(
'css' => 'background: {value|onp_to_rgba};',
'selector' => '.onp-sl-dandyish .onp-sl-outer-wrap'
),
'inner_border_image' => array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}',
'{color}',
array(
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-dandyish .onp-sl-outer-wrap'
),
'inner_border_gradient' => array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-dandyish .onp-sl-outer-wrap'
),
'inner_border_size' => array(
'css' => 'padding: {value}px;',
'selector' => '.onp-sl-dandyish .onp-sl-outer-wrap'
),
'inner_border_radius' => array(
'css' => array(
'border-radius: {value}px;',
'-moz-border-radius:{value}px;',
'-webkit-border-radius:{value}px;'
),
'selector' => '.onp-sl-dandyish .onp-sl-outer-wrap, .onp-sl-dandyish .onp-sl-inner-wrap'
),
// end inner border
// text
'header_icon' => array(
'css' => 'display:none !important;',
'selector' => '.onp-sl-dandyish .onp-sl-strong::before, .onp-sl-dandyish .onp-sl-strong::after'
),
'header_text' => array(
array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-dandyish .onp-sl-strong'
),
array(
'image' => array(
'function' => 'opanda_sr_recolor',
'args' => array (
OPANDA_BIZPANDA_URL . '/assets/img/lock-icon.png', // an original image to recolor
'{color}', // a color to use
array( // a set of options
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => 'background-image: url("{image}");',
'selector' => '.onp-sl-dandyish .onp-sl-text .onp-sl-strong:before, .onp-sl-dandyish .onp-sl-text .onp-sl-strong:after'
)
),
'message_text' => array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-dandyish, .onp-sl-dandyish .onp-sl button, .onp-sl-dandyish input, .onp-sl-dandyish p'
),
//end text
// paddings
'container_paddings' => array(
'css' => 'padding: {value};',
'selector' => '.onp-sl-dandyish .onp-sl-inner-wrap'
),
'after_header_margin' => array(
'css' => 'margin-bottom: {value}px;',
'selector' => '.onp-sl-dandyish .onp-sl-text .onp-sl-strong'
),
'after_message_margin' => array(
'css' => 'margin-bottom: {value}px;',
'selector' => '.onp-sl-dandyish .onp-sl-text'
),
// end paddings
//button
'button_mount_color' => array(
'css' => 'background: {value};',
'selector' => '.onp-sl-dandyish .onp-sl-control'
),
'button_mount_radius' => array(
'css' => array(
'border-radius: {value}px;',
'-moz-border-radius:{value}px;',
'-webkit-border-radius:{value}px;'
),
'selector' => '.onp-sl-dandyish .onp-sl-control, .onp-sl-dandyish .onp-sl-button-inner-wrap'
)
);
}

View File

@@ -0,0 +1,480 @@
<?php
/**
* Returns editable options for the Dandyish theme.
*
* @see OnpSL_ThemeManager::getEditableOptions
*
* @since 3.3.3
* @return mixed[]
*/
function onp_sl_get_dandyish_theme_editable_options() {
return array(
array(__('Locker Container', 'bizpanda'), 'locker-box', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
// background
array(
'type' => 'accordion-item',
'title' => __('Background', 'bizpanda'),
'items' => array(
array(
'type' => 'control-group',
'name' => 'background_type',
'default' => 'color',
'items' => array(
array(
'type' => 'control-group-item',
'title' => __('Color', 'bizpanda'),
'name' => 'color',
'items' => array(
array(
'type' => 'color',
'name' => 'background_color',
'title' => __('Set up color and opacity:', 'bizpanda'),
'default' => '#f9f9f9'
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Gradient', 'bizpanda'),
'name' => 'gradient',
'items' => array(
array(
'type' => 'gradient',
'name' => 'background_gradient',
'title' => __('Set up gradient:', 'bizpanda')
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Pattern', 'bizpanda'),
'name' => 'image',
'items' => array(
array(
'type' => 'pattern',
'name' => 'background_image',
'title' => __('Set up pattern', 'bizpanda')
)
)
),
)
)
)
),
// outer borders
array(
'type' => 'accordion-item',
'title' => __('Outer Border', 'bizpanda'),
'items' => array(
array(
'type' => 'control-group',
'name' => 'outer_border_type',
'default' => 'image',
'items' => array(
array(
'type' => 'control-group-item',
'title' => __('Color', 'bizpanda'),
'name' => 'color',
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'outer_border_color',
'title' => __('Set up color for outer border:', 'bizpanda'),
'default' => array('color' => '#e6e6e6', 'opacity' => 100)
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Gradient', 'bizpanda'),
'name' => 'gradient',
'items' => array(
array(
'type' => 'gradient',
'name' => 'outer_border_gradient',
'title' => __('Set up gradient for outer border:', 'bizpanda')
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Pattern', 'bizpanda'),
'name' => 'image',
'items' => array(
array(
'type' => 'pattern',
'name' => 'outer_border_image',
'title' => __('Set up pattern for outer border:', 'bizpanda'),
'default' => array(
'url' => OPANDA_BIZPANDA_DIR . '/assets/img/dandysh-border.png',
'color' => null
),
'patterns' => array(
array(
'preview' => OPANDA_BIZPANDA_URL . '/assets/img/dandysh-border.png',
'pattern' => OPANDA_BIZPANDA_URL . '/assets/img/dandysh-border.png'
)
)
)
)
)
)),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'outer_border_size',
'title' => __('Outer border width', 'bizpanda'),
'range' => array(0, 99),
'default' => 7,
'units' => 'px'
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'outer_border_radius',
'title' => __('Outer border radius', 'bizpanda'),
'range' => array(0, 99),
'default' => 12,
'units' => 'px'
)
)
),
// inner borders
array(
'type' => 'accordion-item',
'title' => __('Inner Border', 'bizpanda'),
'items' => array(
array(
'type' => 'control-group',
'name' => 'inner_border_type',
'default' => 'color',
'items' => array(
array(
'type' => 'control-group-item',
'title' => __('Color', 'bizpanda'),
'name' => 'color',
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'inner_border_color',
'title' => __('Set up color for inner border:', 'bizpanda'),
'default' => array('color' => '#ffffff', 'opacity' => 100)
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Gradient', 'bizpanda'),
'name' => 'gradient',
'items' => array(
array(
'type' => 'gradient',
'name' => 'inner_border_gradient',
'title' => __('Set up gradient for inner border:', 'bizpanda')
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Pattern', 'bizpanda'),
'name' => 'image',
'items' => array(
array(
'type' => 'pattern',
'name' => 'inner_border_image',
'title' => __('Set up pattern for inner border:', 'bizpanda')
)
)
)
)),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'inner_border_size',
'title' => __('Inner border width', 'bizpanda'),
'range' => array(0, 99),
'default' => 5,
'units' => 'px'
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'inner_border_radius',
'title' => __('Inner border radius', 'bizpanda'),
'range' => array(0, 99),
'default' => 10,
'units' => 'px'
)
)
),
// font options
array(
'type' => 'accordion-item',
'title' => __('Text', 'bizpanda'),
'items' => array(
array(
'type' => 'font',
'name' => 'header_text',
'title' => __('Header text', 'bizpanda'),
'default' => array(
'size' => 16,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111111'
),
'units' => 'px'
),
array(
'type' => 'font',
'name' => 'message_text',
'title' => __('Message text', 'bizpanda'),
'default' => array(
'size' => 13,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111111'
),
'units' => 'px'
),
array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'header_icon',
'title' => __('Header icons', 'bizpanda'),
'default' => 1
)
)
),
// paddings options
array(
'type' => 'accordion-item',
'title' => __('Paddings', 'bizpanda'),
'items' => array(
array(
'type' => 'paddings-editor',
'name' => 'container_paddings',
'title' => __('Box paddings', 'bizpanda'),
'units' => 'px',
'default' => '30px 30px 30px 30px'
),
array(
'type' => 'integer',
'name' => 'after_header_margin',
'way' => 'slider',
'title' => __('Margin after header', 'bizpanda'),
'units' => 'px',
'default' => '0'
),
array(
'type' => 'integer',
'name' => 'after_message_margin',
'way' => 'slider',
'title' => __('Margin after message', 'bizpanda'),
'units' => 'px',
'default' => '5'
),
)
))
)
)),
array(__('Locker Buttons', 'bizpanda'), 'buttons', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
// background options
array(
'type' => 'accordion-item',
'title' => __('Mounts', 'bizpanda'),
'items' => array(
array(
'type' => 'color',
'name' => 'button_mount_color',
'title' => __('Color and opacity', 'bizpanda'),
'default' => '#ffffff'
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'button_mount_radius',
'title' => __('Border radius', 'bizpanda'),
'range' => array(0, 99),
'default' => 7,
'units' => 'px'
)
)
)
)
)
))
);
}
/**
* Registers links for the Secrets theme between form controls and CSS.
*/
function onp_sl_register_dandyish_theme_options_to_css( $rules, $theme ) {
if ( $theme !== 'dandyish') return $rules;
return array(
// background
'background_color' => array(
'css' => 'background: {value|onp_to_rgba};',
'selector' => '.onp-sl-dandyish .onp-sl-inner-wrap'
),
'background_image' => array(
'css' => array(
'background-image: url("{value}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-dandyish .onp-sl-inner-wrap'
),
'background_gradient' => array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-dandyish .onp-sl-inner-wrap'
),
// end background
// outer border
'outer_border_color' => array(
'css' => 'background: {value|onp_to_rgba};',
'selector' => '.onp-sl-dandyish'
),
'outer_border_image' => array(
'css' => array(
'background-image: url("{value}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-dandyish'
),
'outer_border_gradient' => array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-dandyish'
),
'outer_border_size' => array(
'css' => 'padding: {value}px;',
'selector' => '.onp-sl-dandyish'
),
'outer_border_radius' => array(
'css' => array(
'border-radius: {value}px;',
'-moz-border-radius:{value}px;',
'-webkit-border-radius:{value}px;'
),
'selector' => '.onp-sl-dandyish'
),
// end outer border
// inner border
'inner_border_color' => array(
'css' => 'background: {value|onp_to_rgba};',
'selector' => '.onp-sl-dandyish .onp-sl-outer-wrap'
),
'inner_border_image' => array(
'css' => array(
'background-image: url("{value}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-dandyish .onp-sl-outer-wrap'
),
'inner_border_gradient' => array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-dandyish .onp-sl-outer-wrap'
),
'inner_border_size' => array(
'css' => 'padding: {value}px;',
'selector' => '.onp-sl-dandyish .onp-sl-outer-wrap'
),
'inner_border_radius' => array(
'css' => array(
'border-radius: {value}px;',
'-moz-border-radius:{value}px;',
'-webkit-border-radius:{value}px;'
),
'selector' => '.onp-sl-dandyish .onp-sl-outer-wrap, .onp-sl-dandyish onp-sociallocker-inner-wrap'
),
// end inner border
// text
'header_icon' => array(
'css' => 'display:none !important;',
'selector' => '.onp-sl-dandyish .onp-sl-strong::before, .onp-sl-dandyish .onp-sl-strong::after'
),
'header_text' => array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-dandyish .onp-sl-text .onp-sl-strong'
),
'message_text' => array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-dandyish .onp-sl-text, .onp-sl-dandyish .onp-sl-timer'
),
//end text
// paddings
'container_paddings' => array(
'css' => 'padding: {value};',
'selector' => '.onp-sl-dandyish .onp-sl-inner-wrap'
),
'after_header_margin' => array(
'css' => 'margin-bottom: {value}px;',
'selector' => '.onp-sl-dandyish .onp-sl-text .onp-sl-strong'
),
'after_message_margin' => array(
'css' => 'margin-top: {value}px;',
'selector' => '.onp-sl-dandyish .onp-sl-text + .onp-sl-buttons'
),
// end paddings
//button
'button_mount_color' => array(
'css' => 'background: {value};',
'selector' => '.onp-sl-dandyish .onp-sl-button-inner-wrap'
),
'button_mount_radius' => array(
'css' => array(
'border-radius: {value}px;',
'-moz-border-radius:{value}px;',
'-webkit-border-radius:{value}px;'
),
'selector' => '.onp-sl-dandyish .onp-sl-button, .onp-sl-dandyish .onp-sl-button-inner-wrap'
)
);
}

View File

@@ -0,0 +1,225 @@
<?php
/**
* Returns CSS generating rules for the Flat theme.
*
* @see OnpSL_ThemeManager::getRulesToGenerateCSS
*
* @since 3.3.3
* @return mixed[]
*/
function onp_sl_get_flat_theme_css_rules() {
$result = array(
// background
'background_color' => array(
array(
'css' => 'background-color: {value|onp_to_rgba};',
'selector' => '.onp-sl-flat .onp-sl-inner-wrap'
),
array(
'css' => 'border-bottom: 3px solid {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-flat .onp-sl-outer-wrap'
),
array(
'css' => 'border-top-color: {value|onp_to_rgba};',
'selector' => '.onp-sl-flat .onp-sl-flip:hover .onp-sl-overlay-back'
)
),
'background_image' => array(
array(
'css' => 'border-top-color: transparent;',
'selector' => '.onp-sl-flat .onp-sl-flip:hover .onp-sl-overlay-back'
),
array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}', // an original image to recolor
'{color}', // a color to use
array( // a set of options
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-flat .onp-sl-inner-wrap'
)
),
'background_gradient' => array(
array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-flat .onp-sl-inner-wrap'
),
array(
'css' => 'border-top-color: transparent;',
'selector' => '.onp-sl-flat .onp-sl-flip:hover .onp-sl-overlay-back'
),
array(
'css' => 'border-bottom: 3px solid {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-flat .onp-sl-outer-wrap'
),
),
// end background
// text
'header_icon' => array(
'css' => 'display:none !important;',
'selector' => '.onp-sl-flat .onp-sl-strong::before, .onp-sl-flat .onp-sl-strong::after'
),
'header_text' => array(
array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-flat .onp-sl-strong'
),
array(
'image' => array(
'function' => 'opanda_sr_recolor',
'args' => array (
OPANDA_BIZPANDA_URL . '/assets/img/lock-icon.png', // an original image to recolor
'{color}', // a color to use
array( // a set of options
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => 'background-image: url("{image}");',
'selector' => '.onp-sl-flat .onp-sl-text .onp-sl-strong:before, .onp-sl-flat .onp-sl-text .onp-sl-strong:after'
)
),
'message_text' => array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-flat, .onp-sl-flat .onp-sl button, .onp-sl-flat input, .onp-sl-flat p'
),
//end text
// paddings
'container_paddings' => array(
'css' => 'padding: {value};',
'selector' => '.onp-sl-flat .onp-sl-social-buttons'
),
'after_header_margin' => array(
'css' => 'margin-bottom: {value}px;',
'selector' => '.onp-sl-flat .onp-sl-text .onp-sl-strong'
),
'after_message_margin' => array(
'css' => 'margin-bottom: {value}px;',
'selector' => '.onp-sl-flat .onp-sl-text'
),
// end paddings
// button backgrounds
// - twitter
'button_cover_twitter_color' => array(
array(
'css' => 'background: {value};',
'selector' => '.onp-sl-flat .onp-sl-twitter .onp-sl-button, .onp-sl-flat .onp-sl-twitter .onp-sl-overlay-back'
),
array(
'css' => 'border-bottom-color: {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-flat .onp-sl-twitter .onp-sl-button'
),
'button_twitter_substrate_color' => array(
'css' => 'background: {value|onp_smart_blackout_color};',
'selector' => '.onp-sl-flat .onp-sl-twitter .onp-sl-overlay-header'
)
),
// - facebook
'button_cover_facebook_color' => array(
array(
'css' => 'background: {value};',
'selector' => '.onp-sl-flat .onp-sl-facebook .onp-sl-button, .onp-sl-flat .onp-sl-facebook .onp-sl-overlay-back'
),
array(
'css' => 'border-bottom-color: {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-flat .onp-sl-facebook .onp-sl-button'
),
array(
'css' => 'background: {value|onp_smart_blackout_color};',
'selector' => '.onp-sl-flat .onp-sl-facebook .onp-sl-overlay-header'
)
),
// - google
'button_cover_google_color' => array(
array(
'css' => 'background: {value};',
'selector' => '.onp-sl-flat .onp-sl-google .onp-sl-button, .onp-sl-flat .onp-sl-google .onp-sl-overlay-back'
),
array(
'css' => 'border-bottom-color: {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-flat .onp-sl-google .onp-sl-button'
),
array(
'css' => 'background: {value|onp_smart_blackout_color};',
'selector' => '.onp-sl-flat .onp-sl-google .onp-sl-overlay-header'
)
),
// - linkedin
'button_cover_linkedin_color' => array(
array(
'css' => 'background: {value};',
'selector' => '.onp-sl-flat .onp-sl-linkedin .onp-sl-button, .onp-sl-flat .onp-sl-linkedin .onp-sl-overlay-back'
),
array(
'css' => 'border-bottom-color: {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-flat .onp-sl-linkedin .onp-sl-button'
),
array(
'css' => 'background: {value|onp_smart_blackout_color};',
'selector' => '.onp-sl-flat .onp-sl-linkedin .onp-sl-overlay-header'
)
),
// end button backgrounds
// button text
'button_cover_text_font' => array(
array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-flat .onp-sl-overlay-text'
),
array(
'image' => array(
'function' => 'onp_sl_recolor',
'args' => array (
OPANDA_SR_PLUGIN_URL . '/assets/img/social-icons.png', // an original image to recolor
'{color}', // a color to use
array( // a set of options
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => 'background-image: url("{image}");',
'selector' => '.onp-sl-flat .onp-sl-control .onp-sl-overlay-icon'
)
)
// end button text
);
return $result;
}

View File

@@ -0,0 +1,206 @@
<?php
/**
* Returns editable options for the Flat theme.
*
* @see OnpSL_ThemeManager::getEditableOptions
*
* @since 3.3.3
* @return mixed[]
*/
function onp_sl_get_flat_theme_editable_options() {
$lockerContainer = array( __('Locker Container', 'bizpanda'), 'locker-box', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
// background options
array(
'type' => 'accordion-item',
'title' => __('Background', 'bizpanda'),
'items' => array(
array(
'type' => 'control-group',
'name' => 'backgroud_type',
'default' => 'color',
'title' => __('Background', 'bizpanda'),
'items' => array(
array(
'type' => 'control-group-item',
'title' => __('Color', 'bizpanda'),
'name' => 'color',
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'background_color',
'title' => __('Set up color and opacity:', 'bizpanda'),
'default' => array('color' => '#f9f9f9', 'opacity' => 100)
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Gradient', 'bizpanda'),
'name' => 'gradient',
'items' => array(
array(
'type' => 'gradient',
'name' => 'background_gradient',
'title' => __('Set up gradient', 'bizpanda')
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Pattern', 'bizpanda'),
'name' => 'image',
'items' => array(
array(
'type' => 'pattern',
'name' => 'background_image',
'title' => __('Set up pattern', 'bizpanda')
)
)
)
)
)
)
),
// font options
array(
'type' => 'accordion-item',
'title' => __('Text', 'bizpanda'),
'items' => array(
array(
'type' => 'font',
'name' => 'header_text',
'title' => __('Header text', 'bizpanda'),
'default' => array(
'size' => 16,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111111'
),
'units' => 'px'
),
array(
'type' => 'font',
'name' => 'message_text',
'title' => __('Message text', 'bizpanda'),
'default' => array(
'size' => 13,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111111'
),
'units' => 'px'
),
array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'header_icon',
'title' => __('Header icons', 'bizpanda'),
'default' => 1
)
)
),
// paddings options
array(
'type' => 'accordion-item',
'title' => __('Paddings', 'bizpanda'),
'items' => array(
array(
'type' => 'paddings-editor',
'name' => 'container_paddings',
'title' => __('Box paddings', 'bizpanda'),
'units' => 'px',
'default' => '30px 30px 30px 30px'
),
array(
'type' => 'integer',
'name' => 'after_header_margin',
'way' => 'slider',
'title' => __('Margin after header', 'bizpanda'),
'units' => 'px',
'default' => '0'
),
array(
'type' => 'integer',
'name' => 'after_message_margin',
'way' => 'slider',
'title' => __('Margin after message', 'bizpanda'),
'units' => 'px',
'default' => '5'
),
)
)
)
)
));
$lockerButtons = array( __('Locker Buttons', 'bizpanda'), 'buttons', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
// background options
array(
'type' => 'accordion-item',
'title' => __('Cover Backgrounds', 'bizpanda'),
'items' => array(
array(
'type' => 'color',
'name' => 'button_cover_twitter_color',
'title' => __('Twitter cover color', 'bizpanda'),
'default' => '#4086cc'
),
array(
'type' => 'color',
'name' => 'button_cover_facebook_color',
'title' => __('Facebook cover color', 'bizpanda'),
'default' => '#3c5a9a'
),
array(
'type' => 'color',
'name' => 'button_cover_google_color',
'title' => __('Google cover color', 'bizpanda'),
'default' => '#ca4639'
),
array(
'type' => 'color',
'name' => 'button_cover_linkedin_color',
'title' => __('LinkedIn cover color', 'bizpanda'),
'default' => '#286b8d'
)
)
),
// font options
array(
'type' => 'accordion-item',
'title' => __('Cover Text', 'bizpanda'),
'items' => array(
array(
'type' => 'font',
'name' => 'button_cover_text_font',
'title' => __('Font', 'bizpanda'),
'default' => array(
'size' => 14,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#ffffff'
),
'units' => 'px'
)
)
)
)
)
));
return array( $lockerContainer, $lockerButtons );
}

View File

@@ -0,0 +1,181 @@
<?php
/**
* Returns CSS generating rules for the Glass theme.
*
* @see OnpSL_ThemeManager::getRulesToGenerateCSS
*
* @since 3.3.3
* @return mixed[]
*/
function onp_sl_get_glass_theme_css_rules() {
return array(
// background
'background_color' => array(
array(
'css' => 'background: {value|onp_to_rgba};',
'selector' => '.onp-sl-glass .onp-sl-outer-wrap'
),
array(
'css' => 'text-shadow: none;',
'selector' => '.onp-sl-glass .onp-sl-strong, .onp-sl-glass .onp-sl-message, .onp-sl-glass .onp-sl-timer'
)
),
'background_image' => array(
array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}',
'{color}',
array(
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-glass .onp-sl-outer-wrap'
),
array(
'css' => 'text-shadow: none;',
'selector' => '.onp-sl-glass .onp-sl-strong, .onp-sl-glass .onp-sl-message, .onp-sl-glass .onp-sl-timer'
),
),
'background_gradient' => array(
array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-glass .onp-sl-outer-wrap'
),
array(
'css' => 'text-shadow: none;',
'selector' => '.onp-sl-glass .onp-sl-strong, .onp-sl-glass .onp-sl-message, .onp-sl-glass .onp-sl-timer'
)
),
// end background
// border
'border_color' => array(
'css' => 'background: {value|onp_to_rgba};',
'selector' => '.onp-sl-glass'
),
'border_image' => array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}',
'{color}',
array(
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-glass'
),
'border_gradient' => array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-glass'
),
'border_size' => array(
'css' => 'padding: {value}px;',
'selector' => '.onp-sl-glass'
),
'border_radius' => array(
'css' => array(
'border-radius: {value}px;',
'-moz-border-radius:{value}px;',
'-webkit-border-radius:{value}px;'
),
'selector' => '.onp-sl-glass, .onp-sl-glass .onp-sl-outer-wrap'
),
// end border
// text
'header_icon' => array(
'css' => 'display:none !important;',
'selector' => '.onp-sl-glass .onp-sl-strong::before, .onp-sl-glass .onp-sl-strong::after'
),
'header_text' => array(
array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-glass .onp-sl-strong'
),
array(
'image' => array(
'function' => 'opanda_sr_recolor',
'args' => array (
OPANDA_BIZPANDA_URL . '/assets/img/lock-icon.png', // an original image to recolor
'{color}', // a color to use
array( // a set of options
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => 'background-image: url("{image}");',
'selector' => '.onp-sl-glass .onp-sl-text .onp-sl-strong:before, .onp-sl-glass .onp-sl-text .onp-sl-strong:after'
)
),
'message_text' => array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-glass, .onp-sl-glass .onp-sl button, .onp-sl-glass input, .onp-sl-glass p'
),
//end text
// paddings
'container_paddings' => array(
'css' => 'padding: {value};',
'selector' => '.onp-sl-glass .onp-sl-social-buttons'
),
'after_header_margin' => array(
'css' => 'margin-bottom: {value}px;',
'selector' => '.onp-sl-glass .onp-sl-text .onp-sl-strong'
),
'after_message_margin' => array(
'css' => 'margin-bottom: {value}px;',
'selector' => '.onp-sl-glass .onp-sl-text'
),
// end paddings
//button
'button_mount_color' => array(
'css' => 'background: {value|onp_to_rgba};',
'selector' => '.onp-sl-glass .onp-sl-control'
),
'button_mount_radius' => array(
'css' => array(
'border-radius: {value}px;',
'-moz-border-radius:{value}px;',
'-webkit-border-radius:{value}px;'
),
'selector' => '.onp-sl-glass .onp-sl-control, .onp-sl-glass .onp-sl-button-inner-wrap'
)
);
}

View File

@@ -0,0 +1,249 @@
<?php
/**
* Returns editable options for the Glass theme.
*
* @see OnpSL_ThemeManager::getEditableOptions
*
* @since 3.3.3
* @return mixed[]
*/
function onp_sl_get_glass_theme_editable_options() {
return array(
array( __('Locker Container', 'bizpanda'), 'locker-box', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
// background
array(
'type' => 'accordion-item',
'title' => __('Background', 'bizpanda'),
'items' => array(
array(
'type' => 'control-group',
'name' => 'background_type',
'default' => 'gradient',
'items' => array(
array(
'type' => 'control-group-item',
'title' => __('Color', 'bizpanda'),
'name' => 'color',
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'background_color',
'title' => __('Set up color and opacity:', 'bizpanda'),
'default' => array('color' => '#e6e6e6', 'opacity' => 100)
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Gradient', 'bizpanda'),
'name' => 'gradient',
'items' => array(
array(
'type' => 'gradient',
'name' => 'background_gradient',
'title' => __('Set up gradient:', 'bizpanda'),
'default' => '{"filldirection":"top","color_points":["#fff 0% 0.6", "#F0F0F0 100% 0.6"]}'
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Pattern', 'bizpanda'),
'name' => 'image',
'items' => array(
array(
'type' => 'pattern',
'name' => 'background_image',
'title' => __('Set up pattern', 'bizpanda')
)
)
),
)
)
)
),
// border
array(
'type' => 'accordion-item',
'title' => __('Border', 'bizpanda'),
'items' => array(
array(
'type' => 'control-group',
'name' => 'outer_border_type',
'default' => 'color',
'items' => array(
array(
'type' => 'control-group-item',
'title' => __('Color', 'bizpanda'),
'name' => 'color',
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'border_color',
'title' => __('Set up color for outer border:', 'bizpanda'),
'default' => array('color' => '#d8d8d8', 'opacity' => 3)
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Gradient', 'bizpanda'),
'name' => 'gradient',
'items' => array(
array(
'type' => 'gradient',
'name' => 'border_gradient',
'title' => __('Set up gradient for outer border:', 'bizpanda')
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Pattern', 'bizpanda'),
'name' => 'image',
'items' => array(
array(
'type' => 'pattern',
'name' => 'border_image',
'title' => __('Set up pattern for outer border:', 'bizpanda')
)
)
)
)),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'border_size',
'title' => __('Outer border width', 'bizpanda'),
'range' => array(0, 99),
'default' => 15,
'units' => 'px'
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'border_radius',
'title' => __('Outer border radius', 'bizpanda'),
'range' => array(0, 99),
'default' => 15,
'units' => 'px'
)
)
),
// font options
array(
'type' => 'accordion-item',
'title' => __('Text', 'bizpanda'),
'items' => array(
array(
'type' => 'font',
'name' => 'header_text',
'title' => __('Header text', 'bizpanda'),
'default' => array(
'size' => 16,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111111'
),
'units' => 'px'
),
array(
'type' => 'font',
'name' => 'message_text',
'title' => __('Message text', 'bizpanda'),
'default' => array(
'size' => 13,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111111'
),
'units' => 'px'
),
array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'header_icon',
'title' => __('Header icons', 'bizpanda'),
'default' => 1
)
)
),
// paddings options
array(
'type' => 'accordion-item',
'title' => __('Paddings', 'bizpanda'),
'items' => array(
array(
'type' => 'paddings-editor',
'name' => 'container_paddings',
'title' => __('Box paddings', 'bizpanda'),
'units' => 'px',
'default' => '30px 30px 30px 30px'
),
array(
'type' => 'integer',
'name' => 'after_header_margin',
'way' => 'slider',
'title' => __('Margin after header', 'bizpanda'),
'units' => 'px',
'default' => '0'
),
array(
'type' => 'integer',
'name' => 'after_message_margin',
'way' => 'slider',
'title' => __('Margin after message', 'bizpanda'),
'units' => 'px',
'default' => '5'
),
)
)
)
)
)),
array( __('Locker Buttons', 'bizpanda'), 'buttons', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
// background options
array(
'type' => 'accordion-item',
'title' => __('Mounts', 'bizpanda'),
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'button_mount_color',
'title' => __('Color and opacity', 'bizpanda'),
'default' => array('color' => '#000000', 'opacity' => 3)
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'button_mount_radius',
'title' => __('Border radius', 'bizpanda'),
'range' => array(0, 99),
'default' => 7,
'units' => 'px'
)
)
)
)
)
))
);
}

View File

@@ -0,0 +1,20 @@
<?php
/**
* Returns CSS generating rules for the Great Atrractor.
*
* @see OnpSL_ThemeManager::getRulesToGenerateCSS
*
* @since 3.3.3
* @return mixed[]
*/
function onp_sl_get_great_attractor_theme_css_rules() {
$result = array();
require 'css-rules/container.php';
require 'css-rules/social-buttons.php';
require 'css-rules/form-fields.php';
require 'css-rules/form-buttons.php';
return $result;
}

View File

@@ -0,0 +1,250 @@
<?php
$rules = array(
// ---
// Container :: Backgrounds
// ---
// Container :: Backgrounds :: Primary Background
'primary_background_color' => array(
array(
'css' => 'background-color: {value|onp_to_rgba};',
'selector' => '.onp-sl-great-attractor .onp-sl-outer-wrap, .onp-sl-great-attractor .onp-sl-inner-wrap'
),
array(
'css' => 'border: 1px solid {value|onp_smart_whiteout_color_10};',
'selector' => '.onp-sl-great-attractor .onp-sl-subscription.onp-sl-last-group.onp-sl-separator-shows'
),
),
'primary_background_gradient' => array(
array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-great-attractor .onp-sl-inner-wrap'
),
),
'primary_background_image' => array(
array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}',
'{color}',
array(
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-inner-wrap'
),
),
// Container :: Backgrounds :: Seconday Background
'secondary_background_color' => array(
array(
'css' => 'background-color: {value|onp_to_rgba};',
'selector' => '.onp-sl-great-attractor .onp-sl-terms'
),
array(
'css' => 'border-top: 1px solid {value|onp_smart_blackout_color_10};',
'selector' => '.onp-sl-great-attractor .onp-sl-terms-inner-wrap'
),
array(
'css' => 'border-top: 1px solid {value|onp_smart_blackout_color_15};',
'selector' => '.onp-sl-great-attractor .onp-sl-terms'
),
),
'secondary_background_gradient' => array(
array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-great-attractor .onp-sl-terms'
),
array(
'css' => 'border-top: 1px solid {value|onp_smart_blackout_color_10};',
'selector' => '.onp-sl-great-attractor .onp-sl-terms-inner-wrap'
),
array(
'css' => 'border-top: 1px solid {value|onp_smart_blackout_color_15};',
'selector' => '.onp-sl-great-attractor .onp-sl-terms'
),
),
'secondary_background_image' => array(
array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}',
'{color}',
array(
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-terms'
)
),
// ---
// Container :: Borders
// ---
// Container :: Borders :: Top Border
'top_border_color' => array(
array(
'css' => 'background: {value|onp_to_rgba};',
'selector' => '.onp-sl-great-attractor .onp-sl-outer-wrap'
),
),
'top_border_gradient' => array(
array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-great-attractor .onp-sl-outer-wrap'
)
),
'top_border_image' => array(
array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}',
'{color}',
array(
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-outer-wrap'
)
),
'top_border_size' => array(
'css' => 'padding-top: {value}px;',
'selector' => '.onp-sl-great-attractor .onp-sl-outer-wrap'
),
// Container :: Borders :: Outer Border
'outer_border_color' => array(
'css' => 'border-color: {value|onp_to_rgba};',
'selector' => '.onp-sl-great-attractor .onp-sl-outer-wrap'
),
'outer_border_size' => array(
'css' => 'border-width: {value}px;',
'selector' => '.onp-sl-great-attractor .onp-sl-outer-wrap'
),
'outer_border_radius' => array(
array(
'css' => 'border-radius: {value}px;',
'selector' => '.onp-sl-great-attractor .onp-sl-outer-wrap'
),
array(
'css' => 'border-radius: {value}px;',
'selector' => '.onp-sl-great-attractor .onp-sl-inner-wrap'
),
array(
'css' => 'overflow: hidden',
'selector' => '.onp-sl-great-attractor .onp-sl-outer-wrap'
),
array(
'css' => 'border-radius: 0px;',
'selector' => '.onp-sl-great-attractor .onp-sl-terms'
),
),
// ---
// Container :: Text
// ---
'header_text' => array(
array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-text .onp-sl-strong'
),
array(
'image' => array(
'function' => 'opanda_sr_recolor',
'args' => array (
OPANDA_BIZPANDA_URL . '/assets/img/lock-icon.png', // an original image to recolor
'{color}', // a color to use
array( // a set of options
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => 'background-image: url("{image}");',
'selector' => '.onp-sl-great-attractor .onp-sl-text .onp-sl-strong:before, .onp-sl-great-attractor .onp-sl-text .onp-sl-strong:after'
)
),
'message_text' => array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-text'
),
'service_text' => array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;',
'border-color: {color}'
),
'selector' => '.onp-sl-great-attractor .onp-sl-timer, .onp-sl-great-attractor .onp-sl-hiding-link-separator .onp-sl-title'
),
'note_text' => array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-subscription .onp-sl-nospam'
),
'terms_text' => array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-terms, .onp-sl-great-attractor .onp-sl-terms a'
)
);
$result = array_merge( $result, $rules );

View File

@@ -0,0 +1,131 @@
<?php
$rules = array(
// ---
// Forms Buttons :: Background
// ---
'form_buttons_background_color' => array(
array(
'css' => array (
'background: {value|onp_to_rgba};',
'css' => 'text-shadow: none;',
'box-shadow: 0 2px 1px rgba(0,0,0,.07);',
),
'selector' => '.onp-sl-great-attractor .onp-sl-form-button, .onp-sl-great-attractor .onp-sl-form-button:disabled'
),
array(
'css' => array (
'opacity: 0.95;',
),
'selector' => '.onp-sl-great-attractor .onp-sl-form-button:hover'
)
),
'form_buttons_background_gradient' => array(
array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
'text-shadow: none;',
'box-shadow: 0 2px 1px rgba(0,0,0,.07);'
),
'selector' => '.onp-sl-great-attractor .onp-sl-form-button, .onp-sl-great-attractor .onp-sl-form-button:disabled'
),
array(
'css' => array (
'opacity: 0.95;',
),
'selector' => '.onp-sl-great-attractor .onp-sl-form-button:hover'
)
),
'form_buttons_background_image' => array(
array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}',
'{color}',
array(
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;',
'text-shadow: none;',
'box-shadow: 0 2px 1px rgba(0,0,0,.07);'
),
'selector' => '.onp-sl-great-attractor .onp-sl-form-button, .onp-sl-great-attractor .onp-sl-form-button:disabled'
),
array(
'css' => array (
'opacity: 0.8;',
),
'selector' => '.onp-sl-great-attractor .onp-sl-form-button:hover'
)
),
// ---
// Forms Buttons :: Border
// ---
'form_buttons_border_color' => array(
array(
'css' => array (
'border-color: {value|onp_to_rgba};'
),
'selector' => '.onp-sl-great-attractor .onp-sl-form-button, .onp-sl-great-attractor .onp-sl-form-button:disabled'
)
),
'form_buttons_border_size' => array(
array(
'css' => array (
'border-width: {value}px;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-form-button, .onp-sl-great-attractor .onp-sl-form-button:disabled'
)
),
'form_buttons_border_radius' => array(
array(
'css' => array (
'border-radius: {value}px;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-form-button, .onp-sl-great-attractor .onp-sl-form-button:disabled'
)
),
// ---
// Forms Buttons :: Font
// ---
'form_buttons_text' => array(
array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-form-button'
)
),
// ---
// Forms Buttons :: Paddings
// ---
'form_buttons_paddings' => array(
array(
'css' => array(
'padding: {value};'
),
'selector' => '.onp-sl-great-attractor .onp-sl-form-button'
)
)
);
$result = array_merge( $result, $rules );

View File

@@ -0,0 +1,108 @@
<?php
$rules = array(
// ---
// Forms Fields :: Background
// ---
'form_fields_background_color' => array(
array(
'css' => array (
'background: {value|onp_to_rgba};'
),
'selector' => '.onp-sl-great-attractor .onp-sl-input'
)
),
'form_fields_background_gradient' => array(
array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};'
),
'selector' => '.onp-sl-great-attractor .onp-sl-input'
)
),
'form_fields_background_image' => array(
array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}',
'{color}',
array(
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-input'
)
),
// ---
// Forms Fields :: Border
// ---
'form_fields_border_color' => array(
array(
'css' => array (
'border-color: {value|onp_to_rgba};'
),
'selector' => '.onp-sl-great-attractor .onp-sl-input'
)
),
'form_fields_border_size' => array(
array(
'css' => array (
'border-width: {value}px;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-input'
)
),
'form_fields_border_radius' => array(
array(
'css' => array (
'border-radius: {value}px;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-input'
)
),
// ---
// Forms Fields :: Font
// ---
'form_fields_text' => array(
array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'line-height: 100%;',
'color: {color};',
),
'selector' => '.onp-sl-great-attractor .onp-sl-input'
)
),
// ---
// Forms Fields :: Paddings
// ---
'form_fields_paddings' => array(
array(
'css' => array(
'padding: {value};'
),
'selector' => '.onp-sl-great-attractor .onp-sl-input'
)
)
);
$result = array_merge( $result, $rules );

View File

@@ -0,0 +1,157 @@
<?php
$rules = array(
// ---
// Social Buttons :: Background
// ---
'social_button_background_color' => array(
array(
'css' => array (
'background: {value|onp_to_rgba};',
'text-shadow: none;',
'box-shadow: none;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-connect-button, .onp-sl-great-attractor .onp-sl-control:hover .onp-sl-connect-button'
),
),
'social_button_background_gradient' => array(
array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
'text-shadow: none;',
'box-shadow: none;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-connect-buttons .onp-sl-connect-button'
),
array(
'css' => array(
'background: {value|onp_smart_blackout_color_5};'
),
'selector' => '.onp-sl-great-attractor .onp-sl-control:hover .onp-sl-connect-button'
),
),
'social_button_background_image' => array(
array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}',
'{color}',
array(
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;',
'text-shadow: none;',
'box-shadow: none;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-connect-buttons .onp-sl-connect-button, .onp-sl-great-attractor .onp-sl-control:hover .onp-sl-connect-button'
)
),
// ---
// Social Buttons :: Borders
// ---
'social_button_facebook_border_color' => array(
array(
'css' => array (
'background-color: {value};',
'border: 1px solid {value};'
),
'selector' => '.onp-sl-great-attractor .onp-sl-connect-buttons .onp-sl-facebook .onp-sl-icon'
)
),
'social_button_twitter_border_color' => array(
array(
'css' => array (
'background-color: {value};',
'border: 1px solid {value};'
),
'selector' => '.onp-sl-great-attractor .onp-sl-connect-buttons .onp-sl-twitter .onp-sl-icon'
)
),
'social_button_google_border_color' => array(
array(
'css' => array (
'background-color: {value};',
'border: 1px solid {value};'
),
'selector' => '.onp-sl-great-attractor .onp-sl-connect-buttons .onp-sl-google .onp-sl-icon'
)
),
'social_button_linkedin_border_color' => array(
array(
'css' => array (
'background-color: {value};',
'border: 1px solid {value};'
),
'selector' => '.onp-sl-great-attractor .onp-sl-connect-buttons .onp-sl-linkedin .onp-sl-icon'
)
),
'social_button_border_color' => array(
array(
'css' => array (
'border-color: {value|onp_to_rgba};'
),
'selector' => '.onp-sl-great-attractor .onp-sl-connect-buttons .onp-sl-connect-button'
)
),
'social_button_border_size' => array(
array(
'css' => array (
'border-width: {value}px;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-connect-buttons .onp-sl-connect-button'
)
),
'social_button_border_radius' => array(
array(
'css' => array (
'border-top-right-radius: {value}px;',
'border-bottom-right-radius: {value}px;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-connect-buttons .onp-sl-connect-button'
),
array(
'css' => array (
'border-top-left-radius: {value}px;',
'border-bottom-left-radius: {value}px;'
),
'selector' => '.onp-sl-great-attractor .onp-sl-connect-buttons .onp-sl-icon'
),
array(
'css' => array (
'border-radius: {value}px'
),
'selector' => '.onp-sl-great-attractor .onp-sl-connect-buttons .onp-sl-control'
)
),
// ---
// Social Buttons :: Font
// ---
'social_button_text' => array(
array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color};',
),
'selector' => '.onp-sl-great-attractor .onp-sl-connect-buttons .onp-sl-connect-button'
)
)
);
$result = array_merge( $result, $rules );

View File

@@ -0,0 +1,450 @@
<?php
/**
* Returns editable options for the Flat theme.
*
* @see OnpSL_ThemeManager::getEditableOptions
*
* @since 3.3.3
* @return mixed[]
*/
function onp_sl_get_great_attractor_theme_editable_options() {
$containerOptions = array( __('Container', 'bizpanda'), 'locker-box', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
// background options
array(
'type' => 'accordion-item',
'title' => __('Backgrounds', 'bizpanda'),
'items' => array(
opanda_background_editor_options('primary_background', array(
'title' => __('Primary background', 'bizpanda'),
'default' => array(
'type' => 'color',
'value' => array('color' => '#ffffff', 'opacity' => 100)
)
)),
opanda_background_editor_options('secondary_background', array(
'title' => __('Secondary background', 'bizpanda'),
'default' => array(
'type' => 'color',
'value' => array('color' => '#f9f9f9', 'opacity' => 100)
)
)),
)
),
// border options
array(
'type' => 'accordion-item',
'title' => __('Borders', 'bizpanda'),
'items' => array(
opanda_background_editor_options('top_border', array(
'title' => __('Top border background', 'bizpanda'),
'default' => array(
'type' => 'image',
'value' => array(
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/ga-top-border.png',
'color' => null
)
),
'patterns' => array(
array(
'preview' => OPANDA_SR_PLUGIN_URL . '/assets/img/ga-top-border-preview.png',
'pattern' => OPANDA_SR_PLUGIN_URL . '/assets/img/ga-top-border.png'
)
)
)),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'top_border_size',
'title' => __('Top border height', 'bizpanda'),
'range' => array(0, 50),
'default' => 5,
'units' => 'px'
),
array(
'type' => 'color-and-opacity',
'name' => 'outer_border_color',
'title' => __('Outer border color', 'bizpanda'),
'default' => array('color' => '#c1c1c1', 'opacity' => 100)
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'outer_border_size',
'title' => __('Outer border width', 'bizpanda'),
'range' => array(0, 20),
'step' => 1,
'default' => 1,
'units' => 'px'
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'outer_border_radius',
'title' => __('Outer border radius', 'bizpanda'),
'range' => array(0, 100),
'default' => 7,
'units' => 'px'
)
)
),
// font options
array(
'type' => 'accordion-item',
'title' => __('Text', 'bizpanda'),
'items' => array(
array(
'type' => 'google-font',
'name' => 'header_text',
'title' => __('Header text', 'bizpanda'),
'default' => array(
'size' => 18,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111111'
),
'units' => 'px'
),
array(
'type' => 'google-font',
'name' => 'message_text',
'title' => __('Message text', 'bizpanda'),
'default' => array(
'size' => 13,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111111'
),
'units' => 'px'
),
array(
'type' => 'google-font',
'name' => 'service_text',
'title' => __('Service text', 'bizpanda'),
'default' => array(
'size' => 13,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111'
),
'units' => 'px'
),
array(
'type' => 'google-font',
'name' => 'note_text',
'title' => __('Note text', 'bizpanda'),
'default' => array(
'size' => 12,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#aaaaaa'
),
'units' => 'px'
),
array(
'type' => 'google-font',
'name' => 'terms_text',
'title' => __('Footer text', 'bizpanda'),
'default' => array(
'size' => 12,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#555'
),
'units' => 'px'
)
)
)
)
)
));
$socialButtons = array( __('Social Buttons', 'bizpanda'), 'buttons', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
// background
array(
'type' => 'accordion-item',
'title' => __('Background', 'bizpanda'),
'items' => array(
opanda_background_editor_options('social_button_background', array(
'default' => array(
'type' => 'gradient',
'value' => '{"filldirection":"top","color_points":["#f6f6f6 100% 1","#fdfdfd 0% 1"]}'
)
))
)
),
// borders
array(
'type' => 'accordion-item',
'title' => __('Borders', 'bizpanda'),
'items' => array(
array(
'type' => 'color',
'name' => 'social_button_facebook_border_color',
'title' => __('Facebook left border color', 'bizpanda'),
'default' => '#989de1'
),
array(
'type' => 'color',
'name' => 'social_button_twitter_border_color',
'title' => __('Twitter left border color', 'bizpanda'),
'default' => '#55acee'
),
array(
'type' => 'color',
'name' => 'social_button_google_border_color',
'title' => __('Google left border color', 'bizpanda'),
'default' => '#f47665'
),
array(
'type' => 'color',
'name' => 'social_button_linkedin_border_color',
'title' => __('LinkedIn left border color', 'bizpanda'),
'default' => '#0077b5'
),
array(
'type' => 'color-and-opacity',
'name' => 'social_button_border_color',
'title' => __('Outer border color', 'bizpanda'),
'default' => array('color' => '#c9c9c9', 'opacity' => 100)
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'social_button_border_size',
'title' => __('Outer border width', 'bizpanda'),
'range' => array(0, 20),
'step' => 1,
'default' => 1,
'units' => 'px'
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'social_button_border_radius',
'title' => __('Outer border radius', 'bizpanda'),
'range' => array(0, 100),
'default' => 3,
'units' => 'px'
)
)
),
// font options
array(
'type' => 'accordion-item',
'title' => __('Text', 'bizpanda'),
'items' => array(
array(
'type' => 'google-font',
'name' => 'social_button_text',
'title' => __('Font', 'bizpanda'),
'default' => array(
'size' => 13,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111111'
),
'units' => 'px'
)
)
)
)
)
));
$formButtonsOptions = array( __('Form Buttons', 'bizpanda'), 'form-buttons-box', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
// background options
array(
'type' => 'accordion-item',
'title' => __('Background', 'bizpanda'),
'items' => array(
opanda_background_editor_options('form_buttons_background', array(
'default' => array(
'type' => 'gradient',
'value' => '{"filldirection":"top","color_points":["#f2f2f2 0% 1","#fefefe 100% 1"]}'
)
))
)
),
// border options
array(
'type' => 'accordion-item',
'title' => __('Border', 'bizpanda'),
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'form_buttons_border_color',
'title' => __('Border color', 'bizpanda'),
'default' => array('color' => '#c9c9c9', 'opacity' => 100)
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'form_buttons_border_size',
'title' => __('Border width', 'bizpanda'),
'range' => array(0, 20),
'step' => 1,
'default' => 1,
'units' => 'px'
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'form_buttons_border_radius',
'title' => __('Border radius', 'bizpanda'),
'range' => array(0, 100),
'default' => 3,
'units' => 'px'
)
)
),
// font options
array(
'type' => 'accordion-item',
'title' => __('Text', 'bizpanda'),
'items' => array(
array(
'type' => 'google-font',
'name' => 'form_buttons_text',
'title' => __('Font', 'bizpanda'),
'default' => array(
'size' => 13,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#363636'
),
'units' => 'px'
)
)
),
// paddings options
array(
'type' => 'accordion-item',
'title' => __('Paddings', 'bizpanda'),
'items' => array(
array(
'type' => 'paddings-editor',
'name' => 'form_buttons_paddings',
'title' => __('Inner paddings', 'bizpanda'),
'units' => 'px',
'default' => '10px 10px 6px 0px'
)
)
)
)
)
));
$formFieldsOptions = array( __('Form Textboxes', 'bizpanda'), 'form-fields-box', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
// background options
array(
'type' => 'accordion-item',
'title' => __('Background', 'bizpanda'),
'items' => array(
opanda_background_editor_options('form_fields_background', array(
'title' => __('Standard background', 'bizpanda'),
'default' => array(
'type' => 'color',
'value' => array('color' => '#ffffff', 'opacity' => 100)
)
))
)
),
// border options
array(
'type' => 'accordion-item',
'title' => __('Border', 'bizpanda'),
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'form_fields_border_color',
'title' => __('Border color', 'bizpanda'),
'default' => array('color' => '#c4c4c4', 'opacity' => 100)
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'form_fields_border_size',
'title' => __('Border width', 'bizpanda'),
'range' => array(0, 20),
'step' => 1,
'default' => 1,
'units' => 'px'
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'form_fields_border_radius',
'title' => __('Border radius', 'bizpanda'),
'range' => array(0, 100),
'default' => 3,
'units' => 'px'
)
)
),
// font options
array(
'type' => 'accordion-item',
'title' => __('Text', 'bizpanda'),
'items' => array(
array(
'type' => 'google-font',
'name' => 'form_fields_text',
'title' => __('Font', 'bizpanda'),
'default' => array(
'size' => 13,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#363636'
),
'units' => 'px'
)
)
),
// paddings options
array(
'type' => 'accordion-item',
'title' => __('Paddings', 'bizpanda'),
'items' => array(
array(
'type' => 'paddings-editor',
'name' => 'form_fields_paddings',
'title' => __('Inner paddings', 'bizpanda'),
'units' => 'px',
'default' => '10px 10px 10px 10px'
)
)
)
)
)
));
return array( $containerOptions, $socialButtons, $formButtonsOptions, $formFieldsOptions );
}

View File

@@ -0,0 +1,315 @@
<?php
/**
* Returns CSS generating rules for the Secrets theme.
*
* @see OnpSL_ThemeManager::getRulesToGenerateCSS
*
* @since 3.3.3
* @return mixed[]
*/
function onp_sl_get_secrets_theme_css_rules() {
$result = array(
// background
'background_color' => array(
array(
'css' => 'background-color: {value|onp_to_rgba};',
'selector' => '.onp-sl-secrets .onp-sl-inner-wrap'
),
array(
'css' => 'border-top-color: {value|onp_to_rgba};',
'selector' => '.onp-sl-secrets .onp-sl-flip:hover .onp-sl-overlay-back'
),
array(
'css' => 'text-shadow: none;',
'selector' => '.onp-sl-secrets .onp-sl-strong, .onp-sl-secrets .onp-sl-message, .onp-sl-secrets .onp-sl-timer'
),
),
'background_image' => array(
array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}',
'{color}',
array(
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-secrets .onp-sl-inner-wrap'
),
array(
'css' => 'text-shadow:none;',
'selector' => '.onp-sl-secrets .onp-sl-strong, .onp-sl-secrets .onp-sl-message, .onp-sl-secrets .onp-sl-timer'
),
array(
'css' => 'border-top-color: transparent;',
'selector' => '.onp-sl-secrets .onp-sl-flip:hover .onp-sl-overlay-back'
)
),
'background_gradient' => array(
array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-secrets .onp-sl-inner-wrap'
),
array(
'css' => 'border-top-color: transparent;',
'selector' => '.onp-sl-secrets .onp-sl-flip:hover .onp-sl-overlay-back'
),
array(
'css' => 'text-shadow:none;',
'selector' => '.onp-sl-secrets .onp-sl-strong, .onp-sl-secrets .onp-sl-message, .onp-sl-secrets .onp-sl-timer'
)
),
// end background
// border
'outer_border_color' => array(
'css' => 'border-color: {value|onp_to_rgba};',
'selector' => '.onp-sl-secrets .onp-sl-outer-wrap'
),
'outer_border_size' => array(
'css' => 'border-width: {value}px;',
'selector' => '.onp-sl-secrets .onp-sl-outer-wrap'
),
'inner_border_color' => array(
'css' => 'border-color: {value|onp_to_rgba};',
'selector' => '.onp-sl-secrets .onp-sl-inner-wrap'
),
'inner_border_size' => array(
'css' => 'border-width: {value}px;',
'selector' => '.onp-sl-secrets .onp-sl-inner-wrap'
),
'outer_border_radius' => array(
array(
'css' => array(
'border-radius: {value}px;',
'-moz-border-radius:{value}px;',
'-webkit-border-radius:{value}px;'
),
'selector' => '.onp-sl-secrets .onp-sl-outer-wrap'
),
),
'inner_border_radius' => array(
array(
'css' => array(
'border-radius: {value}px;',
'-moz-border-radius:{value}px;',
'-webkit-border-radius:{value}px;'
),
'selector' => '.onp-sl-secrets .onp-sl-inner-wrap'
),
),
// end border
// text
'header_icon' => array(
'css' => 'display:none !important;',
'selector' => '.onp-sl-secrets .onp-sl-strong::before, .onp-sl-secrets .onp-sl-strong::after'
),
'header_text' => array(
array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-secrets .onp-sl-strong'
),
array(
'image' => array(
'function' => 'opanda_sr_recolor',
'args' => array (
OPANDA_BIZPANDA_URL . '/assets/img/lock-icon.png', // an original image to recolor
'{color}', // a color to use
array( // a set of options
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => 'background-image: url("{image}");',
'selector' => '.onp-sl-secrets .onp-sl-text .onp-sl-strong:before, .onp-sl-secrets .onp-sl-text .onp-sl-strong:after'
)
),
'message_text' => array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-secrets, .onp-sl-secrets .onp-sl button, .onp-sl-secrets input, .onp-sl-secrets p'
),
//end text
// paddings
'container_paddings' => array(
'css' => 'padding: {value};',
'selector' => '.onp-sl-secrets .onp-sl-social-buttons'
),
'after_header_margin' => array(
'css' => 'margin-bottom: {value}px;',
'selector' => '.onp-sl-secrets .onp-sl-text .onp-sl-strong'
),
'after_message_margin' => array(
'css' => 'margin-bottom: {value}px;',
'selector' => '.onp-sl-secrets .onp-sl-text'
),
// end paddings
// background twitter
'button_twitter_substrate_color' => array(
array(
'css' => 'background: {value|onp_to_rgba};',
'selector' => '.onp-sl-secrets .onp-sl-twitter .onp-sl-button, .onp-sl-secrets .onp-sl-twitter .onp-sl-overlay-back'
),
array(
'css' => 'background: {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-secrets .onp-sl-twitter .onp-sl-overlay-header'
)
),
'button_twitter_substrate_gradient' => array(
array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-secrets .onp-sl-twitter .onp-sl-button, .onp-sl-secrets .onp-sl-twitter .onp-sl-overlay-back'
),
array(
'css' => 'background: {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-secrets .onp-sl-twitter .onp-sl-overlay-header'
)
),
//end background twitter
// background facebook
'button_facebook_substrate_color' => array(
array(
'css' => 'background: {value|onp_to_rgba};',
'selector' => '.onp-sl-secrets .onp-sl-facebook .onp-sl-button, .onp-sl-secrets .onp-sl-facebook .onp-sl-overlay-back'
),
array(
'css' => 'background: {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-secrets .onp-sl-facebook .onp-sl-overlay-header'
)
),
'button_facebook_substrate_gradient' => array(
array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-secrets .onp-sl-facebook .onp-sl-button, .onp-sl-secrets .onp-sl-facebook .onp-sl-overlay-back'
),
array(
'css' => 'background: {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-secrets .onp-sl-facebook .onp-sl-overlay-header'
)
),
//end background facebook
// background google
'button_google_substrate_color' => array(
array(
'css' => 'background: {value|onp_to_rgba};',
'selector' => '.onp-sl-secrets .onp-sl-google .onp-sl-button, .onp-sl-secrets .onp-sl-google .onp-sl-overlay-back'
),
array(
'css' => 'background: {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-secrets .onp-sl-google .onp-sl-overlay-header'
)
),
'button_google_substrate_gradient' => array(
array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-secrets .onp-sl-google .onp-sl-button, .onp-sl-secrets .onp-sl-google .onp-sl-overlay-back'
),
array(
'css' => 'background: {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-secrets .onp-sl-google .onp-sl-overlay-header'
)
),
//end background google
// background linkedin
'button_linkedin_substrate_color' => array(
array(
'css' => 'background: {value|onp_to_rgba};',
'selector' => '.onp-sl-secrets .onp-sl-linkedin .onp-sl-button, .onp-sl-secrets .onp-sl-linkedin .onp-sl-overlay-back'
),
array(
'css' => 'background: {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-secrets .onp-sl-linkedin .onp-sl-overlay-header'
)
),
'button_linkedin_substrate_gradient' => array(
array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-secrets .onp-sl-linkedin .onp-sl-button, .onp-sl-secrets .onp-sl-linkedin .onp-sl-overlay-back'
),
array(
'css' => 'background: {value|onp_smart_whiteout_color_15};',
'selector' => '.onp-sl-secrets .onp-sl-linkedin .onp-sl-overlay-header'
)
),
//end background linkedin
// button text
'button_cover_text_font' => array(
array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-secrets .onp-sl-overlay-text'
),
array(
'image' => array(
'function' => 'opanda_sr_recolor',
'args' => array (
OPANDA_SR_PLUGIN_URL . '/assets/img/social-icons.png', // an original image to recolor
'{color}', // a color to use
array( // a set of options
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => 'background-image: url("{image}");',
'selector' => '.onp-sl-secrets .onp-sl-button .onp-sl-overlay-icon'
)
)
// end button text
);
return $result;
}

View File

@@ -0,0 +1,387 @@
<?php
/**
* Returns editable options for the Secrets theme.
*
* @see OnpSL_ThemeManager::getEditableOptions
*
* @since 3.3.3
* @return mixed[]
*/
function onp_sl_get_secrets_theme_editable_options() {
$lockerContainer = array(__('Locker Container', 'bizpanda'), 'locker-box', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
// background options
array(
'type' => 'accordion-item',
'title' => __('Background', 'bizpanda'),
'items' => array(
array(
'type' => 'control-group',
'name' => 'backgroud_type',
'default' => 'color',
'title' => __('Background', 'bizpanda'),
'items' => array(
array(
'type' => 'control-group-item',
'title' => __('Color', 'bizpanda'),
'name' => 'color',
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'background_color',
'title' => __('Set up color and opacity:', 'bizpanda'),
'default' => array('color' => '#f7f7f7', 'opacity' => 100)
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Gradient', 'bizpanda'),
'name' => 'gradient',
'items' => array(
array(
'type' => 'gradient',
'name' => 'background_gradient',
'title' => __('Set up gradient', 'bizpanda')
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Pattern', 'bizpanda'),
'name' => 'image',
'items' => array(
array(
'type' => 'pattern',
'name' => 'background_image',
'title' => __('Set up pattern', 'bizpanda')
)
)
)
)
)
)
),
// border options
array(
'type' => 'accordion-item',
'title' => __('Borders', 'bizpanda'),
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'outer_border_color',
'title' => __('Outer border color', 'bizpanda'),
'default' => array('color' => '#e6e6e6', 'opacity' => 100)
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'outer_border_size',
'title' => __('Outer border width', 'bizpanda'),
'range' => array(0, 20),
'step' => 1,
'default' => 1,
'units' => 'px'
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'outer_border_radius',
'title' => __('Outer border radius', 'bizpanda'),
'range' => array(0, 100),
'default' => 0,
'units' => 'px'
),
array(
'type' => 'color-and-opacity',
'name' => 'inner_border_color',
'title' => __('Inner border color', 'bizpanda'),
'default' => array('color' => '#fefefe', 'opacity' => 100)
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'inner_border_size',
'title' => __('Inner border width', 'bizpanda'),
'range' => array(0, 20),
'step' => 1,
'default' => 3,
'units' => 'px'
),
array(
'type' => 'integer',
'way' => 'slider',
'name' => 'inner_border_radius',
'title' => __('Inner border radius', 'bizpanda'),
'range' => array(0, 100),
'default' => 0,
'units' => 'px'
),
)
),
// font options
array(
'type' => 'accordion-item',
'title' => __('Text', 'bizpanda'),
'items' => array(
array(
'type' => 'font',
'name' => 'header_text',
'title' => __('Header text', 'bizpanda'),
'default' => array(
'size' => 16,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111111'
),
'units' => 'px'
),
array(
'type' => 'font',
'name' => 'message_text',
'title' => __('Message text', 'bizpanda'),
'default' => array(
'size' => 13,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111111'
),
'units' => 'px'
),
array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'header_icon',
'title' => __('Header icons', 'bizpanda'),
'default' => 1
)
)
),
// paddings options
array(
'type' => 'accordion-item',
'title' => __('Paddings', 'bizpanda'),
'items' => array(
array(
'type' => 'paddings-editor',
'name' => 'container_paddings',
'title' => __('Box paddings', 'bizpanda'),
'units' => 'px',
'default' => '30px 30px 30px 30px'
),
array(
'type' => 'integer',
'name' => 'after_header_margin',
'way' => 'slider',
'title' => __('Margin after header', 'bizpanda'),
'units' => 'px',
'default' => '0'
),
array(
'type' => 'integer',
'name' => 'after_message_margin',
'way' => 'slider',
'title' => __('Margin after message', 'bizpanda'),
'units' => 'px',
'default' => '5'
),
)
),
)
)
));
$lockerButtons = array(__('Locker Buttons', 'bizpanda'), 'buttons', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
array(
'type' => 'accordion-item',
'title' => __('Cover Text', 'bizpanda'),
'items' => array(
array(
'type' => 'font',
'name' => 'button_cover_text_font',
'title' => __('Font', 'bizpanda'),
'default' => array(
'size' => 14,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#ffffff'
),
'units' => 'px'
)
)
),
array(
'type' => 'accordion-item',
'title' => __('Twitter Color', 'bizpanda'),
'items' => array(
// background options
array(
'type' => 'control-group',
'name' => 'button_twitter_substrate',
'default' => 'gradient',
'items' => array(
array(
'type' => 'control-group-item',
'title' => __('Color', 'bizpanda'),
'name' => 'color',
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'button_twitter_substrate_color',
'title' => __('Set up color', 'bizpanda')
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Gradient', 'bizpanda'),
'name' => 'gradient',
'items' => array(
array(
'type' => 'gradient',
'name' => 'button_twitter_substrate_gradient',
'title' => __('Set up gradient', 'bizpanda'),
'default' => '{"filldirection":"top","color_points":["#00beec 0% 1","#00a0e0 100% 1"]}'
)
)
)
)
)
)
),
//end
array(
'type' => 'accordion-item',
'title' => __('Facebook Color', 'bizpanda'),
'items' => array(
// background options
array(
'type' => 'control-group',
'name' => 'button_facebook_substrate',
'default' => 'gradient',
'items' => array(
array(
'type' => 'control-group-item',
'title' => __('Color', 'bizpanda'),
'name' => 'color',
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'button_facebook_substrate_color',
'title' => __('Set up color', 'bizpanda')
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Gradient', 'bizpanda'),
'name' => 'gradient',
'items' => array(
array(
'type' => 'gradient',
'name' => 'button_facebook_substrate_gradient',
'title' => __('Set up gradient', 'bizpanda'),
'default' => '{"filldirection":"top","color_points":["#537fba 0% 1","#255b9d 100% 1"]}'
)
)
)
)
)
)
),
//end
array(
'type' => 'accordion-item',
'title' => __('Google Color', 'bizpanda'),
'items' => array(
// background options
array(
'type' => 'control-group',
'name' => 'button_facebook_substrate',
'default' => 'gradient',
'items' => array(
array(
'type' => 'control-group-item',
'title' => __('Color', 'bizpanda'),
'name' => 'color',
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'button_google_substrate_color',
'title' => __('Set up color', 'bizpanda')
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Gradient', 'bizpanda'),
'name' => 'gradient',
'items' => array(
array(
'type' => 'gradient',
'name' => 'button_google_substrate_gradient',
'title' => __('Set up gradient', 'bizpanda'),
'default' => '{"filldirection":"top","color_points":["#5e5e5e 0% 1","#1c1012 100% 1"]}'
)
)
)
)
)
)
),
//end
array(
'type' => 'accordion-item',
'title' => __('LinkedIn Color', 'bizpanda'),
'items' => array(
// background options
array(
'type' => 'control-group',
'name' => 'button_facebook_substrate',
'default' => 'gradient',
'items' => array(
array(
'type' => 'control-group-item',
'title' => __('Color', 'bizpanda'),
'name' => 'color',
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'button_linkedin_substrate_color',
'title' => __('Set up color', 'bizpanda')
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Gradient', 'bizpanda'),
'name' => 'gradient',
'items' => array(
array(
'type' => 'gradient',
'name' => 'button_linkedin_substrate_gradient',
'title' => __('Set up gradient', 'bizpanda'),
'default' => '{"filldirection":"top","color_points":["#0076a3 0% 1","#005575 100% 1"]}',
)
)
)
)
)
)
)
// end
)
)
));
return array( $lockerContainer, $lockerButtons );
}

View File

@@ -0,0 +1,106 @@
<?php
/**
* Returns CSS generating rules for the Starter theme.
*
* @see OnpSL_ThemeManager::getRulesToGenerateCSS
*
* @since 3.3.3
* @return mixed[]
*/
function onp_sl_get_starter_theme_css_rules() {
return array(
// background
'background_color' => array(
'css' => 'background-color: {value|onp_to_rgba};',
'selector' => '.onp-sl-starter'
),
'background_image' => array(
'image' => array(
'function' => 'opanda_sr_rehue',
'args' => array (
'{url}',
'{color}',
array(
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
)
)
),
'css' => array(
'background-image: url("{image}");',
'background-repeat: repeat;'
),
'selector' => '.onp-sl-starter'
),
'background_gradient' => array(
'css' => array(
'background: {value|onp_to_gradient};',
'background: -webkit-{value|onp_to_gradient};',
'background: -moz-{value|onp_to_gradient};',
'background: -o-{value|onp_to_gradient};',
),
'selector' => '.onp-sl-starter'
),
// end background
// text
'header_text' => array(
array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-starter .onp-sl-strong'
),
array(
'image' => array(
'function' => 'opanda_sr_recolor',
'args' => array (
OPANDA_BIZPANDA_URL . '/assets/img/lock-icon.png', // an original image to recolor
'{color}', // a color to use
array( // a set of options
'output' => OPANDA_SR_PLUGIN_DIR . '/assets/img/sr/',
'url' => OPANDA_SR_PLUGIN_URL . '/assets/img/sr/',
)
)
),
'css' => 'background-image: url("{image}");',
'selector' => '.onp-sl-starter .onp-sl-text .onp-sl-strong:before, .onp-sl-starter .onp-sl-text .onp-sl-strong:after'
)
),
'message_text' => array(
'css' => array(
'font-family: {family|stripcslashes};',
'font-size: {size}px;',
'color: {color}; text-shadow:none;'
),
'selector' => '.onp-sl-starter, .onp-sl-starter .onp-sl button, .onp-sl-starter input, .onp-sl-starter p'
),
// end text
// paddings
'container_paddings' => array(
'css' => 'padding: {value};',
'selector' => '.onp-sl-starter .onp-sl-social-buttons'
),
'after_header_margin' => array(
'css' => 'margin-bottom: {value}px;',
'selector' => '.onp-sl-starter .onp-sl-text .onp-sl-strong'
),
'after_message_margin' => array(
'css' => 'margin-bottom: {value}px;',
'selector' => '.onp-sl-starter .onp-sl-text'
),
// end paddings
// button
'button_base_color' => array(
'css' => 'background-color: {value};',
'selector' => '.onp-sl-starter .onp-sl-social-buttons .onp-sl-control'
)
// end button
);
}

View File

@@ -0,0 +1,158 @@
<?php
/**
* Returns editable options for the Starter theme.
*
* @see OnpSL_ThemeManager::getEditableOptions
*
* @since 3.3.3
* @return mixed[]
*/
function onp_sl_get_starter_theme_editable_options() {
return array(
array(__('Locker Container', 'bizpanda'), 'locker-box', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
// background
array(
'type' => 'accordion-item',
'title' => __('Background', 'bizpanda'),
'items' => array(
array(
'type' => 'control-group',
'name' => 'background_type',
'default' => 'color',
'items' => array(
array(
'type' => 'control-group-item',
'title' => __('Color', 'bizpanda'),
'name' => 'color',
'items' => array(
array(
'type' => 'color-and-opacity',
'name' => 'background_color',
'title' => __('Set up color and opacity:', 'bizpanda'),
'default' => array('color' => '#f9f9f9', 'opacity' => 100)
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Gradient', 'bizpanda'),
'name' => 'gradient',
'items' => array(
array(
'type' => 'gradient',
'name' => 'background_gradient',
'title' => __('Set up gradient:', 'bizpanda')
)
)
),
array(
'type' => 'control-group-item',
'title' => __('Pattern', 'bizpanda'),
'name' => 'image',
'items' => array(
array(
'type' => 'pattern',
'name' => 'background_image',
'title' => __('Set up pattern', 'bizpanda')
)
)
),
)
)
)
),
// font options
array(
'type' => 'accordion-item',
'title' => __('Text', 'bizpanda'),
'items' => array(
array(
'type' => 'font',
'name' => 'header_text',
'title' => __('Header text', 'bizpanda'),
'default' => array(
'size' => 16,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111111'
),
'units' => 'px'
),
array(
'type' => 'font',
'name' => 'message_text',
'title' => __('Message text', 'bizpanda'),
'default' => array(
'size' => 13,
'family' => 'Arial, "Helvetica Neue", Helvetica, sans-serif',
'color' => '#111111'
),
'units' => 'px'
)
)
),
// paddings options
array(
'type' => 'accordion-item',
'title' => __('Paddings', 'bizpanda'),
'items' => array(
array(
'type' => 'paddings-editor',
'name' => 'container_paddings',
'title' => __('Box paddings', 'bizpanda'),
'units' => 'px',
'default' => '30px 30px 30px 30px'
),
array(
'type' => 'integer',
'name' => 'after_header_margin',
'way' => 'slider',
'title' => __('Margin after header', 'bizpanda'),
'units' => 'px',
'default' => '0'
),
array(
'type' => 'integer',
'name' => 'after_message_margin',
'way' => 'slider',
'title' => __('Margin after message', 'bizpanda'),
'units' => 'px',
'default' => '5'
),
)
)
)
)
)),
array(__('Locker Buttons', 'bizpanda'), 'buttons', array(
// accordion
array(
'type' => 'accordion',
'items' => array(
// background options
array(
'type' => 'accordion-item',
'title' => __('Mounts', 'bizpanda'),
'items' => array(
array(
'type' => 'color',
'name' => 'button_base_color',
'title' => __('Color', 'bizpanda'),
'default' => '#f2f2f2'
)
)
)
)
)
))
);
}