?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.php000064400000016666151545710140007314 0ustar00init(); $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.php000064400000004614151545710140012253 0ustar00name = 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.php000064400000003250151545710140007452 0ustar00priority = 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.php000064400000002312151546037140017360 0ustar00
education/admin/lite-connect/challenge-popup-footer.php000064400000002454151546037140017276 0ustar00 education/admin/did-you-know.php000064400000007610151546037140012660 0ustar00'; ?>


education/admin/settings/integrations-item.php000064400000002515151546037140015633 0ustar00

education/admin/notice-bar.php000064400000001642151546037140012354 0ustar00
You\'re using WPForms Lite. To unlock more features consider upgrading to Pro for 50%% off.', 'wpforms-lite' ), [ 'a' => [ 'href' => [], 'rel' => [], 'target' => [], ], 'strong' => [], ] ), esc_url( $upgrade_link ) ); ?>
education/lite-connect-modal.php000064400000006431151546037140012720 0ustar00 education/builder/settings-item.php000064400000001666151546037140013471 0ustar00 education/builder/lite-connect/ai-modal.php000064400000006232151546037140014736 0ustar00 education/builder/lite-connect/top-bar.php000064400000002320151546037140014611 0ustar00

education/builder/providers-item.php000064400000002626151546037140013643 0ustar00 <?php echo esc_attr( $modal_name ); ?> education/builder/did-you-know.php000064400000002325151546037140013214 0ustar00

' . esc_html__( 'Learn More', 'wpforms-lite' ) . ''; } ?>
admin/addons.php000064400000006635151546037140007635 0ustar00 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; } ?>

$addon['title'], ], $upgrade_link_base ); $licenses = [ 'basic', 'plus', 'pro', 'elite', 'agency', 'ultimate' ]; $addon_licenses = $addon['license']; $common_licenses = array_intersect( $licenses, $addon_licenses ); $minimum_required_license = reset( $common_licenses ); $image_alt = sprintf( /* translators: %s - addon title. */ __( '%s logo', 'wpforms-lite' ), $addon['title'] ); $badge = Helpers::get_addon_badge( $addon ); $item_classes = [ 'wpforms-addons-list-item', 'addon-item', ! empty( $badge ) ? 'has-badge' : '', ]; ?>
<?php echo esc_attr( $image_alt ); ?>
%3$s', esc_url( $upgrade_link ), esc_attr__( 'Learn more', 'wpforms-lite' ), esc_html( $addon['title'] ) ); ?>
admin/entries/overview/header.php000064400000002764151546037140013133 0ustar00
true, ], true ); ?>
admin/entries/overview/bulk-actions.php000064400000003406151546037140014270 0ustar00
12 items of 1

admin/entries/overview/entry-list.php000064400000006475151546037140014020 0ustar00

Entries

$utm['entries_list_button'], 'link_utm' => $utm['entries_list_link'], ], true ); ?>
$is_lite_connect_enabled, 'is_lite_connect_allowed' => $is_lite_connect_allowed, 'entries_count' => $entries_count, 'enabled_since' => $enabled_since, 'is_enabled' => $sample_entry_enabled, ], true ); ?>
$sample_entries ], true ); ?>
admin/entries/overview/actions.php000064400000002665151546037140013343 0ustar00
Form Fields Entry Meta
admin/entries/overview/table.php000064400000007512151546037140012766 0ustar00
Name Email Date Actions
View | Edit | Spam | Trash
Name Email Date Actions
admin/entries/overview/modal.php000064400000007512151546037140012773 0ustar00

' . esc_html( /* translators: %d - backed up entries count. */ _n( '%d entry has been backed up', '%d entries have been backed up', $entries_count, 'wpforms-lite' ) ) . '', absint( $entries_count ) ); if ( ! empty( $enabled_since ) ) { echo ' '; printf( /* translators: %s - time when Lite Connect was enabled. */ esc_html__( 'since you enabled Lite Connect on %s', 'wpforms-lite' ), esc_html( wpforms_date_format( $enabled_since, '', true ) ) ); } // phpcs:ignore Squiz.PHP.EmbeddedPhp.ContentAfterEnd ?>.

admin/entries/single/entry.php000064400000046301151546037140012452 0ustar00

View Entry
Entry 1 of 12
1

$utm['entry_single_button'], 'link_utm' => $utm['entry_single_link'], ], true ); ?>

General Inquiry Form

Name

Michael Johnson

Email

michael.johnson@example.com

Phone

+1-206-555-6789

Comment or Message

I really enjoyed your insightful posts on your blog! Your writing is engaging and makes complex topics easy to understand. I'm eager to dive deeper into your passion. Keep up the fantastic work! Oh BTW, I uploaded an illustration I created that’s inspired by your writing. I hope you like it!

File Upload

illustration.jpg

Signature

Location

  • Location Seattle, Washington
  • Postal 98125
  • Country US
  • Lat/Long 47.6061, -122.3328

User Journey

April 22, 2024
12:23 pm Search Results / (Homepage)
12:23 pm Homepage https://www.google.com/ 56 seconds
12:24 pm Frequently Asked Questions /faq/ 1 min
12:25 pm About Us /about-us/ 3 mins
12:28 pm Meet The Team /about-us/meet-the-team/ 3 mins
12:31 pm Testimonials /testimonials/ 2 mins
12:33 pm General Inquiry Form /general-inquiry-form/ 4 mins
12:37 pm General Inquiry Form Submitted User took 7 steps over 14 mins

Notes

Add Note

My illustration of the ones that have been submitted so far. We should reach out to him and offer a t-shirt.

This person went above and beyond.

Entry Details

Entry ID: 544

Modified: April 22, 2024 at 12:37 PM

User IP: 192.168.1.100

Edit
Trash Entry

Actions

Print

Export (CSV)

Export (XLSX)

Resend Notifications

Star

Mark as Unread

Mark as Spam

Delete Entry

admin/entries/notice.php000064400000001436151546037140011311 0ustar00

You’re Viewing Sample Data

Like what you see? Upgrade to Pro to get access to Entries and dozens of awesome features and addons!

Upgrade Now

Hide Sample Data
builder/context-menu.php000064400000011645151546037140011346 0ustar00
archive.html000064400000001026151546667650007077 0ustar00
index.html000064400000001143151546667650006565 0ustar00

Posts

single.html000064400000004644151546667650006750 0ustar00

404.html000064400000001077151546667650005773 0ustar00
home.html000064400000000110151546667650006377 0ustar00 search.html000064400000001454151546667650006730 0ustar00
blank.html000064400000000066151546667650006550 0ustar00 blog-alternative.html000064400000002736151546667650010726 0ustar00
page.html000064400000002070151546667650006372 0ustar00
landing.php000064400000004265151547007700006706 0ustar00 > >
role="main">
page-with-sidebar.html000064400000003721151551142400010727 0ustar00
page-wide.html000064400000002231151551142400007270 0ustar00
page-no-title.html000064400000000641151551142400010076 0ustar00
single-with-sidebar.html000064400000005436151551142400011301 0ustar00
be32b8cc1eb80419086b4b282acf6d4b.json000044400000011136151551433720012152 0ustar00{"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.html000064400000000441151554237330010673 0ustar00

page-no-separators.html000064400000001535151554237330011155 0ustar00
single-no-separators.html000064400000002655151554237330011526 0ustar00
pages/vc-welcome/index.php000064400000004102151554634300011527 0ustar00

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.php000064400000004274151554634300013052 0ustar00

', '', '', '' ); ?>

', '' ); ?>

pages/vc-welcome/vc-faq.php000064400000015061151554634300011603 0ustar00

kb.wpbakery.com' ); ?>

pages/vc-welcome/vc-welcome.php000064400000001305151554634300012463 0ustar00

Thank you for choosing WPBakery Page Builder,
Michael M, CEO at WPBakery

pages/vc-settings/tab-vc-roles.php000064400000007412151554634300013132 0ustar00getSlug() ) ); $editable_roles = get_editable_roles(); require_once vc_path_dir( 'SETTINGS_DIR', 'class-vc-roles.php' ); $vc_role = new Vc_Roles(); ?>

$details ) : $name = translate_user_role( $details['name'] ); $unique_id = 'vc_role-' . $role; $valid_roles = array(); foreach ( $vc_role->getParts() as $part ) { if ( $vc_role->hasRoleCapability( $role, $vc_role->getPartCapability( $part ) ) ) { $valid_roles[] = $part; } } if ( count( $valid_roles ) > 0 ) : ?>

$part, 'role' => $role, 'vc_role' => $vc_role, ) ); } ?>
pages/vc-settings/tab.php000064400000012171151554634300011400 0ustar00getSlug() ) ); $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() ) : ?>

> getOptionGroup() . '_' . $tab ); ?> page() . '_' . $tab ); ?>

isActivated() ) : ?>


spinner

', '' ); ?>


spinner

', '' ); ?>

pages/vc-settings/default-template-post-type.tpl.php000064400000003073151554634300016630 0ustar00
labels->name : $post_type[0] ); ?>
pages/vc-settings/index.php000064400000000642151554634300011741 0ustar00

$active_page->getSlug(), 'tabs' => $pages, ) ); ?> render(); ?>
pages/vc-settings/vc-automapper.php000064400000000666151554634300013423 0ustar00 <> window.vcAdminNonce = ''; >
renderHtml(); ?>
pages/partials/_settings_tabs.php000064400000000723151554634300013213 0ustar00 pages/partials/_tabs.php000064400000001001151554634300011261 0ustar00 pages/partials/vc-roles-parts/_post_settings.tpl.php000064400000001251151554634300016723 0ustar00 $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.php000064400000001402151554634300015501 0ustar00 $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.php000064400000001207151554634300015777 0ustar00 $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.php000064400000001317151554634300016454 0ustar00 $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.php000064400000001400151554634300016010 0ustar00 $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.php000064400000015470151554634300014774 0ustar00

$categories, ) ) ?> > >
renderIcon( $cap ); ?>
' . esc_html( $cap['description'] ) . '' : ''; ?>
pages/partials/vc-roles-parts/_post_types.tpl.php000064400000001564151554634300016236 0ustar00 $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.php000064400000001705151554634300015662 0ustar00getTabs() 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.php000064400000001464151554634300016761 0ustar00 $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.php000064400000001307151554634300017205 0ustar00inlineEnabled() ) { /** @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.php000064400000002405151554634300016175 0ustar00 $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.php000064400000001164151554634300017206 0ustar00 $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.php000064400000003777151554634300012150 0ustar00getShortcode(), $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.php000064400000011516151554634300013276 0ustar00getShortcode(), $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 .= '
'; return $output; shortcodes/vc_tab.php000064400000001532151554634300010677 0ustar00getShortcode(), $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.php000064400000003466151554634300012156 0ustar00getShortcode(), $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.php000064400000002746151554634300012321 0ustar00getShortcode(), $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.php000064400000011370151554634300010741 0ustar00getShortcode(), $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.php000064400000002053151554634300011735 0ustar00getShortcode(), $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.php000064400000011353151554634300012127 0ustar00getShortcode(), $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\');'; $wrapper .= $template; $wrapper .= '
'; return $wrapper; shortcodes/vc_wp_meta.php000064400000001762151554634300011572 0ustar00getShortcode(), $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.php000064400000002727151554634300011245 0ustar00 '', '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.php000064400000001114151554634300012602 0ustar00 '', '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.php000064400000012340151554634300012440 0ustar00getShortcode(), $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.php000064400000002113151554634300012067 0ustar00getShortcode(), $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.php000064400000002702151554634300011446 0ustar00getShortcode(), $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 = '
'; $type = 'WP_Widget_RSS'; $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_tta_pageable_section.php000064400000002360151554634300014265 0ustar00getShortcode(), $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.php000064400000002040151554634300013031 0ustar00getShortcode(), $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_Nav_Menu_Widget'; $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/rev_slider_vc.php000064400000001526151554634300012272 0ustar00getShortcode(), $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.php000064400000003621151554634300012274 0ustar00getShortcode(), $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.php000064400000002327151554634300012075 0ustar00getShortcode(), $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.php000064400000002037151554634300012114 0ustar00getShortcode(), $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.php000064400000004137151554634300011066 0ustar00getShortcode(), $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 .= ''; $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.php000064400000003626151554634300011432 0ustar00getShortcode(), $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.php000064400000001776151554634300012422 0ustar00getShortcode(), $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.php000064400000002223151554634300014250 0ustar00 '', // 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.php000064400000001552151554634300013313 0ustar00getShortcode(), $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 = ''; } $output = ''; if ( strlen( $key ) ) { $output .= '
'; $output .= $label_html; $output .= '{{ post_meta_value:' . esc_attr( $key ) . ' }}'; $output .= '
'; } return $output; shortcodes/vc_empty_space.php000064400000002601151554634300012440 0ustar00getShortcode(), $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 .= '
getShortcode(), $atts ); extract( $atts ); if ( '' === $link ) { return null; } $el_class = $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation ); $video_w = 500; $video_h = $video_w / 1.61; // 1.61 golden ratio /** @var WP_Embed $wp_embed */ global $wp_embed; $embed = ''; if ( is_object( $wp_embed ) ) { $embed = $wp_embed->run_shortcode( '[embed width="' . $video_w . '"' . $video_h . ']' . $link . '[/embed]' ); } $el_classes = array( 'wpb_video_widget', 'wpb_content_element', 'vc_clearfix', $el_class, vc_shortcode_custom_css_class( $css, ' ' ), 'vc_video-aspect-ratio-' . esc_attr( $el_aspect ), 'vc_video-el-width-' . esc_attr( $el_width ), 'vc_video-align-' . esc_attr( $align ), ); $css_class = implode( ' ', $el_classes ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $css_class, $this->getShortcode(), $atts ); $wrapper_attributes = array(); if ( ! empty( $el_id ) ) { $wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"'; } $output = '
' . wpb_widget_title( array( 'title' => $title, 'extraclass' => 'wpb_video_heading', ) ) . '
' . $embed . '
'; return $output; shortcodes/vc_accordion_tab.php000064400000001775151554634300012731 0ustar00getShortcode(), $atts ); extract( $atts ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_accordion_section group', $this->settings['base'], $atts ); $output = '

' . $title . '

' . ( ( '' === trim( $content ) ) ? esc_html__( 'Empty section. Edit page to add content here.', 'js_composer' ) : wpb_js_remove_wpautop( $content ) ) . '
'; return $output; shortcodes/vc_progress_bar.php000064400000007640151554634300012627 0ustar00getShortcode(), $atts ); $atts = $this->convertAttributesToNewProgressBar( $atts ); extract( $atts ); wp_enqueue_script( 'vc_waypoints' ); $el_class = $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation ); $bar_options = array(); $options = explode( ',', $options ); if ( in_array( 'animated', $options, true ) ) { $bar_options[] = 'animated'; } if ( in_array( 'striped', $options, true ) ) { $bar_options[] = 'striped'; } if ( 'custom' === $bgcolor && '' !== $custombgcolor ) { $custombgcolor = ' style="' . vc_get_css_color( 'background-color', $custombgcolor ) . '"'; if ( '' !== $customtxtcolor ) { $customtxtcolor = ' style="' . vc_get_css_color( 'color', $customtxtcolor ) . '"'; } $bgcolor = ''; } else { $custombgcolor = ''; $customtxtcolor = ''; $bgcolor = 'vc_progress-bar-color-' . esc_attr( $bgcolor ); $el_class .= ' ' . $bgcolor; } $class_to_filter = 'vc_progress_bar wpb_content_element'; $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 = '
'; $output .= wpb_widget_title( array( 'title' => $title, 'extraclass' => 'wpb_progress_bar_heading', ) ); $values = (array) vc_param_group_parse_atts( $values ); $max_value = 0.0; $graph_lines_data = array(); foreach ( $values as $data ) { $new_line = $data; $new_line['value'] = isset( $data['value'] ) ? $data['value'] : 0; $new_line['label'] = isset( $data['label'] ) ? $data['label'] : ''; $new_line['bgcolor'] = isset( $data['color'] ) && 'custom' !== $data['color'] ? '' : $custombgcolor; $new_line['txtcolor'] = isset( $data['color'] ) && 'custom' !== $data['color'] ? '' : $customtxtcolor; if ( isset( $data['customcolor'] ) && ( ! isset( $data['color'] ) || 'custom' === $data['color'] ) ) { $new_line['bgcolor'] = ' style="background-color: ' . esc_attr( $data['customcolor'] ) . ';"'; } if ( isset( $data['customtxtcolor'] ) && ( ! isset( $data['color'] ) || 'custom' === $data['color'] ) ) { $new_line['txtcolor'] = ' style="color: ' . esc_attr( $data['customtxtcolor'] ) . ';"'; } if ( $max_value < (float) $new_line['value'] ) { $max_value = $new_line['value']; } $graph_lines_data[] = $new_line; } foreach ( $graph_lines_data as $line ) { $unit = ( '' !== $units ) ? ' ' . $line['value'] . $units . '' : ''; $output .= '
'; $output .= '' . $line['label'] . $unit . ''; if ( $max_value > 100.00 ) { $percentage_value = (float) $line['value'] > 0 && $max_value > 100.00 ? round( (float) $line['value'] / $max_value * 100, 4 ) : 0; } else { $percentage_value = $line['value']; } $output .= ''; $output .= '
'; } $output .= '
'; return $output; shortcodes/vc_wp_search.php000064400000001770151554634300012110 0ustar00getShortcode(), $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/vc_items.php000064400000001320151554634300011245 0ustar00getShortcode(), $atts ); extract( $atts ); $el_class = $this->getExtraClass( $el_class ); $el_class .= ( ! empty( $el_class ) ? ' ' : '' ) . 'wpb_item items_container'; $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $el_class, $this->settings['base'], $atts ); $output = '
' . wpb_js_remove_wpautop( $content ) . '
'; return $output; shortcodes/vc_gitem_zone_c.php000064400000001530151554634300012571 0ustar00getShortcode(), $atts ); extract( $atts ); extract( $atts ); if ( 'no' === $render ) { echo ''; return; } $css_class = 'vc_gitem-zone' . ( strlen( $this->zone_name ) ? ' vc_gitem-zone-' . $this->zone_name : '' ) . $this->getExtraClass( $el_class ); $css_class_mini = 'vc_gitem-zone-mini'; $css_class .= vc_shortcode_custom_css_class( $css, ' ' ); $output = ''; $output .= '
' . do_shortcode( $content ) . '
'; echo $output; shortcodes/vc_gitem_post_categories.php000064400000000507151554634300014511 0ustar00getShortcode(), $atts ); return '{{ post_categories:' . http_build_query( array( 'atts' => $atts ) ) . ' }}'; shortcodes/vc_custom_heading.php000064400000005475151554634300013134 0ustar00getAttributes * @var $google_fonts_data - returned from $this->getAttributes * Shortcode class * @var WPBakeryShortCode_Vc_Custom_heading $this */ $source = $text = $link = $google_fonts = $font_container = $el_id = $el_class = $css = $css_animation = $font_container_data = $google_fonts_data = array(); // This is needed to extract $font_container_data and $google_fonts_data extract( $this->getAttributes( $atts ) ); $atts = vc_map_get_attributes( $this->getShortcode(), $atts ); extract( $atts ); /** * @var $css_class */ extract( $this->getStyles( $el_class . $this->getCSSAnimation( $css_animation ), $css, $google_fonts_data, $font_container_data, $atts ) ); $settings = get_option( 'wpb_js_google_fonts_subsets' ); if ( is_array( $settings ) && ! empty( $settings ) ) { $subsets = '&subset=' . implode( ',', $settings ); } else { $subsets = ''; } if ( ( ! isset( $atts['use_theme_fonts'] ) || 'yes' !== $atts['use_theme_fonts'] ) && isset( $google_fonts_data['values']['font_family'] ) ) { wp_enqueue_style( 'vc_google_fonts_' . vc_build_safe_css_class( $google_fonts_data['values']['font_family'] ), 'https://fonts.googleapis.com/css?family=' . $google_fonts_data['values']['font_family'] . $subsets, [], WPB_VC_VERSION ); } if ( ! empty( $styles ) ) { $style = 'style="' . esc_attr( implode( ';', $styles ) ) . '"'; } else { $style = ''; } if ( 'post_title' === $source ) { $text = get_the_title( get_the_ID() ); } if ( ! empty( $link ) ) { $link = vc_build_link( $link ); $text = '' . $text . ''; } $wrapper_attributes = array(); if ( ! empty( $el_id ) ) { $wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"'; } $output = ''; if ( apply_filters( 'vc_custom_heading_template_use_wrapper', false ) ) { $output .= '
'; $output .= '<' . $font_container_data['values']['tag'] . ' ' . $style . ' >'; $output .= $text; $output .= ''; $output .= '
'; } else { $output .= '<' . $font_container_data['values']['tag'] . ' ' . $style . ' class="' . esc_attr( $css_class ) . '" ' . implode( ' ', $wrapper_attributes ) . '>'; $output .= $text; $output .= ''; } return $output; shortcodes/vc_button2.php000064400000003147151554634300011532 0ustar00getShortcode(), $atts ); extract( $atts ); $class = 'vc_btn'; // parse link $link = ( '||' === $link ) ? '' : $link; $link = vc_build_link( $link ); $a_href = $link['url']; $a_title = $link['title']; $a_target = $link['target']; $a_rel = $link['rel']; if ( ! empty( $a_rel ) ) { $a_rel = ' rel="' . esc_attr( trim( $a_rel ) ) . '"'; } $class .= ( '' !== $color ) ? ( ' vc_btn_' . $color . ' vc_btn-' . $color ) : ''; $class .= ( '' !== $size ) ? ( ' vc_btn_' . $size . ' vc_btn-' . $size ) : ''; $class .= ( '' !== $style ) ? ' vc_btn_' . $style : ''; $el_class = $this->getExtraClass( $el_class ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, ' ' . $class . $el_class, $this->settings['base'], $atts ); $wrapper_css_class = 'vc_button-2-wrapper'; if ( $align ) { $wrapper_css_class .= ' vc_button-2-align-' . $align; } $output = ''; $output .= ' '; return $output; shortcodes/vc_line_chart.php000064400000012017151554634300012241 0ustar00getShortcode(), $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'], ), ); 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_line_chart' ); $class_to_filter = 'vc_chart vc_line-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 ) ) . '"'; } $values = (array) vc_param_group_parse_atts( $values ); $data = array( 'labels' => explode( ';', trim( $x_values, ';' ) ), 'datasets' => array(), ); foreach ( $values as $k => $v ) { if ( 'custom' === $style ) { if ( ! empty( $v['custom_color'] ) ) { $color = $v['custom_color']; $highlight = vc_colorCreator( $v['custom_color'], - 10 ); // 10% darker } else { $color = 'grey'; $highlight = 'grey'; } } else { $color = isset( $colors[ $style ]['normal'][ $v['color'] ] ) ? $colors[ $style ]['normal'][ $v['color'] ] : $v['normal']['color']; $highlight = isset( $colors[ $style ]['active'][ $v['color'] ] ) ? $colors[ $style ]['active'][ $v['color'] ] : $v['active']['color']; } // don't use gradients for lines if ( 'line' === $type ) { $color = is_array( $color ) ? end( $color ) : $color; $highlight = is_array( $highlight ) ? end( $highlight ) : $highlight; $rgb = vc_hex2rgb( $color ); $fill_color = 'rgba(' . $rgb[0] . ', ' . $rgb[1] . ', ' . $rgb[2] . ', 0.1)'; } else { $fill_color = $color; } if ( 'modern' === $style ) { $stroke_color = is_array( $color ) ? end( $color ) : $color; $highlight_stroke_color = vc_colorCreator( $stroke_color, - 7 ); } else { $stroke_color = $color; $highlight_stroke_color = $highlight; } $data['datasets'][] = array( 'label' => isset( $v['title'] ) ? $v['title'] : '', 'borderColor' => $stroke_color, 'backgroundColor' => ( 'modern' === $style ? [ $stroke_color, $highlight_stroke_color, ] : $stroke_color ), 'data' => explode( ';', isset( $v['y_values'] ) ? trim( $v['y_values'], ';' ) : '' ), ); } $options[] = 'data-vc-type="' . esc_attr( $type ) . '"'; $options[] = 'data-vc-values="' . htmlentities( wp_json_encode( $data ) ) . '"'; if ( '' !== $title ) { $title = '

' . $title . '

'; } $canvas_html = ''; if ( ! empty( $el_id ) ) { $options[] = 'id="' . esc_attr( $el_id ) . '"'; } $output = '
' . $title . '
' . $canvas_html . '
' . '
' . ' '; return $output; shortcodes/vc_tta_global.php000064400000003271151554634300012243 0ustar00getShortcode(), $atts ); $this->resetVariables( $atts, $content ); extract( $atts ); $this->setGlobalTtaInfo(); $this->enqueueTtaStyles(); $this->enqueueTtaScript(); // It is required to be before tabs-list-top/left/bottom/right for tabs/tours $prepareContent = $this->getTemplateVariable( 'content' ); $class_to_filter = $this->getTtaGeneralClasses(); $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getCSSAnimation( $css_animation ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); $output = '
getWrapperAttributes() . '>'; $output .= $this->getTemplateVariable( 'title' ); $output .= '
'; $output .= $this->getTemplateVariable( 'tabs-list-top' ); $output .= $this->getTemplateVariable( 'tabs-list-left' ); $output .= '
'; $output .= $this->getTemplateVariable( 'pagination-top' ); $output .= '
'; $output .= $prepareContent; $output .= '
'; $output .= $this->getTemplateVariable( 'pagination-bottom' ); $output .= '
'; $output .= $this->getTemplateVariable( 'tabs-list-bottom' ); $output .= $this->getTemplateVariable( 'tabs-list-right' ); $output .= '
'; $output .= '
'; return $output; shortcodes/vc_separator.php000064400000002145151554634300012132 0ustar00getShortcode(), $atts ); extract( $atts ); $class_to_filter = ''; $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 ); $vc_text_separator = wpbakery()->getShortCode( 'vc_text_separator' ); $atts['el_class'] = $css_class; $atts['layout'] = 'separator_no_text'; if ( is_object( $vc_text_separator ) ) { return $vc_text_separator->render( $atts ); } shortcodes/vc_column.php000064400000006314151554634300011431 0ustar00getShortcode(), $atts ); extract( $atts ); wp_enqueue_script( 'wpb_composer_front_js' ); $width = wpb_translateColumnWidthToSpan( $width ); $width = vc_column_offset_class_merge( $offset, $width ); $css_classes = array( $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation ), 'wpb_column', 'vc_column_container', $width, ); if ( vc_shortcode_custom_css_has_property( $css, array( 'border', 'background', ) ) || $video_bg || $parallax ) { $css_classes[] = 'vc_col-has-fill'; } $wrapper_attributes = array(); $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( $css_classes ) ), $this->settings['base'], $atts ) ); $wrapper_attributes[] = 'class="' . esc_attr( trim( $css_class ) ) . '"'; if ( ! empty( $el_id ) ) { $wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"'; } $output .= '
'; $innerColumnClass = 'vc_column-inner ' . esc_attr( trim( vc_shortcode_custom_css_class( $css ) ) ); $output .= '
'; $output .= '
'; $output .= wpb_js_remove_wpautop( $content ); $output .= '
'; $output .= '
'; $output .= '
'; echo $output; shortcodes/vc_gitem_post_author.php000064400000003367151554634300013675 0ustar00getAttributes( $atts ); $styles = $this->getStyles( $atts['el_class'], $atts['css'], $atts['google_fonts_data'], $atts['font_container_data'], $atts ); if ( ! empty( $atts['link'] ) ) { $atts['link'] = 'post_author'; $link_html = vc_gitem_create_link( $atts ); } $use_custom_fonts = isset( $atts['use_custom_fonts'] ) && 'yes' === $atts['use_custom_fonts']; $settings = get_option( 'wpb_js_google_fonts_subsets' ); $subsets = ''; if ( is_array( $settings ) && ! empty( $settings ) ) { $subsets = '&subset=' . implode( ',', $settings ); } $content = '{{ post_author }}'; if ( ! empty( $link_html ) ) { $content = '<' . $link_html . '>' . $content . ''; } $css_class = array( $styles['css_class'], 'vc_gitem-post-data', ); $css_class[] = 'vc_gitem-post-data-source-post_author'; if ( $use_custom_fonts && ! empty( $atts['google_fonts_data'] ) && isset( $atts['google_fonts_data']['values']['font_family'] ) ) { wp_enqueue_style( 'vc_google_fonts_' . vc_build_safe_css_class( $atts['google_fonts_data']['values']['font_family'] ), 'https://fonts.googleapis.com/css?family=' . $atts['google_fonts_data']['values']['font_family'] . $subsets, [], WPB_VC_VERSION ); } $output .= '
'; $style = ''; if ( ! empty( $styles['styles'] ) ) { $style = 'style="' . esc_attr( implode( ';', $styles['styles'] ) ) . '"'; } $output .= '<' . $atts['font_container_data']['values']['tag'] . ' ' . $style . ' >'; $output .= $content; $output .= ''; $output .= '
'; return $output; shortcodes/vc_gitem_block.php000064400000001315151554634300012407 0ustar00getShortcode(), $atts ); extract( $atts ); if ( ! empty( $background_color ) ) { $background_color = ' vc_bg-' . $background_color; } $output = '
' . do_shortcode( $content ) . '
'; echo $output; shortcodes/vc_gitem_row.php000064400000001352151554634300012125 0ustar00 '', 'el_class' => '', 'position' => 'top', ), $atts ) ); $css_class = 'vc_gitem_row vc_row' . ( strlen( $el_class ) ? ' ' . $el_class : '' ) . vc_shortcode_custom_css_class( $css, ' ' ) . ( $position ? ' vc_gitem-row-position-' . $position : '' ); if ( ! vc_gitem_has_content( $content ) ) { return; } $output = '
' . do_shortcode( $content ) . '
'; echo $output; shortcodes/vc_raw_html.php000064400000002442151554634300011747 0ustar00getShortcode(), $atts ); extract( $atts ); $content = rawurldecode( base64_decode( wp_strip_all_tags( $content ) ) ); $content = wpb_js_remove_wpautop( apply_filters( 'vc_raw_html_module_content', $content ) ); // template is also used by 'Raw JS' shortcode which doesn't have Design Options if ( ! isset( $css ) ) { $css = ''; } $class_to_filter = 'wpb_raw_code ' . ( ( 'vc_raw_html' === $this->settings['base'] ) ? 'wpb_content_element wpb_raw_html' : 'wpb_raw_js' ); $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 = '
' . $content . '
'; return $output; shortcodes/vc_basic_grid.php000064400000005171151554634300012222 0ustar00post_id = false; $this->items = array(); $css = $el_class = ''; $posts = $filter_terms = array(); $this->buildAtts( $atts, $content ); $css = isset( $atts['css'] ) ? $atts['css'] : ''; $el_class = isset( $atts['el_class'] ) ? $atts['el_class'] : ''; $class_to_filter = 'vc_grid-container vc_clearfix wpb_content_element ' . $this->shortcode; $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 ); wp_enqueue_script( 'lightbox2' ); wp_enqueue_style( 'lightbox2' ); if ( 'true' === $this->atts['btn_add_icon'] ) { vc_icon_element_fonts_enqueue( $this->atts['btn_i_type'] ); } $this->buildGridSettings(); if ( isset( $this->atts['style'] ) && 'pagination' === $this->atts['style'] ) { wp_enqueue_script( 'twbs-pagination' ); } if ( ! empty( $atts['page_id'] ) ) { $this->grid_settings['page_id'] = (int) $atts['page_id']; } $this->enqueueScripts(); $animation = isset( $this->atts['initial_loading_animation'] ) ? $this->atts['initial_loading_animation'] : 'zoomIn'; // Used for preload first page if ( ! vc_is_page_editable() ) { $haystack = array( 'load-more', 'lazy', 'all', ); if ( in_array( $this->atts['style'], $haystack, true ) && in_array( $this->settings['base'], array( 'vc_basic_grid' ), true ) ) { $this->atts['max_items'] = 'all' === $this->atts['style'] || $this->atts['items_per_page'] > $this->atts['max_items'] ? $this->atts['max_items'] : $this->atts['items_per_page']; $this->buildItems(); } } $render = false; if ( ! isset( $this->atts['orderby'] ) || 'rand' !== $this->atts['orderby'] ) { $render = true; } $output = '
pagable_type ) . '-settings="' . esc_attr( wp_json_encode( $this->grid_settings ) ) . '" data-vc-request="' . esc_attr( apply_filters( 'vc_grid_request_url', admin_url( 'admin-ajax.php' ) ) ) . '" data-vc-post-id="' . esc_attr( get_the_ID() ) . '" data-vc-public-nonce="' . esc_attr( vc_generate_nonce( 'vc-public-nonce' ) ) . '"> ' . ( $render ? $this->renderItems() : '' ) . '
'; return $output; shortcodes/vc_toggle.php000064400000003773151554634300011423 0ustar00getShortcode(), $atts ); extract( $atts ); // checking is color inverted $style = str_replace( '_outline', '', $style, $inverted ); /** * @since 4.4 */ $elementClass = array( 'base' => apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'vc_toggle', $this->settings['base'], $atts ), // TODO: check this code, don't know how to get base class names from params 'style' => 'vc_toggle_' . $style, 'color' => ( $color ) ? 'vc_toggle_color_' . $color : '', 'inverted' => ( $inverted ) ? 'vc_toggle_color_inverted' : '', 'size' => ( $size ) ? 'vc_toggle_size_' . $size : '', 'open' => ( 'true' === $open ) ? 'vc_toggle_active' : '', 'extra' => $this->getExtraClass( $el_class ), 'css_animation' => $this->getCSSAnimation( $css_animation ), // TODO: remove getCssAnimation as function in helpers ); $class_to_filter = trim( implode( ' ', $elementClass ) ); $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 ); $heading_output = apply_filters( 'wpb_toggle_heading', $this->getHeading( $atts ), array( 'title' => $title, 'open' => $open, ) ); $output = '
' . $heading_output . '
' . wpb_js_remove_wpautop( apply_filters( 'the_content', $content ), true ) . '
'; return $output; shortcodes/vc_text_separator.php000064400000006300151554634300013173 0ustar00getShortcode(), $atts ); extract( $atts ); $class = 'vc_separator wpb_content_element'; $class .= ( '' !== $title_align ) ? ' vc_' . $title_align : ''; $class .= ( '' !== $el_width ) ? ' vc_sep_width_' . $el_width : ' vc_sep_width_100'; $class .= ( '' !== $style ) ? ' vc_sep_' . $style : ''; $class .= ( '' !== $border_width ) ? ' vc_sep_border_width_' . $border_width : ''; $class .= ( '' !== $align ) ? ' vc_sep_pos_' . $align : ''; $class .= ( 'separator_no_text' === $layout ) ? ' vc_separator_no_text' : ''; if ( '' !== $color && 'custom' !== $color ) { $class .= ' vc_sep_color_' . $color; } if ( 'custom' === $color && '' !== $accent_color ) { if ( 'shadow' === $style ) { $inline_css = vc_get_css_color( 'color', $accent_color ); } else { $inline_css = vc_get_css_color( 'border-color', $accent_color ); } if ( $inline_css ) { $inline_css = ' style="' . esc_attr( $inline_css ) .'"'; } } $class_to_filter = $class; $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 ); $css_class = esc_attr( trim( $css_class ) ); $icon = ''; if ( 'true' === $add_icon ) { vc_icon_element_fonts_enqueue( $i_type ); $icon = $this->getVcIcon( $atts ); } $content = ''; if ( $icon ) { $content = $icon; } if ( '' !== $title && 'separator_no_text' !== $layout ) { $css_class .= ' vc_separator-has-text'; $content .= '

' . $title . '

'; } $wrapper_attributes = array(); if ( ! empty( $el_id ) ) { $wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"'; } $wrapper_attributes_html = implode( ' ', $wrapper_attributes ); $separatorHtml = <<