Changed site_url to home_url - fixes #34
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
<?php echo get_roots_stylesheets(); ?>
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> Feed" href="<?php site_url(); ?>/feed/">
|
||||
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> Feed" href="<?php echo home_url(); ?>/feed/">
|
||||
|
||||
<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/libs/modernizr-1.7.min.js"></script>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
|
||||
@@ -39,7 +39,7 @@
|
||||
<?php } ?>
|
||||
<header id="banner" class="<?php echo roots_container_class; ?>" role="banner">
|
||||
<div class="container">
|
||||
<a id="logo" href="<?php site_url(); ?>/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/img/logo.png" width="300" height="75" alt="<?php bloginfo('name'); ?>"></a>
|
||||
<a id="logo" href="<?php echo home_url(); ?>/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/img/logo.png" width="300" height="75" alt="<?php bloginfo('name'); ?>"></a>
|
||||
<nav id="nav-main" class="<?php echo roots_container_class; ?>" role="navigation">
|
||||
<?php wp_nav_menu(array('theme_location' => 'primary_navigation')); ?>
|
||||
</nav>
|
||||
|
||||
@@ -4,16 +4,16 @@
|
||||
add_action('admin_init', 'roots_admin_init');
|
||||
|
||||
function roots_admin_init() {
|
||||
$site_url = site_url();
|
||||
$home_url = home_url();
|
||||
$theme_name = next(explode('/themes/', get_template_directory()));
|
||||
|
||||
//wp_register_script('roots_codemirror', "$site_url/wp-content/themes/roots/includes/js/codemirror/codemirror.js");
|
||||
//wp_register_script('roots_codemirror', "$home_url/wp-content/themes/roots/includes/js/codemirror/codemirror.js");
|
||||
//wp_enqueue_script('roots_codemirror');
|
||||
|
||||
wp_register_style('roots_admin_css', "$site_url/wp-content/themes/$theme_name/includes/css/admin.css");
|
||||
wp_register_style('roots_admin_css', "$home_url/wp-content/themes/$theme_name/includes/css/admin.css");
|
||||
wp_enqueue_style('roots_admin_css');
|
||||
|
||||
wp_register_script('roots_admin_js', "$site_url/wp-content/themes/$theme_name/includes/js/scripts.js");
|
||||
wp_register_script('roots_admin_js', "$home_url/wp-content/themes/$theme_name/includes/js/scripts.js");
|
||||
wp_enqueue_script('roots_admin_js');
|
||||
|
||||
}
|
||||
|
||||
@@ -21,13 +21,13 @@ function roots_create_menu() {
|
||||
}
|
||||
|
||||
function roots_admin_styles() {
|
||||
$site_url = site_url();
|
||||
$home_url = home_url();
|
||||
$theme_name = next(explode('/themes/', get_template_directory()));
|
||||
|
||||
wp_register_style('roots_options_css', "$site_url/wp-content/themes/$theme_name/includes/css/options.css");
|
||||
wp_register_style('roots_options_css', "$home_url/wp-content/themes/$theme_name/includes/css/options.css");
|
||||
wp_enqueue_style('roots_options_css');
|
||||
|
||||
wp_register_script('roots_options_js', "$site_url/wp-content/themes/$theme_name/includes/js/options.js");
|
||||
wp_register_script('roots_options_js', "$home_url/wp-content/themes/$theme_name/includes/js/options.js");
|
||||
wp_enqueue_script('roots_options_js');
|
||||
|
||||
wp_register_style('jquery-ui-css', "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/smoothness/jquery-ui.css");
|
||||
|
||||
Reference in New Issue
Block a user