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,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'
)
)
)
)
)
))
);
}