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
This commit is contained in:
parent
8246303e24
commit
4b3880352b
@ -1,10 +1,9 @@
|
||||
<?php
|
||||
|
||||
define("THEMENAME", "lqdvi");
|
||||
define("SHORTNAME", "pp");
|
||||
|
||||
require_once ('save_application_form.php');
|
||||
//require_once ('pasarela_tpv.php'); <- no utilizar más la pasarela TPV
|
||||
//require_once ('pasarela_tpv.php'); <- no utilizar m<EFBFBD>s la pasarela TPV
|
||||
|
||||
load_theme_textdomain('lqdvi', TEMPLATEPATH . '/languages');
|
||||
|
||||
@ -15,12 +14,10 @@ if ( is_readable($locale_file) )
|
||||
|
||||
|
||||
//If delete sidebar
|
||||
if(isset($_POST['sidebar_id']) && !empty($_POST['sidebar_id']))
|
||||
{
|
||||
if (isset($_POST['sidebar_id']) && !empty($_POST['sidebar_id'])) {
|
||||
$current_sidebar = get_option('pp_sidebar');
|
||||
|
||||
if(isset($current_sidebar[ $_POST['sidebar_id'] ]))
|
||||
{
|
||||
if (isset($current_sidebar[$_POST['sidebar_id']])) {
|
||||
unset($current_sidebar[$_POST['sidebar_id']]);
|
||||
update_option("pp_sidebar", $current_sidebar);
|
||||
}
|
||||
@ -33,6 +30,7 @@ if(isset($_POST['sidebar_id']) && !empty($_POST['sidebar_id']))
|
||||
* Setup main navigation menu
|
||||
*/
|
||||
add_action('init', 'register_my_menu');
|
||||
|
||||
function register_my_menu() {
|
||||
register_nav_menu('primary-menu', __('Primary Menu'));
|
||||
}
|
||||
@ -45,7 +43,6 @@ if ( function_exists( 'add_theme_support' ) ) {
|
||||
/**
|
||||
* Setup all theme's library
|
||||
* */
|
||||
|
||||
/**
|
||||
* Setup admin setting
|
||||
* */
|
||||
@ -80,7 +77,6 @@ while (false!==($pp_file = readdir($pp_handle))) {
|
||||
}
|
||||
closedir($pp_handle);
|
||||
|
||||
|
||||
function pp_add_admin() {
|
||||
|
||||
global $themename, $shortname, $options;
|
||||
@ -89,43 +85,35 @@ if ( isset($_GET['page']) && $_GET['page'] == basename(__FILE__) ) {
|
||||
|
||||
if (isset($_REQUEST['action']) && 'save' == $_REQUEST['action']) {
|
||||
|
||||
foreach ($options as $value)
|
||||
{
|
||||
foreach ($options as $value) {
|
||||
update_option($value['id'], $_REQUEST[$value['id']]);
|
||||
}
|
||||
|
||||
foreach ($options as $value) {
|
||||
if (isset($_REQUEST[$value['id']])) {
|
||||
if($value['id'] != $shortname."_sidebar0")
|
||||
{
|
||||
if ($value['id'] != $shortname . "_sidebar0") {
|
||||
update_option($value['id'], $_REQUEST[$value['id']]);
|
||||
}
|
||||
elseif(isset($_REQUEST[ $value['id'] ]) && !empty($_REQUEST[ $value['id'] ]))
|
||||
{
|
||||
} elseif (isset($_REQUEST[$value['id']]) && !empty($_REQUEST[$value['id']])) {
|
||||
//get last sidebar serialize array
|
||||
$current_sidebar = get_option($shortname . "_sidebar");
|
||||
$current_sidebar[$_REQUEST[$value['id']]] = $_REQUEST[$value['id']];
|
||||
|
||||
update_option($shortname . "_sidebar", $current_sidebar);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
delete_option($value['id']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
header("Location: admin.php?page=functions.php&saved=true" . $_REQUEST['current_tab']);
|
||||
|
||||
}
|
||||
else if( isset($_REQUEST['action']) && 'reset' == $_REQUEST['action'] ) {
|
||||
} else if (isset($_REQUEST['action']) && 'reset' == $_REQUEST['action']) {
|
||||
|
||||
foreach ($options as $value) {
|
||||
delete_option( $value['id'] ); }
|
||||
delete_option($value['id']);
|
||||
}
|
||||
|
||||
header("Location: admin.php?page=functions.php&reset=true");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -144,8 +132,8 @@ wp_enqueue_script("iphone_checkboxes", $file_dir."/functions/iphone-style-checkb
|
||||
wp_enqueue_script("jslider_depend", $file_dir . "/functions/jquery.dependClass.js", false, "1.0");
|
||||
wp_enqueue_script("jslider", $file_dir . "/functions/jquery.slider-min.js", false, "1.0");
|
||||
wp_enqueue_script("rm_script", $file_dir . "/functions/rm_script.js", false, "1.0");
|
||||
|
||||
}
|
||||
|
||||
function pp_admin() {
|
||||
|
||||
global $themename, $shortname, $options;
|
||||
@ -153,8 +141,7 @@ $i=0;
|
||||
|
||||
$cache_dir = TEMPLATEPATH . '/cache';
|
||||
|
||||
if(!is_writable($cache_dir))
|
||||
{
|
||||
if (!is_writable($cache_dir)) {
|
||||
?>
|
||||
|
||||
<div id="message" class="error fade">
|
||||
@ -171,8 +158,10 @@ if(!is_writable($cache_dir))
|
||||
<br/><br/><br/>
|
||||
|
||||
<?php
|
||||
if ( isset($_REQUEST['saved']) && $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div><br/>';
|
||||
if ( isset($_REQUEST['reset']) && $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div><br/>';
|
||||
if (isset($_REQUEST['saved']) && $_REQUEST['saved'])
|
||||
echo '<div id="message" class="updated fade"><p><strong>' . $themename . ' settings saved.</strong></p></div><br/>';
|
||||
if (isset($_REQUEST['reset']) && $_REQUEST['reset'])
|
||||
echo '<div id="message" class="updated fade"><p><strong>' . $themename . ' settings reset.</strong></p></div><br/>';
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
@ -185,10 +174,8 @@ if ( isset($_REQUEST['reset']) && $_REQUEST['reset'] ) echo '<div id="message"
|
||||
|
||||
$active = '';
|
||||
|
||||
if($value['type'] == 'section')
|
||||
{
|
||||
if($value['name'] == 'General')
|
||||
{
|
||||
if ($value['type'] == 'section') {
|
||||
if ($value['name'] == 'General') {
|
||||
$active = 'nav-tab-active';
|
||||
}
|
||||
echo '<a id="pp_panel_' . strtolower($value['name']) . '_a" href="#pp_panel_' . strtolower($value['name']) . '" class="nav-tab ' . $active . '">' . $value['name'] . '</a>';
|
||||
@ -201,11 +188,13 @@ if ( isset($_REQUEST['reset']) && $_REQUEST['reset'] ) echo '<div id="message"
|
||||
<div class="rm_opts">
|
||||
<form method="post">
|
||||
|
||||
<?php foreach ($options as $value) {
|
||||
<?php
|
||||
foreach ($options as $value) {
|
||||
switch ($value['type']) {
|
||||
|
||||
case "open":
|
||||
?> <?php break;
|
||||
?> <?php
|
||||
break;
|
||||
|
||||
case "close":
|
||||
?>
|
||||
@ -214,24 +203,23 @@ case "close":
|
||||
</div>
|
||||
|
||||
|
||||
<?php break;
|
||||
<?php
|
||||
break;
|
||||
|
||||
case "title":
|
||||
?>
|
||||
<br />
|
||||
|
||||
|
||||
<?php break;
|
||||
<?php
|
||||
break;
|
||||
|
||||
case 'text':
|
||||
|
||||
//if sidebar input then not show default value
|
||||
if($value['id'] != $shortname."_sidebar0")
|
||||
{
|
||||
if ($value['id'] != $shortname . "_sidebar0") {
|
||||
$default_val = get_settings($value['id']);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$default_val = '';
|
||||
}
|
||||
?>
|
||||
@ -239,26 +227,29 @@ case 'text':
|
||||
<div class="rm_input rm_text"><label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
|
||||
<input name="<?php echo $value['id']; ?>"
|
||||
id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>"
|
||||
value="<?php if ($default_val != "") { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?>"
|
||||
<?php if(!empty($value['size'])) { echo 'style="width:'.$value['size'].'"'; } ?> />
|
||||
value="<?php if ($default_val != "") {
|
||||
echo stripslashes(get_settings($value['id']));
|
||||
} else {
|
||||
echo $value['std'];
|
||||
} ?>"
|
||||
<?php if (!empty($value['size'])) {
|
||||
echo 'style="width:' . $value['size'] . '"';
|
||||
} ?> />
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<?php
|
||||
if($value['id'] == $shortname."_sidebar0")
|
||||
{
|
||||
if ($value['id'] == $shortname . "_sidebar0") {
|
||||
$current_sidebar = get_option($shortname . "_sidebar");
|
||||
|
||||
if(!empty($current_sidebar))
|
||||
{
|
||||
if (!empty($current_sidebar)) {
|
||||
?>
|
||||
<ul id="current_sidebar" class="rm_list">
|
||||
|
||||
<?php
|
||||
$url = (!empty($_SERVER['HTTPS'])) ? "https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] : "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
|
||||
|
||||
foreach($current_sidebar as $sidebar)
|
||||
{
|
||||
foreach ($current_sidebar as $sidebar) {
|
||||
?>
|
||||
|
||||
<li id="<?= $sidebar ?>"><?= $sidebar ?> ( <a href="<?php echo $url; ?>" class="sidebar_del" rel="<?= $sidebar ?>">Delete</a> )</li>
|
||||
@ -284,8 +275,14 @@ case 'password':
|
||||
<div class="rm_input rm_text"><label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
|
||||
<input name="<?php echo $value['id']; ?>"
|
||||
id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>"
|
||||
value="<?php if ( get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?>"
|
||||
<?php if(!empty($value['size'])) { echo 'style="width:'.$value['size'].'"'; } ?> />
|
||||
value="<?php if (get_settings($value['id']) != "") {
|
||||
echo stripslashes(get_settings($value['id']));
|
||||
} else {
|
||||
echo $value['std'];
|
||||
} ?>"
|
||||
<?php if (!empty($value['size'])) {
|
||||
echo 'style="width:' . $value['size'] . '"';
|
||||
} ?> />
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
@ -300,8 +297,14 @@ case 'jslider':
|
||||
<div style="float:left;width:270px;padding-left:10px">
|
||||
<input name="<?php echo $value['id']; ?>"
|
||||
id="<?php echo $value['id']; ?>" type="text" class="jslider"
|
||||
value="<?php if ( get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?>"
|
||||
<?php if(!empty($value['size'])) { echo 'style="width:'.$value['size'].'"'; } ?> />
|
||||
value="<?php if (get_settings($value['id']) != "") {
|
||||
echo stripslashes(get_settings($value['id']));
|
||||
} else {
|
||||
echo $value['std'];
|
||||
} ?>"
|
||||
<?php if (!empty($value['size'])) {
|
||||
echo 'style="width:' . $value['size'] . '"';
|
||||
} ?> />
|
||||
</div>
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
@ -315,11 +318,21 @@ break;
|
||||
case 'colorpicker':
|
||||
?>
|
||||
<div class="rm_input rm_text"><label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
|
||||
<div id="<?php echo $value['id']; ?>_bg" class="colorpicker_bg" onclick="jQuery('#<?php echo $value['id']; ?>').click()" style="background:<?php if (get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?>"> </div>
|
||||
<div id="<?php echo $value['id']; ?>_bg" class="colorpicker_bg" onclick="jQuery('#<?php echo $value['id']; ?>').click()" style="background:<?php if (get_settings($value['id']) != "") {
|
||||
echo stripslashes(get_settings($value['id']));
|
||||
} else {
|
||||
echo $value['std'];
|
||||
} ?>"> </div>
|
||||
<input name="<?php echo $value['id']; ?>"
|
||||
id="<?php echo $value['id']; ?>" type="text"
|
||||
value="<?php if ( get_settings( $value['id'] ) != "" ) { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?>"
|
||||
<?php if(!empty($value['size'])) { echo 'style="width:'.$value['size'].'"'; } ?> class="color_picker"/>
|
||||
value="<?php if (get_settings($value['id']) != "") {
|
||||
echo stripslashes(get_settings($value['id']));
|
||||
} else {
|
||||
echo $value['std'];
|
||||
} ?>"
|
||||
<?php if (!empty($value['size'])) {
|
||||
echo 'style="width:' . $value['size'] . '"';
|
||||
} ?> class="color_picker"/>
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
@ -334,7 +347,11 @@ case 'textarea':
|
||||
<div class="rm_input rm_textarea"><label
|
||||
for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
|
||||
<textarea name="<?php echo $value['id']; ?>"
|
||||
type="<?php echo $value['type']; ?>" cols="" rows=""><?php if ( get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?></textarea>
|
||||
type="<?php echo $value['type']; ?>" cols="" rows=""><?php if (get_settings($value['id']) != "") {
|
||||
echo stripslashes(get_settings($value['id']));
|
||||
} else {
|
||||
echo $value['std'];
|
||||
} ?></textarea>
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
@ -353,7 +370,9 @@ case 'select':
|
||||
id="<?php echo $value['id']; ?>">
|
||||
<?php foreach ($value['options'] as $key => $option) { ?>
|
||||
<option
|
||||
<?php if (get_settings( $value['id'] ) == $key) { echo 'selected="selected"'; } ?>
|
||||
<?php if (get_settings($value['id']) == $key) {
|
||||
echo 'selected="selected"';
|
||||
} ?>
|
||||
value="<?php echo $key; ?>"><?php echo $option; ?></option>
|
||||
<?php } ?>
|
||||
</select> <small><?php echo $value['desc']; ?></small>
|
||||
@ -372,7 +391,9 @@ case 'radio':
|
||||
<?php foreach ($value['options'] as $key => $option) { ?>
|
||||
<div style="float:left;margin:0 20px 20px 0">
|
||||
<input style="float:left;" id="<?php echo $value['id']; ?>" name="<?php echo $value['id']; ?>" type="radio"
|
||||
<?php if (get_settings( $value['id'] ) == $key) { echo 'checked="checked"'; } ?>
|
||||
<?php if (get_settings($value['id']) == $key) {
|
||||
echo 'checked="checked"';
|
||||
} ?>
|
||||
value="<?php echo $key; ?>"/><?php echo html_entity_decode($option); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
@ -390,7 +411,11 @@ case "checkbox":
|
||||
<div class="rm_input rm_checkbox"><label
|
||||
for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
|
||||
|
||||
<?php if(get_option($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = "";} ?>
|
||||
<?php if (get_option($value['id'])) {
|
||||
$checked = "checked=\"checked\"";
|
||||
} else {
|
||||
$checked = "";
|
||||
} ?>
|
||||
<input type="checkbox" name="<?php echo $value['id']; ?>"
|
||||
id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
|
||||
|
||||
@ -398,7 +423,8 @@ case "checkbox":
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<?php break;
|
||||
<?php
|
||||
break;
|
||||
|
||||
case "iphone_checkboxes":
|
||||
?>
|
||||
@ -406,7 +432,11 @@ case "iphone_checkboxes":
|
||||
<div class="rm_input rm_checkbox"><label
|
||||
for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
|
||||
|
||||
<?php if(get_option($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = "";} ?>
|
||||
<?php if (get_option($value['id'])) {
|
||||
$checked = "checked=\"checked\"";
|
||||
} else {
|
||||
$checked = "";
|
||||
} ?>
|
||||
<input type="checkbox" class="iphone_checkboxes" name="<?php echo $value['id']; ?>"
|
||||
id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
|
||||
|
||||
@ -415,12 +445,12 @@ case "iphone_checkboxes":
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<?php break;
|
||||
<?php
|
||||
break;
|
||||
|
||||
case "section":
|
||||
|
||||
$i++;
|
||||
|
||||
?>
|
||||
|
||||
<div id="pp_panel_<?php echo strtolower($value['name']); ?>" class="rm_section">
|
||||
@ -432,8 +462,8 @@ $i++;
|
||||
value="Save changes" /> </span>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="rm_options"><?php break;
|
||||
|
||||
<div class="rm_options"><?php
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -475,7 +505,6 @@ if ($_GET['activated']){
|
||||
/**
|
||||
* Remove Contact Form 7 JS & CSS
|
||||
* */
|
||||
|
||||
if (!is_admin()) {
|
||||
add_action('wp_print_scripts', 'deregister_cf7_javascript', 100);
|
||||
add_action('wp_print_styles', 'deregister_cf7_styles', 100);
|
||||
@ -500,6 +529,7 @@ function deregister_cf7_styles() {
|
||||
}
|
||||
|
||||
if (!function_exists('_log')) {
|
||||
|
||||
function _log($message) {
|
||||
if (WP_DEBUG === true) {
|
||||
if (is_array($message) || is_object($message)) {
|
||||
@ -509,8 +539,8 @@ if(!function_exists('_log')){
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function the_slug() {
|
||||
$post_data = get_post($post->ID, ARRAY_A);
|
||||
@ -522,23 +552,26 @@ function get_the_post_thumbnail_src($img) {
|
||||
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');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@ -30,12 +30,12 @@ if (!empty($pp_favicon)) {
|
||||
|
||||
<!-- Template stylesheet -->
|
||||
<?php
|
||||
wp_enqueue_style("jqueryui_css", get_bloginfo('stylesheet_directory') . "/css/jqueryui/custom.css", false, $pp_theme_version, "all");
|
||||
wp_enqueue_style("screen_css", get_bloginfo('stylesheet_directory') . "/css/screen.css", false, $pp_theme_version, "all");
|
||||
wp_enqueue_style("lqdvi_css", get_bloginfo('stylesheet_directory') . "/css/lqdvi.css", false, $pp_theme_version, "all");
|
||||
wp_enqueue_style("fancybox_css", get_bloginfo('stylesheet_directory') . "/js/fancybox/jquery.fancybox-1.3.0.css", false, $pp_theme_version, "all");
|
||||
wp_enqueue_style("videojs_css", get_bloginfo('stylesheet_directory') . "/js/video-js.css", false, $pp_theme_version, "all");
|
||||
wp_enqueue_style("vim_css", get_bloginfo('stylesheet_directory') . "/js/skins/vim.css", false, $pp_theme_version, "all");
|
||||
wp_enqueue_style("jqueryui_css", get_bloginfo('stylesheet_directory') . "/css/jqueryui/custom.css", false);
|
||||
wp_enqueue_style("screen_css", get_bloginfo('stylesheet_directory') . "/css/screen.css", false);
|
||||
wp_enqueue_style("lqdvi_css", get_bloginfo('stylesheet_directory') . "/css/lqdvi.css", false);
|
||||
wp_enqueue_style("fancybox_css", get_bloginfo('stylesheet_directory') . "/js/fancybox/jquery.fancybox-1.3.0.css", false);
|
||||
//wp_enqueue_style("videojs_css", get_bloginfo('stylesheet_directory') . "/js/video-js.css", false);
|
||||
//wp_enqueue_style("vim_css", get_bloginfo('stylesheet_directory') . "/js/skins/vim.css", false);
|
||||
?>
|
||||
|
||||
<?php
|
||||
@ -55,18 +55,15 @@ if (!empty($pp_favicon)) {
|
||||
wp_enqueue_script('jquery');
|
||||
wp_enqueue_script("jquery-ui-core");
|
||||
|
||||
//wp_enqueue_script("jQuery", get_bloginfo( 'stylesheet_directory' )."/js/jquery.js", false, $pp_theme_version);
|
||||
//wp_enqueue_script("jQuery", get_bloginfo( 'stylesheet_directory' )."/js/jquery-1.5.min.js");
|
||||
//wp_enqueue_script("jQuery", "http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js");
|
||||
wp_enqueue_script("jQuery_cycle", "http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js");
|
||||
//wp_enqueue_script("jQuery_UI_js", get_bloginfo( 'stylesheet_directory' )."/js/jquery-ui.js", false, $pp_theme_version);
|
||||
wp_enqueue_script("jQuery_cycle", "http://ajax.aspnetcdn.com/ajax/jquery.cycle/2.88/jquery.cycle.all.min.js");
|
||||
|
||||
wp_enqueue_script("fancybox_js", get_bloginfo('stylesheet_directory') . "/js/fancybox/jquery.fancybox-1.3.0.js", false, $pp_theme_version);
|
||||
wp_enqueue_script("jQuery_easing", get_bloginfo('stylesheet_directory') . "/js/jquery.easing.js", false, $pp_theme_version);
|
||||
wp_enqueue_script("jQuery_nivo", get_bloginfo('stylesheet_directory') . "/js/jquery.nivo.slider.js", false, $pp_theme_version);
|
||||
wp_enqueue_script("jQuery_anything_slider", get_bloginfo('stylesheet_directory') . "/js/anythingSlider.js", false, $pp_theme_version);
|
||||
wp_enqueue_script("jQuery_kwicks", get_bloginfo('stylesheet_directory') . "/js/jquery.kwicks.js", false, $pp_theme_version);
|
||||
wp_enqueue_script("jQuery_cycle", get_bloginfo('stylesheet_directory') . "/js/jquery.cycle.all.js", false, $pp_theme_version);
|
||||
wp_enqueue_script("fancybox_js", "http://cdnjs.cloudflare.com/ajax/libs/fancybox/1.3.4/jquery.fancybox-1.3.4.pack.min.js", false);
|
||||
wp_enqueue_script("jQuery_easing", "http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js", false);
|
||||
|
||||
|
||||
wp_enqueue_script("jQuery_nivo", get_bloginfo('stylesheet_directory') . "/js/jquery.nivo.slider.js", false);
|
||||
wp_enqueue_script("jQuery_anything_slider", get_bloginfo('stylesheet_directory') . "/js/anythingSlider.js", false);
|
||||
wp_enqueue_script("jQuery_kwicks", "http://cdn.jsdelivr.net/kwicks/1.5.1/jquery.kwicks-1.5.1.pack.js", false);
|
||||
|
||||
/**
|
||||
* Check Google Maps key
|
||||
@ -74,11 +71,11 @@ if (!empty($pp_favicon)) {
|
||||
$pp_gm_key = get_option('pp_gm_key');
|
||||
|
||||
if (!empty($pp_gm_key)) {
|
||||
wp_enqueue_script("jQuery_gmap", get_bloginfo('stylesheet_directory') . "/js/gmap.js", false, $pp_theme_version);
|
||||
wp_enqueue_script("jQuery_gmap", get_bloginfo('stylesheet_directory') . "/js/gmap.js", false);
|
||||
}
|
||||
|
||||
//wp_enqueue_script("jQuery_validate", get_bloginfo('stylesheet_directory') . "/js/jquery.validate.js", false, $pp_theme_version);
|
||||
wp_enqueue_script("jQuery_cufon", get_bloginfo('stylesheet_directory') . "/js/cufon.js", false, $pp_theme_version);
|
||||
wp_enqueue_script("jQuery_cufon", "http://cdn.jsdelivr.net/cufon/1.09/cufon-yui.js", false);
|
||||
|
||||
/**
|
||||
* Check selected font
|
||||
@ -98,18 +95,18 @@ if (!empty($pp_favicon)) {
|
||||
$pp_menu_font = 'ChildsPlay-AgeEight_500.font';
|
||||
}
|
||||
|
||||
wp_enqueue_script("cufon_font", get_bloginfo('stylesheet_directory') . "/fonts/" . $pp_font . ".js", false, $pp_theme_version);
|
||||
wp_enqueue_script("cufon_font", get_bloginfo('stylesheet_directory') . "/fonts/" . $pp_font . ".js", false);
|
||||
if ($pp_general_font != $pp_font) {
|
||||
wp_enqueue_script("cufon_general_font", get_bloginfo('stylesheet_directory') . "/fonts/" . $pp_general_font . ".js", false, $pp_theme_version);
|
||||
wp_enqueue_script("cufon_general_font", get_bloginfo('stylesheet_directory') . "/fonts/" . $pp_general_font . ".js", false);
|
||||
}
|
||||
|
||||
if ($pp_menu_font != $pp_font) {
|
||||
wp_enqueue_script("cufon_menu_font", get_bloginfo('stylesheet_directory') . "/fonts/" . $pp_menu_font . ".js", false, $pp_theme_version);
|
||||
wp_enqueue_script("cufon_menu_font", get_bloginfo('stylesheet_directory') . "/fonts/" . $pp_menu_font . ".js", false);
|
||||
}
|
||||
|
||||
wp_enqueue_script("browser_js", get_bloginfo('stylesheet_directory') . "/js/browser.js", false, $pp_theme_version);
|
||||
wp_enqueue_script("video_js", get_bloginfo('stylesheet_directory') . "/js/video.min.js", false, $pp_theme_version);
|
||||
wp_enqueue_script("custom_js", get_bloginfo('stylesheet_directory') . "/js/custom.js", false, $pp_theme_version);
|
||||
wp_enqueue_script("browser_js", get_bloginfo('stylesheet_directory') . "/js/browser.js", false);
|
||||
//wp_enqueue_script("video_js", get_bloginfo('stylesheet_directory') . "/js/video.min.js", false);
|
||||
wp_enqueue_script("custom_js", get_bloginfo('stylesheet_directory') . "/js/custom.js", false);
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
Loading…
Reference in New Issue
Block a user