コード例 #1
0
function wps_notice_aihrus()
{
    $help_url = esc_url('https://nodedesk.zendesk.com/hc/en-us/articles/202381391');
    $help_link = sprintf(__('<a href="%1$s">Update plugins</a>. <a href="%2$s">More information</a>.'), self_admin_url('update-core.php'), $help_url);
    $text = sprintf(esc_html__('Plugin "%1$s" has been deactivated as it requires a current Aihrus Framework. Once corrected, "%1$s" can be activated. %2$s'), WPS_NAME, $help_link);
    aihr_notice_error($text);
}
コード例 #2
0
function tw_notice_aihrus()
{
    $help_url = esc_url('https://aihrus.zendesk.com/entries/35689458');
    $help_link = sprintf(__('<a href="%1$s">Update plugins</a>. <a href="%2$s">More information</a>.', 'testimonials-widget'), self_admin_url('update-core.php'), $help_url);
    $text = sprintf(esc_html__('Plugin "%1$s" has been deactivated as it requires a current Aihrus Framework. Once corrected, "%1$s" can be activated. %2$s', 'testimonials-widget'), TW_NAME, $help_link);
    aihr_notice_error($text);
}
コード例 #3
0
 function aihr_deactivate_plugin_do($file = null)
 {
     if (is_null($file)) {
         aihr_notice_error(__('`aihr_deactivate_plugin_do` requires $file argument'));
         return false;
     }
     deactivate_plugins($file);
 }
コード例 #4
0
 function aihr_notice_license($post_type, $settings_id, $free_name, $purchase_url, $item_name)
 {
     if (empty($post_type)) {
         $link = get_admin_url() . 'options-general.php?page=' . $settings_id;
     } else {
         $link = get_admin_url() . 'edit.php?post_type=' . $post_type . '&page=' . $settings_id;
     }
     $text = __('<a href="%1$s">%2$s &gt; Settings</a>, <em>Premium</em> tab, <em>License Key</em> entry');
     $settings_link = sprintf($text, $link, $free_name);
     $link = esc_url('https://aihrus.zendesk.com/entries/28745227');
     $text = __('<a href="%s">Where\'s my license key?</a>');
     $faq_link = sprintf($text, $link);
     $link = esc_url($purchase_url);
     $text = __('<a href="%1$s">%2$s</a>');
     $buy_link = sprintf($text, $link, $item_name);
     $text = sprintf(__('Plugin "%1$s" requires license activation before updating will work. Please activate the license key through %2$s. No license key? See "%3$s" or purchase "%4$s".'), $item_name, $settings_link, $faq_link, $buy_link);
     aihr_notice_error($text);
 }
コード例 #5
0
 /**
  * file_get_contents support on some shared systems is turned off
  */
 public static function file_get_contents($url)
 {
     if (function_exists('file_get_contents')) {
         return file_get_contents($url);
     } elseif (function_exists('curl_init')) {
         return self::file_get_contents_curl($url);
     } else {
         $text = esc_html__('cURL is not installed and file_get_contents is not accessible. Unable to retrieve URL %1$s.');
         $error = sprintf($text, $url);
         aihr_notice_error($error);
         return;
     }
 }