function wptouch_has_themes() { global $wptouch_pro; global $wptouch_theme_iterator; if (!$wptouch_theme_iterator) { $wptouch_themes = $wptouch_pro->get_available_themes(); $wptouch_theme_iterator = new WPtouchArrayIterator($wptouch_themes); } return $wptouch_theme_iterator->have_items(); }
function wptouch_wordtwit_has_recent_tweets() { global $wordtwit_tweet; global $wordtwit_tweet_iterator; if (!$wordtwit_tweet_iterator) { $tweets = wptouch_wordtwit_get_recent_tweets(); $wordtwit_tweet_iterator = new WPtouchArrayIterator($tweets); } return $wordtwit_tweet_iterator->have_items(); }
function wptouch_has_site_licenses() { global $wptouch_pro; global $wptouch_site_license_info; global $wptouch_site_license_iterator; if (!$wptouch_site_license_iterator) { $wptouch_site_license_info = $wptouch_pro->bnc_api->user_list_licenses('wptouch-pro'); $wptouch_site_license_iterator = new WPtouchArrayIterator($wptouch_site_license_info['licenses']); } return $wptouch_site_license_iterator->have_items(); }
function wptouch_admin_has_list_options() { global $_wptouch_list_options_iterator; global $_primed_setting; if (!$_wptouch_list_options_iterator) { $_wptouch_list_options_iterator = new WPtouchArrayIterator($_primed_setting->extra); } $has_items = $_wptouch_list_options_iterator->have_items(); if (!$has_items) { $_wptouch_list_options_iterator = false; } return $has_items; }
function wptouch_have_custom_icons() { global $wptouch_pro; global $wptouch_custom_icons; global $wptouch_custom_icons_iterator; if (!$wptouch_custom_icons_iterator) { $icon_packs = $wptouch_pro->get_available_icon_packs(); if (isset($icon_packs[WPTOUCH_CUSTOM_ICON_SET_NAME])) { $wptouch_custom_icons = $wptouch_pro->get_icons_from_packs(WPTOUCH_CUSTOM_ICON_SET_NAME); } $wptouch_custom_icons_iterator = new WPtouchArrayIterator($wptouch_custom_icons); } return $wptouch_custom_icons_iterator->have_items(); }
function wptouch_has_plugin_warnings() { global $wptouch_pro; global $wptouch_plugin_warning_iterator; $settings = wptouch_get_settings(); if (!$wptouch_plugin_warning_iterator) { $warnings = apply_filters('wptouch_plugin_warnings', $wptouch_pro->warnings); ksort($warnings); $new_warnings = array(); foreach ($warnings as $key => $value) { if (!in_array($key, $settings->dismissed_warnings)) { $new_warnings[$key] = $value; } } $wptouch_plugin_warning_iterator = new WPtouchArrayIterator($new_warnings); } return $wptouch_plugin_warning_iterator->have_items(); }
function wptouch_has_notifications() { global $wptouch_pro; global $wptouch_plugin_notification_iterator; $settings = wptouch_get_settings(); if (!$wptouch_plugin_notification_iterator) { $warnings = apply_filters('wptouch_notifications', $wptouch_pro->notifications); $new_notifications = array(); if (is_array($warnings) && count($warnings)) { foreach ($warnings as $key => $value) { if (!in_array($key, $settings->dismissed_notifications)) { $new_notifications[$key] = $value; } } } $wptouch_plugin_notification_iterator = new WPtouchArrayIterator($new_notifications); } return $wptouch_plugin_notification_iterator->have_items(); }
function wptouch_tab_setting_has_options() { global $wptouch_tab_options_iterator; global $wptouch_tab_section_setting; if (isset($wptouch_tab_section_setting[4])) { if (!$wptouch_tab_options_iterator) { $wptouch_tab_options_iterator = new WPtouchArrayIterator($wptouch_tab_section_setting[4]); } return $wptouch_tab_options_iterator->have_items(); } else { return false; } }
function wptouch_has_theme_screenshots() { global $wptouch_theme_screenshot_iterator; global $wptouch_theme_screenshots; if (!$wptouch_theme_screenshot_iterator) { $wptouch_theme_screenshots = wptouch_get_theme_screenshots(); $wptouch_theme_screenshot_iterator = new WPtouchArrayIterator($wptouch_theme_screenshots); } return $wptouch_theme_screenshot_iterator->have_items(); }
function wptouch_has_theme_preview_images() { global $wptouch_theme_preview_iterator; global $wptouch_theme_previews; if (!$wptouch_theme_preview_iterator) { $wptouch_theme_previews = wptouch_get_theme_preview_images(); $wptouch_theme_preview_iterator = new WPtouchArrayIterator($wptouch_theme_previews); } return $wptouch_theme_preview_iterator->have_items(); }
function wptouch_has_site_icons() { global $wptouch_pro; global $wptouch_site_icons; global $wptouch_site_icon_iterator; if (!$wptouch_site_icons) { $wptouch_site_icons = $wptouch_pro->get_site_icons(); $wptouch_site_icon_iterator = new WPtouchArrayIterator($wptouch_site_icons); } return $wptouch_site_icon_iterator->have_items(); }
function wptouch_admin_has_menu_items() { global $wptouch_admin_menu_items; global $wptouch_admin_menu_iterator; wptouch_build_menu_tree(0, 1, $wptouch_admin_menu_items); $wptouch_admin_menu_iterator = new WPtouchArrayIterator($wptouch_menu_items); return $wptouch_admin_menu_iterator->have_items(); }