PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/remoteworker.kerihosting.com/wp-content/plugins/wlt_builder/shortcodes/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/remoteworker.kerihosting.com/wp-content/plugins/wlt_builder/shortcodes/PT_Column.php

<?php

class PT_Column extends PT_Shortcode{
	public $image;
	public $default_options = array(
		'width' => '1/1',
		'padding' => '1'
	);
	
	function __construct(){
		parent::__construct();
	}
	
	public function shortcode_admin( $atts, $content ){
		extract( shortcode_atts( $this->default_options, $atts ) );
		$column_width = pt_calculate_column_width( $width );
		return '<div class="pt-column pt-element-root span'.esc_attr($column_width).'" data-shortcode_id="'.esc_attr($atts['shortcode_id']).'" data-shortcode_element="PT_Column">
					<div class="pt-column-content '.esc_attr($atts['shortcode_id']).'">
						'.do_shortcode( $content ).'
					</div>
					<div class="pt-actions pt-column-actions clearfix">
						<a href="javascript:;" class="button pt-add-list" title="'.__( 'Apend Element', 'pt-builder' ).'">Add Object</a>
						<a href="javascript:;" class="pt-edit" title="'.__( 'Edit Element', 'pt-builder' ).'"><span class="fa fa-pencil"></span></a>
					</div>						
				</div>';
	}

	public function shortcode_frontend( $atts, $content ){
		extract( shortcode_atts( $this->default_options, $atts ) );
		return '<div class="col-sm-'.( esc_attr(pt_calculate_column_width( $width )) ).'" style="'.( $padding == '0' ? esc_attr('padding: 0px;') : '' ).'">'.do_shortcode( $content ).'</div>';
	}

	public function shortcode_options( $atts = array() ){
		extract( shortcode_atts( $this->default_options, $atts ) );
		$options = array(
			array(
				'id' => 'padding',
				'title' => __( 'Column Padding', 'pt-builder' ),
				'desc' => __( 'Column with padding or without padding.', 'pt-builder' ),
				'type' => 'checkbox',
				'value' => $padding
			),		
		);
		
		$options_html = new PT_Options( $options );
		
		return $options_html->get_options();
	}	
}

?>