| @@ -3,9 +3,8 @@ | ||
| 3 | 3 | namespace YayMail\Utils; |
| 4 | 4 | |
| 5 | 5 | defined( 'ABSPATH' ) || exit; |
| 6 | 6 | |
| 7 | -use YayMail\Integrations\TranslationModule; | |
| 8 | 7 | use YayMail\Models\TemplateModel; |
| 9 | 8 | |
| 10 | 9 | /** |
| 11 | 10 | * Localize Classes |
| @@ -11,16 +10,8 @@ | ||
| 11 | 10 | * Localize Classes |
| 12 | 11 | */ |
| 13 | 12 | class Localize { |
| 14 | 13 | |
| 15 | - public static function get_translate_integrations() { | |
| 16 | - $current_integration = TranslationModule::get_instance()->current_integration; | |
| 17 | - return [ | |
| 18 | - 'available' => [], | |
| 19 | - 'current_translation' => is_null( $current_integration ) ? null : $current_integration->get_data(), | |
| 20 | - ]; | |
| 21 | - } | |
| 22 | - | |
| 23 | 14 | public static function get_list_orders() { |
| 24 | 15 | if ( yaymail_is_wc_installed() ) { |
| 25 | 16 | $data_orders [] = [ |
| 26 | 17 | 'id' => 'sample_order', |
| @@ -55,11 +46,10 @@ | ||
| 55 | 46 | 'title' => $title, |
| 56 | 47 | ]; |
| 57 | 48 | } |
| 58 | 49 | } |
| 59 | - return $data_orders; | |
| 60 | 50 | }//end if |
| 61 | - return []; | |
| 51 | + return $data_orders; | |
| 62 | 52 | } |
| 63 | 53 | |
| 64 | 54 | public static function get_social_icons_data() { |
| 65 | 55 | |
| @@ -91,9 +81,9 @@ | ||
| 91 | 81 | 'youtube', |
| 92 | 82 | 'zillow', |
| 93 | 83 | ]; |
| 94 | 84 | $resource_prefix_url = YAYMAIL_PLUGIN_URL . 'assets/images/social-icons/'; |
| 95 | - $themes = [ 'colorful', 'line-dark', 'line-light', 'solid-dark', 'solid-light', 'custom' ]; | |
| 85 | + $themes = [ 'colorful', 'line-dark', 'line-light', 'solid-dark', 'solid-light' ]; | |
| 96 | 86 | $themes_pascal = array_map( [ self::class, 'kebab_to_pascal' ], $themes ); |
| 97 | 87 | $images = []; |
| 98 | 88 | foreach ( $socials as $social ) { |
| 99 | 89 | $pngs = []; |
| @@ -117,11 +107,11 @@ | ||
| 117 | 107 | 'images' => $images, |
| 118 | 108 | ]; |
| 119 | 109 | } |
| 120 | 110 | |
| 121 | - public static function get_global_headers_footers( $template_name = 'yaymail_global_header_footer' ) { | |
| 111 | + public static function get_global_headers_footers() { | |
| 122 | 112 | $template_model = TemplateModel::get_instance(); |
| 123 | - $global_headers_footers = $template_model->get_global_headers_and_footers_for_all_available_languages( $template_name ); | |
| 113 | + $global_headers_footers = $template_model->get_global_header_and_footer(); | |
| 124 | 114 | return $global_headers_footers; |
| 125 | 115 | } |
| 126 | 116 | |
| 127 | 117 | public static function get_activated_addons() { |