diff --git a/composer.lock b/composer.lock index 1f04cc9..c2dcb30 100644 --- a/composer.lock +++ b/composer.lock @@ -130,16 +130,16 @@ }, { "name": "codeinwp/themeisle-sdk", - "version": "3.3.44", + "version": "3.3.46", "source": { "type": "git", "url": "https://github.com/Codeinwp/themeisle-sdk.git", - "reference": "fed444b52ebf1f689ec2434df177926bf8f238c4" + "reference": "af2e7360bbe3af6a1bd2c3779fc33b7765104461" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/fed444b52ebf1f689ec2434df177926bf8f238c4", - "reference": "fed444b52ebf1f689ec2434df177926bf8f238c4", + "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/af2e7360bbe3af6a1bd2c3779fc33b7765104461", + "reference": "af2e7360bbe3af6a1bd2c3779fc33b7765104461", "shasum": "" }, "require-dev": { @@ -165,9 +165,9 @@ ], "support": { "issues": "https://github.com/Codeinwp/themeisle-sdk/issues", - "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.44" + "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.46" }, - "time": "2025-02-18T21:31:30+00:00" + "time": "2025-05-16T15:38:02+00:00" }, { "name": "enshrined/svg-sanitize", diff --git a/includes/library/font-awesome/font-awesome.php b/includes/library/font-awesome/font-awesome.php index 3f674bf..234ab45 100644 --- a/includes/library/font-awesome/font-awesome.php +++ b/includes/library/font-awesome/font-awesome.php @@ -113,7 +113,7 @@ public static function _icon_picker_font_media_templates( $template ) {
', - esc_attr__( 'Deselect', 'icon-picker' ) + esc_attr__( 'Deselect', 'menu-icons' ) ), ); diff --git a/includes/library/form-fields.php b/includes/library/form-fields.php index a63962c..095cae9 100644 --- a/includes/library/form-fields.php +++ b/includes/library/form-fields.php @@ -149,6 +149,7 @@ final public static function create( array $field, $args = array() ) { ) { trigger_error( sprintf( + // translators: %1$s - the name of the class, %2$s - the type of the field. esc_html__( '%1$s: Type %2$s is not supported, reverting to text.', 'menu-icons' ), __CLASS__, esc_html( $field['type'] ) diff --git a/includes/settings.php b/includes/settings.php index aeb046d..666eb57 100644 --- a/includes/settings.php +++ b/includes/settings.php @@ -473,6 +473,7 @@ public static function get_fields() { 'id' => $menu_key, 'title' => __( 'Current Menu', 'menu-icons' ), 'description' => sprintf( + // translators: %s - the name of the menu. __( '"%s" menu settings', 'menu-icons' ), apply_filters( 'single_term_title', $menu_term->name ) ), @@ -770,6 +771,7 @@ public static function _enqueue_assets() { 'all' => __( 'All', 'menu-icons' ), 'preview' => __( 'Preview', 'menu-icons' ), 'settingsInfo' => sprintf( + // translators: %2$s - a link to the Customizer with the label `the customizer`. '
%1$s

' . esc_html__( 'Please note that the actual look of the icons on the front-end will also be affected by the style of your active theme. You can add your own CSS using %2$s.', 'menu-icons' ) . '

', $box_data, sprintf( diff --git a/menu-icons.php b/menu-icons.php index 4ccfad6..5d23929 100644 --- a/menu-icons.php +++ b/menu-icons.php @@ -113,6 +113,8 @@ function() { return array( 'om-editor', 'om-image-block' ); } ); + + add_filter( 'themeisle_sdk_blackfriday_data', array( __CLASS__, 'add_black_friday_data' ) ); } @@ -255,6 +257,33 @@ public static function _upsell_admin_notice() { ', '70%', '', 'Themeisle' ); + $config['sale_url'] = add_query_arg( + array( + 'utm_term' => 'free', + ), + tsdk_translate_link( tsdk_utmify( 'https://themeisle.link/all-bf', 'bfcm', 'menu-icons' ) ) + ); + + $configs[ $product_slug ] = $config; + + return $configs; + } } add_action( 'plugins_loaded', array( 'Menu_Icons', '_load' ) ); diff --git a/phpcs.xml b/phpcs.xml index edda744..11d9f44 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -10,15 +10,16 @@ lib/* tests/* - - + + - + - + @@ -43,17 +44,23 @@ - - + + + + + + + + 0 - + \ No newline at end of file