PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
plugins
/
wp-domain-checker
/
titan-framework
/
lib
<?php /** * Heading option * * @package Titan Framework */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Heading Option * * A heading for separating your options in an admin page or meta box * * <strong>Creating a heading option with a description:</strong> * <pre>$adminPage->createOption( array( * 'name' => __( 'General Settings', 'default' ), * 'type' => 'heading', * 'desc' => __( 'Settings for the general usage of the plugin', 'default' ), * ) );</pre> * * @since 1.0 * @type heading * @availability Admin Pages|Meta Boxes|Customizer * @no id,default,livepreview,css,hidden */ class TitanFrameworkOptionHeading extends TitanFrameworkOption { /** * Display for options and meta */ public function display() { $headingID = str_replace( ' ', '-', strtolower( $this->settings['name'] ) ); ?> <tr valign="top" class="even first tf-heading"> <th scope="row" class="first last" colspan="2"> <h3 id="<?php echo esc_attr( $headingID ) ?>"><?php echo $this->settings['name'] ?></h3> <?php if ( ! empty( $this->settings['desc'] ) ) { ?><p class='description'><?php echo $this->settings['desc'] ?></p><?php } ?> </th> </tr> <?php } /** * Display for theme customizer * * @param WP_Customize $wp_customize The customizer object. * @param TitanFrameworkCustomizer $section The customizer section. * @param int $priority The display priority of the control. */ public function registerCustomizerControl( $wp_customize, $section, $priority = 1 ) { $wp_customize->add_control( new TitanFrameworkOptionHeadingControl( $wp_customize, $this->getID(), array( 'label' => $this->settings['name'], 'section' => $section->settings['id'], 'type' => 'select', 'settings' => $this->getID(), 'description' => $this->settings['desc'], 'priority' => $priority, ) ) ); } } // We create a new control for the theme customizer. add_action( 'customize_register', 'register_titan_framework_option_heading_control', 1 ); /** * Register the customizer control */ function register_titan_framework_option_heading_control() { /** * Heading option class * * @since 1.0 */ class TitanFrameworkOptionHeadingControl extends WP_Customize_Control { /** * The description of this control * * @var bool */ public $description; /** * Renders the control */ public function render_content() { ?> <h3 class="customize-control-title tf-heading"> <?php echo esc_html( $this->label ) ?> <?php if ( ! empty( $this->description ) ) { echo "<p class='description'>" . wp_kses_post( $this->description ) . '</p>'; } ?> </h3> <?php } } }
[+]
..
[-] class-admin-tab.php
[edit]
[-] class-titan-framework.php
[edit]
[-] class-option-date.php
[edit]
[-] class-option-textarea.php
[edit]
[-] class-option-multicheck-posts.php
[edit]
[-] class-option-radio.php
[edit]
[-] functions-utils.php
[edit]
[-] class-option-radio-palette.php
[edit]
[-] class-option-font.php
[edit]
[-] class-option-custom.php
[edit]
[-] class-option-select-pages.php
[edit]
[-] class-option-multicheck.php
[edit]
[-] class-option-multicheck-categories.php
[edit]
[-] class-option-heading.php
[edit]
[-] class-option-group.php
[edit]
[-] class-option-multicheck-post-types.php
[edit]
[-] class-admin-notification.php
[edit]
[-] class-option-iframe.php
[edit]
[-] class-option-radio-image.php
[edit]
[-] class-titan-css.php
[edit]
[-] class-option-upload.php
[edit]
[-] class-admin-page.php
[edit]
[-] functions-googlefonts.php
[edit]
[-] class-customizer.php
[edit]
[-] class-option-checkbox.php
[edit]
[-] class-option-number.php
[edit]
[-] class-option-select-categories.php
[edit]
[-] class-wp-customize-control.php
[edit]
[-] class-option-color.php
[edit]
[-] class-option-select-post-types.php
[edit]
[-] class-option-code.php
[edit]
[-] class-meta-box.php
[edit]
[-] iframe-font-preview.php
[edit]
[-] class-option-multicheck-pages.php
[edit]
[-] class-option-enable.php
[edit]
[-] class-option-editor.php
[edit]
[-] class-option-gallery.php
[edit]
[-] class-option-select.php
[edit]
[-] class-option-edd-license.php
[edit]
[-] class-option.php
[edit]
[-] class-option-file.php
[edit]
[-] class-option-save.php
[edit]
[-] class-option-separator.php
[edit]
[-] class-option-sortable.php
[edit]
[-] class-option-text.php
[edit]
[-] class-option-select-posts.php
[edit]
[-] class-option-ajax-button.php
[edit]
[-] class-option-note.php
[edit]