updated plugin Menu Icons version 0.13.23
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
* Plugin name: Menu Icons
|
||||
* Plugin URI: https://github.com/Codeinwp/wp-menu-icons
|
||||
* Description: Spice up your navigation menus with pretty icons, easily.
|
||||
* Version: 0.13.17
|
||||
* Version: 0.13.23
|
||||
* Author: ThemeIsle
|
||||
* Author URI: https://themeisle.com
|
||||
* License: GPLv2
|
||||
@ -29,7 +29,7 @@ final class Menu_Icons {
|
||||
|
||||
const DISMISS_NOTICE = 'menu-icons-dismiss-notice';
|
||||
|
||||
const VERSION = '0.13.17';
|
||||
const VERSION = '0.13.23';
|
||||
|
||||
/**
|
||||
* Holds plugin data
|
||||
@ -113,6 +113,8 @@ final class Menu_Icons {
|
||||
return array( 'om-editor', 'om-image-block' );
|
||||
}
|
||||
);
|
||||
|
||||
add_filter( 'themeisle_sdk_blackfriday_data', array( __CLASS__, 'add_black_friday_data' ) );
|
||||
}
|
||||
|
||||
|
||||
@ -255,6 +257,37 @@ final class Menu_Icons {
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* Add Black Friday data.
|
||||
*
|
||||
* @param array $configs The configuration array for the loaded products.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function add_black_friday_data( $configs ) {
|
||||
$config = $configs['default'];
|
||||
$product_slug = basename(dirname(__FILE__));
|
||||
|
||||
if ( defined( 'NEVE_VERSION' ) ) {
|
||||
return $configs;
|
||||
}
|
||||
|
||||
// translators: 1. Number of free licenses, 2. The price of the product.
|
||||
$config['message'] = sprintf( __( 'You\'re using Menu Icons, and the team behind it is celebrating Black Friday by giving away %1$s licences of Neve Pro. A premium WordPress theme worth %2$s, packed with starter sites, a header builder, and WooCommerce layouts. Claim yours before they run out.', 'menu-icons' ), 100, '$69' );
|
||||
$config['cta_label'] = __( 'Get Neve Pro free', 'menu-icons' );
|
||||
$config['plugin_meta_message'] = __( 'Black Friday Sale - Get Neve Pro free', 'menu-icons' );
|
||||
$config['sale_url'] = add_query_arg(
|
||||
array(
|
||||
'utm_term' => 'free',
|
||||
),
|
||||
tsdk_translate_link( tsdk_utmify( 'https://themeisle.link/neve-claim-bf', 'bfcm', 'menu-icons' ) )
|
||||
);
|
||||
|
||||
$configs[ $product_slug ] = $config;
|
||||
|
||||
return $configs;
|
||||
}
|
||||
}
|
||||
add_action( 'plugins_loaded', array( 'Menu_Icons', '_load' ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user