本文整理汇总了PHP中YIT_Pointers函数的典型用法代码示例。如果您正苦于以下问题:PHP YIT_Pointers函数的具体用法?PHP YIT_Pointers怎么用?PHP YIT_Pointers使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了YIT_Pointers函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: register_pointer
/**
* Add WP Pointer
*/
public function register_pointer()
{
if (defined('YITH_WCAN_PREMIUM') && YITH_WCAN_PREMIUM) {
return;
}
if (!class_exists('YIT_Pointers')) {
include_once 'plugin-fw/lib/yit-pointers.php';
}
$message = __('Dear users,
we would like to inform you that the YITH WooCommerce Ajax Navigation plugin will change its name in YITH WooCommerce Ajax Product Filter from the next update. Also, the plugin textdomain will change too from "yit" to "yith_wc_ajxnav".
This modification solves the issues about textdomain conflicts generated by some translation/multilanguage plugins you have identified in the past weeks.
If updating the plugin some language files are no more recognized by WordPress, you will just have to rename the language files in the correct format. After renaming the files, you can update/translate the .po file following the classic procedure for translations.', 'yith-woocommerce-ajax-navigation');
$plugin_name = _x('YITH WooCommerce Ajax Product Filter', 'Admin(Pointers): Plugin Title', 'yith-woocommerce-ajax-navigation');
$premium_message = sprintf('%s, <a href="%s" target"_blank">%s</a>.', __('YITH WooCommerce Product Filter has been updated with new available options', 'yith-woocommerce-ajax-navigation'), $this->_premium_landing, __('discover the PREMIUM version', 'yith-woocommerce-ajax-navigation'));
$args = array();
foreach (array('plugins', 'update') as $screen) {
$args[] = array('screen_id' => $screen, 'pointer_id' => 'yith_wcan_panel', 'target' => '#toplevel_page_yit_plugin_panel', 'content' => sprintf('<h3> %s </h3> <p> %s </p> <p>%s</p>', $plugin_name, $message, $premium_message), 'position' => array('edge' => 'left', 'align' => 'center'), 'init' => YITH_WCAN_FREE_INIT);
}
YIT_Pointers()->register($args);
}
示例2: pointers
}
public function pointers($pointers)
{
$screen_id = str_replace('yit_pointers-', '', current_filter());
$pointers_to_add = $this->get_pointers($screen_id);
return !empty($pointers_to_add) ? array_merge($pointers, $pointers_to_add) : $pointers;
}
public function get_pointers($screen_id)
{
return isset($this->pointers[$screen_id]) ? $this->pointers[$screen_id] : array();
}
}
}
if (!function_exists('YIT_Pointers')) {
/**
* Main instance of plugin
*
* @return object YIT_Pointers
* @since 1.0
* @author Andrea Grillo <andrea.grillo@yithemes.com>
*/
function YIT_Pointers()
{
return YIT_Pointers::instance();
}
}
/**
* Instance a YIT_Pointers object
*/
YIT_Pointers();
示例3: register_pointer
/**
* Register Pointer
*/
public function register_pointer()
{
if (!class_exists('YIT_Pointers')) {
include_once 'plugin-fw/lib/yit-pointers.php';
}
$args[] = array('screen_id' => 'plugins', 'pointer_id' => 'yith_woocompare_panel', 'target' => '#toplevel_page_yit_plugin_panel', 'content' => sprintf('<h3> %s </h3> <p> %s </p>', __('YITH WooCommerce Compare Activated', 'yith-woocommerce-compare'), apply_filters('yith_woocompare_activated_pointer_content', sprintf(__('In the YIT Plugin tab you can find the YITH WooCommerce Compare options. With this menu, you can access to all the settings of our plugins that you have activated. YITH WooCommerce Compare is available in an outstanding PREMIUM version with many new options, <a href="%s">discover it now</a>.', 'yit'), $this->get_premium_landing_uri()))), 'position' => array('edge' => 'left', 'align' => 'center'), 'init' => YITH_WOOCOMPARE_INIT);
$args[] = array('screen_id' => 'update', 'pointer_id' => 'yith_woocompare_panel', 'target' => '#toplevel_page_yit_plugin_panel', 'content' => sprintf('<h3> %s </h3> <p> %s </p>', __('YITH WooCommerce Compare Updated', 'yith-woocommerce-compare'), apply_filters('yith_woocompare_updated_pointer_content', sprintf(__('From now on, you can find all the options of YITH WooCommerce Compare under YIT Plugin -> Compare instead of WooCommerce -> Settings -> Compare, as in the previous version. When one of our plugins is updated, a new voice will be added to this menu. YITH WooCommerce Compare has been updated with new available options, <a href="%s">discover the PREMIUM version.</a>', 'yit'), $this->get_premium_landing_uri()))), 'position' => array('edge' => 'left', 'align' => 'center'), 'init' => YITH_WOOCOMPARE_INIT);
YIT_Pointers()->register($args);
}
示例4: register_pointer
public function register_pointer()
{
if (!class_exists('YIT_Pointers')) {
include_once 'plugin-fw/lib/yit-pointers.php';
}
$premium_message = defined('YITH_YWZM_PREMIUM') ? '' : __('YITH WooCommerce Zoom Magnifier is available in an outstanding PREMIUM version with many new options, discover it now.', 'ywzm') . ' <a href="' . $this->_premium_landing . '">' . __('Premium version', 'ywzm') . '</a>';
$args[] = array('screen_id' => 'plugins', 'pointer_id' => 'yith_woocommerce_zoom-magnifier', 'target' => '#toplevel_page_yit_plugin_panel', 'content' => sprintf('<h3> %s </h3> <p> %s </p>', __('YITH WooCommerce Zoom Magnifier', 'ywzm'), __('In YIT Plugins tab you can find YITH WooCommerce Zoom Magnifier options.<br> From this menu you can access all settings of the YITH plugins activated.', 'ywzm') . '<br>' . $premium_message), 'position' => array('edge' => 'left', 'align' => 'center'), 'init' => defined('YITH_YWZM_PREMIUM') ? YITH_YWZM_INIT : YITH_YWZM_FREE_INIT);
YIT_Pointers()->register($args);
}
示例5: register_pointer
public function register_pointer()
{
if (!class_exists('YIT_Pointers')) {
include_once 'plugin-fw/lib/yit-pointers.php';
}
$args[] = array('screen_id' => 'plugins', 'pointer_id' => 'yith_wcqv_panel', 'target' => '#toplevel_page_yit_plugin_panel', 'content' => sprintf('<h3> %s </h3> <p> %s </p>', __('YITH WooCommerce Quick View', 'yith_wcqv'), __('In the YIT Plugin tab you can find the YITH WooCommerce Quick View options.
With this menu, you can access to all the settings of our plugins that you have activated.
YITH WooCommerce Quick View is available in an outstanding PREMIUM version with many new options,
<a href="' . $this->get_premium_landing_uri() . '">discover it now!</a>', 'yith-wcqv')), 'position' => array('edge' => 'left', 'align' => 'center'), 'init' => YITH_WCQV_FREE_INIT);
YIT_Pointers()->register($args);
}
示例6: register_pointer
/**
* Register the pointer for the settings page
*
* @since 1.0.0
*/
public function register_pointer()
{
if (!class_exists('YIT_Pointers')) {
include_once '../plugin-fw/lib/yit-pointers.php';
}
$args[] = array('screen_id' => 'plugins', 'pointer_id' => 'yith_wcstripe_panel', 'target' => '#toplevel_page_yit_plugin_panel', 'content' => sprintf('<h3> %s </h3> <p> %s </p>', __('YITH WooCommerce Stripe', 'yith-stripe'), __('In YIT Plugins tab you can find YITH WooCommerce Stripe options. From this menu you can access all settings of YITH plugins activated.', 'yith-stripe')), 'position' => array('edge' => 'left', 'align' => 'center'), 'init' => defined('YITH_WCSTRIPE_PREMIUM') ? YITH_WCSTRIPE_INIT : YITH_WCSTRIPE_FREE_INIT);
YIT_Pointers()->register($args);
}
示例7: register_pointer
public function register_pointer()
{
if (!class_exists('YIT_Pointers')) {
include_once 'plugin-fw/lib/yit-pointers.php';
}
$premium_message = defined('YITH_YWAR_PREMIUM') ? '' : __('YITH WooCommerce Advanced Reviews is available in an outstanding PREMIUM version with many new options, discover it now.', 'ywar') . ' <a href="' . $this->get_premium_landing_uri() . '">' . __('Premium version', 'ywar') . '</a>';
$args[] = array('screen_id' => 'plugins', 'pointer_id' => 'yith_ywar_panel', 'target' => '#toplevel_page_yit_plugin_panel', 'content' => sprintf('<h3> %s </h3> <p> %s </p>', __('YITH WooCommerce Advanced Reviews', 'ywar'), __('In YIT Plugins tab you can find YITH WooCommerce Advanced Reviews options. From this menu you can access all settings of YITH plugins activated.', 'ywar') . '<br>' . $premium_message), 'position' => array('edge' => 'left', 'align' => 'center'), 'init' => defined('YITH_YWAR_PREMIUM') ? YITH_YWAR_INIT : YITH_YWAR_FREE_INIT);
$args[] = array('screen_id' => 'update', 'pointer_id' => 'yith_ywar_panel', 'target' => '#toplevel_page_yit_plugin_panel', 'content' => sprintf('<h3> %s </h3> <p> %s </p>', __('YITH WooCommerce Advanced Reviews', 'ywar'), __('From now on, you can find all YITH WooCommerce Advanced Reviews options in YIT Plugin -> Advanced Reviews instead of WooCommerce -> Settings -> Advanced Reviews, as in the previous version. Any time one of our plugins is updated, a new entry will be added to this menu.', 'ywar') . $premium_message), 'position' => array('edge' => 'left', 'align' => 'center'), 'init' => defined('YITH_YWAR_PREMIUM') ? YITH_YWAR_INIT : YITH_YWAR_FREE_INIT);
YIT_Pointers()->register($args);
}
示例8: register_pointer
public function register_pointer()
{
if (!class_exists('YIT_Pointers')) {
include_once 'plugin-fw/lib/yit-pointers.php';
}
$args[] = array('screen_id' => 'plugins', 'pointer_id' => 'yith_wcas_panel', 'target' => '#toplevel_page_yit_plugin_panel', 'content' => sprintf('<h3> %s </h3> <p> %s </p>', __('YITH WooCommerce Ajax Search', 'yith-woocommerce-ajax-search'), __('In the YIT Plugin tab you can find the YITH WooCommerce Ajax Search options.
With this menu, you can access to all the settings of our plugins that you have activated.
YITH WooCommerce Ajax Search is available in an outstanding PREMIUM version with many new options, <a href="' . $this->_premium_landing . '">discover it now</a>', 'yith-woocommerce-ajax-search')), 'position' => array('edge' => 'left', 'align' => 'center'), 'init' => YITH_WCAS_FREE_INIT);
$args[] = array('screen_id' => 'update', 'pointer_id' => 'yith_wcas_panel', 'target' => '#toplevel_page_yit_plugin_panel', 'content' => sprintf('<h3> %s </h3> <p> %s </p>', __('YITH WooCommerce Ajax Search Updated', 'yith-woocommerce-ajax-search'), __('From now on, you can find all the options of YITH WooCommerce Ajax Search Updated under YIT Plugin -> Ajax Search instead of WooCommerce -> Settings -> Ajax Search, as in the previous version.
When one of our plugins updates, a new voice will be added to this menu.
YITH WooCommerce Ajax Search renovates with new available options, discover the <a href="' . $this->get_premium_landing_uri() . '">PREMIUM version</a>.
', 'yith-woocommerce-ajax-search')), 'position' => array('edge' => 'left', 'align' => 'center'), 'init' => YITH_WCAS_FREE_INIT);
YIT_Pointers()->register($args);
}
示例9: register_pointer
/**
* Register the pointer for the settings page
*
* @since 1.0.0
*/
public function register_pointer()
{
if (!class_exists('YIT_Pointers')) {
include_once '../plugin-fw/lib/yit-pointers.php';
}
$args[] = array('screen_id' => 'plugins', 'pointer_id' => 'yith_wcauthnet_panel', 'target' => '#toplevel_page_yit_plugin_panel', 'content' => sprintf('<h3> %s </h3> <p> %s </p>', __('YITH Authorize.net', 'yit'), apply_filters('yith_wcauthnet_activated_pointer_content', sprintf(__('In the YIT Plugins tab you can find the YITH WooCommerce Authorize.net options. From this menu, you can access all the settings of the YITH plugins activated. YITH Authorize.net is available in an outstanding PREMIUM version with many new options, <a href="%s">discover it now</a>.', 'yith-wcauthnet'), $this->get_premium_landing_uri()))), 'position' => array('edge' => 'left', 'align' => 'center'), 'init' => YITH_WCAUTHNET_INIT);
YIT_Pointers()->register($args);
}