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,60 +1,57 @@
|
||||
<?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' );
|
||||
load_theme_textdomain('lqdvi', TEMPLATEPATH . '/languages');
|
||||
|
||||
$locale = get_locale();
|
||||
$locale_file = TEMPLATEPATH."/languages/$locale.php";
|
||||
if ( is_readable($locale_file) )
|
||||
require_once($locale_file);
|
||||
$locale_file = TEMPLATEPATH . "/languages/$locale.php";
|
||||
if (is_readable($locale_file))
|
||||
require_once($locale_file);
|
||||
|
||||
|
||||
//If delete sidebar
|
||||
if(isset($_POST['sidebar_id']) && !empty($_POST['sidebar_id']))
|
||||
{
|
||||
$current_sidebar = get_option('pp_sidebar');
|
||||
if (isset($_POST['sidebar_id']) && !empty($_POST['sidebar_id'])) {
|
||||
$current_sidebar = get_option('pp_sidebar');
|
||||
|
||||
if(isset($current_sidebar[ $_POST['sidebar_id'] ]))
|
||||
{
|
||||
unset($current_sidebar[ $_POST['sidebar_id'] ]);
|
||||
update_option( "pp_sidebar", $current_sidebar );
|
||||
}
|
||||
if (isset($current_sidebar[$_POST['sidebar_id']])) {
|
||||
unset($current_sidebar[$_POST['sidebar_id']]);
|
||||
update_option("pp_sidebar", $current_sidebar);
|
||||
}
|
||||
|
||||
echo 1;
|
||||
exit;
|
||||
echo 1;
|
||||
exit;
|
||||
}
|
||||
|
||||
/*
|
||||
* Setup main navigation menu
|
||||
*/
|
||||
add_action( 'init', 'register_my_menu' );
|
||||
add_action('init', 'register_my_menu');
|
||||
|
||||
function register_my_menu() {
|
||||
register_nav_menu( 'primary-menu', __( 'Primary Menu' ) );
|
||||
register_nav_menu('primary-menu', __('Primary Menu'));
|
||||
}
|
||||
|
||||
if ( function_exists( 'add_theme_support' ) ) {
|
||||
// Setup thumbnail support
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
if (function_exists('add_theme_support')) {
|
||||
// Setup thumbnail support
|
||||
add_theme_support('post-thumbnails');
|
||||
}
|
||||
|
||||
/**
|
||||
* Setup all theme's library
|
||||
**/
|
||||
|
||||
* Setup all theme's library
|
||||
* */
|
||||
/**
|
||||
* Setup admin setting
|
||||
**/
|
||||
* Setup admin setting
|
||||
* */
|
||||
include (TEMPLATEPATH . "/lib/admin.lib.php");
|
||||
include (TEMPLATEPATH . "/lib/twitter.lib.php");
|
||||
|
||||
/**
|
||||
* Setup Sidebar
|
||||
**/
|
||||
* Setup Sidebar
|
||||
* */
|
||||
include (TEMPLATEPATH . "/lib/sidebar.lib.php");
|
||||
|
||||
|
||||
@ -70,396 +67,429 @@ include (TEMPLATEPATH . "/lib/shortcode.lib.php");
|
||||
include (TEMPLATEPATH . "/lib/widgets.lib.php");
|
||||
|
||||
|
||||
$pp_handle = opendir(TEMPLATEPATH.'/fields');
|
||||
$pp_handle = opendir(TEMPLATEPATH . '/fields');
|
||||
$pp_font_arr = array();
|
||||
|
||||
while (false!==($pp_file = readdir($pp_handle))) {
|
||||
if ($pp_file != "." && $pp_file != ".." && $pp_file != ".DS_Store" && $pp_file != ".svn") {
|
||||
include (TEMPLATEPATH . "/fields/".$pp_file);
|
||||
}
|
||||
while (false !== ($pp_file = readdir($pp_handle))) {
|
||||
if ($pp_file != "." && $pp_file != ".." && $pp_file != ".DS_Store" && $pp_file != ".svn") {
|
||||
include (TEMPLATEPATH . "/fields/" . $pp_file);
|
||||
}
|
||||
}
|
||||
closedir($pp_handle);
|
||||
|
||||
|
||||
function pp_add_admin() {
|
||||
|
||||
global $themename, $shortname, $options;
|
||||
global $themename, $shortname, $options;
|
||||
|
||||
if ( isset($_GET['page']) && $_GET['page'] == basename(__FILE__) ) {
|
||||
if (isset($_GET['page']) && $_GET['page'] == basename(__FILE__)) {
|
||||
|
||||
if ( isset($_REQUEST['action']) && 'save' == $_REQUEST['action'] ) {
|
||||
if (isset($_REQUEST['action']) && 'save' == $_REQUEST['action']) {
|
||||
|
||||
foreach ($options as $value)
|
||||
{
|
||||
update_option( $value['id'], $_REQUEST[ $value['id'] ] );
|
||||
}
|
||||
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")
|
||||
{
|
||||
update_option( $value['id'], $_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'] ];
|
||||
foreach ($options as $value) {
|
||||
if (isset($_REQUEST[$value['id']])) {
|
||||
if ($value['id'] != $shortname . "_sidebar0") {
|
||||
update_option($value['id'], $_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
|
||||
{
|
||||
delete_option( $value['id'] );
|
||||
}
|
||||
}
|
||||
update_option($shortname . "_sidebar", $current_sidebar);
|
||||
}
|
||||
} else {
|
||||
delete_option($value['id']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
header("Location: admin.php?page=functions.php&saved=true".$_REQUEST['current_tab']);
|
||||
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']);
|
||||
}
|
||||
|
||||
foreach ($options as $value) {
|
||||
delete_option( $value['id'] ); }
|
||||
header("Location: admin.php?page=functions.php&reset=true");
|
||||
}
|
||||
}
|
||||
|
||||
header("Location: admin.php?page=functions.php&reset=true");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
add_menu_page($themename, $themename, 'administrator', basename(__FILE__), 'pp_admin');
|
||||
add_menu_page($themename, $themename, 'administrator', basename(__FILE__), 'pp_admin');
|
||||
}
|
||||
|
||||
function pp_add_init() {
|
||||
|
||||
$file_dir=get_bloginfo('template_directory');
|
||||
wp_enqueue_style("functions", $file_dir."/functions/functions.css", false, "1.0", "all");
|
||||
wp_enqueue_style("colorpicker_css", $file_dir."/functions/colorpicker/css/colorpicker.css", false, "1.0", "all");
|
||||
wp_enqueue_script("colorpicker_script", $file_dir."/functions/colorpicker/js/colorpicker.js", false, "1.0");
|
||||
wp_enqueue_script("eye_script", $file_dir."/functions/colorpicker/js/eye.js", false, "1.0");
|
||||
wp_enqueue_script("utils_script", $file_dir."/functions/colorpicker/js/utils.js", false, "1.0");
|
||||
wp_enqueue_script("iphone_checkboxes", $file_dir."/functions/iphone-style-checkboxes.js", false, "1.0");
|
||||
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");
|
||||
|
||||
$file_dir = get_bloginfo('template_directory');
|
||||
wp_enqueue_style("functions", $file_dir . "/functions/functions.css", false, "1.0", "all");
|
||||
wp_enqueue_style("colorpicker_css", $file_dir . "/functions/colorpicker/css/colorpicker.css", false, "1.0", "all");
|
||||
wp_enqueue_script("colorpicker_script", $file_dir . "/functions/colorpicker/js/colorpicker.js", false, "1.0");
|
||||
wp_enqueue_script("eye_script", $file_dir . "/functions/colorpicker/js/eye.js", false, "1.0");
|
||||
wp_enqueue_script("utils_script", $file_dir . "/functions/colorpicker/js/utils.js", false, "1.0");
|
||||
wp_enqueue_script("iphone_checkboxes", $file_dir . "/functions/iphone-style-checkboxes.js", false, "1.0");
|
||||
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;
|
||||
$i=0;
|
||||
|
||||
$cache_dir = TEMPLATEPATH.'/cache';
|
||||
|
||||
if(!is_writable($cache_dir))
|
||||
{
|
||||
?>
|
||||
|
||||
<div id="message" class="error fade">
|
||||
<p style="line-height:1.5em"><strong>
|
||||
The path <?php echo $cache_dir; ?> is not writable, please login with your FTP account and make it writable (chmod 777) otherwise all images won't display.
|
||||
</p></strong>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="wrap rm_wrap">
|
||||
<h2><?php echo $themename; ?> Settings</h2>
|
||||
<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/>';
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<div id="pp_panel" style="border-bottom:1px solid #ccc;padding-left: 10px">
|
||||
<?php
|
||||
foreach ($options as $value) {
|
||||
/*print '<pre>';
|
||||
print_r($value);
|
||||
print '</pre>';*/
|
||||
|
||||
$active = '';
|
||||
|
||||
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>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<div class="rm_opts">
|
||||
<form method="post">
|
||||
|
||||
<?php foreach ($options as $value) {
|
||||
switch ( $value['type'] ) {
|
||||
|
||||
case "open":
|
||||
?> <?php break;
|
||||
|
||||
case "close":
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php break;
|
||||
|
||||
case "title":
|
||||
?>
|
||||
<br />
|
||||
|
||||
|
||||
<?php break;
|
||||
|
||||
case 'text':
|
||||
|
||||
//if sidebar input then not show default value
|
||||
if($value['id'] != $shortname."_sidebar0")
|
||||
{
|
||||
$default_val = get_settings( $value['id'] );
|
||||
}
|
||||
else
|
||||
{
|
||||
$default_val = '';
|
||||
}
|
||||
?>
|
||||
|
||||
<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'].'"'; } ?> />
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<?php
|
||||
if($value['id'] == $shortname."_sidebar0")
|
||||
{
|
||||
$current_sidebar = get_option($shortname."_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)
|
||||
{
|
||||
?>
|
||||
|
||||
<li id="<?=$sidebar?>"><?=$sidebar?> ( <a href="<?php echo $url; ?>" class="sidebar_del" rel="<?=$sidebar?>">Delete</a> )</li>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
break;
|
||||
|
||||
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'].'"'; } ?> />
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
break;
|
||||
|
||||
case 'jslider':
|
||||
?>
|
||||
|
||||
<div class="rm_input rm_text"><label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
|
||||
<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'].'"'; } ?> />
|
||||
</div>
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<script>jQuery("#<?php echo $value['id']; ?>").slider({ from: <?php echo $value['from']; ?>, to: <?php echo $value['to']; ?>, step: <?php echo $value['step']; ?>, smooth: true });</script>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
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>
|
||||
<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"/>
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
break;
|
||||
|
||||
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>
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
break;
|
||||
|
||||
case 'select':
|
||||
?>
|
||||
|
||||
<div class="rm_input rm_select"><label
|
||||
for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
|
||||
|
||||
<select name="<?php echo $value['id']; ?>"
|
||||
id="<?php echo $value['id']; ?>">
|
||||
<?php foreach ($value['options'] as $key => $option) { ?>
|
||||
<option
|
||||
<?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>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<?php
|
||||
break;
|
||||
|
||||
case 'radio':
|
||||
?>
|
||||
|
||||
<div class="rm_input rm_select"><label
|
||||
for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
|
||||
|
||||
<div style="float:left;width:350px">
|
||||
<?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"'; } ?>
|
||||
value="<?php echo $key; ?>"/><?php echo html_entity_decode($option); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<?php
|
||||
break;
|
||||
|
||||
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 = "";} ?>
|
||||
<input type="checkbox" name="<?php echo $value['id']; ?>"
|
||||
id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
|
||||
|
||||
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<?php break;
|
||||
|
||||
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 = "";} ?>
|
||||
<input type="checkbox" class="iphone_checkboxes" name="<?php echo $value['id']; ?>"
|
||||
id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
|
||||
|
||||
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<?php break;
|
||||
|
||||
case "section":
|
||||
|
||||
$i++;
|
||||
|
||||
?>
|
||||
|
||||
<div id="pp_panel_<?php echo strtolower($value['name']); ?>" class="rm_section">
|
||||
<div class="rm_title">
|
||||
<h3><img
|
||||
src="<?php bloginfo('template_directory')?>/functions/images/trans.png"
|
||||
class="inactive" alt="""><?php echo $value['name']; ?></h3>
|
||||
<span class="submit"><input class="button-primary" name="save<?php echo $i; ?>" type="submit"
|
||||
value="Save changes" /> </span>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="rm_options"><?php break;
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
<br/><br/>
|
||||
<input class="button-primary" name="save<?php echo $i; ?>" type="submit"
|
||||
value="Save changes" /><br/><br/><br/><br/>
|
||||
<input type="hidden" name="action" value="save" />
|
||||
<input type="hidden" name="current_tab" id="current_tab" value="#pp_panel_general" />
|
||||
</form>
|
||||
<form method="post"><!-- p class="submit">
|
||||
<input name="reset" type="submit" value="Reset" />
|
||||
<input type="hidden" name="action" value="reset" />
|
||||
</p --></form>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
global $themename, $shortname, $options;
|
||||
$i = 0;
|
||||
|
||||
$cache_dir = TEMPLATEPATH . '/cache';
|
||||
|
||||
if (!is_writable($cache_dir)) {
|
||||
?>
|
||||
|
||||
<div id="message" class="error fade">
|
||||
<p style="line-height:1.5em"><strong>
|
||||
The path <?php echo $cache_dir; ?> is not writable, please login with your FTP account and make it writable (chmod 777) otherwise all images won't display.
|
||||
</p></strong>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="wrap rm_wrap">
|
||||
<h2><?php echo $themename; ?> Settings</h2>
|
||||
<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/>';
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<div id="pp_panel" style="border-bottom:1px solid #ccc;padding-left: 10px">
|
||||
<?php
|
||||
foreach ($options as $value) {
|
||||
/* print '<pre>';
|
||||
print_r($value);
|
||||
print '</pre>'; */
|
||||
|
||||
$active = '';
|
||||
|
||||
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>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<div class="rm_opts">
|
||||
<form method="post">
|
||||
|
||||
<?php
|
||||
foreach ($options as $value) {
|
||||
switch ($value['type']) {
|
||||
|
||||
case "open":
|
||||
?> <?php
|
||||
break;
|
||||
|
||||
case "close":
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
break;
|
||||
|
||||
case "title":
|
||||
?>
|
||||
<br />
|
||||
|
||||
|
||||
<?php
|
||||
break;
|
||||
|
||||
case 'text':
|
||||
|
||||
//if sidebar input then not show default value
|
||||
if ($value['id'] != $shortname . "_sidebar0") {
|
||||
$default_val = get_settings($value['id']);
|
||||
} else {
|
||||
$default_val = '';
|
||||
}
|
||||
?>
|
||||
|
||||
<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'] . '"';
|
||||
} ?> />
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<?php
|
||||
if ($value['id'] == $shortname . "_sidebar0") {
|
||||
$current_sidebar = get_option($shortname . "_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) {
|
||||
?>
|
||||
|
||||
<li id="<?= $sidebar ?>"><?= $sidebar ?> ( <a href="<?php echo $url; ?>" class="sidebar_del" rel="<?= $sidebar ?>">Delete</a> )</li>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
break;
|
||||
|
||||
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'] . '"';
|
||||
} ?> />
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
break;
|
||||
|
||||
case 'jslider':
|
||||
?>
|
||||
|
||||
<div class="rm_input rm_text"><label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
|
||||
<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'] . '"';
|
||||
} ?> />
|
||||
</div>
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<script>jQuery("#<?php echo $value['id']; ?>").slider({from: <?php echo $value['from']; ?>, to: <?php echo $value['to']; ?>, step: <?php echo $value['step']; ?>, smooth: true});</script>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
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>
|
||||
<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"/>
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
break;
|
||||
|
||||
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>
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
break;
|
||||
|
||||
case 'select':
|
||||
?>
|
||||
|
||||
<div class="rm_input rm_select"><label
|
||||
for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
|
||||
|
||||
<select name="<?php echo $value['id']; ?>"
|
||||
id="<?php echo $value['id']; ?>">
|
||||
<?php foreach ($value['options'] as $key => $option) { ?>
|
||||
<option
|
||||
<?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>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<?php
|
||||
break;
|
||||
|
||||
case 'radio':
|
||||
?>
|
||||
|
||||
<div class="rm_input rm_select"><label
|
||||
for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
|
||||
|
||||
<div style="float:left;width:350px">
|
||||
<?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"';
|
||||
} ?>
|
||||
value="<?php echo $key; ?>"/><?php echo html_entity_decode($option); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<?php
|
||||
break;
|
||||
|
||||
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 = "";
|
||||
} ?>
|
||||
<input type="checkbox" name="<?php echo $value['id']; ?>"
|
||||
id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
|
||||
|
||||
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<?php
|
||||
break;
|
||||
|
||||
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 = "";
|
||||
} ?>
|
||||
<input type="checkbox" class="iphone_checkboxes" name="<?php echo $value['id']; ?>"
|
||||
id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
|
||||
|
||||
|
||||
<small><?php echo $value['desc']; ?></small>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
break;
|
||||
|
||||
case "section":
|
||||
|
||||
$i++;
|
||||
?>
|
||||
|
||||
<div id="pp_panel_<?php echo strtolower($value['name']); ?>" class="rm_section">
|
||||
<div class="rm_title">
|
||||
<h3><img
|
||||
src="<?php bloginfo('template_directory') ?>/functions/images/trans.png"
|
||||
class="inactive" alt="""><?php echo $value['name']; ?></h3>
|
||||
<span class="submit"><input class="button-primary" name="save<?php echo $i; ?>" type="submit"
|
||||
value="Save changes" /> </span>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="rm_options"><?php
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<br/><br/>
|
||||
<input class="button-primary" name="save<?php echo $i; ?>" type="submit"
|
||||
value="Save changes" /><br/><br/><br/><br/>
|
||||
<input type="hidden" name="action" value="save" />
|
||||
<input type="hidden" name="current_tab" id="current_tab" value="#pp_panel_general" />
|
||||
</form>
|
||||
<form method="post"><!-- p class="submit">
|
||||
<input name="reset" type="submit" value="Reset" />
|
||||
<input type="hidden" name="action" value="reset" />
|
||||
</p --></form>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
add_action('admin_init', 'pp_add_init');
|
||||
add_action('admin_menu', 'pp_add_admin');
|
||||
|
||||
|
||||
/**
|
||||
* Setup all theme's plugins
|
||||
**/
|
||||
* Setup all theme's plugins
|
||||
* */
|
||||
// Setup shortcode generator plugin
|
||||
include (TEMPLATEPATH . "/plugins/troubleshooting.php");
|
||||
include (TEMPLATEPATH . "/plugins/shortcode_generator.php");
|
||||
@ -468,49 +498,49 @@ include (TEMPLATEPATH . "/plugins/shortcode_generator.php");
|
||||
//Make widget support shortcode
|
||||
add_filter('widget_text', 'do_shortcode');
|
||||
|
||||
if ($_GET['activated']){
|
||||
if ($_GET['activated']) {
|
||||
wp_redirect(admin_url("themes.php?page=functions.php"));
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 );
|
||||
* 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);
|
||||
}
|
||||
|
||||
function deregister_cf7_javascript() {
|
||||
if ( !is_page(86) ) {
|
||||
wp_deregister_script( 'contact-form-7' );
|
||||
if (!is_page(86)) {
|
||||
wp_deregister_script('contact-form-7');
|
||||
}
|
||||
|
||||
/*if ( !is_page(113) ) {
|
||||
/* if ( !is_page(113) ) {
|
||||
|
||||
wp_deregister_script( 'gce_jquery_qtip' );
|
||||
wp_deregister_script( 'gce_scripts' );
|
||||
}*/
|
||||
wp_deregister_script( 'gce_jquery_qtip' );
|
||||
wp_deregister_script( 'gce_scripts' );
|
||||
} */
|
||||
}
|
||||
|
||||
function deregister_cf7_styles() {
|
||||
if ( !is_page(86) ) {
|
||||
wp_deregister_style( 'contact-form-7' );
|
||||
if (!is_page(86)) {
|
||||
wp_deregister_style('contact-form-7');
|
||||
}
|
||||
}
|
||||
|
||||
if(!function_exists('_log')){
|
||||
function _log( $message ) {
|
||||
if( WP_DEBUG === true ){
|
||||
if( is_array( $message ) || is_object( $message ) ){
|
||||
error_log( print_r( $message, true ) );
|
||||
} else {
|
||||
error_log( $message );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!function_exists('_log')) {
|
||||
|
||||
function _log($message) {
|
||||
if (WP_DEBUG === true) {
|
||||
if (is_array($message) || is_object($message)) {
|
||||
error_log(print_r($message, true));
|
||||
} else {
|
||||
error_log($message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function the_slug() {
|
||||
$post_data = get_post($post->ID, ARRAY_A);
|
||||
@ -519,26 +549,29 @@ function the_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');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@ -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