Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
save_bvnghean.vn
/
wp-content
/
plugins
/
js_composer
/
include
/
templates
/
shortcodes
:
vc_facebook.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } /** * Shortcode attributes * @var $atts * @var $type * @var $el_class * @var $css * Shortcode class * @var $this WPBakeryShortCode_VC_Facebook */ $type = $css = $el_class = ''; $atts = vc_map_get_attributes( $this->getShortcode(), $atts ); extract( $atts ); $url = get_permalink(); $el_class = isset( $el_class ) ? $el_class : ''; $class_to_filter = 'fb_like wpb_content_element fb_type_' . $type; $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); $output = '<div class="' . esc_attr( $css_class ) . '"><iframe src="//www.facebook.com/plugins/like.php?href=' . $url . '&layout=' . $type . '&show_faces=false&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true"></iframe></div>'; echo $output;