| Server IP : 217.11.249.137 / Your IP : 216.73.216.64 Web Server : Apache System : FreeBSD triton.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-a3d32f9e6 GENERIC amd64 User : www ( 80) PHP Version : 8.1.32 Disable Function : ini_restore, show_source, socket_select, socket_create_listen, socket_create_pair, socket_listen, socket_strerror, shell_exec, proc_nice, proc_terminate, readlink, symlink, link, pfsocketopen, ini_alter, dl, pcntl_exec, pcntl_fork, pcntl_signal, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifsignaled, pcntl_wifstoped, pcntl_wifstopsig, pcntl_wtermsig, socket_accept, socket_bind, socket_create, socket_create_listen, popen, zlib_decode MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /data/www/26528/proliving_cz/www/wp-content/plugins/td-composer/includes/shortcodes/ |
Upload File : |
<?php
/**
* Created by PhpStorm.
* User: tagdiv
* Date: 16.02.2016
* Time: 14:31
*/
class vc_raw_html extends tdc_composer_block {
function render($atts, $content = null) {
parent::render($atts);
$atts = shortcode_atts(
array(
'content' => base64_encode( __('Html code here! Replace this with any non empty raw html code and that\'s it.', 'td_composer' ) ),
'el_class' => '',
), $atts, 'vc_raw_html' );
if ( is_null( $content ) || empty( $content ) ) {
$content = $atts[ 'content' ];
}
$content = rawurldecode( base64_decode( strip_tags( $content ) ) );
$buffy = '<div class="wpb_wrapper ' . $this->get_wrapper_class() . ' ' . $this->get_block_classes( array( $atts['el_class'] ) ) . '">';
//get the block css
$buffy .= $this->get_block_css();
//td-fix-index class to fix background color z-index
$buffy .= '<div class="td-fix-index">' . $content . '</div>';
$buffy .= '</div>';
return $buffy;
}
}