diff --git a/wp-content/themes/score/lib/admin/inc/theme-options.php b/wp-content/themes/score/lib/admin/inc/theme-options.php index 915a502..66dded0 100644 --- a/wp-content/themes/score/lib/admin/inc/theme-options.php +++ b/wp-content/themes/score/lib/admin/inc/theme-options.php @@ -1356,13 +1356,6 @@ function gp_admin() {
- -

.

- -

@ghostpool.', 'gp_lang'); ?>

- -

portfolio.', 'gp_lang'); ?>

-

@@ -1768,9 +1761,11 @@ if (is_admin() && $pagenow == "themes.php") { function set_theme_help_text() { global $_registered_pages, $dirname; - if (!empty($_registered_pages)) + /*if (!empty($_registered_pages)) foreach (array_keys($_registered_pages)as $hook) add_contextual_help($hook, '

' . __('Help File', 'gp_lang') . '

' . __('Support Forum', 'gp_lang') . '

' . __('Changelog', 'gp_lang') . '

'); + * + */ } } diff --git a/wp-content/themes/score/lib/admin/inc/theme-post-types_bak.php b/wp-content/themes/score/lib/admin/inc/theme-post-types_bak.php deleted file mode 100644 index d855f0b..0000000 --- a/wp-content/themes/score/lib/admin/inc/theme-post-types_bak.php +++ /dev/null @@ -1,215 +0,0 @@ - array( - 'name' => __('Slides', 'gp_lang'), - 'singular_name' => __('Slide', 'gp_lang'), - 'all_items' => __('All Slides', 'gp_lang'), - 'add_new_item' => __('Add New Slide', 'gp_lang'), - 'edit_item' => __('Edit Slide', 'gp_lang'), - 'new_item' => __('New Slide', 'gp_lang'), - 'view_item' => __('View Slide', 'gp_lang'), - 'search_items' => __('Search Slides', 'gp_lang'), - 'menu_name' => __('Slides', 'gp_lang') - ), - 'public' => true, - 'exclude_from_search' => true, - 'show_ui' => true, - 'show_in_nav_menus' => false, - '_builtin' => false, - '_edit_link' => 'post.php?post=%d', - 'capability_type' => 'post', - 'hierarchical' => false, - 'rewrite' => array("slug" => "slide"), - 'menu_position' => 20, - 'with_front' => true, - 'supports' => array('title', 'thumbnail', 'author', 'custom-fields') - )); - - - /*************************** Slide Categories ***************************/ - - register_taxonomy('slide_categories', 'slide', array( - 'labels' => array( - 'name' => __('Slide Categories', 'gp_lang'), - 'singular_name' => __('Slide Category', 'gp_lang'), - 'all_items' => __('All Slide Categories', 'gp_lang'), - 'add_new_item' => __('Add New Slide Category', 'gp_lang'), - 'edit_item' => __('Edit Slide Category', 'gp_lang'), - 'new_item' => __('New Slide Category', 'gp_lang'), - 'view_item' => __('View Slide Category', 'gp_lang'), - 'search_items' => __('Search Slide Categories', 'gp_lang'), - 'menu_name' => __('Slide Categories', 'gp_lang') - ), - 'show_in_nav_menus' => false, - 'hierarchical' => true, - 'rewrite' => array('slug' => 'slide-categories') - )); - - - /*************************** Slide Page Layout ***************************/ - - add_filter("manage_edit-slide_columns", "slide_edit_columns"); - add_action("manage_posts_custom_column", "slide_custom_columns"); - - function slide_edit_columns($columns){ - $columns = array( - "cb" => "", - "title" => __('Title', 'gp_lang'), - "slide_url" => __('Slide URL', 'gp_lang'), - "slide_categories" => __('Categories', 'gp_lang'), - "slide_image" => __('Image', 'gp_lang'), - "date" => __('Date', 'gp_lang') - ); - - return $columns; - } - - function slide_custom_columns($column){ - global $post; - require(ghostpool_inc . 'options.php'); - switch ($column) - { - case "slide_url": - echo get_post_meta($post->ID, 'ghostpool_slide_url', true); - break; - case "slide_categories": - echo get_the_term_list($post->ID, 'slide_categories', '', ', ', ''); - break; - case "slide_image": - if(has_post_thumbnail()) { - $image = vt_resize(get_post_thumbnail_id(), '', 50, 50, true); - echo ''; - } - - break; - } - } - -} - -add_action('init', 'post_type_slide'); - - -/*************************** Slide Order Menu ***************************/ - -function gp_enable_slide_sort() { - add_submenu_page('edit.php?post_type=slide', __('Order Slides', 'gp_lang'), __('Order Slides', 'gp_lang'), 'edit_posts', basename(__FILE__), 'gp_sort_slides'); -} -add_action('admin_menu' , 'gp_enable_slide_sort'); - -function gp_sort_slides() { - - require(ghostpool_inc . 'options.php'); - - if($theme_slider_cats) { - - $slides = new WP_Query( - array( - 'post_type' => array('post', 'slide'), - 'posts_per_page' => -1, - 'order' => 'asc', - 'orderby' => 'menu_order', - 'tax_query' => - array('relation' => 'OR', - array('taxonomy' => 'slide_categories', 'terms' => explode(',', $theme_slider_cats), 'field' => 'id'), - array('taxonomy' => 'category', 'terms' => explode(',', $theme_slider_cats), 'field' => 'id')) - )); - - } else { - - $slides = new WP_Query( - array( - 'posts_per_page' => 1, - 'cat' => 9999999 - )); - - } - - -?> -
- -

- - - -
- -update($wpdb->posts, array('menu_order' => $counter), array('ID' => $slide_id)); - $counter++; - } - die(1); -} -add_action('wp_ajax_slide_sort', 'gp_save_slide_order'); - -?> \ No newline at end of file diff --git a/wp-content/themes/score/lib/admin/inc/theme-update-notification.php b/wp-content/themes/score/lib/admin/inc/theme-update-notification.php deleted file mode 100644 index 81505aa..0000000 --- a/wp-content/themes/score/lib/admin/inc/theme-update-notification.php +++ /dev/null @@ -1,140 +0,0 @@ -latest > (float)$theme_data['Version']) { // Compare current theme version with the remote XML version - add_dashboard_page( NOTIFIER_THEME_NAME . ' Theme Updates', NOTIFIER_THEME_NAME . ' 1', 'administrator', 'theme-update-notifier', 'gp_update_notifier'); - } - } -} -//add_action('admin_menu', 'gp_update_notifier_menu'); - - - -// Adds an update notification to the WordPress 3.1+ Admin Bar -function gp_update_notifier_bar_menu() { - if (function_exists('simplexml_load_string')) { // Stop if simplexml_load_string funtion isn't available - global $wp_admin_bar, $wpdb; - - if ( !is_super_admin() || !is_admin_bar_showing() ) // Don't display notification in admin bar if it's disabled or the current user isn't an administrator - return; - - $xml = get_latest_theme_version(NOTIFIER_CACHE_INTERVAL); // Get the latest remote XML file on our server - $theme_data = get_theme_data(TEMPLATEPATH . '/style.css'); // Read theme current version from the style.css - - if( (float)$xml->latest > (float)$theme_data['Version']) { // Compare current theme version with the remote XML version - $wp_admin_bar->add_menu( array( 'id' => 'gp_update_notifier', 'title' => '' . NOTIFIER_THEME_NAME . ' Theme Update', 'href' => get_admin_url() . 'index.php?page=theme-update-notifier' ) ); - } - } -} -//add_action( 'admin_bar_menu', 'gp_update_notifier_bar_menu', 1000 ); - - - -// The notifier page -function gp_update_notifier() { - $xml = get_latest_theme_version(NOTIFIER_CACHE_INTERVAL); // Get the latest remote XML file on our server - $theme_data = get_theme_data(TEMPLATEPATH . '/style.css'); // Read theme current version from the style.css ?> - - - -
- -
-

-

latest; ?>.

- - - -
- -

Update Instructions

- -

- -

info; ?>

- -
- -
- - $interval) ) { - // cache doesn't exist, or is old, so refresh it - if( function_exists('curl_init') ) { // if cURL is available, use it... - $ch = curl_init($notifier_file_url); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_HEADER, 0); - curl_setopt($ch, CURLOPT_TIMEOUT, 10); - $cache = curl_exec($ch); - curl_close($ch); - } else { - $cache = file_get_contents($notifier_file_url); // ...if not, use the common file_get_contents() - } - - if ($cache) { - // we got good results - update_option( $db_cache_field, $cache ); - update_option( $db_cache_field_last_updated, time() ); - } - // read from the cache file - $notifier_data = get_option( $db_cache_field ); - } - else { - // cache file is fresh enough, so read from it - $notifier_data = get_option( $db_cache_field ); - } - - // Let's see if the $xml data was returned as we expected it to. - // If it didn't, use the default 1.0 as the latest version so that we don't have problems when the remote server hosting the XML file is down - if( strpos((string)$notifier_data, '') === false ) { - $notifier_data = '1.0'; - } - - // Load the remote XML data into a variable and return it - if ( function_exists('simplexml_load_string') ) { - return simplexml_load_string($notifier_data); - } -} - -?> \ No newline at end of file diff --git a/wp-content/themes/score/lib/admin/inc/theme-widgets.bak.php b/wp-content/themes/score/lib/admin/inc/theme-widgets.bak.php deleted file mode 100644 index 4f35f3b..0000000 --- a/wp-content/themes/score/lib/admin/inc/theme-widgets.bak.php +++ /dev/null @@ -1,583 +0,0 @@ - 'sidebarposts', 'description' => __('Enhanced display for your sidebar posts.', 'gp_lang')); - $this->WP_Widget('sidebar-posts-widget', __('GP Sidebar Posts', 'gp_lang'), $widget_ops); - } - - function widget($args, $instance) { - global $gp_settings, $post, $wp_query, $paged; - extract($args); - $title = apply_filters('widget_title', $instance['title']); - $cats = $instance['cats']; - $number = $instance['number']; - $images = $instance['images']; - $image_width = $instance['image_width']; - $image_height = $instance['image_height']; - $post_cats = $instance['post_cats']; - $post_meta = $instance['post_meta']; - $score_type = $instance['score_type']; - $gd_sort = $instance['gd_sort']; - $gd_order = $instance['gd_order']; - - require(ghostpool_inc . 'options.php'); - - // Begin Widget - echo $before_widget; ?> - -
- - $number, - 'gdsr_sort' => $gd_sort, - 'gdsr_order' => $gd_order, - 'cat' => $cats - ); - - $temp = $wp_query; - $wp_query = null; - $wp_query = new WP_Query(); - $wp_query->query($args); - - // Column Width - $column_width = "300"; - - if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); $counter++; - - // Post Type - $gp_settings['post_type'] = get_post_meta($post->ID, 'ghostpool_post_type', true); - - if(defined('STARRATING_INSTALLED')) { - - $gp_gdsr = wp_gdsr_rating_article(); - - // Site Score Colors - if($gp_gdsr->review <= $theme_score_range_2) { - $site_score_color = ' style="background: '.$theme_site_score_color_1.';"'; - } elseif($gp_gdsr->review >= $theme_score_range_3 && $gp_gdsr->review <= $theme_score_range_4) { - $site_score_color = ' style="background: '.$theme_site_score_color_2.';"'; - } elseif($gp_gdsr->review >= $theme_score_range_5 && $gp_gdsr->review <= $theme_score_range_6) { - $site_score_color = ' style="background: '.$theme_site_score_color_3.';"'; - } elseif($gp_gdsr->review >= $theme_score_range_7) { - $site_score_color = ' style="background: '.$theme_site_score_color_4.';"'; - } - - // User Score Colors - if($gp_gdsr->rating <= $theme_score_range_2) { - $user_score_color = ' style="background: '.$theme_user_score_color_1.';"'; - } elseif($gp_gdsr->rating >= $theme_score_range_3 && $gp_gdsr->rating <= $theme_score_range_4) { - $user_score_color = ' style="background: '.$theme_user_score_color_2.';"'; - } elseif($gp_gdsr->rating >= $theme_score_range_5 && $gp_gdsr->rating <= $theme_score_range_6) { - $user_score_color = ' style="background: '.$theme_user_score_color_3.';"'; - } elseif($gp_gdsr->rating >= $theme_score_range_7) { - $user_score_color = ' style="background: '.$theme_user_score_color_4.';"'; - } - - } - - // User Voting - if(get_post_meta($post->ID, 'ghostpool_user_voting', true) && get_post_meta($post->ID, 'ghostpool_user_voting', true) != "'Default") { - $gp_settings['user_voting'] = get_post_meta($post->ID, 'ghostpool_user_voting', true); - } else { - $gp_settings['user_voting'] = $theme_user_voting; - } - - // Display First Image - if($images == "First Image") { - $image_counter = $counter == 1; - } else { - $image_counter = ""; - } - - // Post Text Width - if(!has_post_thumbnail() OR $images == "No Images" OR ($images == "First Image" && !$image_counter) OR $image_width >= 175) { - $post_text_width = $column_width; - } else { - $post_text_width = $column_width - $image_width - 17; - } - - // Post Left Width - if($gp_settings['post_type'] == "Review" && ($score_type == "Site Score" && $gp_gdsr->review > 0) OR ($score_type == "User Score" && $gp_settings['user_voting'] != "Users cannot vote") OR ($score_type == "Site & User Score" && ($gp_gdsr->review > 0 OR $gp_settings['user_voting'] != "Users cannot vote"))) { - $post_left_width = $post_text_width - 49; - } else { - $post_left_width = $post_text_width; - } - - ?> - -
> - - - -
- - - - <?php if(get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true)) { echo get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true); } else { echo get_the_title(); } ?> - -
- - - - -
review <= 0 && $gp_settings['user_voting'] == "Users cannot vote"))) { ?> hidden" style="width: px;"> - -
- - - - -
- - - - - - -
- - - review > 0 && $gp_settings['user_voting'] != "Users cannot vote"))) { ?> - -
- - - review > 0) { ?> -
> - review; ?> -
- - - - - -
> - rating; ?> -
- - - -
- - - - -
- - -
- - - -
- - '', 'cats' => '', 'number' => 5, 'images' => __('All Images', 'gp_lang'), 'image_width' => '50', 'image_height' => '0', 'post_cats' => __('Yes', 'gp_lang'), 'score_type' => __('Site Score', 'gp_lang'), 'post_meta' => __('Yes', 'gp_lang'), 'gd_sort' => 'review', 'gd_order' => 'desc'); - $instance = wp_parse_args((array) $instance, $defaults); ?> - -

- -
-

-

- -
-

-

- -
-

-

- - -

-

- -
-

-

- -
-

-

- - -

-

- - -

-

- - -

-

- - -

-

- - -

- - - - 'footerposts', 'description' => __('Enhanced display for your footer posts.', 'gp_lang')); - $this->WP_Widget('footer-posts-widget', __('GP Footer Posts', 'gp_lang'), $widget_ops); - } - - function widget($args, $instance) { - global $gp_settings, $post, $wp_query, $paged; - extract($args); - $title = apply_filters('widget_title', $instance['title']); - $cats = $instance['cats']; - $number = $instance['number']; - $images = $instance['images']; - $image_width = $instance['image_width']; - $image_height = $instance['image_height']; - $post_cats = $instance['post_cats']; - $post_meta = $instance['post_meta']; - $score_type = $instance['score_type']; - $gd_sort = $instance['gd_sort']; - $gd_order = $instance['gd_order']; - - require(ghostpool_inc . 'options.php'); - - // Begin Widget - echo $before_widget; ?> - -
- - $number, - 'gdsr_sort' => $gd_sort, - 'gdsr_order' => $gd_order, - 'cat' => $cats - ); - - $temp = $wp_query; - $wp_query = null; - $wp_query = new WP_Query(); - $wp_query->query($args); - - // Widget Width - if(is_active_sidebar('footer-1') && is_active_sidebar('footer-2') && is_active_sidebar('footer-3') && is_active_sidebar('footer-4')) { - $column_width = "207.5"; - } - elseif(is_active_sidebar('footer-1') && is_active_sidebar('footer-2') && is_active_sidebar('footer-3')) { - $column_width = "286.6"; - } - elseif(is_active_sidebar('footer-1') && is_active_sidebar('footer-2')) { - $column_width = "445"; - } - elseif(is_active_sidebar('footer-1')) { - $column_width = "920"; - } - - if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); $counter++; - - // Post Type - $gp_settings['post_type'] = get_post_meta($post->ID, 'ghostpool_post_type', true); - - if(defined('STARRATING_INSTALLED')) { - - $gp_gdsr = wp_gdsr_rating_article(); - - // Site Score Colors - if($gp_gdsr->review <= $theme_score_range_2) { - $site_score_color = ' style="background: '.$theme_site_score_color_1.';"'; - } elseif($gp_gdsr->review >= $theme_score_range_3 && $gp_gdsr->review <= $theme_score_range_4) { - $site_score_color = ' style="background: '.$theme_site_score_color_2.';"'; - } elseif($gp_gdsr->review >= $theme_score_range_5 && $gp_gdsr->review <= $theme_score_range_6) { - $site_score_color = ' style="background: '.$theme_site_score_color_3.';"'; - } elseif($gp_gdsr->review >= $theme_score_range_7) { - $site_score_color = ' style="background: '.$theme_site_score_color_4.';"'; - } - - // User Score Colors - if($gp_gdsr->rating <= $theme_score_range_2) { - $user_score_color = ' style="background: '.$theme_user_score_color_1.';"'; - } elseif($gp_gdsr->rating >= $theme_score_range_3 && $gp_gdsr->rating <= $theme_score_range_4) { - $user_score_color = ' style="background: '.$theme_user_score_color_2.';"'; - } elseif($gp_gdsr->rating >= $theme_score_range_5 && $gp_gdsr->rating <= $theme_score_range_6) { - $user_score_color = ' style="background: '.$theme_user_score_color_3.';"'; - } elseif($gp_gdsr->rating >= $theme_score_range_7) { - $user_score_color = ' style="background: '.$theme_user_score_color_4.';"'; - } - - } - - // Display First Image - if($images == "First Image") { - $image_counter = $counter == 1; - } else { - $image_counter = ""; - } - - // Post Text Width - if(!has_post_thumbnail() OR $images == "No Images" OR ($images == "First Image" && !$image_counter) OR $image_width >= 175) { - $post_text_width = $column_width; - - } else { - $post_text_width = $column_width - $image_width - 17; - } - - // Post Left Width - if($gp_settings['post_type'] == "Review" && ($score_type == "Site Score" && $gp_gdsr->review > 0) OR ($score_type == "User Score" && $gp_settings['user_voting'] != "Users cannot vote") OR ($score_type == "Site & User Score" && ($gp_gdsr->review > 0 OR $gp_settings['user_voting'] != "Users cannot vote"))) { - $post_left_width = $post_text_width - 49; - } else { - $post_left_width = $post_text_width; - } - - ?> - -
> - - - -
- - - - <?php if(get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true)) { echo get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true); } else { echo get_the_title(); } ?> - -
- - - - -
review <= 0 && $gp_settings['user_voting'] == "Users cannot vote"))) { ?> hidden" style="width: px;"> - -
- - - - -
- - - - - - -
- - - review > 0 OR $gp_settings['user_voting'] != "Users cannot vote"))) { ?> - -
- - - review > 0) { ?> -
> - review; ?> -
- - - - - -
> - rating; ?> -
- - - -
- - - - -
- - -
- - - -
- - '', 'cats' => '', 'number' => 5, 'images' => __('All Images', 'gp_lang'), 'image_width' => '50', 'image_height' => '0', 'post_cats' => __('Yes', 'gp_lang'), 'score_type' => __('Site Score', 'gp_lang'), 'post_meta' => __('Yes', 'gp_lang'), 'gd_sort' => 'review', 'gd_order' => 'desc'); - $instance = wp_parse_args((array) $instance, $defaults); ?> - -

- -
-

-

- -
-

-

- -
-

-

- - -

-

- -
-

-

- -
-

-

- - -

-

- - -

-

- - -

-

- - -

-

- - -

- - - - \ No newline at end of file diff --git a/wp-content/themes/score/lib/admin/inc/tinymce/editor_plugin.js b/wp-content/themes/score/lib/admin/inc/tinymce/editor_plugin.js index f02bbe3..d501b9d 100644 --- a/wp-content/themes/score/lib/admin/inc/tinymce/editor_plugin.js +++ b/wp-content/themes/score/lib/admin/inc/tinymce/editor_plugin.js @@ -63,9 +63,9 @@ getInfo : function() { return { longname : 'ghostpool_shortcode', - author : 'ghostpool', - authorurl : 'http://ghostpool.com', - infourl : 'http://ghostpool.com', + author : 'asong2u.com', + authorurl : 'http://asong2u.com', + infourl : 'http://asong2u.com', version : "1.0" }; } diff --git a/wp-content/themes/score/style.css b/wp-content/themes/score/style.css index d7e7bb2..b2473a1 100644 --- a/wp-content/themes/score/style.css +++ b/wp-content/themes/score/style.css @@ -1,13 +1,13 @@ /* -Theme Name: Score -Version: 2.0 -Description: Designed by GhostPool.com. -Author: GhostPool -Author URI: http://www.ghostpool.com -Theme URI: http://www.ghostpool.com +Theme Name: ASong2U +Version: 1.0 +Description: +Author: +Author URI: +Theme URI: License: License URI: -Tags: buddypress, dark, black, blue, gray, one-column, two-columns, left-sidebar, right-sidebar, fixed-width, custom-background, custom-colors, custom-menu, editor-style, featured-images, full-width-template, sticky-post, theme-options, translation-ready, rtl-language-support +Tags: */ /*************************** General Styling ***************************/