????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.217.65.73 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.eu/wp-content/plugins/fusion-builder/shortcodes/ |
Upload File : |
<?php /** * Shortcode class. * * @package fusion-builder * @since 1.0 */ class FusionSC_FusionTable { /** * An array of the shortcode arguments. * * @static * @access public * @since 1.0 * @var array */ public static $args; /** * Constructor. * * @access public * @since 1.0 */ public function __construct() { add_shortcode( 'fusion_table', array( $this, 'render' ) ); add_filter( 'fusion_table_content', 'shortcode_unautop' ); add_filter( 'fusion_table_content', 'do_shortcode' ); } /** * Render the shortcode * * @access public * @since 1.0 * @param array $args Shortcode parameters. * @param string $content Content between shortcode. * @return string HTML output. */ public function render( $args, $content = '' ) { return apply_filters( 'fusion_table_content', fusion_builder_fix_shortcodes( $content ) ); } } new FusionSC_FusionTable(); /** * Map shortcode to Fusion Builder. */ function fusion_element_table() { fusion_builder_map( array( 'name' => __( 'Table', 'fusion-builder' ), 'shortcode' => 'fusion_table', 'icon' => 'fusiona-table', 'allow_generator' => true, 'admin_enqueue_js' => FUSION_BUILDER_PLUGIN_URL . 'shortcodes/js/fusion-table.js', 'params' => array( array( 'type' => 'select', 'heading' => esc_attr__( 'Type', 'fusion-builder' ), 'description' => esc_attr__( 'Select the table style.', 'fusion-builder' ), 'param_name' => 'fusion_table_type', 'value' => array( esc_attr__( 'Style 1', 'fusion-builder' ) => '1', esc_attr__( 'Style 2', 'fusion-builder' ) => '2', ), 'default' => '1', 'remove_from_atts' => true, ), array( 'type' => 'select', 'heading' => esc_attr__( 'Number of Columns', 'fusion-builder' ), 'description' => esc_attr__( 'Select how many columns to display.', 'fusion-builder' ), 'param_name' => 'fusion_table_columns', 'value' => array( esc_attr__( 'Select Columns', 'fusion-builder' ) => '', esc_attr__( '1 Column', 'fusion-builder' ) => '1', esc_attr__( '2 Column', 'fusion-builder' ) => '2', esc_attr__( '3 Column', 'fusion-builder' ) => '3', esc_attr__( '4 Column', 'fusion-builder' ) => '4', esc_attr__( '5 Column', 'fusion-builder' ) => '5', ), 'default' => '', 'remove_from_atts' => true, ), array( 'type' => 'tinymce', 'heading' => esc_attr__( 'Table', 'fusion-builder' ), 'description' => esc_attr__( 'Table content will appear here.', 'fusion-builder' ), 'param_name' => 'element_content', 'value' => '', ), ), ) ); } add_action( 'fusion_builder_before_init', 'fusion_element_table' );