theme-template-library
5 years ago
class-advanced-import-activator.php
5 years ago
class-advanced-import-deactivator.php
5 years ago
class-advanced-import-i18n.php
5 years ago
class-advanced-import-loader.php
5 years ago
class-advanced-import.php
5 years ago
class-theme-template-library-base.php
5 years ago
functions-advanced-import.php
5 years ago
index.php
5 years ago
functions-advanced-import.php
30 lines
| 1 | <?php |
| 2 | function advanced_import_allowed_html( $input ) { |
| 3 | $allowed_html = wp_kses_allowed_html( 'post' ); |
| 4 | $output = wp_kses( $input, $allowed_html ); |
| 5 | return $output; |
| 6 | } |
| 7 | |
| 8 | function advanced_import_current_url() { |
| 9 | global $pagenow; |
| 10 | $current_url = $pagenow == 'tools.php' ? admin_url( 'tools.php?page=advanced-import-tool' ) : admin_url( 'themes.php?page=advanced-import' ); |
| 11 | return $current_url; |
| 12 | } |
| 13 | |
| 14 | function advanced_import_get_current_theme_author() { |
| 15 | $current_theme = wp_get_theme(); |
| 16 | return $current_theme->get( 'Author' ); |
| 17 | } |
| 18 | function advanced_import_get_current_theme_slug() { |
| 19 | $current_theme = wp_get_theme(); |
| 20 | return $current_theme->stylesheet; |
| 21 | } |
| 22 | function advanced_import_get_theme_screenshot() { |
| 23 | $current_theme = wp_get_theme(); |
| 24 | return $current_theme->get_screenshot(); |
| 25 | } |
| 26 | function advanced_import_get_theme_name() { |
| 27 | $current_theme = wp_get_theme(); |
| 28 | return $current_theme->get( 'Name' ); |
| 29 | } |
| 30 |