| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/cwd/wp-content/plugins/cornerstone/includes/elements/classic/column/ |
Upload File : |
<?php
/**
* Element Definition: Column
*/
class CSE_Column extends BaseClassicElement {
public function ui() {
return array(
'title' => __( 'Column (v1)', 'cornerstone' ),
);
}
public function flags() {
return array(
'dropzone' => array( 'enabled' => true ),
'context' => '_layout',
'dynamic_child' => true
);
}
public function _layout_defaults() {
return array(
'size' => '1/1',
'_active' => false
);
}
public function update_defaults( $defaults ) {
return array_merge($defaults, $this->_layout_defaults() );
}
public function register_shortcode() {
return false;
}
public function update_build_shortcode_atts( $atts ) {
unset( $atts['_active'] );
unset( $atts['title'] );
if ( isset( $atts['size'] ) ) {
$atts['type'] = $atts['size'];
unset( $atts['size'] );
}
return $atts;
}
public function update_build_shortcode_content( $content ) {
if ( '' == $content && ! apply_filters( 'cs_is_element_preview', false )) {
$content = ' ';
}
return $content;
}
public function should_have_markup( $condition, $atts, $content ) {
return ( isset( $atts['_active'] ) && $atts['_active'] );
}
}