v3 draft
This commit is contained in:
parent
71df2f7662
commit
b02b2f2519
15 changed files with 4765 additions and 104 deletions
|
@ -3,21 +3,21 @@
|
|||
/**
|
||||
* Custom functions / External files
|
||||
*/
|
||||
|
||||
require_once 'functions/example.php';
|
||||
require_once 'includes/functions.php';
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Add support for useful stuff
|
||||
*/
|
||||
|
||||
if (function_exists('add_theme_support')) {
|
||||
// Add support for document title tag
|
||||
add_theme_support('title-tag');
|
||||
|
||||
// Add Thumbnail Theme Support
|
||||
add_theme_support('post-thumbnails');
|
||||
|
||||
// Add image sizes
|
||||
// add_image_size( 'custom-size', 700, 200, true );
|
||||
|
||||
// Add Support for post formats
|
||||
|
@ -53,7 +53,6 @@ function barebones_remove_comments_rss($for_comments)
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
add_filter('post_comments_feed_link', 'barebones_remove_comments_rss');
|
||||
|
||||
|
||||
|
@ -64,17 +63,10 @@ add_filter('post_comments_feed_link', 'barebones_remove_comments_rss');
|
|||
|
||||
function barebones_scripts()
|
||||
{
|
||||
/*
|
||||
* For IE8 to play nice, you'll need to include your CSS here, for example:
|
||||
*/
|
||||
// wp_enqueue_style( 'fonts', '//fonts.googleapis.com/css?family=Font+Family' );
|
||||
// wp_enqueue_style( 'icons', '//maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css' );
|
||||
wp_deregister_script('jquery');
|
||||
wp_register_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js', false, '1.11.3', true);
|
||||
wp_enqueue_script('jquery');
|
||||
wp_enqueue_script('script', get_stylesheet_directory_uri() . '/js/script.min.js?' . time(), ['jquery'], null, true);
|
||||
wp_enqueue_script('script', get_stylesheet_directory_uri() . '/js/script.min.js?' . time(), [], null, true);
|
||||
}
|
||||
|
||||
add_action('wp_enqueue_scripts', 'barebones_scripts');
|
||||
|
||||
|
||||
|
@ -99,7 +91,6 @@ function barebones_nav_menu_args($args = '')
|
|||
|
||||
return $args;
|
||||
}
|
||||
|
||||
add_filter('wp_nav_menu_args', 'barebones_nav_menu_args');
|
||||
|
||||
|
||||
|
@ -112,7 +103,6 @@ function barebones_mail_from($email)
|
|||
{
|
||||
return get_option('admin_email');
|
||||
}
|
||||
|
||||
add_filter('wp_mail_from', 'barebones_mail_from');
|
||||
|
||||
|
||||
|
@ -120,7 +110,6 @@ function barebones_mail_from_name($name)
|
|||
{
|
||||
return get_bloginfo('name');
|
||||
}
|
||||
|
||||
add_filter('wp_mail_from_name', 'barebones_mail_from_name');
|
||||
|
||||
|
||||
|
@ -135,7 +124,6 @@ function button_shortcode($atts, $content = null)
|
|||
|
||||
return '<a class="' . $atts['class'] . '" href="' . $atts['link'] . '">' . $content . '</a>';
|
||||
}
|
||||
|
||||
add_shortcode('button', 'button_shortcode');
|
||||
|
||||
|
||||
|
@ -151,10 +139,8 @@ function barebones_mce_buttons_2($buttons)
|
|||
|
||||
return $buttons;
|
||||
}
|
||||
|
||||
add_filter('mce_buttons_2', 'barebones_mce_buttons_2');
|
||||
|
||||
|
||||
function barebones_tiny_mce_before_init($settings)
|
||||
{
|
||||
$style_formats = [
|
||||
|
@ -170,11 +156,8 @@ function barebones_tiny_mce_before_init($settings)
|
|||
|
||||
return $settings;
|
||||
}
|
||||
|
||||
add_filter('tiny_mce_before_init', 'barebones_tiny_mce_before_init');
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get post thumbnail url
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue