예제 #1
0
function themeforest_themes_update($updates)
{
    if (isset($updates->checked)) {
        require_once "pixelentity-themes-updater/class-pixelentity-themes-updater.php";
        $username = defined('THEMEFOREST_USERNAME') ? THEMEFOREST_USERNAME : null;
        $apikey = defined('THEMEFOREST_APIKEY') ? THEMEFOREST_APIKEY : null;
        $updater = new Pixelentity_Themes_Updater($username, $apikey);
        $updates = $updater->check($updates);
    }
    return $updates;
}
예제 #2
0
function themeforest_themes_update($updates)
{
    if (isset($updates->checked)) {
        require_once "themes-updater/class-pixelentity-themes-updater.php";
        $username = of_get_option('hs_envato_username');
        $apikey = of_get_option('hs_envato_apikey');
        $updater = new Pixelentity_Themes_Updater($username, $apikey);
        $updates = $updater->check($updates);
    }
    return $updates;
}
예제 #3
0
파일: index.php 프로젝트: ConceptHaus/atra
 function us_themeforest_themes_update($updates)
 {
     global $smof_data;
     if (isset($updates->checked)) {
         require_once get_template_directory() . "/vendor/tf_updater/pixelentity-themes-updater/class-pixelentity-themes-updater.php";
         $username = $smof_data['themeforest_username'];
         $apikey = $smof_data['themeforest_api_key'];
         $author = 'UpSolution';
         $updater = new Pixelentity_Themes_Updater($username, $apikey, $author);
         $updates = $updater->check($updates);
     }
     return $updates;
 }
예제 #4
0
 function us_themeforest_themes_update($updates)
 {
     global $us_template_directory;
     if (isset($updates->checked)) {
         require_once $us_template_directory . '/framework/vendor/tf-updater/pixelentity-themes-updater/class-pixelentity-themes-updater.php';
         $username = us_get_option('themeforest_username');
         $apikey = us_get_option('themeforest_api_key');
         $author = 'UpSolution';
         $updater = new Pixelentity_Themes_Updater($username, $apikey, $author);
         $updates = $updater->check($updates);
     }
     return $updates;
 }
예제 #5
0
require_once FRAMEWORK_DIRECTORY . 'shortcodes-generator/shortcodeseditorselector.php';
require_once FRAMEWORK_DIRECTORY . 'meta-box/meta-box.php';
/*-----------------------------------------------------------------------------------*/
/*	Initialize the Options framework
/*-----------------------------------------------------------------------------------*/
if (!function_exists('optionsframework_init')) {
    define('OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/framework/options-framework/');
    require_once dirname(__FILE__) . '/framework/options-framework/options-framework.php';
}
/*-----------------------------------------------------------------------------------*/
/*	Initialize the Update framework
/*-----------------------------------------------------------------------------------*/
//require_once( FRAMEWORK_DIRECTORY . 'themeforest-themes-update-master/index.php' );
require_once FRAMEWORK_DIRECTORY . "themeforest-themes-update-master/pixelentity-themes-updater/class-pixelentity-themes-updater.php";
$updates = get_site_transient('update_themes');
$updater = new Pixelentity_Themes_Updater('seniores', 'spacetype');
$updates = $updater->check($updates);
set_site_transient('update_themes', $updates, 2 * 60 * 60);
function sn_is_newer_version()
{
    $updates = get_site_transient('update_themes');
    if (isset($updates->response['spacetype'])) {
        return $updates->response['spacetype'];
    } else {
        return false;
    }
}
/*-----------------------------------------------------------------------------------*/
/*	Load Custom Post Types
/*-----------------------------------------------------------------------------------*/
require_once THEME_DOCUMENT_ROOT . '/inc/post-types.php';
예제 #6
0
파일: kleo.php 프로젝트: 6226/wp
 /**
  * 
  * @param type $updates
  * @return type
  */
 public function themeforest_themes_update($updates)
 {
     if (isset($updates->checked)) {
         if (!class_exists('Pixelentity_Themes_Updater')) {
             require_once KLEO_DIR . "/inc/pixelentity-themes-updater/class-pixelentity-themes-updater.php";
         }
         $username = sq_option('tf_username', false) ? sq_option('tf_username') : null;
         $apikey = sq_option('tf_apikey', false) ? sq_option('tf_apikey') : null;
         $updater = new Pixelentity_Themes_Updater($username, $apikey);
         $updates = $updater->check($updates);
     }
     return $updates;
 }
예제 #7
0
function helium_check_theme_updates($updates)
{
    if (isset($updates->checked)) {
        /* Get Envato username and API key */
        $envato_username = Youxi()->option->get('envato_username');
        $envato_apikey = Youxi()->option->get('envato_api_key');
        if ('' !== $envato_username && '' !== $envato_apikey) {
            if (!class_exists('Pixelentity_Themes_Updater')) {
                require get_template_directory() . '/lib/class-pixelentity-themes-updater.php';
            }
            $updater = new Pixelentity_Themes_Updater($envato_username, $envato_apikey);
            $updates = $updater->check($updates);
        }
    }
    return $updates;
}