function cargopress_check_for_updates() { $username = trim(get_theme_mod('tf_username', '')); $api_key = trim(get_theme_mod('tf_api_key', '')); if (!empty($username) && !empty($api_key)) { Envato_WP_Theme_Updater::init($username, $api_key, 'ProteusThemes'); } }
function om_theme_updater_init() { $username = get_option(OM_THEME_PREFIX . 'envato_username'); $key = get_option(OM_THEME_PREFIX . 'envato_api'); if ($username && $key) { $theme_data = wp_get_theme(get_option('template')); Envato_WP_Theme_Updater::init($username, $key, $theme_data->get('Author')); } }
if ($more) { $output .= $before; $i = $page - 1; if ($i && $more) { $output .= _wp_link_page($i); $output .= $text_before . $previouspagelink . $text_after . '</a>'; } $i = $page + 1; if ($i <= $numpages && $more) { $output .= _wp_link_page($i); $output .= $text_before . $nextpagelink . $text_after . '</a>'; } $output .= $after; } } } if ($echo) { echo $output; } return $output; } /*-----------------------------------------------------------------------------------*/ /* Automatic Theme Updates /*-----------------------------------------------------------------------------------*/ global $bpxl_goblog_options; $username = $bpxl_goblog_options['bpxl_envato_user_name']; $apikey = $bpxl_goblog_options['bpxl_envato_api_key']; $author = 'Simrandeep Singh'; load_template(trailingslashit(get_template_directory()) . 'inc/wp-theme-upgrader/envato-wp-theme-updater.php'); Envato_WP_Theme_Updater::init($username, $apikey, $author);
function carpress_check_for_updates() { load_template(trailingslashit(get_template_directory()) . 'bower_components/Envato-WordPress-Theme-Updater/envato-wp-theme-updater.php'); $username = trim(ot_get_option('tf_username', '')); $api_key = trim(ot_get_option('tf_api_key', '')); if (!empty($username) && !empty($api_key)) { Envato_WP_Theme_Updater::init($username, $api_key, 'ProteusThemes'); } }