Skip to content

Commit

Permalink
Oo mods
Browse files Browse the repository at this point in the history
  • Loading branch information
adeojonathan committed Sep 27, 2014
1 parent a272589 commit 04b332f
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions function-definitions.php
Expand Up @@ -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
*
Expand Down

0 comments on commit 04b332f

Please sign in to comment.