Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/www/wp-content/themes/dt-the7/inc/shortcodes/includes/tooltips/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/www/wp-content/themes/dt-the7/inc/shortcodes/includes/tooltips/tooltips.php
<?php
/**
 * Tooltip shortcode.
 *
 */

// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }

/**
 * Shortcode tooltip class.
 *
 */
class DT_Shortcode_Tooltip extends DT_Shortcode {

    static protected $instance;

	protected $shortcode_name = 'dt_tooltip';
	protected $plugin_name = 'dt_mce_plugin_shortcode_tooltip';

    public static function get_instance() {
        if ( !self::$instance ) {
            self::$instance = new DT_Shortcode_Tooltip();
        }
        return self::$instance;
    }

    protected function __construct() {
        add_shortcode( $this->shortcode_name, array($this, 'shortcode') );
    }

    public function shortcode( $atts, $content = null ) {
		$shortcode_atts = shortcode_atts( [
			'title' => '',
		], $atts, $this->shortcode_name );
		extract( $shortcode_atts );

		$title = wp_kses( $title, array() );

        if ( !$title ) return $content;

        $output = sprintf( '<span class="shortcode-tooltip">%s<span class="tooltip-c">%s</span></span>',
            $title,
            $content = strip_shortcodes($content)
        );

        return $output;
    }

}

// create shortcode
DT_Shortcode_Tooltip::get_instance();

Spamworldpro Mini