Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/builder
File: functions.php
[11000] Fix | Delete
$shortcuts = array(
[11001] Fix | Delete
'page' => array(
[11002] Fix | Delete
'page_title' => array(
[11003] Fix | Delete
'title' => esc_html__( 'Page Shortcuts', 'et_builder' ),
[11004] Fix | Delete
'on' => array(
[11005] Fix | Delete
'fb',
[11006] Fix | Delete
'bb',
[11007] Fix | Delete
),
[11008] Fix | Delete
),
[11009] Fix | Delete
'undo' => array(
[11010] Fix | Delete
'kbd' => array( 'super', 'z' ),
[11011] Fix | Delete
'desc' => esc_html__( 'Undo', 'et_builder' ),
[11012] Fix | Delete
'on' => array(
[11013] Fix | Delete
'fb',
[11014] Fix | Delete
'bb',
[11015] Fix | Delete
),
[11016] Fix | Delete
),
[11017] Fix | Delete
'redo' => array(
[11018] Fix | Delete
'kbd' => array( 'super', 'y' ),
[11019] Fix | Delete
'desc' => esc_html__( 'Redo', 'et_builder' ),
[11020] Fix | Delete
'on' => array(
[11021] Fix | Delete
'fb',
[11022] Fix | Delete
'bb',
[11023] Fix | Delete
),
[11024] Fix | Delete
),
[11025] Fix | Delete
'save' => array(
[11026] Fix | Delete
'kbd' => array( 'super', 's' ),
[11027] Fix | Delete
'desc' => esc_html__( 'Save Page', 'et_builder' ),
[11028] Fix | Delete
'on' => array(
[11029] Fix | Delete
'fb',
[11030] Fix | Delete
'bb',
[11031] Fix | Delete
),
[11032] Fix | Delete
),
[11033] Fix | Delete
'save_as_draft' => array(
[11034] Fix | Delete
'kbd' => array( 'super', 'shift', 's' ),
[11035] Fix | Delete
'desc' => esc_html__( 'Save Page As Draft', 'et_builder' ),
[11036] Fix | Delete
'on' => array(
[11037] Fix | Delete
'fb',
[11038] Fix | Delete
'bb',
[11039] Fix | Delete
),
[11040] Fix | Delete
),
[11041] Fix | Delete
'exit' => array(
[11042] Fix | Delete
'kbd' => array( 'super', 'e' ),
[11043] Fix | Delete
'desc' => esc_html__( 'Exit Visual Builder', 'et_builder' ),
[11044] Fix | Delete
'on' => array(
[11045] Fix | Delete
'fb',
[11046] Fix | Delete
),
[11047] Fix | Delete
),
[11048] Fix | Delete
'exit_to_backend_builder' => array(
[11049] Fix | Delete
'kbd' => array( 'super', 'shift', 'e' ),
[11050] Fix | Delete
'desc' => esc_html__( 'Exit To Backend Builder', 'et_builder' ),
[11051] Fix | Delete
'on' => array(
[11052] Fix | Delete
'fb',
[11053] Fix | Delete
),
[11054] Fix | Delete
),
[11055] Fix | Delete
'toggle_settings_bar' => array(
[11056] Fix | Delete
'kbd' => array( 't' ),
[11057] Fix | Delete
'desc' => esc_html__( 'Toggle Settings Bar', 'et_builder' ),
[11058] Fix | Delete
'on' => array(
[11059] Fix | Delete
'fb',
[11060] Fix | Delete
),
[11061] Fix | Delete
),
[11062] Fix | Delete
'open_page_settings' => array(
[11063] Fix | Delete
'kbd' => array( 'o' ),
[11064] Fix | Delete
'desc' => esc_html__( 'Open Page Settings', 'et_builder' ),
[11065] Fix | Delete
'on' => array(
[11066] Fix | Delete
'fb',
[11067] Fix | Delete
'bb',
[11068] Fix | Delete
),
[11069] Fix | Delete
),
[11070] Fix | Delete
'open_history' => array(
[11071] Fix | Delete
'kbd' => array( 'h' ),
[11072] Fix | Delete
'desc' => esc_html__( 'Open History Window', 'et_builder' ),
[11073] Fix | Delete
'on' => array(
[11074] Fix | Delete
'fb',
[11075] Fix | Delete
'bb',
[11076] Fix | Delete
),
[11077] Fix | Delete
),
[11078] Fix | Delete
'open_portability' => array(
[11079] Fix | Delete
'kbd' => array( 'p' ),
[11080] Fix | Delete
'desc' => esc_html__( 'Open Portability Window', 'et_builder' ),
[11081] Fix | Delete
'on' => array(
[11082] Fix | Delete
'fb',
[11083] Fix | Delete
'bb',
[11084] Fix | Delete
),
[11085] Fix | Delete
),
[11086] Fix | Delete
'zoom_in' => array(
[11087] Fix | Delete
'kbd' => array( 'super', '+' ),
[11088] Fix | Delete
'desc' => esc_html__( 'Responsive Zoom In', 'et_builder' ),
[11089] Fix | Delete
'on' => array(
[11090] Fix | Delete
'fb',
[11091] Fix | Delete
),
[11092] Fix | Delete
),
[11093] Fix | Delete
'zoom_out' => array(
[11094] Fix | Delete
'kbd' => array( 'super', '-' ),
[11095] Fix | Delete
'desc' => esc_html__( 'Responsive Zoom Out', 'et_builder' ),
[11096] Fix | Delete
'on' => array(
[11097] Fix | Delete
'fb',
[11098] Fix | Delete
),
[11099] Fix | Delete
),
[11100] Fix | Delete
'wireframe' => array(
[11101] Fix | Delete
'kbd' => array( 'shift', 'w' ),
[11102] Fix | Delete
'desc' => esc_html__( 'Wireframe Mode', 'et_builder' ),
[11103] Fix | Delete
'on' => array(
[11104] Fix | Delete
'fb',
[11105] Fix | Delete
),
[11106] Fix | Delete
),
[11107] Fix | Delete
'click_mode' => array(
[11108] Fix | Delete
'kbd' => array( 'super', 'shift', 'c' ),
[11109] Fix | Delete
'desc' => esc_html__( 'Click Mode', 'et_builder' ),
[11110] Fix | Delete
'on' => array(
[11111] Fix | Delete
'fb',
[11112] Fix | Delete
),
[11113] Fix | Delete
),
[11114] Fix | Delete
'grid_mode' => array(
[11115] Fix | Delete
'kbd' => array( 'super', 'shift', 'g' ),
[11116] Fix | Delete
'desc' => esc_html__( 'Grid Mode', 'et_builder' ),
[11117] Fix | Delete
'on' => array(
[11118] Fix | Delete
'fb',
[11119] Fix | Delete
),
[11120] Fix | Delete
),
[11121] Fix | Delete
'hover_mode' => array(
[11122] Fix | Delete
'kbd' => array( 'super', 'shift', 'h' ),
[11123] Fix | Delete
'desc' => esc_html__( 'Hover Mode', 'et_builder' ),
[11124] Fix | Delete
'on' => array(
[11125] Fix | Delete
'fb',
[11126] Fix | Delete
),
[11127] Fix | Delete
),
[11128] Fix | Delete
'help' => array(
[11129] Fix | Delete
'kbd' => array( '?' ),
[11130] Fix | Delete
'desc' => esc_html__( 'List All Shortcuts', 'et_builder' ),
[11131] Fix | Delete
'on' => array(
[11132] Fix | Delete
'fb',
[11133] Fix | Delete
'bb',
[11134] Fix | Delete
),
[11135] Fix | Delete
),
[11136] Fix | Delete
),
[11137] Fix | Delete
'inline' => array(
[11138] Fix | Delete
'inline_title' => array(
[11139] Fix | Delete
'title' => esc_html__( 'Inline Editor Shortcuts', 'et_builder' ),
[11140] Fix | Delete
'on' => array(
[11141] Fix | Delete
'fb',
[11142] Fix | Delete
),
[11143] Fix | Delete
),
[11144] Fix | Delete
'escape' => array(
[11145] Fix | Delete
'kbd' => array( 'esc' ),
[11146] Fix | Delete
'desc' => esc_html__( 'Exit Inline Editor', 'et_builder' ),
[11147] Fix | Delete
'on' => array(
[11148] Fix | Delete
'fb',
[11149] Fix | Delete
),
[11150] Fix | Delete
),
[11151] Fix | Delete
),
[11152] Fix | Delete
'module' => array(
[11153] Fix | Delete
'module_title' => array(
[11154] Fix | Delete
'title' => esc_html__( 'Module Shortcuts', 'et_builder' ),
[11155] Fix | Delete
'on' => array(
[11156] Fix | Delete
'fb',
[11157] Fix | Delete
'bb',
[11158] Fix | Delete
),
[11159] Fix | Delete
),
[11160] Fix | Delete
'module_copy' => array(
[11161] Fix | Delete
'kbd' => array( 'super', 'c' ),
[11162] Fix | Delete
'desc' => esc_html__( 'Copy Module', 'et_builder' ),
[11163] Fix | Delete
'on' => array(
[11164] Fix | Delete
'fb',
[11165] Fix | Delete
'bb',
[11166] Fix | Delete
),
[11167] Fix | Delete
),
[11168] Fix | Delete
'module_cut' => array(
[11169] Fix | Delete
'kbd' => array( 'super', 'x' ),
[11170] Fix | Delete
'desc' => esc_html__( 'Cut Module', 'et_builder' ),
[11171] Fix | Delete
'on' => array(
[11172] Fix | Delete
'fb',
[11173] Fix | Delete
'bb',
[11174] Fix | Delete
),
[11175] Fix | Delete
),
[11176] Fix | Delete
'module_paste' => array(
[11177] Fix | Delete
'kbd' => array( 'super', 'v' ),
[11178] Fix | Delete
'desc' => esc_html__( 'Paste Module', 'et_builder' ),
[11179] Fix | Delete
'on' => array(
[11180] Fix | Delete
'fb',
[11181] Fix | Delete
'bb',
[11182] Fix | Delete
),
[11183] Fix | Delete
),
[11184] Fix | Delete
'module_copy_styles' => array(
[11185] Fix | Delete
'kbd' => array( 'super', 'alt', 'c' ),
[11186] Fix | Delete
'desc' => esc_html__( 'Copy Module Styles', 'et_builder' ),
[11187] Fix | Delete
'on' => array(
[11188] Fix | Delete
'fb',
[11189] Fix | Delete
),
[11190] Fix | Delete
),
[11191] Fix | Delete
'module_paste_styles' => array(
[11192] Fix | Delete
'kbd' => array( 'super', 'alt', 'v' ),
[11193] Fix | Delete
'desc' => esc_html__( 'Paste Module Styles', 'et_builder' ),
[11194] Fix | Delete
'on' => array(
[11195] Fix | Delete
'fb',
[11196] Fix | Delete
),
[11197] Fix | Delete
),
[11198] Fix | Delete
'module_reset_styles' => array(
[11199] Fix | Delete
'kbd' => array( 'super', 'alt', 'r' ),
[11200] Fix | Delete
'desc' => esc_html__( 'Reset Module Styles', 'et_builder' ),
[11201] Fix | Delete
'on' => array(
[11202] Fix | Delete
'fb',
[11203] Fix | Delete
),
[11204] Fix | Delete
),
[11205] Fix | Delete
'module_lock' => array(
[11206] Fix | Delete
'kbd' => array( 'super', 'shift', 'l' ),
[11207] Fix | Delete
'desc' => esc_html__( 'Lock Module', 'et_builder' ),
[11208] Fix | Delete
'on' => array(
[11209] Fix | Delete
'fb',
[11210] Fix | Delete
'bb',
[11211] Fix | Delete
),
[11212] Fix | Delete
),
[11213] Fix | Delete
'module_disable' => array(
[11214] Fix | Delete
'kbd' => array( 'super', 'shift', 'd' ),
[11215] Fix | Delete
'desc' => esc_html__( 'Disable Module', 'et_builder' ),
[11216] Fix | Delete
'on' => array(
[11217] Fix | Delete
'fb',
[11218] Fix | Delete
'bb',
[11219] Fix | Delete
),
[11220] Fix | Delete
),
[11221] Fix | Delete
'drag_auto_copy' => array(
[11222] Fix | Delete
'kbd' => array( 'alt', 'module move' ),
[11223] Fix | Delete
'desc' => esc_html__( 'Move and copy module into dropped location', 'et_builder' ),
[11224] Fix | Delete
'on' => array(
[11225] Fix | Delete
'fb',
[11226] Fix | Delete
),
[11227] Fix | Delete
),
[11228] Fix | Delete
'column_change_structure' => array(
[11229] Fix | Delete
'kbd' => array( 'c', array( '1', '2', '3', '4', '5', '...' ) ),
[11230] Fix | Delete
'desc' => esc_html__( 'Change Column Structure', 'et_builder' ),
[11231] Fix | Delete
'on' => array(
[11232] Fix | Delete
'fb',
[11233] Fix | Delete
'bb',
[11234] Fix | Delete
),
[11235] Fix | Delete
),
[11236] Fix | Delete
'row_make_fullwidth' => array(
[11237] Fix | Delete
'kbd' => array( 'r', 'f' ),
[11238] Fix | Delete
'desc' => esc_html__( 'Make Row Fullwidth', 'et_builder' ),
[11239] Fix | Delete
'on' => array(
[11240] Fix | Delete
'fb',
[11241] Fix | Delete
),
[11242] Fix | Delete
),
[11243] Fix | Delete
'row_edit_gutter' => array(
[11244] Fix | Delete
'kbd' => array( 'g', array( '1', '2', '3', '4' ) ),
[11245] Fix | Delete
'desc' => esc_html__( 'Change Gutter Width', 'et_builder' ),
[11246] Fix | Delete
'on' => array(
[11247] Fix | Delete
'fb',
[11248] Fix | Delete
),
[11249] Fix | Delete
),
[11250] Fix | Delete
'add_new_row' => array(
[11251] Fix | Delete
'kbd' => array( 'r', array( '1', '2', '3', '4', '5', '...' ) ),
[11252] Fix | Delete
'desc' => esc_html__( 'Add New Row', 'et_builder' ),
[11253] Fix | Delete
'on' => array(
[11254] Fix | Delete
'fb',
[11255] Fix | Delete
'bb',
[11256] Fix | Delete
),
[11257] Fix | Delete
),
[11258] Fix | Delete
'add_new_section' => array(
[11259] Fix | Delete
'kbd' => array( 's', array( '1', '2', '3' ) ),
[11260] Fix | Delete
'desc' => esc_html__( 'Add New Section', 'et_builder' ),
[11261] Fix | Delete
'on' => array(
[11262] Fix | Delete
'fb',
[11263] Fix | Delete
'bb',
[11264] Fix | Delete
),
[11265] Fix | Delete
),
[11266] Fix | Delete
'resize_padding_auto_opposite' => array(
[11267] Fix | Delete
'kbd' => array( 'shift', 'Drag Padding' ),
[11268] Fix | Delete
'desc' => esc_html__( 'Restrict padding to 10px increments', 'et_builder' ),
[11269] Fix | Delete
'on' => array(
[11270] Fix | Delete
'fb',
[11271] Fix | Delete
),
[11272] Fix | Delete
),
[11273] Fix | Delete
'resize_padding_limited' => array(
[11274] Fix | Delete
'kbd' => array( 'alt', 'Drag Padding' ),
[11275] Fix | Delete
'desc' => esc_html__( 'Padding limited to opposing value', 'et_builder' ),
[11276] Fix | Delete
'on' => array(
[11277] Fix | Delete
'fb',
[11278] Fix | Delete
),
[11279] Fix | Delete
),
[11280] Fix | Delete
'resize_padding_10' => array(
[11281] Fix | Delete
'kbd' => array( 'shift', 'alt', 'Drag Padding' ),
[11282] Fix | Delete
'desc' => esc_html__( 'Mirror padding on both sides', 'et_builder' ),
[11283] Fix | Delete
'on' => array(
[11284] Fix | Delete
'fb',
[11285] Fix | Delete
),
[11286] Fix | Delete
),
[11287] Fix | Delete
'increase_padding_row' => array(
[11288] Fix | Delete
'kbd' => array( 'r', array( 'left', 'right', 'up', 'down' ) ),
[11289] Fix | Delete
'desc' => esc_html__( 'Increase Row Padding', 'et_builder' ),
[11290] Fix | Delete
'on' => array(
[11291] Fix | Delete
'fb',
[11292] Fix | Delete
),
[11293] Fix | Delete
),
[11294] Fix | Delete
'decrease_padding_row' => array(
[11295] Fix | Delete
'kbd' => array( 'r', 'alt', array( 'left', 'right', 'up', 'down' ) ),
[11296] Fix | Delete
'desc' => esc_html__( 'Decrease Row Padding', 'et_builder' ),
[11297] Fix | Delete
'on' => array(
[11298] Fix | Delete
'fb',
[11299] Fix | Delete
),
[11300] Fix | Delete
),
[11301] Fix | Delete
'increase_padding_section' => array(
[11302] Fix | Delete
'kbd' => array( 's', array( 'left', 'right', 'up', 'down' ) ),
[11303] Fix | Delete
'desc' => esc_html__( 'Increase Section Padding', 'et_builder' ),
[11304] Fix | Delete
'on' => array(
[11305] Fix | Delete
'fb',
[11306] Fix | Delete
),
[11307] Fix | Delete
),
[11308] Fix | Delete
'decrease_padding_section' => array(
[11309] Fix | Delete
'kbd' => array( 's', 'alt', array( 'left', 'right', 'up', 'down' ) ),
[11310] Fix | Delete
'desc' => esc_html__( 'Decrease Section Padding', 'et_builder' ),
[11311] Fix | Delete
'on' => array(
[11312] Fix | Delete
'fb',
[11313] Fix | Delete
),
[11314] Fix | Delete
),
[11315] Fix | Delete
'increase_padding_module' => array(
[11316] Fix | Delete
'kbd' => array( 'm', array( 'left', 'right', 'up', 'down' ) ),
[11317] Fix | Delete
'desc' => esc_html__( 'Increase Module Padding', 'et_builder' ),
[11318] Fix | Delete
'on' => array(
[11319] Fix | Delete
'fb',
[11320] Fix | Delete
),
[11321] Fix | Delete
),
[11322] Fix | Delete
'decrease_padding_module' => array(
[11323] Fix | Delete
'kbd' => array( 'm', 'alt', array( 'left', 'right', 'up', 'down' ) ),
[11324] Fix | Delete
'desc' => esc_html__( 'Decrease Module Padding', 'et_builder' ),
[11325] Fix | Delete
'on' => array(
[11326] Fix | Delete
'fb',
[11327] Fix | Delete
),
[11328] Fix | Delete
),
[11329] Fix | Delete
'increase_padding_row_10' => array(
[11330] Fix | Delete
'kbd' => array( 'r', 'shift', array( 'left', 'right', 'up', 'down' ) ),
[11331] Fix | Delete
'desc' => esc_html__( 'Increase Row Padding By 10px', 'et_builder' ),
[11332] Fix | Delete
'on' => array(
[11333] Fix | Delete
'fb',
[11334] Fix | Delete
),
[11335] Fix | Delete
),
[11336] Fix | Delete
'decrease_padding_row_10' => array(
[11337] Fix | Delete
'kbd' => array( 'r', 'alt', 'shift', array( 'left', 'right', 'up', 'down' ) ),
[11338] Fix | Delete
'desc' => esc_html__( 'Decrease Row Padding By 10px', 'et_builder' ),
[11339] Fix | Delete
'on' => array(
[11340] Fix | Delete
'fb',
[11341] Fix | Delete
),
[11342] Fix | Delete
),
[11343] Fix | Delete
'increase_padding_section_10' => array(
[11344] Fix | Delete
'kbd' => array( 's', 'shift', array( 'left', 'right', 'up', 'down' ) ),
[11345] Fix | Delete
'desc' => esc_html__( 'Increase Section Padding By 10px', 'et_builder' ),
[11346] Fix | Delete
'on' => array(
[11347] Fix | Delete
'fb',
[11348] Fix | Delete
),
[11349] Fix | Delete
),
[11350] Fix | Delete
'decrease_padding_section_10' => array(
[11351] Fix | Delete
'kbd' => array( 's', 'alt', 'shift', array( 'left', 'right', 'up', 'down' ) ),
[11352] Fix | Delete
'desc' => esc_html__( 'Decrease Section Padding By 10px', 'et_builder' ),
[11353] Fix | Delete
'on' => array(
[11354] Fix | Delete
'fb',
[11355] Fix | Delete
),
[11356] Fix | Delete
),
[11357] Fix | Delete
'increase_padding_module_10' => array(
[11358] Fix | Delete
'kbd' => array( 'm', 'shift', array( 'left', 'right', 'up', 'down' ) ),
[11359] Fix | Delete
'desc' => esc_html__( 'Increase Module Padding By 10px', 'et_builder' ),
[11360] Fix | Delete
'on' => array(
[11361] Fix | Delete
'fb',
[11362] Fix | Delete
),
[11363] Fix | Delete
),
[11364] Fix | Delete
'decrease_padding_module_10' => array(
[11365] Fix | Delete
'kbd' => array( 'm', 'alt', 'shift', array( 'left', 'right', 'up', 'down' ) ),
[11366] Fix | Delete
'desc' => esc_html__( 'Decrease Module Padding By 10px', 'et_builder' ),
[11367] Fix | Delete
'on' => array(
[11368] Fix | Delete
'fb',
[11369] Fix | Delete
),
[11370] Fix | Delete
),
[11371] Fix | Delete
),
[11372] Fix | Delete
'modal' => array(
[11373] Fix | Delete
'modal_title' => array(
[11374] Fix | Delete
'title' => esc_html__( 'Modal Shortcuts', 'et_builder' ),
[11375] Fix | Delete
'on' => array(
[11376] Fix | Delete
'fb',
[11377] Fix | Delete
'bb',
[11378] Fix | Delete
),
[11379] Fix | Delete
),
[11380] Fix | Delete
'escape' => array(
[11381] Fix | Delete
'kbd' => array( 'esc' ),
[11382] Fix | Delete
'desc' => esc_html__( 'Close Modal', 'et_builder' ),
[11383] Fix | Delete
'on' => array(
[11384] Fix | Delete
'fb',
[11385] Fix | Delete
'bb',
[11386] Fix | Delete
),
[11387] Fix | Delete
),
[11388] Fix | Delete
'save_changes' => array(
[11389] Fix | Delete
'kbd' => array( 'enter' ),
[11390] Fix | Delete
'desc' => esc_html__( 'Save Changes', 'et_builder' ),
[11391] Fix | Delete
'on' => array(
[11392] Fix | Delete
'fb',
[11393] Fix | Delete
'bb',
[11394] Fix | Delete
),
[11395] Fix | Delete
),
[11396] Fix | Delete
'undo' => array(
[11397] Fix | Delete
'kbd' => array( 'super', 'z' ),
[11398] Fix | Delete
'desc' => esc_html__( 'Undo', 'et_builder' ),
[11399] Fix | Delete
'on' => array(
[11400] Fix | Delete
'fb',
[11401] Fix | Delete
),
[11402] Fix | Delete
),
[11403] Fix | Delete
'redo' => array(
[11404] Fix | Delete
'kbd' => array( 'super', 'shift', 'z' ),
[11405] Fix | Delete
'desc' => esc_html__( 'Redo', 'et_builder' ),
[11406] Fix | Delete
'on' => array(
[11407] Fix | Delete
'fb',
[11408] Fix | Delete
),
[11409] Fix | Delete
),
[11410] Fix | Delete
'switch_tabs' => array(
[11411] Fix | Delete
'kbd' => array( 'shift', 'tab' ),
[11412] Fix | Delete
'desc' => esc_html__( 'Switch Tabs', 'et_builder' ),
[11413] Fix | Delete
'on' => array(
[11414] Fix | Delete
'fb',
[11415] Fix | Delete
'bb',
[11416] Fix | Delete
),
[11417] Fix | Delete
),
[11418] Fix | Delete
'toggle_expand' => array(
[11419] Fix | Delete
'kbd' => array( 'super', 'enter' ),
[11420] Fix | Delete
'desc' => esc_html__( 'Expand Modal Fullscreen', 'et_builder' ),
[11421] Fix | Delete
'on' => array(
[11422] Fix | Delete
'fb',
[11423] Fix | Delete
),
[11424] Fix | Delete
),
[11425] Fix | Delete
'toggle_snap' => array(
[11426] Fix | Delete
'kbd' => array( 'super', array( 'left', 'right' ) ),
[11427] Fix | Delete
'desc' => esc_html__( 'Snap Modal Left / Right', 'et_builder' ),
[11428] Fix | Delete
'on' => array(
[11429] Fix | Delete
'fb',
[11430] Fix | Delete
),
[11431] Fix | Delete
),
[11432] Fix | Delete
'quick_actions' => array(
[11433] Fix | Delete
'kbd' => array( 'shift', 'space' ),
[11434] Fix | Delete
'desc' => esc_html__( 'Quick Actions', 'et_builder' ),
[11435] Fix | Delete
'on' => array(
[11436] Fix | Delete
'fb',
[11437] Fix | Delete
),
[11438] Fix | Delete
),
[11439] Fix | Delete
'layers_view' => array(
[11440] Fix | Delete
'kbd' => array( 'super', 'l' ),
[11441] Fix | Delete
'desc' => esc_html__( 'Layers View', 'et_builder' ),
[11442] Fix | Delete
'on' => array(
[11443] Fix | Delete
'fb',
[11444] Fix | Delete
),
[11445] Fix | Delete
),
[11446] Fix | Delete
),
[11447] Fix | Delete
);
[11448] Fix | Delete
$shortcuts = apply_filters( 'et_builder_get_shortcuts', $shortcuts );
[11449] Fix | Delete
[11450] Fix | Delete
// Filter shortcuts.
[11451] Fix | Delete
$filtered_shortcuts = array();
[11452] Fix | Delete
[11453] Fix | Delete
foreach ( $shortcuts as $group_key => $group ) {
[11454] Fix | Delete
foreach ( $group as $shortcut_key => $shortcut ) {
[11455] Fix | Delete
if ( in_array( $on, $shortcut['on'], true ) ) {
[11456] Fix | Delete
$filtered_shortcuts[ $group_key ][ $shortcut_key ] = $shortcut;
[11457] Fix | Delete
}
[11458] Fix | Delete
}
[11459] Fix | Delete
}
[11460] Fix | Delete
[11461] Fix | Delete
return $filtered_shortcuts;
[11462] Fix | Delete
}
[11463] Fix | Delete
endif;
[11464] Fix | Delete
[11465] Fix | Delete
if ( ! function_exists( 'et_pb_get_responsive_status' ) ) :
[11466] Fix | Delete
/**
[11467] Fix | Delete
* Parsed *_last_edited value and determine wheter the passed string means it has responsive value or not
[11468] Fix | Delete
* *_last_edited holds two values (responsive status and last opened tabs) in the following format: status|last_opened_tab
[11469] Fix | Delete
*
[11470] Fix | Delete
* @param string $last_edited last_edited data.
[11471] Fix | Delete
* @return bool
[11472] Fix | Delete
*/
[11473] Fix | Delete
function et_pb_get_responsive_status( $last_edited ) {
[11474] Fix | Delete
$parsed_last_edited = is_string( $last_edited ) ? explode( '|', $last_edited ) : array( 'off', 'desktop' );
[11475] Fix | Delete
[11476] Fix | Delete
return isset( $parsed_last_edited[0] ) ? 'on' === $parsed_last_edited[0] : false;
[11477] Fix | Delete
}
[11478] Fix | Delete
endif;
[11479] Fix | Delete
[11480] Fix | Delete
if ( ! function_exists( 'et_pb_get_value_unit' ) ) :
[11481] Fix | Delete
/**
[11482] Fix | Delete
* Get unit of given value
[11483] Fix | Delete
*
[11484] Fix | Delete
* @param string $value string with unit.
[11485] Fix | Delete
* @param string $default_unit default unit.
[11486] Fix | Delete
*
[11487] Fix | Delete
* @return string unit name
[11488] Fix | Delete
*/
[11489] Fix | Delete
function et_pb_get_value_unit( $value, $default_unit = 'px' ) {
[11490] Fix | Delete
$value = isset( $value ) ? $value : '';
[11491] Fix | Delete
$valid_one_char_units = array( '%', 'x' );
[11492] Fix | Delete
$valid_two_chars_units = array( 'em', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw', 'ms' );
[11493] Fix | Delete
$valid_three_chars_units = array( 'deg', 'rem' );
[11494] Fix | Delete
$important = '!important';
[11495] Fix | Delete
$important_length = strlen( $important );
[11496] Fix | Delete
$value_length = strlen( $value );
[11497] Fix | Delete
[11498] Fix | Delete
if ( '' === $value || is_numeric( $value ) ) {
[11499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function