Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/includes/builder
File: main-structure-elements.php
'background_video_webm',
[1500] Fix | Delete
'background_video_width',
[1501] Fix | Delete
'background_video_height',
[1502] Fix | Delete
),
[1503] Fix | Delete
'computed_minimum' => array(
[1504] Fix | Delete
'background_video_mp4',
[1505] Fix | Delete
'background_video_webm',
[1506] Fix | Delete
),
[1507] Fix | Delete
),
[1508] Fix | Delete
'padding_top' => array( 'tab_slug' => 'advanced' ),
[1509] Fix | Delete
'padding_right' => array( 'tab_slug' => 'advanced' ),
[1510] Fix | Delete
'padding_bottom' => array( 'tab_slug' => 'advanced' ),
[1511] Fix | Delete
'padding_left' => array( 'tab_slug' => 'advanced' ),
[1512] Fix | Delete
'padding_top_bottom_link' => array( 'tab_slug' => 'advanced' ),
[1513] Fix | Delete
'padding_left_right_link' => array( 'tab_slug' => 'advanced' ),
[1514] Fix | Delete
'padding_%column_index%_tablet' => array(
[1515] Fix | Delete
'has_custom_index_location' => true,
[1516] Fix | Delete
'tab_slug' => 'advanced',
[1517] Fix | Delete
),
[1518] Fix | Delete
'padding_%column_index%_phone' => array(
[1519] Fix | Delete
'has_custom_index_location' => true,
[1520] Fix | Delete
'tab_slug' => 'advanced',
[1521] Fix | Delete
),
[1522] Fix | Delete
'padding_%column_index%_last_edited' => array(
[1523] Fix | Delete
'has_custom_index_location' => true,
[1524] Fix | Delete
'tab_slug' => 'advanced',
[1525] Fix | Delete
),
[1526] Fix | Delete
'module_id' => array( 'tab_slug' => 'custom_css' ),
[1527] Fix | Delete
'module_class' => array( 'tab_slug' => 'custom_css' ),
[1528] Fix | Delete
'custom_css_before' => array( 'tab_slug' => 'custom_css' ),
[1529] Fix | Delete
'custom_css_main' => array( 'tab_slug' => 'custom_css' ),
[1530] Fix | Delete
'custom_css_after' => array( 'tab_slug' => 'custom_css' ),
[1531] Fix | Delete
) );
[1532] Fix | Delete
[1533] Fix | Delete
return array_merge( $fields, $column_fields );
[1534] Fix | Delete
}
[1535] Fix | Delete
[1536] Fix | Delete
public function get_transition_fields_css_props() {
[1537] Fix | Delete
$fields = parent::get_transition_fields_css_props();
[1538] Fix | Delete
[1539] Fix | Delete
for ( $i = 1; $i <= 6; $i ++ ) {
[1540] Fix | Delete
$selector = "%%order_class%% > .et_pb_column:nth-child({$i})";
[1541] Fix | Delete
$fields["background_color_{$i}"] = array( 'background-color' => $selector );
[1542] Fix | Delete
$fields["padding_{$i}"] = array( 'padding' => $selector );
[1543] Fix | Delete
}
[1544] Fix | Delete
[1545] Fix | Delete
return $fields;
[1546] Fix | Delete
}
[1547] Fix | Delete
[1548] Fix | Delete
function render( $atts, $content = null, $function_name ) {
[1549] Fix | Delete
$custom_padding = $this->props['custom_padding'];
[1550] Fix | Delete
$custom_padding_tablet = $this->props['custom_padding_tablet'];
[1551] Fix | Delete
$custom_padding_phone = $this->props['custom_padding_phone'];
[1552] Fix | Delete
$custom_padding_last_edited = $this->props['custom_padding_last_edited'];
[1553] Fix | Delete
$column_padding_mobile = $this->props['column_padding_mobile'];
[1554] Fix | Delete
$make_equal = $this->props['make_equal'];
[1555] Fix | Delete
$padding_mobile = $this->props['padding_mobile'];
[1556] Fix | Delete
$gutter_width = $this->props['gutter_width'];
[1557] Fix | Delete
$gutter_width_hover = $this->get_hover_value( 'gutter_width' );
[1558] Fix | Delete
$global_module = $this->props['global_module'];
[1559] Fix | Delete
$use_custom_gutter = $this->props['use_custom_gutter'];
[1560] Fix | Delete
[1561] Fix | Delete
$hover = et_pb_hover_options();
[1562] Fix | Delete
[1563] Fix | Delete
global $et_pb_all_column_settings, $et_pb_rendering_column_content, $et_pb_rendering_column_content_row;
[1564] Fix | Delete
[1565] Fix | Delete
$et_pb_all_column_settings = ! isset( $et_pb_all_column_settings ) ? array() : $et_pb_all_column_settings;
[1566] Fix | Delete
[1567] Fix | Delete
$et_pb_all_column_settings_backup = $et_pb_all_column_settings;
[1568] Fix | Delete
[1569] Fix | Delete
$keep_column_padding_mobile = $column_padding_mobile;
[1570] Fix | Delete
[1571] Fix | Delete
if ( '' !== $global_module ) {
[1572] Fix | Delete
$global_content = et_pb_load_global_module( $global_module, $function_name );
[1573] Fix | Delete
[1574] Fix | Delete
if ( '' !== $global_content ) {
[1575] Fix | Delete
return do_shortcode( et_pb_fix_shortcodes( wpautop( $global_content ) ) );
[1576] Fix | Delete
}
[1577] Fix | Delete
}
[1578] Fix | Delete
[1579] Fix | Delete
$custom_padding_responsive_active = et_pb_get_responsive_status( $custom_padding_last_edited );
[1580] Fix | Delete
[1581] Fix | Delete
$padding_mobile_values = $custom_padding_responsive_active ? array(
[1582] Fix | Delete
'tablet' => explode( '|', $custom_padding_tablet ),
[1583] Fix | Delete
'phone' => explode( '|', $custom_padding_phone ),
[1584] Fix | Delete
) : array(
[1585] Fix | Delete
'tablet' => false,
[1586] Fix | Delete
'phone' => false,
[1587] Fix | Delete
);
[1588] Fix | Delete
[1589] Fix | Delete
$internal_columns_settings_array = array(
[1590] Fix | Delete
'keep_column_padding_mobile' => $keep_column_padding_mobile,
[1591] Fix | Delete
'et_pb_columns_counter' => 0,
[1592] Fix | Delete
);
[1593] Fix | Delete
[1594] Fix | Delete
$current_row_position = $et_pb_rendering_column_content ? 'internal_row' : 'regular_row';
[1595] Fix | Delete
[1596] Fix | Delete
$et_pb_all_column_settings[ $current_row_position ] = $internal_columns_settings_array;
[1597] Fix | Delete
[1598] Fix | Delete
if ( $et_pb_rendering_column_content ) {
[1599] Fix | Delete
$et_pb_rendering_column_content_row = true;
[1600] Fix | Delete
}
[1601] Fix | Delete
[1602] Fix | Delete
if ( 'on' === $make_equal ) {
[1603] Fix | Delete
$this->add_classname( 'et_pb_equal_columns' );
[1604] Fix | Delete
}
[1605] Fix | Delete
[1606] Fix | Delete
$gutter_hover_data = '';
[1607] Fix | Delete
[1608] Fix | Delete
if ( 'on' === $use_custom_gutter && '' !== $gutter_width ) {
[1609] Fix | Delete
$gutter_width = '0' === $gutter_width ? '1' : $gutter_width; // set the gutter width to 1 if 0 entered by user
[1610] Fix | Delete
$this->add_classname( 'et_pb_gutters' . $gutter_width );
[1611] Fix | Delete
[1612] Fix | Delete
if ( et_builder_is_hover_enabled( 'gutter_width', $this->props ) && ! empty( $gutter_width_hover ) && $gutter_width !== $gutter_width_hover ) {
[1613] Fix | Delete
$this->add_classname( 'et_pb_gutter_hover' );
[1614] Fix | Delete
[1615] Fix | Delete
$gutter_hover_data = sprintf(
[1616] Fix | Delete
' data-original_gutter="%1$s" data-hover_gutter="%2$s"',
[1617] Fix | Delete
esc_attr($gutter_width),
[1618] Fix | Delete
esc_attr($gutter_width_hover)
[1619] Fix | Delete
);
[1620] Fix | Delete
}
[1621] Fix | Delete
}
[1622] Fix | Delete
[1623] Fix | Delete
[1624] Fix | Delete
$padding_values = explode( '|', $custom_padding );
[1625] Fix | Delete
[1626] Fix | Delete
if ( ! empty( $padding_values ) ) {
[1627] Fix | Delete
// old version of Rows support only top and bottom padding, so we need to handle it along with the full padding in the recent version
[1628] Fix | Delete
if ( 2 === count( $padding_values ) ) {
[1629] Fix | Delete
$padding_settings = array(
[1630] Fix | Delete
'top' => isset( $padding_values[0] ) ? $padding_values[0] : '',
[1631] Fix | Delete
'bottom' => isset( $padding_values[1] ) ? $padding_values[1] : '',
[1632] Fix | Delete
);
[1633] Fix | Delete
} else {
[1634] Fix | Delete
$padding_settings = array(
[1635] Fix | Delete
'top' => isset( $padding_values[0] ) ? $padding_values[0] : '',
[1636] Fix | Delete
'right' => isset( $padding_values[1] ) ? $padding_values[1] : '',
[1637] Fix | Delete
'bottom' => isset( $padding_values[2] ) ? $padding_values[2] : '',
[1638] Fix | Delete
'left' => isset( $padding_values[3] ) ? $padding_values[3] : '',
[1639] Fix | Delete
);
[1640] Fix | Delete
}
[1641] Fix | Delete
[1642] Fix | Delete
foreach( $padding_settings as $padding_side => $value ) {
[1643] Fix | Delete
if ( '' !== $value ) {
[1644] Fix | Delete
$element_style = array(
[1645] Fix | Delete
'selector' => '%%order_class%%.et_pb_row',
[1646] Fix | Delete
'declaration' => sprintf(
[1647] Fix | Delete
'padding-%1$s: %2$s;',
[1648] Fix | Delete
esc_html( $padding_side ),
[1649] Fix | Delete
esc_html( $value )
[1650] Fix | Delete
),
[1651] Fix | Delete
);
[1652] Fix | Delete
[1653] Fix | Delete
// Backward compatibility. Keep Padding on Mobile is deprecated in favour of responsive inputs mechanism for custom padding
[1654] Fix | Delete
// To ensure that it is compatibility with previous version of Divi, this option is now only used as last resort if no
[1655] Fix | Delete
// responsive padding value is found, and padding_mobile value is saved (which is set to off by default)
[1656] Fix | Delete
if ( in_array( $padding_mobile, array( 'on', 'off' ) ) && 'on' !== $padding_mobile && ! $custom_padding_responsive_active ) {
[1657] Fix | Delete
$element_style['media_query'] = ET_Builder_Element::get_media_query( 'min_width_981' );
[1658] Fix | Delete
}
[1659] Fix | Delete
[1660] Fix | Delete
ET_Builder_Element::set_style( $function_name, $element_style );
[1661] Fix | Delete
}
[1662] Fix | Delete
}
[1663] Fix | Delete
}
[1664] Fix | Delete
[1665] Fix | Delete
if ( ! empty( $padding_mobile_values['tablet'] ) || ! empty( $padding_values['phone'] ) ) {
[1666] Fix | Delete
$padding_mobile_values_processed = array();
[1667] Fix | Delete
[1668] Fix | Delete
foreach( array( 'tablet', 'phone' ) as $device ) {
[1669] Fix | Delete
if ( empty( $padding_mobile_values[$device] ) ) {
[1670] Fix | Delete
continue;
[1671] Fix | Delete
}
[1672] Fix | Delete
[1673] Fix | Delete
$padding_mobile_values_processed[ $device ] = array(
[1674] Fix | Delete
'padding-top' => isset( $padding_mobile_values[$device][0] ) ? $padding_mobile_values[$device][0] : '',
[1675] Fix | Delete
'padding-right' => isset( $padding_mobile_values[$device][1] ) ? $padding_mobile_values[$device][1] : '',
[1676] Fix | Delete
'padding-bottom' => isset( $padding_mobile_values[$device][2] ) ? $padding_mobile_values[$device][2] : '',
[1677] Fix | Delete
'padding-left' => isset( $padding_mobile_values[$device][3] ) ? $padding_mobile_values[$device][3] : '',
[1678] Fix | Delete
);
[1679] Fix | Delete
}
[1680] Fix | Delete
[1681] Fix | Delete
if ( ! empty( $padding_mobile_values_processed ) ) {
[1682] Fix | Delete
et_pb_generate_responsive_css( $padding_mobile_values_processed, '%%order_class%%.et_pb_row', '', $function_name, ' !important; ' );
[1683] Fix | Delete
}
[1684] Fix | Delete
}
[1685] Fix | Delete
[1686] Fix | Delete
$parallax_image = $this->get_parallax_image_background();
[1687] Fix | Delete
$background_video = $this->video_background();
[1688] Fix | Delete
[1689] Fix | Delete
// CSS Filters
[1690] Fix | Delete
$this->add_classname( $this->generate_css_filters( $function_name ) );
[1691] Fix | Delete
[1692] Fix | Delete
// Remove automatically added classnames
[1693] Fix | Delete
$this->remove_classname( 'et_pb_module' );
[1694] Fix | Delete
[1695] Fix | Delete
if ( self::contains( $content, array( 'et_pb_menu', 'et_pb_fullwidth_menu' ) ) ) {
[1696] Fix | Delete
$this->add_classname( 'et_pb_row--with-menu' );
[1697] Fix | Delete
}
[1698] Fix | Delete
[1699] Fix | Delete
// Save module classes into variable BEFORE processing the content with `do_shortcode()`
[1700] Fix | Delete
// Otherwise order classes messed up with internal rows if exist
[1701] Fix | Delete
$module_classes = $this->module_classname( $function_name );
[1702] Fix | Delete
[1703] Fix | Delete
// Inner content shortcode parsing has to be done after all classname addition/removal
[1704] Fix | Delete
$inner_content = do_shortcode( et_pb_fix_shortcodes( $content ) );
[1705] Fix | Delete
$content_dependent_classname = '' === trim( $inner_content ) ? ' et_pb_row_empty' : '';
[1706] Fix | Delete
[1707] Fix | Delete
// reset the global column settings to make sure they are not affected by internal content
[1708] Fix | Delete
// This has to be done after inner content's shortcode being parsed
[1709] Fix | Delete
$et_pb_all_column_settings = $et_pb_all_column_settings_backup;
[1710] Fix | Delete
[1711] Fix | Delete
// Reset row's column content flag
[1712] Fix | Delete
if ( $et_pb_rendering_column_content_row ) {
[1713] Fix | Delete
$et_pb_rendering_column_content_row = false;
[1714] Fix | Delete
}
[1715] Fix | Delete
[1716] Fix | Delete
$output = sprintf(
[1717] Fix | Delete
'<div%4$s class="%2$s%7$s"%8$s>
[1718] Fix | Delete
%1$s
[1719] Fix | Delete
%6$s
[1720] Fix | Delete
%5$s
[1721] Fix | Delete
</div> <!-- .%3$s -->',
[1722] Fix | Delete
$inner_content,
[1723] Fix | Delete
$module_classes,
[1724] Fix | Delete
esc_html( $function_name ),
[1725] Fix | Delete
$this->module_id(),
[1726] Fix | Delete
$background_video,
[1727] Fix | Delete
$parallax_image,
[1728] Fix | Delete
$content_dependent_classname,
[1729] Fix | Delete
et_core_esc_previously( $gutter_hover_data )
[1730] Fix | Delete
);
[1731] Fix | Delete
[1732] Fix | Delete
return $output;
[1733] Fix | Delete
}
[1734] Fix | Delete
}
[1735] Fix | Delete
new ET_Builder_Row;
[1736] Fix | Delete
[1737] Fix | Delete
class ET_Builder_Row_Inner extends ET_Builder_Structure_Element {
[1738] Fix | Delete
function init() {
[1739] Fix | Delete
$this->name = esc_html__( 'Row', 'et_builder' );
[1740] Fix | Delete
$this->plural = esc_html__( 'Rows', 'et_builder' );
[1741] Fix | Delete
$this->slug = 'et_pb_row_inner';
[1742] Fix | Delete
$this->vb_support = 'on';
[1743] Fix | Delete
$this->child_slug = 'et_pb_column_inner';
[1744] Fix | Delete
$this->child_item_text = esc_html__( 'Column', 'et_builder' );
[1745] Fix | Delete
[1746] Fix | Delete
$this->advanced_fields = array(
[1747] Fix | Delete
'background' => array(
[1748] Fix | Delete
'use_background_color' => true,
[1749] Fix | Delete
'use_background_image' => true,
[1750] Fix | Delete
'use_background_color_gradient' => true,
[1751] Fix | Delete
'use_background_video' => true,
[1752] Fix | Delete
),
[1753] Fix | Delete
'margin_padding' => array(
[1754] Fix | Delete
'css' => array(
[1755] Fix | Delete
'main' => '%%order_class%%.et_pb_row_inner',
[1756] Fix | Delete
'important' => 'all',
[1757] Fix | Delete
),
[1758] Fix | Delete
),
[1759] Fix | Delete
'max_width' => array(
[1760] Fix | Delete
'css' => array(
[1761] Fix | Delete
'main' => '%%order_class%%.et_pb_row_inner',
[1762] Fix | Delete
),
[1763] Fix | Delete
'options' => array(
[1764] Fix | Delete
'module_alignment' => array(
[1765] Fix | Delete
'label' => esc_html__( 'Row Alignment', 'et_builder' ),
[1766] Fix | Delete
'description' => esc_html__( 'Rows can be aligned to the left, right or center. By default, rows are centered within their parent section.', 'et_builder' ),
[1767] Fix | Delete
),
[1768] Fix | Delete
),
[1769] Fix | Delete
),
[1770] Fix | Delete
'fonts' => false,
[1771] Fix | Delete
'text' => false,
[1772] Fix | Delete
'button' => false,
[1773] Fix | Delete
'position_fields' => array(
[1774] Fix | Delete
'default' => 'relative',
[1775] Fix | Delete
),
[1776] Fix | Delete
);
[1777] Fix | Delete
[1778] Fix | Delete
$this->settings_modal_toggles = array(
[1779] Fix | Delete
'general' => array(
[1780] Fix | Delete
'toggles' => array(
[1781] Fix | Delete
'column_structure' => array(
[1782] Fix | Delete
'title' => esc_html__( 'Column Structure', 'et_builder' ),
[1783] Fix | Delete
'priority' => 1,
[1784] Fix | Delete
'always_open' => true,
[1785] Fix | Delete
),
[1786] Fix | Delete
),
[1787] Fix | Delete
),
[1788] Fix | Delete
'advanced' => array(
[1789] Fix | Delete
'toggles' => array(
[1790] Fix | Delete
'width' => array(
[1791] Fix | Delete
'title' => et_builder_i18n( 'Sizing' ),
[1792] Fix | Delete
'priority' => 65,
[1793] Fix | Delete
),
[1794] Fix | Delete
),
[1795] Fix | Delete
),
[1796] Fix | Delete
);
[1797] Fix | Delete
[1798] Fix | Delete
$this->help_videos = array(
[1799] Fix | Delete
array(
[1800] Fix | Delete
'id' => 'R9ds7bEaHE8',
[1801] Fix | Delete
'name' => esc_html__( 'An introduction to Rows', 'et_builder' ),
[1802] Fix | Delete
),
[1803] Fix | Delete
);
[1804] Fix | Delete
}
[1805] Fix | Delete
[1806] Fix | Delete
function get_fields() {
[1807] Fix | Delete
$fields = array(
[1808] Fix | Delete
'column_structure' => array(
[1809] Fix | Delete
'label' => esc_html__( 'Column Structure', 'et_builder' ),
[1810] Fix | Delete
'description' => esc_html__( 'Here you can choose the Column Structure for this Row.', 'et_builder' ),
[1811] Fix | Delete
'type' => 'column-structure',
[1812] Fix | Delete
'default' => '4_4',
[1813] Fix | Delete
'options' => array(
[1814] Fix | Delete
'4_4' => et_pb_get_column_svg( '4_4' ),
[1815] Fix | Delete
'1_2,1_2' => et_pb_get_column_svg( '1_2,1_2' ),
[1816] Fix | Delete
'1_3,1_3,1_3' => et_pb_get_column_svg( '1_3,1_3,1_3' ),
[1817] Fix | Delete
'1_4,1_4,1_4,1_4' => et_pb_get_column_svg( '1_4,1_4,1_4,1_4' ),
[1818] Fix | Delete
),
[1819] Fix | Delete
'toggle_slug' => 'column_structure',
[1820] Fix | Delete
),
[1821] Fix | Delete
'padding_mobile' => array(
[1822] Fix | Delete
'label' => esc_html__( 'Keep Custom Padding on Mobile', 'et_builder' ),
[1823] Fix | Delete
'type' => 'skip', // Remaining attribute for backward compatibility
[1824] Fix | Delete
'tab_slug' => 'advanced',
[1825] Fix | Delete
'toggle_slug' => 'margin_padding',
[1826] Fix | Delete
),
[1827] Fix | Delete
'use_custom_gutter' => array(
[1828] Fix | Delete
'label' => esc_html__( 'Use Custom Gutter Width', 'et_builder' ),
[1829] Fix | Delete
'type' => 'yes_no_button',
[1830] Fix | Delete
'option_category' => 'layout',
[1831] Fix | Delete
'options' => array(
[1832] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[1833] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[1834] Fix | Delete
),
[1835] Fix | Delete
'default' => 'off',
[1836] Fix | Delete
'affects' => array(
[1837] Fix | Delete
'gutter_width',
[1838] Fix | Delete
),
[1839] Fix | Delete
'description' => esc_html__( 'Enable this option to define custom gutter width for this row.', 'et_builder' ),
[1840] Fix | Delete
'tab_slug' => 'advanced',
[1841] Fix | Delete
'toggle_slug' => 'width',
[1842] Fix | Delete
),
[1843] Fix | Delete
'gutter_width' => array(
[1844] Fix | Delete
'label' => esc_html__( 'Gutter Width', 'et_builder' ),
[1845] Fix | Delete
'type' => 'range',
[1846] Fix | Delete
'option_category' => 'layout',
[1847] Fix | Delete
'range_settings' => array(
[1848] Fix | Delete
'min' => 1,
[1849] Fix | Delete
'max' => 4,
[1850] Fix | Delete
'step' => 1,
[1851] Fix | Delete
'min_limit' => 1,
[1852] Fix | Delete
'max_limit' => 4,
[1853] Fix | Delete
),
[1854] Fix | Delete
'depends_show_if' => 'on',
[1855] Fix | Delete
'description' => esc_html__( 'Adjust the spacing between each column in this row.', 'et_builder' ),
[1856] Fix | Delete
'validate_unit' => false,
[1857] Fix | Delete
'fixed_range' => true,
[1858] Fix | Delete
'tab_slug' => 'advanced',
[1859] Fix | Delete
'toggle_slug' => 'width',
[1860] Fix | Delete
'default_on_front' => (string) et_get_option( 'gutter_width', '3' ),
[1861] Fix | Delete
'hover' => 'tabs',
[1862] Fix | Delete
),
[1863] Fix | Delete
'make_equal' => array(
[1864] Fix | Delete
'label' => esc_html__( 'Equalize Column Heights', 'et_builder' ),
[1865] Fix | Delete
'description' => esc_html__( 'Equalizing column heights will force all columns to assume the height of the tallest column in the row. All columns will have the same height, keeping their appearance uniform.', 'et_builder' ),
[1866] Fix | Delete
'type' => 'yes_no_button',
[1867] Fix | Delete
'option_category' => 'layout',
[1868] Fix | Delete
'options' => array(
[1869] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[1870] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[1871] Fix | Delete
),
[1872] Fix | Delete
'default' => 'off',
[1873] Fix | Delete
'tab_slug' => 'advanced',
[1874] Fix | Delete
'toggle_slug' => 'width',
[1875] Fix | Delete
),
[1876] Fix | Delete
'column_padding_mobile' => array(
[1877] Fix | Delete
'label' => esc_html__( 'Keep Column Padding on Mobile', 'et_builder' ),
[1878] Fix | Delete
'tab_slug' => 'advanced',
[1879] Fix | Delete
'type' => 'skip', // Remaining attribute for backward compatibility
[1880] Fix | Delete
),
[1881] Fix | Delete
'custom_padding_last_edited' => array(
[1882] Fix | Delete
'type' => 'skip',
[1883] Fix | Delete
'tab_slug' => 'advanced',
[1884] Fix | Delete
),
[1885] Fix | Delete
);
[1886] Fix | Delete
[1887] Fix | Delete
$column_fields = $this->get_column_fields( 4, array(
[1888] Fix | Delete
'background_color' => array(),
[1889] Fix | Delete
'bg_img' => array(),
[1890] Fix | Delete
'padding_top_bottom_link' => array(),
[1891] Fix | Delete
'padding_left_right_link' => array(),
[1892] Fix | Delete
'parallax' => array(
[1893] Fix | Delete
'default_on_front' => 'off',
[1894] Fix | Delete
),
[1895] Fix | Delete
'parallax_method' => array(
[1896] Fix | Delete
'default_on_front' => 'on',
[1897] Fix | Delete
),
[1898] Fix | Delete
'background_size' => array(),
[1899] Fix | Delete
'background_position' => array(),
[1900] Fix | Delete
'background_repeat' => array(),
[1901] Fix | Delete
'background_blend' => array(),
[1902] Fix | Delete
'use_background_color_gradient' => array(),
[1903] Fix | Delete
'background_color_gradient_start' => array(),
[1904] Fix | Delete
'background_color_gradient_end' => array(),
[1905] Fix | Delete
'background_color_gradient_type' => array(),
[1906] Fix | Delete
'background_color_gradient_direction' => array(),
[1907] Fix | Delete
'background_color_gradient_direction_radial' => array(),
[1908] Fix | Delete
'background_color_gradient_start_position' => array(),
[1909] Fix | Delete
'background_color_gradient_end_position' => array(),
[1910] Fix | Delete
'background_color_gradient_overlays_image' => array(),
[1911] Fix | Delete
'background_video_mp4' => array(
[1912] Fix | Delete
'computed_affects' => array(
[1913] Fix | Delete
'__video_background',
[1914] Fix | Delete
),
[1915] Fix | Delete
),
[1916] Fix | Delete
'background_video_webm' => array(
[1917] Fix | Delete
'computed_affects' => array(
[1918] Fix | Delete
'__video_background',
[1919] Fix | Delete
),
[1920] Fix | Delete
),
[1921] Fix | Delete
'background_video_width' => array(
[1922] Fix | Delete
'computed_affects' => array(
[1923] Fix | Delete
'__video_background',
[1924] Fix | Delete
),
[1925] Fix | Delete
),
[1926] Fix | Delete
'background_video_height' => array(
[1927] Fix | Delete
'computed_affects' => array(
[1928] Fix | Delete
'__video_background',
[1929] Fix | Delete
),
[1930] Fix | Delete
),
[1931] Fix | Delete
'allow_player_pause' => array(
[1932] Fix | Delete
'computed_affects' => array(
[1933] Fix | Delete
'__video_background',
[1934] Fix | Delete
),
[1935] Fix | Delete
),
[1936] Fix | Delete
'background_video_pause_outside_viewport' => array(
[1937] Fix | Delete
'computed_affects' => array(
[1938] Fix | Delete
'__video_background',
[1939] Fix | Delete
),
[1940] Fix | Delete
),
[1941] Fix | Delete
'__video_background' => array(
[1942] Fix | Delete
'type' => 'computed',
[1943] Fix | Delete
'computed_callback' => array(
[1944] Fix | Delete
'ET_Builder_Column',
[1945] Fix | Delete
'get_column_video_background'
[1946] Fix | Delete
),
[1947] Fix | Delete
'computed_depends_on' => array(
[1948] Fix | Delete
'background_video_mp4',
[1949] Fix | Delete
'background_video_webm',
[1950] Fix | Delete
'background_video_width',
[1951] Fix | Delete
'background_video_height',
[1952] Fix | Delete
),
[1953] Fix | Delete
'computed_minimum' => array(
[1954] Fix | Delete
'background_video_mp4',
[1955] Fix | Delete
'background_video_webm',
[1956] Fix | Delete
),
[1957] Fix | Delete
),
[1958] Fix | Delete
'padding_top' => array( 'tab_slug' => 'advanced' ),
[1959] Fix | Delete
'padding_right' => array( 'tab_slug' => 'advanced' ),
[1960] Fix | Delete
'padding_bottom' => array( 'tab_slug' => 'advanced' ),
[1961] Fix | Delete
'padding_left' => array( 'tab_slug' => 'advanced' ),
[1962] Fix | Delete
'padding_top_bottom_link' => array( 'tab_slug' => 'advanced' ),
[1963] Fix | Delete
'padding_left_right_link' => array( 'tab_slug' => 'advanced' ),
[1964] Fix | Delete
'padding_%column_index%_tablet' => array(
[1965] Fix | Delete
'has_custom_index_location' => true,
[1966] Fix | Delete
'tab_slug' => 'advanced',
[1967] Fix | Delete
),
[1968] Fix | Delete
'padding_%column_index%_phone' => array(
[1969] Fix | Delete
'has_custom_index_location' => true,
[1970] Fix | Delete
'tab_slug' => 'advanced',
[1971] Fix | Delete
),
[1972] Fix | Delete
'padding_%column_index%_last_edited' => array(
[1973] Fix | Delete
'has_custom_index_location' => true,
[1974] Fix | Delete
'tab_slug' => 'advanced',
[1975] Fix | Delete
),
[1976] Fix | Delete
'module_id' => array( 'tab_slug' => 'custom_css' ),
[1977] Fix | Delete
'module_class' => array( 'tab_slug' => 'custom_css' ),
[1978] Fix | Delete
'custom_css_before' => array( 'tab_slug' => 'custom_css' ),
[1979] Fix | Delete
'custom_css_main' => array( 'tab_slug' => 'custom_css' ),
[1980] Fix | Delete
'custom_css_after' => array( 'tab_slug' => 'custom_css' ),
[1981] Fix | Delete
) );
[1982] Fix | Delete
[1983] Fix | Delete
return array_merge( $fields, $column_fields );
[1984] Fix | Delete
}
[1985] Fix | Delete
[1986] Fix | Delete
public function get_transition_fields_css_props() {
[1987] Fix | Delete
$fields = parent::get_transition_fields_css_props();
[1988] Fix | Delete
[1989] Fix | Delete
for ( $i = 1; $i <= 6; $i ++ ) {
[1990] Fix | Delete
$selector = "%%order_class%% > .et_pb_column:nth-child({$i})";
[1991] Fix | Delete
$fields["background_color_{$i}"] = array( 'background-color' => $selector );
[1992] Fix | Delete
$fields["padding_{$i}"] = array( 'padding' => $selector );
[1993] Fix | Delete
}
[1994] Fix | Delete
[1995] Fix | Delete
return $fields;
[1996] Fix | Delete
}
[1997] Fix | Delete
[1998] Fix | Delete
function render( $atts, $content = null, $function_name ) {
[1999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function