0byt3m1n1
Path:
/
var
/
www
/
clients
/
client38
/
web37
/
web
/
wp-content
/
plugins
/
us-core
/
config
/
[
Home
]
File: us-builder.php
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Configurations for USBuilder */ /** * Configuring fields for the page settings screen * * @var array */ $page_fields = array( 'params' => array( 'post_title' => array( 'title' => us_translate( 'Title' ), 'type' => 'text', 'std' => '', ), // post_status, post_name etc. ), ); /** * Different templates that are required for the USBuilder to work on the frontend side * * @var array */ $templates = array( 'vc_row' => '[vc_row usbid="{%vc_row%}"][vc_column usbid="{%vc_column%}"]{%content%}[/vc_column][/vc_row]', ); // VC TTA (Tabs/Tour/Accordion) Section ( The sections that are created with a new element ) $vc_tta_section = '[vc_tta_section title="{%title_1%}" usbid="{%vc_tta_section_1%}"]'; $vc_tta_section .= '[vc_column_text usbid="{%vc_column_text%}"]{%vc_column_text_content%}[/vc_column_text]'; $vc_tta_section .= '[/vc_tta_section]'; $vc_tta_section .= '[vc_tta_section title="{%title_2%}" usbid="{%vc_tta_section_2%}"][/vc_tta_section]'; $templates['vc_tta_section'] = $vc_tta_section; /** * Deferred assets for the admin part of the builder * * @var array */ $deferred_assets = array( // A set of minimal assets for initializing a code editor (Order is important here) 'codeEditor' => array( 'wp-codemirror', 'csslint', 'esprima', 'code-editor', ), ); /** * List of usof field types for which to use throttle * Note: Types of fields for which a large interval of recording changes in history is used, * this is necessary for fields that have a high frequency of changes, for example, * when entering text in a text field. * * @var array */ $use_throttle_for_fields = array( 'editor', 'color', 'text', 'textarea', ); /** * List of usof field types for which the update interval is used * Note: Field types that use spacing when the preview refreshes are required * for fields that have a high rate of change, such as when choosing a color. * * @var array */ $use_long_update_for_fields = array( 'color', 'design_options', ); /** * @var array */ return array( 'deferred_assets' => $deferred_assets, 'page_fields' => $page_fields, 'templates' => $templates, // Undo/Redo settings 'use_long_update_for_fields' => $use_long_update_for_fields, 'use_throttle_for_fields' => $use_throttle_for_fields, // Maximum size of changes in the data history 'max_data_history' => 100, );