From cef361b14aa593e58a0cad91d251070562ddc259 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 25 Jul 2012 16:20:32 +0000 Subject: [PATCH] =?UTF-8?q?Ticket=20#921=20->=20Filtrar=20la=20p=C3=A1gina?= =?UTF-8?q?=20de=20inicio=20para=20no=20repetir=20dedicatorias=20con=20la?= =?UTF-8?q?=20misma=20URL=20de=20video?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@32 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6 --- wp-content/themes/score/functions.php | 23 ++++++- wp-content/themes/score/header.php | 6 +- wp-content/themes/score/index.php | 14 ++++ .../score/lib/admin/inc/theme-options.php | 7 ++ .../score/lib/admin/inc/theme-post-types.php | 66 ------------------- wp-content/themes/score/video-slider.php | 19 +++++- 6 files changed, 65 insertions(+), 70 deletions(-) diff --git a/wp-content/themes/score/functions.php b/wp-content/themes/score/functions.php index d9b2e4a..28e428f 100644 --- a/wp-content/themes/score/functions.php +++ b/wp-content/themes/score/functions.php @@ -19,6 +19,10 @@ $dirname = "score"; // Directory Name if ( !defined( 'DEDICATION_CATEGORY_SLUG' ) ) define( 'DEDICATION_CATEGORY_SLUG', 'dedication' ); +/* * ************************* Concerts Information ********************* */ + +if ( !defined( 'CONCERTS_CATEGORY_SLUG' ) ) + define( 'CONCERTS_CATEGORY_SLUG', 'concerts' ); /* * ************************* File Directories ************************** */ @@ -306,9 +310,9 @@ function register_my_menus() { /* * ************************* Dedication category ********************* */ -add_action('init', 'register_dedication_category'); +//add_action('init', 'register_dedication_category'); function register_dedication_category() { - + global $wpdb; if (!get_category_by_slug(DEDICATION_CATEGORY_SLUG)) { $cat = array( 'cat_name' => 'Dedication', @@ -318,6 +322,21 @@ function register_dedication_category() { } } +/* * ************************* Concerts category ********************* */ + +//add_action('init', 'register_concerts_category'); +function register_concerts_category() { + global $wpdb; + if (!get_category_by_slug(CONCERTS_CATEGORY_SLUG)) { + $cat = array( + 'cat_name' => 'Concerts', + 'category_nicename' => CONCERTS_CATEGORY_SLUG); + + wp_insert_category($cat); + } +} + + /* * ************************* Other Features ************************** */ diff --git a/wp-content/themes/score/header.php b/wp-content/themes/score/header.php index 5997352..b5b3f06 100644 --- a/wp-content/themes/score/header.php +++ b/wp-content/themes/score/header.php @@ -54,7 +54,11 @@