From 04b332f9c36effb07277e13b2e9b255c8efe643f Mon Sep 17 00:00:00 2001 From: jonathan Date: Sat, 27 Sep 2014 22:05:28 +0100 Subject: [PATCH] Oo mods --- function-definitions.php | 47 ---------------------------------------- 1 file changed, 47 deletions(-) diff --git a/function-definitions.php b/function-definitions.php index 80d5995..d49f6f5 100644 --- a/function-definitions.php +++ b/function-definitions.php @@ -239,53 +239,6 @@ function multiloquent_menu() { register_nav_menu('primary-menu', 'Primary Menu'); } - /** - * various register actions - * - * @internal internal - * - */ - function multiloquent_register($wp_customize) { - - // theme support - add_theme_support('automatic-feed-links'); - add_theme_support('html5'); - add_theme_support('post-thumbnails'); - $args = array('width' => 1800, 'height' => 600, 'default-image' => get_template_directory_uri() . '/images/default-slider.png', 'uploads' => true,); - add_theme_support('custom-header', $args); - - // actions - add_action('wp_enqueue_scripts', $this->multiloquent_scripts_method()); - add_action('wp_enqueue_scripts', $this->multiloquent_stylesheet_method()); - add_action('customize_register', $this->multiloquent_customize_register($wp_customize)); - add_action('wp_tag_cloud', $this->multiloquent_add_tag_class()); - - // filters - add_filter('the_content', $this->multiloquent_featured_image_in_feed()); - add_filter('post_class', $this->multiloquent_remove_hentry_function(), 20); - - // add_filter('the_tags', $this->multiloquent_add_class_the_tags, 10, 1); - add_filter('widget_tag_cloud_args', $this->multiloquent_widget_tag_cloud_args()); - add_filter('wp_tag_cloud', $this->multiloquent_tag_cloud_filter(), 10, 2); - add_filter('get_avatar', $this->multiloquent_get_avatar()); - add_filter('widget_text', 'do_shortcode'); - - // misc - if (is_admin()) { - add_editor_style('style.css'); - } - $this->multiloquent_menu(); - set_post_thumbnail_size(605, 100); - add_image_size('featured-post-thumbnail', 605, 100); - if (!isset($content_width)) { - $content_width = 900; - } - - // sidebars - $sidebars = array('1' => 'sidebar top', '2' => 'mobile specific advert', '3' => 'non-mobile specific advert', '4' => 'sidebar middle', '5' => 'sidebar bottom', '6' => 'footer top left', '7' => 'footer top right', '8' => 'social media', '9' => 'footer bottom left', '10' => 'footer bottom right',); - $this->multiloquent_generate_sidebars($sidebars); - } - /** * generates the sidebars *