renaming includes/ directory to inc/
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
// get active theme directory name (lets you rename roots)
|
||||
$theme_name = next(explode('/themes/', get_template_directory()));
|
||||
|
||||
include_once('includes/roots-activation.php'); // activation
|
||||
include_once('includes/roots-admin.php'); // admin additions/mods
|
||||
include_once('includes/roots-options.php'); // theme options menu
|
||||
include_once('includes/roots-ob.php'); // output buffer
|
||||
include_once('includes/roots-cleanup.php'); // code cleanup/removal
|
||||
include_once('includes/roots-htaccess.php'); // h5bp htaccess
|
||||
include_once('inc/roots-activation.php'); // activation
|
||||
include_once('inc/roots-admin.php'); // admin additions/mods
|
||||
include_once('inc/roots-options.php'); // theme options menu
|
||||
include_once('inc/roots-ob.php'); // output buffer
|
||||
include_once('inc/roots-cleanup.php'); // code cleanup/removal
|
||||
include_once('inc/roots-htaccess.php'); // h5bp htaccess
|
||||
|
||||
// set the value of the main container class depending on the selected grid framework
|
||||
$roots_css_framework = get_option('roots_css_framework');
|
||||
|
||||
|
Before Width: | Height: | Size: 659 B After Width: | Height: | Size: 659 B |
@@ -5,8 +5,8 @@ jQuery(document).ready(function(){
|
||||
// var editor = CodeMirror.fromTextArea('content', {
|
||||
// height: "350px",
|
||||
// parserfile: "parsexml.js",
|
||||
// stylesheet: "../wp-content/themes/roots/includes/css/codemirror/xmlcolors.css",
|
||||
// path: "../wp-content/themes/roots/includes/js/codemirror/",
|
||||
// stylesheet: "../wp-content/themes/roots/inc/css/codemirror/xmlcolors.css",
|
||||
// path: "../wp-content/themes/roots/inc/js/codemirror/",
|
||||
// continuousScanning: 500,
|
||||
// lineNumbers: false
|
||||
// });
|
||||
@@ -7,13 +7,13 @@ function roots_admin_init() {
|
||||
$home_url = home_url();
|
||||
$theme_name = next(explode('/themes/', get_template_directory()));
|
||||
|
||||
//wp_register_script('roots_codemirror', "$home_url/wp-content/themes/roots/includes/js/codemirror/codemirror.js");
|
||||
//wp_register_script('roots_codemirror', "$home_url/wp-content/themes/roots/inc/js/codemirror/codemirror.js");
|
||||
//wp_enqueue_script('roots_codemirror');
|
||||
|
||||
wp_register_style('roots_admin_css', "$home_url/wp-content/themes/$theme_name/includes/css/admin.css");
|
||||
wp_register_style('roots_admin_css', "$home_url/wp-content/themes/$theme_name/inc/css/admin.css");
|
||||
wp_enqueue_style('roots_admin_css');
|
||||
|
||||
wp_register_script('roots_admin_js', "$home_url/wp-content/themes/$theme_name/includes/js/scripts.js");
|
||||
wp_register_script('roots_admin_js', "$home_url/wp-content/themes/$theme_name/inc/js/scripts.js");
|
||||
wp_enqueue_script('roots_admin_js');
|
||||
|
||||
}
|
||||
@@ -6,7 +6,7 @@ add_action('admin_menu', 'roots_create_menu');
|
||||
function roots_create_menu() {
|
||||
$home_url = home_url();
|
||||
$theme_name = next(explode('/themes/', get_template_directory()));
|
||||
$icon = "$home_url/wp-content/themes/$theme_name/includes/img/icon-roots.png";
|
||||
$icon = "$home_url/wp-content/themes/$theme_name/inc/img/icon-roots.png";
|
||||
|
||||
// create menu
|
||||
$theme_name = get_current_theme();
|
||||
@@ -26,10 +26,10 @@ function roots_admin_styles() {
|
||||
$home_url = home_url();
|
||||
$theme_name = next(explode('/themes/', get_template_directory()));
|
||||
|
||||
wp_register_style('roots_options_css', "$home_url/wp-content/themes/$theme_name/includes/css/options.css");
|
||||
wp_register_style('roots_options_css', "$home_url/wp-content/themes/$theme_name/inc/css/options.css");
|
||||
wp_enqueue_style('roots_options_css');
|
||||
|
||||
wp_register_script('roots_options_js', "$home_url/wp-content/themes/$theme_name/includes/js/options.js");
|
||||
wp_register_script('roots_options_js', "$home_url/wp-content/themes/$theme_name/inc/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