From 4b3880352bfb5fd6b73acd4b5b30afab8ce1e87d Mon Sep 17 00:00:00 2001 From: david Date: Fri, 28 Jun 2013 17:47:08 +0000 Subject: [PATCH] Cargar algunos ficheros javascript desde CDN. git-svn-id: https://192.168.0.254/svn/Proyectos.FundacionLQDVI_Web/trunk@58 77ab8c26-3d69-2c4d-86f2-786f4ba54905 --- src/wp-content/themes/lqdvi/functions.php | 825 +++++++++++----------- src/wp-content/themes/lqdvi/header.php | 49 +- 2 files changed, 452 insertions(+), 422 deletions(-) diff --git a/src/wp-content/themes/lqdvi/functions.php b/src/wp-content/themes/lqdvi/functions.php index a47ff418..bbe351d6 100644 --- a/src/wp-content/themes/lqdvi/functions.php +++ b/src/wp-content/themes/lqdvi/functions.php @@ -1,60 +1,57 @@ -
-

- The path is not writable, please login with your FTP account and make it writable (chmod 777) otherwise all images won't display. -

-
+ global $themename, $shortname, $options; + $i = 0; - -
-

Settings

-


- -

'.$themename.' settings saved.


'; -if ( isset($_REQUEST['reset']) && $_REQUEST['reset'] ) echo '

'.$themename.' settings reset.


'; - ?> - -
-
- '; - print_r($value); - print '';*/ - - $active = ''; - - if($value['type'] == 'section') - { - if($value['name'] == 'General') - { - $active = 'nav-tab-active'; - } - echo ''.$value['name'].''; - } - } - ?> - -
+ $cache_dir = TEMPLATEPATH . '/cache'; -
-
- - - -
-
+ if (!is_writable($cache_dir)) { + ?> + +
+

+ The path is not writable, please login with your FTP account and make it writable (chmod 777) otherwise all images won't display. +

+
+ + +
+

Settings

+


+ +

' . $themename . ' settings saved.


'; + if (isset($_REQUEST['reset']) && $_REQUEST['reset']) + echo '

' . $themename . ' settings reset.


'; + ?> + +
+
+ '; + print_r($value); + print ''; */ + + $active = ''; + + if ($value['type'] == 'section') { + if ($value['name'] == 'General') { + $active = 'nav-tab-active'; + } + echo '' . $value['name'] . ''; + } + } + ?> + +
+ +
+ + + + +
+
- -
+ +
- + - " - /> - -
- - - - - + //if sidebar input then not show default value + if ($value['id'] != $shortname . "_sidebar0") { + $default_val = get_settings($value['id']); + } else { + $default_val = ''; + } + ?> - - + " + /> + +
-case 'password': -?> + - " - /> - -
+ if (!empty($current_sidebar)) { + ?> + -
- - -
+ -
+ + + case 'password': + ?> -
+
+ " + /> + +
- -
-
- +
+ + case 'jslider': + ?> -
- $option) { ?> -
- - value=""/> -
- -
- - -
- - +
+
+ " + /> +
+ +
-
+ - - /> +
+ +
+
"> 
+ " + class="color_picker"/> + +
+ +
+ + + +
+ + +
+ +
+ + + +
+ + +
+
+ + +
+ +
+ $option) { ?> +
+ + value=""/> +
+ +
+ + +
+
+ + +
+ + + /> - -
-
- +
+
+ + case "iphone_checkboxes": + ?> -
+
- - /> + + /> - -
-
+ +
+
- + $i++; + ?> -
-
-

- -
-
-
-

-



- - - -
-
+
+
+

+ +
+
+
+

+



+ + + +
+
- ID, ARRAY_A); $slug = $post_data['post_name']; - return $slug; + return $slug; } function get_the_post_thumbnail_src($img) { - return (preg_match('~\bsrc="([^"]++)"~', $img, $matches)) ? $matches[1] : ''; + return (preg_match('~\bsrc="([^"]++)"~', $img, $matches)) ? $matches[1] : ''; } - function custom_plugin_language_dir() { load_plugin_textdomain('tweetblender', false, '../languages/'); } -add_action('after_setup_theme', 'custom_plugin_language_dir'); +add_action('after_setup_theme', 'custom_plugin_language_dir'); function my_init() { if (!is_admin()) { // comment out the next two lines to load the local copy of jQuery wp_deregister_script('jquery'); - wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', false, '1.8.3'); + wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', false); wp_enqueue_script('jquery'); + + wp_deregister_script('jquery-ui-core'); + wp_register_script('jquery-ui-core', 'http://ajax.aspnetcdn.com/ajax/jquery.ui/1.9.2/jquery-ui.min.js', false); + wp_enqueue_script('jquery-ui-core'); } } + add_action('init', 'my_init'); -?> - \ No newline at end of file + diff --git a/src/wp-content/themes/lqdvi/header.php b/src/wp-content/themes/lqdvi/header.php index 6c4637ca..8387da84 100644 --- a/src/wp-content/themes/lqdvi/header.php +++ b/src/wp-content/themes/lqdvi/header.php @@ -30,12 +30,12 @@ if (!empty($pp_favicon)) {