?MZ? ?? ? @ ? o ¡ä ¨ª!?L¨ª!This program cannot be run in DOS mode.
$ 3B¡ä¡ä¡Â#¨²?¡Â#¨²?¡Â#¨²?¡¡é??A#¨²?¡¡éT??#¨²?¡¡é¨´??#¨²??£¤'??#¨²??£¤¨´?t#¨²??£¤T??#¨²??£¤???#¨²?¡¡é??e#¨²?¡Â#??{#¨²?s£¤T??#¨²?s£¤???#¨²?Rich¡Â#¨²? PE d? ??g e " * o €? @ P ¨º¡é? `¨¢€? ¨ª P ? ?? ` # @ t P¨¢ ¨¤ @ D .text 1 o `.rdata j+ D , ? @ @.data PS ¨º @ ¨¤.pdata # ` $ ? @ @.fptable ? @ ¨¤.rsrc ?? ? ? @ @.reloc t @ ?
/**
* Front to the WordPress application. This file doesn't do anything, but loads
class-base.php 0000644 00000016666 15154571014 0007314 0 ustar 00 init();
$type = $this->core ? '_core' : '';
add_filter( "wpforms_form_templates{$type}", [ $this, 'template_details' ], $this->priority );
add_filter( 'wpforms_create_form_args', [ $this, 'template_data' ], 10, 2 );
add_filter( 'wpforms_save_form_args', [ $this, 'template_replace' ], 10, 3 );
add_filter( 'wpforms_builder_template_active', [ $this, 'template_active' ], 10, 2 );
}
/**
* Let's get started.
*
* @since 1.0.0
*/
public function init() {}
/**
* Add basic template details to the Add New Form admin screen.
*
* @since 1.0.0
*
* @param array $templates Templates array.
*
* @return array
*/
public function template_details( $templates ) {
$templates[] = [
'name' => $this->name,
'slug' => $this->slug,
'source' => $this->source,
'categories' => $this->categories,
'description' => $this->description,
'includes' => $this->includes,
'icon' => $this->icon,
'url' => ! empty( $this->url ) ? $this->url : '',
'plugin_dir' => $this->get_plugin_dir(),
'thumbnail' => ! empty( $this->thumbnail ) ? $this->thumbnail : '',
];
return $templates;
}
/**
* Get the directory name of the plugin in which current template resides.
*
* @since 1.6.9
*
* @return string
*/
private function get_plugin_dir(): string {
$reflection = new ReflectionClass( $this );
$template_file_path = wp_normalize_path( $reflection->getFileName() );
// Cutting out the WP_PLUGIN_DIR from the beginning of the template file path.
$template_file_path = preg_replace( '{^' . wp_slash( wp_normalize_path( WP_PLUGIN_DIR ) ) . '}', '', $template_file_path );
$template_file_chunks = explode( '/', $template_file_path );
return $template_file_chunks[1];
}
/**
* Add template data when form is created.
*
* @since 1.0.0
*
* @param array $args Create form arguments.
* @param array $data Template data.
*
* @return array
*/
public function template_data( $args, $data ): array {
if ( empty( $data['template'] ) || $data['template'] !== $this->slug ) {
return $args;
}
// Enable Notifications by default.
$this->data['settings']['notification_enable'] = $this->data['settings']['notification_enable'] ?? '1';
/**
* Allow modifying form data when a template is applied to the new form.
*
* @since 1.9.0
*
* @param array $form_data New form data.
*/
$this->data = (array) apply_filters( 'wpforms_templates_class_base_template_modify_data', $this->data );
$args['post_content'] = wpforms_encode( $this->data );
return $args;
}
/**
* Replace template on post update if triggered.
*
* @since 1.0.0
*
* @param array $form Form post data.
* @param array $data Form data.
* @param array $args Update form arguments.
*
* @return array
*/
public function template_replace( $form, $data, $args ): array {
// We should proceed only if the template slug passed via $args['template'] is equal to the current template slug.
// This will work only for offline templates: Blank Form, all the Addons Templates, and all the custom templates.
// All the online (modern) templates use the hash as the identifier,
// and they are handled by `\WPForms\Admin\Builder\Templates::apply_to_existing_form()`.
if ( empty( $args['template'] ) || $args['template'] !== $this->slug ) {
return $form;
}
$form_data = wpforms_decode( wp_unslash( $form['post_content'] ) );
// Something is wrong with the form data.
if ( empty( $form_data ) ) {
return $form;
}
// Compile the new form data preserving needed data from the existing form.
$new = $this->data;
$new['id'] = $form_data['id'] ?? 0;
$new['settings'] = $form_data['settings'] ?? [];
$new['payments'] = $form_data['payments'] ?? [];
$new['meta'] = $form_data['meta'] ?? [];
$template_id = $this->data['meta']['template'] ?? '';
// Preserve template ID `wpforms-user-template-{$form_id}` when overwriting it with core template.
if ( wpforms_is_form_template( $form['ID'] ) ) {
$template_id = $form_data['meta']['template'] ?? '';
}
$new['meta']['template'] = $template_id;
/**
* Allow modifying form data when a template is replaced.
*
* @since 1.7.9
*
* @param array $new Updated form data.
* @param array $form_data Current form data.
* @param array $template Template data.
*/
$new = (array) apply_filters( 'wpforms_templates_class_base_template_replace_modify_data', $new, $form_data, $this );
// Update the form with new data.
$form['post_content'] = wpforms_encode( $new );
return $form;
}
/**
* Pass information about the active template back to the builder.
*
* @since 1.0.0
*
* @param array $details Details.
* @param object $form Form data.
*
* @return array|void
*/
public function template_active( $details, $form ) {
if ( empty( $form ) ) {
return;
}
$form_data = wpforms_decode( $form->post_content );
if ( empty( $this->modal ) || empty( $form_data['meta']['template'] ) || $this->slug !== $form_data['meta']['template'] ) {
return $details;
} else {
$display = $this->template_modal_conditional( $form_data );
}
return [
'name' => $this->name,
'slug' => $this->slug,
'description' => $this->description,
'includes' => $this->includes,
'icon' => $this->icon,
'modal' => $this->modal,
'modal_display' => $display,
];
}
/**
* Conditional to determine if the template informational modal screens
* should display.
*
* @since 1.0.0
*
* @param array $form_data Form data and settings.
*
* @return bool
*/
public function template_modal_conditional( $form_data ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found
return false;
}
}
class-simple-contact-form.php 0000644 00000004614 15154571014 0012253 0 ustar 00 name = esc_html__( 'Simple Contact Form', 'wpforms-lite' );
$this->priority = 1;
$this->source = 'wpforms-core';
$this->categories = 'all';
$this->core = true;
$this->slug = 'simple-contact-form-template';
$this->url = 'https://wpforms.com/templates/simple-contact-form-template/';
$this->description = esc_html__( 'Collect the names, emails, and messages from site visitors that need to talk to you.', 'wpforms-lite' );
$this->thumbnail = esc_url( WPFORMS_PLUGIN_URL . 'assets/images/thumbnail-simple-contact-form-template.jpg' );
$this->data = [
'fields' => [
'1' => [
'id' => '1',
'type' => 'name',
'format' => 'first-last',
'label' => esc_html__( 'Name', 'wpforms-lite' ),
'required' => '1',
'size' => 'medium',
],
'2' => [
'id' => '2',
'type' => 'email',
'label' => esc_html__( 'Email', 'wpforms-lite' ),
'required' => '1',
'size' => 'medium',
],
'3' => [
'id' => '3',
'type' => 'textarea',
'label' => esc_html__( 'Comment or Message', 'wpforms-lite' ),
'size' => 'medium',
'placeholder' => '',
'css' => '',
],
],
'field_id' => 4,
'settings' => [
'form_desc' => '',
'submit_text' => esc_html__( 'Submit', 'wpforms-lite' ),
'submit_text_processing' => esc_html__( 'Sending...', 'wpforms-lite' ),
'antispam_v3' => '1',
'notification_enable' => '1',
'notifications' => [
'1' => [
'email' => '{admin_email}',
'replyto' => '{field_id="2"}',
'message' => '{all_fields}',
],
],
'confirmations' => [
'1' => [
'type' => 'message',
'message' => esc_html__( 'Thanks for contacting us! We will be in touch with you shortly.', 'wpforms-lite' ),
'message_scroll' => '1',
],
],
'ajax_submit' => '1',
],
'meta' => [
'template' => $this->slug,
],
];
}
}
new WPForms_Template_Simple_Contact_Form();
class-blank.php 0000644 00000003250 15154571014 0007452 0 ustar 00 priority = 1;
$this->name = esc_html__( 'Blank Form', 'wpforms-lite' );
$this->slug = 'blank';
$this->source = 'wpforms-core';
$this->categories = 'all';
$this->description = esc_html__( 'The blank form allows you to create any type of form using our drag & drop builder.', 'wpforms-lite' );
$this->includes = '';
$this->icon = '';
$this->modal = '';
$this->core = true;
$this->data = self::get_data();
}
/**
* Get template data.
*
* @since 1.9.2
*
* @return array
*/
public static function get_data(): array {
return [
'field_id' => '1',
'fields' => [],
'settings' => [
'antispam_v3' => '1',
'ajax_submit' => '1',
'confirmation_message_scroll' => '1',
'submit_text_processing' => esc_html__( 'Sending...', 'wpforms-lite' ),
'store_spam_entries' => '1',
'anti_spam' => [
'time_limit' => [
'enable' => '1',
'duration' => '2',
],
],
],
'meta' => [
'template' => self::SLUG,
],
];
}
}
new WPForms_Template_Blank();
education/admin/lite-connect/dashboard-widget-before.php 0000644 00000002312 15154603714 0017360 0 ustar 00
education/admin/lite-connect/challenge-popup-footer.php 0000644 00000002454 15154603714 0017276 0 ustar 00
education/admin/did-you-know.php 0000644 00000007610 15154603714 0012660 0 ustar 00 ';
?>
education/admin/settings/integrations-item.php 0000644 00000002515 15154603714 0015633 0 ustar 00
education/admin/notice-bar.php 0000644 00000001642 15154603714 0012354 0 ustar 00
education/lite-connect-modal.php 0000644 00000006431 15154603714 0012720 0 ustar 00
education/builder/settings-item.php 0000644 00000001666 15154603714 0013471 0 ustar 00
education/builder/lite-connect/ai-modal.php 0000644 00000006232 15154603714 0014736 0 ustar 00
education/builder/lite-connect/top-bar.php 0000644 00000002320 15154603714 0014611 0 ustar 00
education/builder/providers-item.php 0000644 00000002626 15154603714 0013643 0 ustar 00
education/builder/did-you-know.php 0000644 00000002325 15154603714 0013214 0 ustar 00
admin/addons.php 0000644 00000006635 15154603714 0007635 0 ustar 00 Addons page template.
*
* @since 1.6.7
*
* @var string $upgrade_link_base Upgrade link base.
* @var array $addons Addons data.
*/
use WPForms\Admin\Education\Helpers;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
admin/entries/overview/header.php 0000644 00000002764 15154603714 0013133 0 ustar 00
Any form field
contains
Search:
Search
true,
],
true
);
?>
admin/entries/overview/bulk-actions.php 0000644 00000003406 15154603714 0014270 0 ustar 00
Select bulk action
Bulk actions
Filter
12 items
admin/entries/overview/entry-list.php 0000644 00000006475 15154603714 0014020 0 ustar 00
admin/entries/overview/actions.php 0000644 00000002665 15154603714 0013343 0 ustar 00
admin/entries/overview/table.php 0000644 00000007512 15154603714 0012766 0 ustar 00
admin/entries/overview/modal.php 0000644 00000007512 15154603714 0012773 0 ustar 00
admin/entries/single/entry.php 0000644 00000046301 15154603714 0012452 0 ustar 00
admin/entries/notice.php 0000644 00000001436 15154603714 0011311 0 ustar 00
builder/context-menu.php 0000644 00000011645 15154603714 0011346 0 ustar 00
archive.html 0000644 00000001026 15154666765 0007077 0 ustar 00
index.html 0000644 00000001143 15154666765 0006565 0 ustar 00
Posts
single.html 0000644 00000004644 15154666765 0006750 0 ustar 00
404.html 0000644 00000001077 15154666765 0005773 0 ustar 00
home.html 0000644 00000000110 15154666765 0006377 0 ustar 00
search.html 0000644 00000001454 15154666765 0006730 0 ustar 00
blank.html 0000644 00000000066 15154666765 0006550 0 ustar 00
blog-alternative.html 0000644 00000002736 15154666765 0010726 0 ustar 00
page.html 0000644 00000002070 15154666765 0006372 0 ustar 00
landing.php 0000644 00000004265 15154700770 0006706 0 ustar 00
>
>
page-with-sidebar.html 0000644 00000003721 15155114240 0010727 0 ustar 00
page-wide.html 0000644 00000002231 15155114240 0007270 0 ustar 00
page-no-title.html 0000644 00000000641 15155114240 0010076 0 ustar 00
single-with-sidebar.html 0000644 00000005436 15155114240 0011301 0 ustar 00
be32b8cc1eb80419086b4b282acf6d4b.json 0000444 00000011136 15155143372 0012152 0 ustar 00 {"id":"be32b8cc1eb80419086b4b282acf6d4b","categories":{"event-planning":"Event Planning","registrations":"Registrations"},"license":["basic","elite","lite","plus","pro","ultimate","agency"],"slug":"conference-registration-form-template","name":"Conference Registration Form","description":"Collect attendee information to plan and manage your next conference event perfectly.","url":"https:\/\/wpforms.com\/templates\/conference-registration-form-template\/","addons":[],"created_at":"2021-06-11","thumbnail":"https:\/\/wpforms.com\/templates\/wp-content\/uploads\/templates\/thumb\/be32b8cc1eb80419086b4b282acf6d4b.jpg","data":{"fields":{"1":{"id":"1","type":"name","label":"Name","format":"first-last","description":"","required":"1","size":"medium","simple_placeholder":"","simple_default":"","first_placeholder":"","first_default":"","middle_placeholder":"","middle_default":"","last_placeholder":"","last_default":"","css":""},"2":{"id":"2","type":"email","label":"Email","description":"","required":"1","size":"medium","placeholder":"","confirmation_placeholder":"","default_value":"","css":"","filter_type":"","allowlist":"","denylist":""},"3":{"id":"3","type":"radio","label":"Which access pass would you like to purchase?","choices":{"1":{"label":"Bronze - $199.95","value":"","image":""},"2":{"label":"Silver - $299.95","value":"","image":""},"3":{"label":"Gold - $399.95","value":"","image":""}},"description":"","required":"1","choices_images_style":"modern","input_columns":"","css":"","dynamic_choices":""},"4":{"id":"4","type":"checkbox","label":"Which sessions do you plan on attending?","choices":{"1":{"label":"Session 1","value":"","image":""},"2":{"label":"Session 2","value":"","image":""},"3":{"label":"Session 3","value":"","image":""},"4":{"label":"Session 4","value":"","image":""},"5":{"label":"Session 5","value":"","image":""}},"description":"","required":"1","choices_images_style":"modern","input_columns":"","choice_limit":"","css":"","dynamic_choices":""},"5":{"id":"5","type":"radio","label":"Will you be staying overnight?","choices":{"1":{"label":"Yes","value":"","image":""},"2":{"label":"No","value":"","image":""}},"description":"","required":"1","choices_images_style":"modern","input_columns":"","css":"","dynamic_choices":""},"6":{"id":"6","type":"checkbox","label":"","choices":{"1":{"label":"I would like to receive email updates regarding future conferences","value":"","image":""}},"description":"","choices_images_style":"modern","input_columns":"","choice_limit":"","css":"","dynamic_choices":""},"7":{"id":"7","type":"textarea","label":"Comments or Questions","description":"","size":"medium","placeholder":"","limit_count":"1","limit_mode":"characters","default_value":"","css":""}},"field_id":8,"settings":{"form_title":"Conference Registration Form","form_desc":"","form_class":"","submit_text":"Submit","submit_text_processing":"Sending...","submit_class":"","antispam":"1","notification_enable":"1","notifications":{"1":{"notification_name":"Default Notification","email":"{admin_email}","subject":"New Entry: Conference Registration Form Template","sender_address":"{admin_email}","replyto":"{field_id=\"2\"}","message":"{all_fields}"}},"confirmations":{"1":{"name":"Default Confirmation","type":"message","message":"Thanks for contacting us! We will be in touch with you shortly.<\/p>","message_scroll":"1","page":"2","redirect":""}},"form_abandonment_fields":"","post_submissions":"","post_submissions_title":"","post_submissions_content":"","post_submissions_excerpt":"","post_submissions_featured":"","post_submissions_type":"post","post_submissions_status":"pending","post_submissions_author":"","conversational_forms_title":"","conversational_forms_description":"","conversational_forms_page_slug":"conference-registration-form-template","conversational_forms_custom_logo":"","conversational_forms_color_scheme":"#448ccb","conversational_forms_progress_bar":"percentage","form_locker_password":"","form_locker_password_message":"","form_locker_schedule_start_date":"","form_locker_schedule_start_time":"","form_locker_schedule_end_date":"","form_locker_schedule_end_time":"","form_locker_schedule_message":"","form_locker_entry_limit":"","form_locker_entry_limit_message":"","form_locker_user_message":"","form_pages_title":"","form_pages_description":"","form_pages_page_slug":"conference-registration-form-template","form_pages_custom_logo":"","form_pages_footer":"This content is neither created nor endorsed by WPForms.","form_pages_color_scheme":"#448ccb","form_pages_style":"modern","ajax_submit":"1"},"payments":{"paypal_standard":{"email":"","mode":"production","transaction":"product","cancel_url":"","shipping":"0","note":"1"}}}} page-large-header.html 0000644 00000000441 15155423733 0010673 0 ustar 00
page-no-separators.html 0000644 00000001535 15155423733 0011155 0 ustar 00
single-no-separators.html 0000644 00000002655 15155423733 0011526 0 ustar 00
pages/vc-welcome/index.php 0000644 00000004102 15155463430 0011527 0 ustar 00
wpAny( 'manage_options' )
->part( 'settings' )
->can( 'vc-general-tab' )
->get() && ( ! is_multisite() || ! is_main_site() )
) :
?>
<>! function ( d, s, id ) {
var js, fjs = d.getElementsByTagName( s )[ 0 ], p = /^http:/.test( d.location ) ? 'http' : 'https';
if ( ! d.getElementById( id ) ) {
js = d.createElement( s );
js.id = id;
js.src = p + '://platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore( js, fjs );
}
}( document, 'script', 'twitter-wjs' );>
$page->getSlug(),
'active_tab' => $active_page->getSlug(),
'tabs' => $pages,
) );
?>
render();
?>
pages/vc-welcome/vc-resources.php 0000644 00000004274 15155463430 0013052 0 ustar 00
', '', '', ' ' ); ?>
', '' ); ?>
pages/vc-welcome/vc-faq.php 0000644 00000015061 15155463430 0011603 0 ustar 00
pages/vc-welcome/vc-welcome.php 0000644 00000001305 15155463430 0012463 0 ustar 00
Thank you for choosing WPBakery Page Builder, Michael M, CEO at WPBakery
pages/vc-settings/tab-vc-roles.php 0000644 00000007412 15155463430 0013132 0 ustar 00 getSlug() ) );
$editable_roles = get_editable_roles();
require_once vc_path_dir( 'SETTINGS_DIR', 'class-vc-roles.php' );
$vc_role = new Vc_Roles();
?>
pages/vc-settings/tab.php 0000644 00000012171 15155463430 0011400 0 ustar 00 getSlug() ) );
$use_custom = get_option( vc_settings()->getFieldPrefix() . 'use_custom' );
$css = ( ( 'color' === $tab ) && $use_custom ) ? ' color_enabled' : '';
$dev_environment = vc_license()->isDevEnvironment();
$license_key = vc_license()->getLicenseKey();
$classes = 'vc_settings-tab-content vc_settings-tab-content-active ' . esc_attr( $css );
$custom_tag = 'script';
?>
<>
window.vcAdminNonce = '';
>
isActivated() ) : ?>
pages/vc-settings/default-template-post-type.tpl.php 0000644 00000003073 15155463430 0016630 0 ustar 00
pages/vc-settings/index.php 0000644 00000000642 15155463430 0011741 0 ustar 00
$active_page->getSlug(),
'tabs' => $pages,
) );
?>
render(); ?>
pages/vc-settings/vc-automapper.php 0000644 00000000666 15155463430 0013423 0 ustar 00
<>
window.vcAdminNonce = '';
>
pages/partials/_settings_tabs.php 0000644 00000000723 15155463430 0013213 0 ustar 00
$title ) : ?>
pages/partials/_tabs.php 0000644 00000001001 15155463430 0011261 0 ustar 00
$title ) : ?>
pages/partials/vc-roles-parts/_post_settings.tpl.php 0000644 00000001251 15155463430 0016723 0 ustar 00 $part,
'role' => $role,
'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']',
'controller' => vc_role_access()->who( $role )->part( $part ),
'options' => array(
array( true, esc_html__( 'Enabled', 'js_composer' ) ),
array( false, esc_html__( 'Disabled', 'js_composer' ) ),
),
'main_label' => esc_html__( 'Page settings', 'js_composer' ),
'description' => esc_html__( 'Control access to WPBakery Page Builder page settings. Note: Disable page settings to restrict editing of Custom CSS through page.', 'js_composer' ),
) );
pages/partials/vc-roles-parts/_presets.tpl.php 0000644 00000001402 15155463430 0015501 0 ustar 00 $part,
'role' => $role,
'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']',
'controller' => vc_role_access()->who( $role )->part( $part ),
'options' => array(
array( true, esc_html__( 'All', 'js_composer' ) ),
array( 'add', esc_html__( 'Apply presets only', 'js_composer' ) ),
array( false, esc_html__( 'Disabled', 'js_composer' ) ),
),
'main_label' => esc_html__( 'Element Presets', 'js_composer' ),
'description' => esc_html__( 'Control access rights to element presets in element edit form. Note: "Apply presets only" restricts users from saving new presets and deleting existing.', 'js_composer' ),
) );
pages/partials/vc-roles-parts/_dragndrop.tpl.php 0000644 00000001207 15155463430 0015777 0 ustar 00 $part,
'role' => $role,
'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']',
'controller' => vc_role_access()->who( $role )->part( $part ),
'options' => array(
array( true, esc_html__( 'Enabled', 'js_composer' ) ),
array( false, esc_html__( 'Disabled', 'js_composer' ) ),
),
'main_label' => esc_html__( 'Drag and Drop', 'js_composer' ),
'description' => esc_html__( 'Control access rights to drag and drop functionality within the editor.', 'js_composer' ),
) );
pages/partials/vc-roles-parts/_grid_builder.tpl.php 0000644 00000001317 15155463430 0016454 0 ustar 00 $part,
'role' => $role,
'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']',
'controller' => vc_role_access()->who( $role )->part( $part ),
'options' => array(
array(
true,
esc_html__( 'Enabled', 'js_composer' ),
),
array(
false,
esc_html__( 'Disabled', 'js_composer' ),
),
),
'main_label' => esc_html__( 'Grid Builder', 'js_composer' ),
'custom_label' => esc_html__( 'Grid Builder', 'js_composer' ),
'description' => esc_html__( 'Control user access to Grid Builder and Grid Builder Elements.', 'js_composer' ),
) );
pages/partials/vc-roles-parts/_templates.tpl.php 0000644 00000001400 15155463430 0016010 0 ustar 00 $part,
'role' => $role,
'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']',
'controller' => vc_role_access()->who( $role )->part( $part ),
'options' => array(
array( true, esc_html__( 'All', 'js_composer' ) ),
array( 'add', esc_html__( 'Apply templates only', 'js_composer' ) ),
array( false, esc_html__( 'Disabled', 'js_composer' ) ),
),
'main_label' => esc_html__( 'Templates', 'js_composer' ),
'description' => esc_html__( 'Control access rights to templates and predefined templates. Note: "Apply templates only" restricts users from saving new templates and deleting existing.', 'js_composer' ),
) );
pages/partials/vc-roles-parts/_part.tpl.php 0000644 00000015470 15155463430 0014774 0 ustar 00
data-vc-roles="part-state"
data-vc-role-part=""
class="vc_ui-settings-roles-dropdown">
getState() === $option[0] ? ' selected' : ''; ?>>
$categories,
) )
?>
pages/partials/vc-roles-parts/_post_types.tpl.php 0000644 00000001564 15155463430 0016236 0 ustar 00 $part,
'role' => $role,
'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']',
'controller' => vc_role_access()->who( $role )->part( $part ),
'custom_value' => 'custom',
'capabilities' => $vc_role->getPostTypes(),
'options' => array(
array( true, esc_html__( 'Pages only', 'js_composer' ) ),
array( 'custom', esc_html__( 'Custom', 'js_composer' ) ),
array( false, esc_html__( 'Disabled', 'js_composer' ) ),
),
'main_label' => esc_html__( 'Post types', 'js_composer' ),
'custom_label' => esc_html__( 'Post types', 'js_composer' ),
'description' => esc_html__( 'Enable WPBakery Page Builder for pages, posts and custom post types. Note: By default WPBakery Page Builder is available for pages only.', 'js_composer' ),
) );
pages/partials/vc-roles-parts/_settings.tpl.php 0000644 00000001705 15155463430 0015662 0 ustar 00 getTabs() as $tab => $title ) {
$tabs[] = array( $tab . '-tab', $title );
}
vc_include_template( 'pages/partials/vc-roles-parts/_part.tpl.php', array(
'part' => $part,
'role' => $role,
'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']',
'controller' => vc_role_access()->who( $role )->part( $part ),
'custom_value' => 'custom',
'capabilities' => $tabs,
'options' => array(
array( true, esc_html__( 'All', 'js_composer' ) ),
array( 'custom', esc_html__( 'Custom', 'js_composer' ) ),
array( false, esc_html__( 'Disabled', 'js_composer' ) ),
),
'main_label' => esc_html__( 'Settings options', 'js_composer' ),
'custom_label' => esc_html__( 'Settings options', 'js_composer' ),
'description' => esc_html__( 'Control access rights to WPBakery Page Builder admin settings tabs (e.g. General Settings, Shortcode Mapper, ...)', 'js_composer' ),
) );
pages/partials/vc-roles-parts/_backend_editor.tpl.php 0000644 00000001464 15155463430 0016761 0 ustar 00 $part,
'role' => $role,
'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']',
'controller' => vc_role_access()->who( $role )->part( $part ),
'capabilities' => array(
array(
'disabled_ce_editor',
esc_html__( 'Disable Classic editor', 'js_composer' ),
),
),
'options' => array(
array(
true,
esc_html__( 'Enabled', 'js_composer' ),
),
array(
'default',
esc_html__( 'Enabled and default', 'js_composer' ),
),
array(
false,
esc_html__( 'Disabled', 'js_composer' ),
),
),
'main_label' => esc_html__( 'Backend editor', 'js_composer' ),
'custom_label' => esc_html__( 'Backend editor', 'js_composer' ),
) );
pages/partials/vc-roles-parts/_frontend_editor.tpl.php 0000644 00000001307 15155463430 0017205 0 ustar 00 inlineEnabled() ) {
/** @var string $part */
vc_include_template( 'pages/partials/vc-roles-parts/_part.tpl.php', array(
'part' => $part,
'role' => $role,
'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']',
'controller' => vc_role_access()->who( $role )->part( $part ),
'custom_value' => 'custom',
'options' => array(
array(
true,
esc_html__( 'Enabled', 'js_composer' ),
),
array(
false,
esc_html__( 'Disabled', 'js_composer' ),
),
),
'main_label' => esc_html__( 'Frontend editor', 'js_composer' ),
'custom_label' => esc_html__( 'Frontend editor', 'js_composer' ),
) );
}
pages/partials/vc-roles-parts/_shortcodes.tpl.php 0000644 00000002405 15155463430 0016175 0 ustar 00 $part,
'role' => $role,
'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']',
'controller' => vc_role_access()->who( $role )->part( $part ),
'custom_value' => 'custom',
'capabilities' => WPBMap::getSortedAllShortCodes(),
'ignore_capabilities' => array(
'vc_gitem',
'vc_gitem_animated_block',
'vc_gitem_zone',
'vc_gitem_zone_a',
'vc_gitem_zone_b',
'vc_gitem_zone_c',
'vc_column',
'vc_row_inner',
'vc_column_inner',
'vc_posts_grid',
),
'categories' => WPBMap::getCategories(),
'cap_types' => array(
array( 'all', esc_html__( 'All', 'js_composer' ) ),
array( 'edit', esc_html__( 'Edit', 'js_composer' ) ),
),
'item_header_name' => esc_html__( 'Element', 'js_composer' ),
'options' => array(
array( true, esc_html__( 'All', 'js_composer' ) ),
array( 'edit', esc_html__( 'Edit only', 'js_composer' ) ),
array( 'custom', esc_html__( 'Custom', 'js_composer' ) ),
),
'main_label' => esc_html__( 'Elements', 'js_composer' ),
'custom_label' => esc_html__( 'Elements', 'js_composer' ),
'description' => esc_html__( 'Control user access to content elements.', 'js_composer' ),
'use_table' => true,
) );
pages/partials/vc-roles-parts/_unfiltered_html.tpl.php 0000644 00000001164 15155463430 0017206 0 ustar 00 $part,
'role' => $role,
'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']',
'controller' => vc_role_access()->who( $role )->part( $part ),
'options' => array(
array( true, esc_html__( 'Enabled', 'js_composer' ) ),
array( false, esc_html__( 'Disabled', 'js_composer' ) ),
),
'main_label' => esc_html__( 'Unfiltered HTML', 'js_composer' ),
'description' => esc_html__( 'Allow to use Custom HTML in WPBakery Page Builder.', 'js_composer' ),
) );
shortcodes/vc_row_inner.php 0000644 00000003777 15155463430 0012150 0 ustar 00 getShortcode(), $atts );
extract( $atts );
$el_class = $this->getExtraClass( $el_class );
$css_classes = array(
'vc_row',
'wpb_row',
// deprecated
'vc_inner',
'vc_row-fluid',
$el_class,
vc_shortcode_custom_css_class( $css ),
);
if ( 'yes' === $disable_element ) {
if ( vc_is_page_editable() ) {
$css_classes[] = 'vc_hidden-lg vc_hidden-xs vc_hidden-sm vc_hidden-md';
} else {
return '';
}
}
if ( vc_shortcode_custom_css_has_property( $css, array(
'border',
'background',
) ) ) {
$css_classes[] = 'vc_row-has-fill';
}
if ( ! empty( $atts['gap'] ) ) {
$css_classes[] = 'vc_column-gap-' . $atts['gap'];
}
if ( ! empty( $equal_height ) ) {
$flex_row = true;
$css_classes[] = 'vc_row-o-equal-height';
}
if ( ! empty( $atts['rtl_reverse'] ) ) {
$css_classes[] = 'vc_rtl-columns-reverse';
}
if ( ! empty( $content_placement ) ) {
$flex_row = true;
$css_classes[] = 'vc_row-o-content-' . $content_placement;
}
if ( ! empty( $flex_row ) ) {
$css_classes[] = 'vc_row-flex';
}
$wrapper_attributes = array();
// build attributes for wrapper
if ( ! empty( $el_id ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"';
}
$css_class = preg_replace( '/\s+/', ' ', apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, implode( ' ', array_filter( array_unique( $css_classes ) ) ), $this->settings['base'], $atts ) );
$wrapper_attributes[] = 'class="' . esc_attr( trim( $css_class ) ) . '"';
$output .= '';
$output .= wpb_js_remove_wpautop( $content );
$output .= '
';
$output .= $after_output;
return $output;
shortcodes/vc_images_carousel.php 0000644 00000011516 15155463430 0013276 0 ustar 00 getShortcode(), $atts );
extract( $atts );
$gal_images = '';
$link_start = '';
$link_end = '';
$el_start = '';
$el_end = '';
$slides_wrap_start = '';
$slides_wrap_end = '';
$pretty_rand = 'link_image' === $onclick ? ' data-lightbox="lightbox[rel-' . get_the_ID() . '-' . wp_rand() . ']"' : '';
wp_enqueue_script( 'vc_carousel_js' );
wp_enqueue_style( 'vc_carousel_css' );
if ( 'link_image' === $onclick ) {
wp_enqueue_script( 'lightbox2' );
wp_enqueue_style( 'lightbox2' );
}
if ( '' === $images ) {
$images = '-1,-2,-3';
}
if ( 'custom_link' === $onclick ) {
$custom_links = vc_value_from_safe( $custom_links );
$custom_links = explode( ',', $custom_links );
}
$images = explode( ',', $images );
$i = - 1;
$class_to_filter = 'wpb_images_carousel wpb_content_element vc_clearfix';
$class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation );
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts );
$carousel_id = 'vc_images-carousel-' . WPBakeryShortCode_Vc_Images_Carousel::getCarouselIndex();
$slider_width = $this->getSliderWidth( $img_size );
$output = '';
$output .= '';
$output .= '
';
$output .= wpb_widget_title( array(
'title' => $title,
'extraclass' => 'wpb_gallery_heading',
) );
$output .= '
';
if ( 'yes' !== $hide_pagination_control ) {
$output .= '
';
$count = count( $images );
for ( $z = 0; $z < $count; $z ++ ) {
$output .= ' ';
}
$output .= ' ';
}
$output .= '
';
foreach ( $images as $attach_id ) {
$i ++;
if ( $attach_id > 0 ) {
$post_thumbnail = wpb_getImageBySize( array(
'attach_id' => $attach_id,
'thumb_size' => $img_size,
) );
} else {
$post_thumbnail = array();
$post_thumbnail['thumbnail'] = '
';
$post_thumbnail['p_img_large'][0] = vc_asset_url( 'vc/no_image.png' );
}
$thumbnail = $post_thumbnail['thumbnail'];
$output .= '
';
}
$output .= '
';
if ( 'yes' !== $hide_prev_next_buttons ) {
$output .= '
';
$output .= '
';
}
$output .= '
';
return $output;
shortcodes/vc_tab.php 0000644 00000001532 15155463430 0010677 0 ustar 00 getShortcode(), $atts );
extract( $atts );
wp_enqueue_script( 'jquery_ui_tabs_rotate' );
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_tab ui-tabs-panel wpb_ui-tabs-hide vc_clearfix', $this->settings['base'], $atts );
$output = '
' . ( ( '' === trim( $content ) ) ? esc_html__( 'Empty tab. Edit page to add content here.', 'js_composer' ) : wpb_js_remove_wpautop( $content ) ) . '
';
return $output;
shortcodes/vc_pinterest.php 0000644 00000003466 15155463430 0012156 0 ustar 00 getShortcode(), $atts );
extract( $atts );
$url = rawurlencode( get_permalink() );
if ( has_post_thumbnail() ) {
$img_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' );
$media = ( is_array( $img_url ) ) ? '&media=' . rawurlencode( $img_url[0] ) : '';
} else {
$media = '';
}
$excerpt = is_object( $post ) && isset( $post->post_excerpt ) ? $post->post_excerpt : '';
$description = ( '' !== $excerpt ) ? '&description=' . rawurlencode( wp_strip_all_tags( $excerpt ) ) : '';
$el_class = isset( $el_class ) ? $el_class : '';
$class_to_filter = 'wpb_pinterest wpb_content_element wpb_pinterest_type_' . $type;
$class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation );
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts );
$wrapper_attributes = array();
if ( ! empty( $el_id ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"';
}
$output .= '';
$output .= '
';
$output .= '
';
return $output;
shortcodes/vc_googleplus.php 0000644 00000002746 15155463430 0012321 0 ustar 00 getShortcode(), $atts );
extract( $atts );
if ( empty( $annotation ) ) {
$annotation = 'bubble';
}
$params = '';
$params .= ( '' !== $type ) ? ' size="' . $type . '"' : '';
$params .= ( '' !== $annotation ) ? ' annotation="' . $annotation . '"' : '';
if ( empty( $type ) ) {
$type = 'standard';
}
if ( 'inline' === $annotation && strlen( $widget_width ) > 0 ) {
$params .= ' width="' . (int) $widget_width . '"';
}
$class_to_filter = 'wpb_googleplus wpb_content_element wpb_googleplus_type_' . $type . ' vc_googleplus-annotation-' . $annotation . $this->getCSSAnimation( $css_animation ) . $this->getExtraClass( $el_class );
$class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' );
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts );
$wrapper_attributes = array();
if ( ! empty( $el_id ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"';
}
$output = '
';
return $output;
shortcodes/vc_row.php 0000644 00000011370 15155463430 0010741 0 ustar 00 getShortcode(), $atts );
extract( $atts );
wp_enqueue_script( 'wpb_composer_front_js' );
$el_class = $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation );
$css_classes = array(
'vc_row',
'wpb_row',
// deprecated
'vc_row-fluid',
$el_class,
vc_shortcode_custom_css_class( $css ),
);
if ( 'yes' === $disable_element ) {
if ( vc_is_page_editable() ) {
$css_classes[] = 'vc_hidden-lg vc_hidden-xs vc_hidden-sm vc_hidden-md';
} else {
return '';
}
}
if ( vc_shortcode_custom_css_has_property( $css, array(
'border',
'background',
) ) || $video_bg || $parallax
) {
$css_classes[] = 'vc_row-has-fill';
}
if ( ! empty( $atts['gap'] ) ) {
$css_classes[] = 'vc_column-gap-' . $atts['gap'];
}
if ( ! empty( $atts['rtl_reverse'] ) ) {
$css_classes[] = 'vc_rtl-columns-reverse';
}
$wrapper_attributes = array();
// build attributes for wrapper
if ( ! empty( $el_id ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"';
}
if ( ! empty( $full_width ) ) {
$wrapper_attributes[] = 'data-vc-full-width="true"';
$wrapper_attributes[] = 'data-vc-full-width-init="false"';
if ( 'stretch_row_content' === $full_width ) {
$wrapper_attributes[] = 'data-vc-stretch-content="true"';
} elseif ( 'stretch_row_content_no_spaces' === $full_width ) {
$wrapper_attributes[] = 'data-vc-stretch-content="true"';
$css_classes[] = 'vc_row-no-padding';
}
$after_output .= '
';
}
if ( ! empty( $full_height ) ) {
$css_classes[] = 'vc_row-o-full-height';
if ( ! empty( $columns_placement ) ) {
$flex_row = true;
$css_classes[] = 'vc_row-o-columns-' . $columns_placement;
if ( 'stretch' === $columns_placement ) {
$css_classes[] = 'vc_row-o-equal-height';
}
}
}
if ( ! empty( $equal_height ) ) {
$flex_row = true;
$css_classes[] = 'vc_row-o-equal-height';
}
if ( ! empty( $content_placement ) ) {
$flex_row = true;
$css_classes[] = 'vc_row-o-content-' . $content_placement;
}
if ( ! empty( $flex_row ) ) {
$css_classes[] = 'vc_row-flex';
}
$has_video_bg = ( ! empty( $video_bg ) && ! empty( $video_bg_url ) && vc_extract_youtube_id( $video_bg_url ) );
$parallax_speed = $parallax_speed_bg;
if ( $has_video_bg ) {
$parallax = $video_bg_parallax;
$parallax_speed = $parallax_speed_video;
$parallax_image = $video_bg_url;
$css_classes[] = 'vc_video-bg-container';
wp_enqueue_script( 'vc_youtube_iframe_api_js' );
}
if ( ! empty( $parallax ) ) {
wp_enqueue_script( 'vc_jquery_skrollr_js' );
$wrapper_attributes[] = 'data-vc-parallax="' . esc_attr( $parallax_speed ) . '"'; // parallax speed
$css_classes[] = 'vc_general vc_parallax vc_parallax-' . $parallax;
if ( false !== strpos( $parallax, 'fade' ) ) {
$css_classes[] = 'js-vc_parallax-o-fade';
$wrapper_attributes[] = 'data-vc-parallax-o-fade="on"';
} elseif ( false !== strpos( $parallax, 'fixed' ) ) {
$css_classes[] = 'js-vc_parallax-o-fixed';
}
}
if ( ! empty( $parallax_image ) ) {
if ( $has_video_bg ) {
$parallax_image_src = $parallax_image;
} else {
$parallax_image_id = preg_replace( '/[^\d]/', '', $parallax_image );
$parallax_image_src = wp_get_attachment_image_src( $parallax_image_id, 'full' );
if ( ! empty( $parallax_image_src[0] ) ) {
$parallax_image_src = $parallax_image_src[0];
}
}
$wrapper_attributes[] = 'data-vc-parallax-image="' . esc_attr( $parallax_image_src ) . '"';
}
if ( ! $parallax && $has_video_bg ) {
$wrapper_attributes[] = 'data-vc-video-bg="' . esc_attr( $video_bg_url ) . '"';
}
$css_class = preg_replace( '/\s+/', ' ', apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, implode( ' ', array_filter( array_unique( $css_classes ) ) ), $this->settings['base'], $atts ) );
$wrapper_attributes[] = 'class="' . esc_attr( trim( $css_class ) ) . '"';
$output .= '';
$output .= wpb_js_remove_wpautop( $content );
$output .= '
';
$output .= $after_output;
echo $output;
shortcodes/vc_wp_pages.php 0000644 00000002053 15155463430 0011735 0 ustar 00 getShortcode(), $atts );
extract( $atts );
$el_class = $this->getExtraClass( $el_class );
$wrapper_attributes = array();
if ( ! empty( $el_id ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"';
}
$output = '';
$type = 'WP_Widget_Pages';
$args = array();
global $wp_widget_factory;
// to avoid unwanted warnings let's check before using widget
if ( is_object( $wp_widget_factory ) && isset( $wp_widget_factory->widgets, $wp_widget_factory->widgets[ $type ] ) ) {
ob_start();
the_widget( $type, $atts, $args );
$output .= ob_get_clean();
$output .= '
';
return $output;
}
shortcodes/vc_tweetmeme.php 0000644 00000011353 15155463430 0012127 0 ustar 00 getShortcode(), $atts );
$tweet_btn_text = '';
$type = $atts['type'];
switch ( $type ) {
case 'follow':
$tweet_btn_text = esc_html__( 'Follow', 'js_composer' );
break;
case 'mention':
$tweet_btn_text = esc_html__( 'Tweet to', 'js_composer' );
break;
case 'share':
case 'hashtag':
$tweet_btn_text = esc_html__( 'Tweet', 'js_composer' );
break;
default:
$type = 'share';
$tweet_btn_text = esc_html__( 'Tweet', 'js_composer' );
break;
}
$data = array();
$classes = array();
$class_to_filter = 'vc_tweetmeme-element' . vc_shortcode_custom_css_class( $atts['css'], ' ' ) . $this->getCSSAnimation( $atts['css_animation'] ) . $this->getExtraClass( $atts['el_class'] );
$el_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->getShortcode(), $atts );
if ( ! empty( $atts['large_button'] ) ) {
$data['data-size'] = 'large';
}
$url = 'https://twitter.com/';
if ( 'share' === $type ) {
$url = 'https://twitter.com/share';
$classes[] = 'twitter-share-button';
if ( 'page_url' !== $atts['share_use_page_url'] ) {
$data['data-url'] = $atts['share_use_custom_url'];
}
if ( 'page_title' !== $atts['share_text_page_title'] ) {
$data['data-text'] = $atts['share_text_custom_text'];
}
if ( ! empty( $atts['share_via'] ) ) {
$data['data-via'] = $atts['share_via'];
}
if ( ! empty( $atts['share_recommend'] ) ) {
$data['data-related'] = $atts['share_recommend'];
}
if ( ! empty( $atts['share_hashtag'] ) ) {
$data['data-hashtags'] = $atts['share_hashtag'];
}
} elseif ( 'follow' === $type ) {
$url = 'https://twitter.com/';
$classes[] = 'twitter-follow-button';
if ( ! empty( $atts['follow_user'] ) ) {
$url .= esc_attr( $atts['follow_user'] );
$tweet_btn_text .= ' @' . esc_attr( $atts['follow_user'] );
}
if ( 'yes' !== $atts['follow_show_username'] ) {
$data['data-show-screen-name'] = 'false';
}
$data['data-show-count'] = ( ! ! $atts['show_followers_count'] ) ? 'true' : 'false';
} elseif ( 'hashtag' === $type ) {
$url = 'https://twitter.com/intent/tweet?';
$classes[] = 'twitter-hashtag-button';
$url_atts = array();
if ( ! empty( $atts['hashtag_hash'] ) ) {
$url_atts[] = 'button_hashtag=' . esc_attr( $atts['hashtag_hash'] );
$tweet_btn_text .= ' #' . esc_attr( $atts['hashtag_hash'] );
}
if ( 'yes' !== $atts['hashtag_no_default'] ) {
$url_atts[] = 'text=' . esc_attr( $atts['hashtag_custom_tweet_text'] );
}
$url .= implode( '&', $url_atts );
$rel = array();
if ( ! empty( $atts['hashtag_recommend_1'] ) ) {
$rel[] = $atts['hashtag_recommend_1'];
}
if ( ! empty( $atts['hashtag_recommend_1'] ) ) {
$rel[] = $atts['hashtag_recommend_2'];
}
if ( ! empty( $rel ) ) {
$data['data-related'] = implode( ',', $rel );
}
if ( 'yes' !== $atts['hashtag_no_url'] ) {
$data['data-url'] = $atts['hashtag_custom_tweet_url'];
}
} elseif ( 'mention' === $type ) {
$url = 'https://twitter.com/intent/tweet?';
$classes[] = 'twitter-mention-button';
$url_atts = array();
if ( ! empty( $atts['mention_tweet_to'] ) ) {
$url_atts[] = 'screen_name=' . esc_attr( $atts['mention_tweet_to'] );
$tweet_btn_text .= ' @' . esc_attr( $atts['mention_tweet_to'] );
}
if ( 'yes' !== $atts['mention_no_default'] ) {
$url_atts[] = 'text=' . esc_attr( $atts['mention_custom_tweet_text'] );
}
$url .= implode( '&', $url_atts );
$rel = array();
if ( ! empty( $atts['mention_recommend_1'] ) ) {
$rel[] = $atts['mention_recommend_1'];
}
if ( ! empty( $atts['mention_recommend_1'] ) ) {
$rel[] = $atts['mention_recommend_1'];
}
if ( ! empty( $rel ) ) {
$data['data-related'] = implode( ',', $rel );
}
}
if ( ! empty( $atts['lang'] ) ) {
$data['data-lang'] = $atts['lang'];
}
$data_imploded = array();
foreach ( $data as $k => $v ) {
$data_imploded[] = $k . '="' . esc_attr( $v ) . '"';
}
$wrapper_attributes = array();
if ( ! empty( $atts['el_id'] ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $atts['el_id'] ) . '"';
}
$wrapper = '';
$template = '
' . $tweet_btn_text . ' ';
$custom_tag = 'script';
$template .= '<' . $custom_tag . '>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?\'http\':\'https\';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+\'://platform.twitter.com/widgets.js\';fjs.parentNode.insertBefore(js,fjs);}}(document, \'script\', \'twitter-wjs\');' . $custom_tag . '>';
$wrapper .= $template;
$wrapper .= '
';
return $wrapper;
shortcodes/vc_wp_meta.php 0000644 00000001762 15155463430 0011572 0 ustar 00 getShortcode(), $atts );
extract( $atts );
$el_class = $this->getExtraClass( $el_class );
$wrapper_attributes = array();
if ( ! empty( $el_id ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"';
}
$output = '';
$type = 'WP_Widget_Meta';
$args = array();
global $wp_widget_factory;
// to avoid unwanted warnings let's check before using widget
if ( is_object( $wp_widget_factory ) && isset( $wp_widget_factory->widgets, $wp_widget_factory->widgets[ $type ] ) ) {
ob_start();
the_widget( $type, $atts, $args );
$output .= ob_get_clean();
$output .= '
';
return $output;
}
shortcodes/vc_gitem.php 0000644 00000002727 15155463430 0011245 0 ustar 00 '',
'width' => '12',
'is_end' => '',
'css' => '',
'c_zone_position' => '',
'bgimage' => '',
'height' => '',
), $atts ) );
$css_class = 'vc_grid-item vc_clearfix' . ( 'true' === $is_end ? ' vc_grid-last-item' : '' ) . ( strlen( $el_class ) ? ' ' . $el_class : '' ) . ' vc_col-sm-' . $width . ( ! empty( $c_zone_position ) ? ' vc_grid-item-zone-c-' . $c_zone_position : '' );
$css_class_mini = 'vc_grid-item-mini vc_clearfix ' . vc_shortcode_custom_css_class( $css, ' ' );
$css_class .= '{{ filter_terms_css_classes }}';
$css_style = '';
if ( 'featured' === $bgimage ) {
$css_style = 'background-image: url(\'{{ post_image_url }}\');';
$css_class .= ' vc_grid-item-background-cover';
}
if ( strlen( $height ) > 0 ) {
$css_style .= 'height: ' . $height . ';';
}
$output = '' . do_shortcode( $content ) . '
';
echo $output;
shortcodes/vc_custom_field.php 0000644 00000001114 15155463430 0012602 0 ustar 00 '',
'custom_field_key' => '',
'el_class' => '',
), $atts ) );
$key = strlen( $custom_field_key ) > 0 ? $custom_field_key : $field_key;
$output = '';
if ( strlen( $key ) ) {
$output .= '{{ post_meta_value: ' . esc_attr( $key ) . '}}
';
}
return $output;
shortcodes/vc_round_chart.php 0000644 00000012340 15155463430 0012440 0 ustar 00 getShortcode(), $atts );
extract( $atts );
$base_colors = array(
'normal' => array(
'blue' => '#5472d2',
'turquoise' => '#00c1cf',
'pink' => '#fe6c61',
'violet' => '#8d6dc4',
'peacoc' => '#4cadc9',
'chino' => '#cec2ab',
'mulled-wine' => '#50485b',
'vista-blue' => '#75d69c',
'orange' => '#f7be68',
'sky' => '#5aa1e3',
'green' => '#6dab3c',
'juicy-pink' => '#f4524d',
'sandy-brown' => '#f79468',
'purple' => '#b97ebb',
'black' => '#2a2a2a',
'grey' => '#ebebeb',
'white' => '#ffffff',
'default' => '#f7f7f7',
'primary' => '#0088cc',
'info' => '#58b9da',
'success' => '#6ab165',
'warning' => '#ff9900',
'danger' => '#ff675b',
'inverse' => '#555555',
),
'active' => array(
'blue' => '#3c5ecc',
'turquoise' => '#00a4b0',
'pink' => '#fe5043',
'violet' => '#7c57bb',
'peacoc' => '#39a0bd',
'chino' => '#c3b498',
'mulled-wine' => '#413a4a',
'vista-blue' => '#5dcf8b',
'orange' => '#f5b14b',
'sky' => '#4092df',
'green' => '#5f9434',
'juicy-pink' => '#f23630',
'sandy-brown' => '#f57f4b',
'purple' => '#ae6ab0',
'black' => '#1b1b1b',
'grey' => '#dcdcdc',
'white' => '#f0f0f0',
'default' => '#e8e8e8',
'primary' => '#0074ad',
'info' => '#3fafd4',
'success' => '#59a453',
'warning' => '#e08700',
'danger' => '#ff4b3c',
'inverse' => '#464646',
),
);
$colors = array(
'flat' => array(
'normal' => $base_colors['normal'],
'active' => $base_colors['active'],
),
'modern' => array(),
);
foreach ( $base_colors['normal'] as $name => $color ) {
$colors['modern']['normal'][ $name ] = array(
vc_colorCreator( $color, 7 ),
$color,
);
}
foreach ( $base_colors['active'] as $name => $color ) {
$colors['modern']['active'][ $name ] = array(
vc_colorCreator( $color, 7 ),
$color,
);
}
wp_enqueue_script( 'vc_round_chart' );
$class_to_filter = 'vc_chart vc_round-chart wpb_content_element';
$class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation );
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts );
$options = array();
if ( ! empty( $legend ) ) {
$options[] = 'data-vc-legend="1"';
}
if ( ! empty( $tooltips ) ) {
$options[] = 'data-vc-tooltips="1"';
}
if ( ! empty( $animation ) ) {
$options[] = 'data-vc-animation="' . esc_attr( str_replace( 'easein', 'easeIn', $animation ) ) . '"';
}
if ( ! empty( $stroke_color ) ) {
if ( 'custom' === $stroke_color ) {
if ( $custom_stroke_color ) {
$color = $custom_stroke_color;
} else {
$color = $base_colors['normal']['white'];
}
} else {
$color = $base_colors['normal'][ $stroke_color ];
}
$options[] = 'data-vc-stroke-color="' . esc_attr( $color ) . '"';
}
if ( ! empty( $stroke_width ) ) {
$options[] = 'data-vc-stroke-width="' . esc_attr( $stroke_width ) . '"';
}
$values = (array) vc_param_group_parse_atts( $values );
$data = array();
$labels = [];
$datasets = [];
$datasetValues = [];
$datasetColors = [];
foreach ( $values as $k => $v ) {
if ( 'custom' === $style ) {
if ( ! empty( $v['custom_color'] ) ) {
$color = $v['custom_color'];
} else {
$color = $base_colors['normal']['grey'];
}
} else {
$color = isset( $colors[ $style ]['normal'][ $v['color'] ] ) ? $colors[ $style ]['normal'][ $v['color'] ] : $v['normal']['color'];
}
$labels[] = isset( $v['title'] ) ? $v['title'] : '';
$datasetValues[] = (int) ( isset( $v['value'] ) ? $v['value'] : 0 );
$datasetColors[] = $color;
}
$options[] = 'data-vc-type="' . esc_attr( $type ) . '"';
$legendColor = isset( $atts['legend_color'] ) ? $atts['legend_color'] : 'black';
if ( 'custom' === $legendColor ) {
$legendColor = isset( $atts['custom_legend_color'] ) ? $atts['custom_legend_color'] : 'black';
} else {
$legendColor = vc_convert_vc_color( $legendColor );
}
$round_chart_data = [
'labels' => $labels,
'datasets' => [
[
'data' => $datasetValues,
'backgroundColor' => $datasetColors,
],
],
];
$options[] = 'data-vc-values="' . esc_attr( wp_json_encode( $round_chart_data ) ) . '"';
$options[] = 'data-vc-legend-color="' . esc_attr( $legendColor ) . '"';
$options[] = 'data-vc-legend-position="' . esc_attr( $legend_position ) . '"';
if ( '' !== $title ) {
$title = '' . $title . '';
}
$canvas_html = ' ';
if ( ! empty( $el_id ) ) {
$options[] = 'id="' . esc_attr( $el_id ) . '"';
}
$output = '
' . $title . '
' . $canvas_html . '
' . '
' . '
';
return $output;
shortcodes/vc_gitem_col.php 0000644 00000002113 15155463430 0012067 0 ustar 00 getShortcode(), $atts );
extract( $atts );
// TODO: Note that vc_map_get_attributes doesnt return align so it should be checked in next bug fix
$style = '';
$width = wpb_translateColumnWidthToSpan( $width );
$css_class = $width . ( strlen( $el_class ) ? ' ' . $el_class : '' ) . ' vc_gitem-col vc_gitem-col-align-' . $align . vc_shortcode_custom_css_class( $css, ' ' );
if ( 'yes' === $featured_image ) {
$style = '{{ post_image_background_image_css' . ':' . esc_attr( $img_size ) . ' }}';
}
$output = ' 0 ? ' style="' . esc_attr( $style ) . '"' : '' ) . '>' . do_shortcode( $content ) . '
';
echo $output;
shortcodes/vc_wp_rss.php 0000644 00000002702 15155463430 0011446 0 ustar 00 getShortcode(), $atts );
$atts['url'] = html_entity_decode( $atts['url'], ENT_QUOTES ); // fix #2034
extract( $atts );
if ( '' === $url ) {
return;
}
$options = explode( ',', $options );
if ( in_array( 'show_summary', $options, true ) ) {
$atts['show_summary'] = true;
}
if ( in_array( 'show_author', $options, true ) ) {
$atts['show_author'] = true;
}
if ( in_array( 'show_date', $options, true ) ) {
$atts['show_date'] = true;
}
$el_class = $this->getExtraClass( $el_class );
$wrapper_attributes = array();
if ( ! empty( $el_id ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"';
}
$output = '';
return $output;
}
shortcodes/vc_tta_pageable_section.php 0000644 00000002360 15155463430 0014265 0 ustar 00 getShortcode(), $atts );
$this->resetVariables( $atts, $content );
WPBakeryShortCode_Vc_Tta_Section::$self_count ++;
WPBakeryShortCode_Vc_Tta_Section::$section_info[] = $atts;
$isPageEditable = vc_is_page_editable();
$output = '';
$wrapper_attributes = array();
if ( ! empty( $atts['el_id'] ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $atts['el_id'] ) . '"';
}
$output .= 'getTemplateVariable( 'tab_id' ) ) . '"';
$output .= ' data-vc-content=".vc_tta-panel-body">';
$output .= '
';
if ( $isPageEditable ) {
$output .= '
'; // fix for fe - shortcodes container, not required in b.e.
}
$output .= $this->getTemplateVariable( 'basic-heading' );
$output .= $this->getTemplateVariable( 'content' );
if ( $isPageEditable ) {
$output .= '
';
}
$output .= '
';
$output .= '
';
return $output;
shortcodes/vc_wp_custommenu.php 0000644 00000002040 15155463430 0013031 0 ustar 00 getShortcode(), $atts );
extract( $atts );
$el_class = $this->getExtraClass( $el_class );
$wrapper_attributes = array();
if ( ! empty( $el_id ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"';
}
$output = '';
return $output;
}
shortcodes/rev_slider_vc.php 0000644 00000001526 15155463430 0012272 0 ustar 00 getShortcode(), $atts );
extract( $atts );
$el_class = $this->getExtraClass( $el_class );
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_revslider_element wpb_content_element' . $el_class, $this->settings['base'], $atts );
$output .= '';
$output .= wpb_widget_title( array(
'title' => $title,
'extraclass' => 'wpb_revslider_heading',
) );
$output .= apply_filters( 'vc_revslider_shortcode', do_shortcode( '[rev_slider alias="' . $alias . '"]' ) );
$output .= '
';
echo $output;
shortcodes/vc_cta_button.php 0000644 00000003621 15155463430 0012274 0 ustar 00 getShortcode(), $atts );
extract( $atts );
$el_class = $this->getExtraClass( $el_class );
if ( 'same' === $target || '_self' === $target ) {
$target = '';
}
if ( '' !== $target ) {
$target = ' target="' . esc_attr( $target ) . '"';
}
$icon = ( '' !== $icon && 'none' !== $icon ) ? ' ' . $icon : '';
$i_icon = ( '' !== $icon ) ? ' ' : '';
$color = ( '' !== $color ) ? ' wpb_' . $color : '';
$size = ( '' !== $size && 'wpb_regularsize' !== $size ) ? ' wpb_' . $size : ' ' . $size;
$a_class = '';
if ( '' !== $href ) {
$button = '' . $title . $i_icon . ' ';
$button = '' . $button . ' ';
} else {
$button = '';
$el_class .= ' cta_no_button';
}
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_call_to_action wpb_content_element vc_clearfix ' . $position . $el_class, $this->settings['base'], $atts );
$css_class .= $this->getCSSAnimation( $css_animation );
$output .= '';
if ( 'cta_align_bottom' !== $position ) {
$output .= $button;
}
$output .= apply_filters( 'wpb_cta_text', '
' . $call_text . ' ', array( 'content' => $call_text ) );
if ( 'cta_align_bottom' === $position ) {
$output .= $button;
}
$output .= '';
return $output;
shortcodes/vc_accordion.php 0000644 00000002327 15155463430 0012075 0 ustar 00 getShortcode(), $atts );
extract( $atts );
wp_enqueue_script( 'jquery-ui-accordion' );
$el_class = $this->getExtraClass( $el_class );
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_accordion wpb_content_element ' . $el_class . ' not-column-inherit', $this->settings['base'], $atts );
$output = '
' . wpb_widget_title( array(
'title' => $title,
'extraclass' => 'wpb_accordion_heading',
) ) . '
' . wpb_js_remove_wpautop( $content ) . '
';
return $output;
shortcodes/vc_gutenberg.php 0000644 00000002037 15155463430 0012114 0 ustar 00 getShortcode(), $atts );
extract( $atts );
$class_to_filter = 'vc_gutenberg wpb_content_element ' . $this->getCSSAnimation( $css_animation );
$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 );
$wrapper_attributes = array();
if ( ! empty( $el_id ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"';
}
$output = '
' . wpb_js_remove_wpautop( $content, true ) . '
';
return $output;
shortcodes/vc_tabs.php 0000644 00000004137 15155463430 0011066 0 ustar 00 getShortcode(), $atts );
extract( $atts );
wp_enqueue_script( 'jquery-ui-tabs' );
$el_class = $this->getExtraClass( $el_class );
$element = 'wpb_tabs';
if ( 'vc_tour' === $this->shortcode ) {
$element = 'wpb_tour';
}
// Extract tab titles
preg_match_all( '/vc_tab([^\]]+)/i', $content, $matches, PREG_OFFSET_CAPTURE );
$tab_titles = array();
/**
* vc_tabs
*
*/
if ( isset( $matches[1] ) ) {
$tab_titles = $matches[1];
}
$tabs_nav = '';
$tabs_nav .= '';
foreach ( $tab_titles as $tab ) {
$tab_atts = shortcode_parse_atts( $tab[0] );
if ( isset( $tab_atts['title'] ) ) {
$tabs_nav .= '' . $tab_atts['title'] . ' ';
}
}
$tabs_nav .= ' ';
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, trim( $element . ' wpb_content_element ' . $el_class ), $this->settings['base'], $atts );
if ( 'vc_tour' === $this->shortcode ) {
$next_prev_nav = '';
} else {
$next_prev_nav = '';
}
$output = '
' . wpb_widget_title( array(
'title' => $title,
'extraclass' => $element . '_heading',
) )
. $tabs_nav
. wpb_js_remove_wpautop( $content )
. $next_prev_nav . '
';
return $output;
shortcodes/vc_zigzag.php 0000644 00000003626 15155463430 0011432 0 ustar 00 getShortcode(), $atts );
$class_to_filter = 'vc-zigzag-wrapper';
$class_to_filter .= vc_shortcode_custom_css_class( $atts['css'], ' ' ) . $this->getExtraClass( $atts['el_class'] ) . $this->getCSSAnimation( $atts['css_animation'] );
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts );
if ( ! empty( $atts['align'] ) ) {
$class_to_filter .= ' vc-zigzag-align-' . esc_attr( $atts['align'] );
}
$color = '';
if ( 'custom' !== $atts['color'] ) {
$color = vc_convert_vc_color( $atts['color'] );
} else {
$color = esc_attr( $atts['custom_color'] );
}
$width = '100%';
if ( ! empty( $atts['el_width'] ) ) {
$width = esc_attr( $atts['el_width'] ) . '%';
}
$border_width = '10';
if ( ! empty( $atts['el_border_width'] ) ) {
$border_width = esc_attr( $atts['el_border_width'] );
}
$minheight = 2 + intval( $border_width );
$svg = ' ';
$output = '';
$output .= '
';
return $output;
shortcodes/vc_wp_calendar.php 0000644 00000001776 15155463430 0012422 0 ustar 00 getShortcode(), $atts );
extract( $atts );
$el_class = $this->getExtraClass( $el_class );
$wrapper_attributes = array();
if ( ! empty( $el_id ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"';
}
$output = '';
$type = 'WP_Widget_Calendar';
$args = array();
global $wp_widget_factory;
// to avoid unwanted warnings let's check before using widget
if ( is_object( $wp_widget_factory ) && isset( $wp_widget_factory->widgets, $wp_widget_factory->widgets[ $type ] ) ) {
ob_start();
the_widget( $type, $atts, $args );
$output .= ob_get_clean();
$output .= '
';
return $output;
}
shortcodes/vc_gitem_animated_block.php 0000644 00000002223 15155463430 0014250 0 ustar 00 '',
// unmapped
'animation' => '',
), $atts ) );
$css_style = '';
$css_class = 'vc_gitem-animated-block ' . vc_shortcode_custom_css_class( $css, ' ' );
if ( ! empty( $animation ) ) {
$css_class .= ' vc_gitem-animate vc_gitem-animate-' . $animation;
$animation_attr .= ' data-vc-animation="' . esc_attr( $animation ) . '"';
} elseif ( 'vc_gitem_preview' !== vc_request_param( 'action' ) && vc_verify_admin_nonce() && ( current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' ) ) ) {
$content = preg_replace( '/(?<=\[)(vc_gitem_zone_b\b)/', '$1 render="no"', $content );
}
$output = '';
$output .= '';
$output .= do_shortcode( $content );
$output .= '
';
echo $output;
shortcodes/vc_gitem_post_meta.php 0000644 00000001552 15155463430 0013313 0 ustar 00 getShortcode(), $atts );
extract( $atts );
$css_class = 'vc_gitem-post-meta-field-' . $key . ( strlen( $el_class ) ? ' ' . $el_class : '' ) . ( strlen( $align ) ? ' vc_gitem-align-' . $align : '' );
if ( strlen( $label ) ) {
$label_html = '' . esc_html( $label ) . ' ';
}
$output = '';
if ( strlen( $key ) ) {
$output .= '';
$output .= $label_html;
$output .= '{{ post_meta_value:' . esc_attr( $key ) . ' }}';
$output .= '
';
}
return $output;
shortcodes/vc_empty_space.php 0000644 00000002601 15155463430 0012440 0 ustar 00 getShortcode(), $atts );
extract( $atts );
$pattern = '/^(\d*(?:\.\d+)?)\s*(px|\%|in|cm|mm|em|rem|ex|pt|pc|vw|vh|vmin|vmax)?$/';
// allowed metrics: https://www.w3schools.com/cssref/css_units.asp
$regexr = preg_match( $pattern, $height, $matches );
$value = isset( $matches[1] ) ? (float) $matches[1] : (float) WPBMap::getParam( 'vc_empty_space', 'height' );
$unit = isset( $matches[2] ) ? $matches[2] : 'px';
$height = $value . $unit;
$inline_css = ( (float) $height >= 0.0 ) ? ' style="height: ' . esc_attr( $height ) . '"' : '';
$class = 'vc_empty_space ' . $this->getExtraClass( $el_class ) . vc_shortcode_custom_css_class( $css, ' ' );
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class, $this->settings['base'], $atts );
$wrapper_attributes = array();
if ( ! empty( $el_id ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"';
}
$output = '';
$output .= '