Example #1
0
function wptouch_get_site_icon_icon()
{
    global $wptouch_site_icon;
    global $wptouch_pro;
    $settings = $wptouch_pro->get_settings();
    if (isset($settings->menu_icons[$wptouch_site_icon->id])) {
        $icon = bnc_wptouch_sslize(WP_CONTENT_URL . $settings->menu_icons[$wptouch_site_icon->id]);
    } else {
        $icon = bnc_wptouch_sslize(WP_CONTENT_URL . $wptouch_site_icon->icon);
    }
    return apply_filters('wptouch_site_icon_icon', $icon);
}
Example #2
0
function wptouch_get_site_menu_icon($icon_type)
{
    global $wptouch_pro;
    $settings = $wptouch_pro->get_settings();
    if (isset($settings->menu_icons[$icon_type])) {
        $icon = bnc_wptouch_sslize(WP_CONTENT_URL . $settings->menu_icons[$icon_type]);
    } else {
        $site_icons = $wptouch_pro->get_site_icons();
        if ($site_icons && isset($site_icons[$icon_type])) {
            $icon = $site_icons[$icon_type]->url;
        } else {
            if (isset($settings->menu_icons[WPTOUCH_ICON_DEFAULT])) {
                $icon = bnc_wptouch_sslize(WP_CONTENT_URL . $settings->menu_icons[WPTOUCH_ICON_DEFAULT]);
            } else {
                $icon = $site_icons[WPTOUCH_ICON_DEFAULT]->url;
            }
        }
    }
    return $icon;
}
Example #3
0
} else {
    define('WPTOUCH_SETTING_NAME', 'wptouch-pro');
    define('WPTOUCH_DIR', WP_PLUGIN_DIR . '/wptouch-pro');
    define('WPTOUCH_URL', bnc_wptouch_sslize(WP_PLUGIN_URL . '/wptouch-pro'));
    define('WPTOUCH_PRODUCT_NAME', 'WPtouch Pro');
}
//! The WPtouch Pro user cookie
define('WPTOUCH_COOKIE', 'wptouch-pro-view');
define('WPTOUCH_BNCID_CACHE_TIME', 3600);
define('BNC_WPTOUCH_UNLIMITED', 9999);
define('WPTOUCH_IPAD_DIR', WPTOUCH_DIR . '/include/ipad');
define('WPTOUCH_IPAD_URL', WPTOUCH_URL . '/include/ipad');
define('WPTOUCH_ADMIN_DIR', WPTOUCH_DIR . '/admin');
define('WPTOUCH_ADMIN_AJAX_DIR', WPTOUCH_ADMIN_DIR . '/html/ajax');
define('WPTOUCH_BASE_CONTENT_DIR', WP_CONTENT_DIR . '/wptouch-data');
define('WPTOUCH_BASE_CONTENT_URL', bnc_wptouch_sslize(WP_CONTENT_URL . '/wptouch-data'));
define('WPTOUCH_TEMP_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . '/temp');
define('WPTOUCH_TEMP_URL', WPTOUCH_BASE_CONTENT_URL . '/temp');
define('WPTOUCH_CUSTOM_SET_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . '/icons');
define('WPTOUCH_CUSTOM_ICON_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . '/icons/custom');
define('WPTOUCH_CUSTOM_THEME_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . '/themes');
define('WPTOUCH_CUSTOM_LANG_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . '/lang');
define('WPTOUCH_CUSTOM_SETTINGS_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . '/settings');
define('WPTOUCH_CHILD_THEME_TEMPLATE_DIRECTORY', WPTOUCH_DIR . '/include/child-templates');
define('WPTOUCH_DEBUG_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . '/debug');
define('WPTOUCH_CACHE_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . '/cache');
define('WPTOUCH_CACHE_URL', WPTOUCH_BASE_CONTENT_URL . '/cache');
define('WPTOUCH_CUSTOM_ICON_URL', WPTOUCH_BASE_CONTENT_URL . '/icons/custom');
define('WPTOUCH_PRO_MIN_BACKUP_FILES', 30);
global $wptouch_menu_items;
//! the built menu item tree
Example #4
0
 function get_current_theme_uri()
 {
     return bnc_wptouch_sslize(WP_CONTENT_URL . $this->get_current_theme_location());
 }