Files
roi-theme/wp-content/plugins/thrive-visual-editor/inc/classes/elements/pagination/class-tcb-pagination-number-item-element.php
root a22573bf0b 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>
2025-11-03 21:04:30 -06:00

82 lines
1.8 KiB
PHP
Executable File

<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class TCB_Pagination_Number_Item_Element extends TCB_Element_Abstract {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Page Numbers', 'thrive-cb' );
}
/**
* Element identifier
*
* @return string
*/
public function identifier() {
return '.tcb-pagination-number';
}
/**
* Component and control config
*
* @return array
*/
public function own_components() {
$components = parent::general_components();
$prefix_config = tcb_selection_root();
$components['typography']['config']['css_suffix'] = '';
$components['typography']['disabled_controls'] = [ 'TextTransform', 'TextAlign', '.tve-advanced-controls', '[data-value="tcb-typography-line-height"]' ];
foreach ( $components['typography']['config'] as $control => $config ) {
if ( is_array( $config ) ) {
$components['typography']['config'][ $control ]['css_suffix'] = '';
}
}
$components['typography']['config']['FontColor']['important'] = true;
$components['typography']['config']['FontSize']['important'] = true;
/* add a suffix and prefix for the shadow controls */
$components['shadow']['config']['css_prefix'] = $prefix_config;
$components['layout']['disabled_controls'] = [ 'Display', 'Alignment', '.tve-advanced-controls' ];
$components['animation'] = [ 'hidden' => true ];
$components['responsive'] = [ 'hidden' => true ];
$components['styles-templates'] = [ 'hidden' => true ];
return $components;
}
/**
* Hide this element in the sidebar.
*
* @return string
*/
public function hide() {
return true;
}
/**
* @return bool
*/
public function has_hover_state() {
return true;
}
}