'', 'random-default' => true, 'width' => 1200, //960, 'height' => 313, //250, 'flex-height' => false, 'flex-width' => false, 'default-text-color' => '000', 'header-text' => false, 'uploads' => true, 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '' )); add_theme_support('custom-background', array( 'default-color' => 'FFFFFF', 'default-image' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' )); add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat')); add_theme_support('post-thumbnails'); set_post_thumbnail_size(300,250,true); add_theme_support('automatic-feed-links'); /***** NAVIGATION *****/ // menu generation // @since Native 1.0 register_nav_menus(array( 'top' => __('Top menu','dbm'), 'main' => __('Main menu','dbm'), )); } add_action('after_setup_theme', 'dbm_setup'); /***** STYLESHEETS *****/ // sets stylesheets used in the theme and appropriated path // wp_enqueue_style( $handle, $src, $deps, $ver, $media ); // @since Native 1.0 if (!function_exists('dbm_styles')) { function dbm_styles() { // used to set optional controls for IE //global $wp_styles; // main style - default style css of wordpress, if you want to use this just uncomment it :) //wp_enqueue_style('style', get_stylesheet_uri()); // load reset.css wp_enqueue_style('reset', get_template_directory_uri() . '/assets/css/reset.css', '', '', 'screen'); // load common.css wp_enqueue_style('common', get_template_directory_uri() . '/assets/css/common.css', '', '1.0', 'screen'); // load custom.css wp_enqueue_style('custom', get_template_directory_uri() . '/assets/css/custom.css', '', '1.0', 'screen'); // load validate.css wp_enqueue_style('validate', get_template_directory_uri() . '/assets/css/validate.css', '', '1.0', 'screen'); // load ie.css // wp_enqueue_style('ie', get_template_directory_uri() . '/assets/css/ie.css', '', '', 'screen'); // $wp_styles->add_data( 'ie', 'conditional', 'lte IE 7' ); } // Register with hook 'wp_enqueue_scripts', which can be used for front end CSS and JavaScript add_action('wp_enqueue_scripts', 'dbm_styles'); } /***** JAVASCRIPTS *****/ // sets stylesheets used in the theme and appropriated path // wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ) // @since Native 1.0 if (!function_exists('dbm_js')) { function dbm_js() { /* * Adds JavaScript to pages with the comment form to support * sites with threaded comments (when in use). */ if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); // loads jquery from online source wp_enqueue_script('jq', 'http://code.jquery.com/jquery.js'); // load modernizr.js wp_enqueue_script('modernizr', get_template_directory_uri() . '/assets/js/modernizr.js'); // load functions.js wp_enqueue_script('js-functions', get_template_directory_uri() . '/assets/js/functions.js'); // load jquery.fitvids.js wp_enqueue_script('jq-fixvid', get_template_directory_uri() . '/assets/js/jquery.fitvids.js',array('jq'),'',true); // load fitvids.js wp_enqueue_script('fixvid', get_template_directory_uri() . '/assets/js/fitvids.js',array('jq','jq-fixvid'),'',true); ?> = 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'dbm' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'dbm_wp_title', 10, 2 ); /***** SIDEBARS *****/ // sidebars generation // @since Native 1.0 function dbm_widgets() { register_sidebar(array( 'name' => __('Right Hand Sidebar','dbm'), 'id' => 'right-sidebar', 'description' => __('Widgets in this area will be shown on the right-hand side.','dbm'), 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => __('Footer left Sidebar','dbm'), 'id' => 'footer-left-sidebar', 'description' => __('Widgets in this area will be shown on the footer in the left side.','dbm'), 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => __('Footer center Sidebar','dbm'), 'id' => 'footer-center-sidebar', 'description' => __('Widgets in this area will be shown on the footer in the center.','dbm'), 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => __('Footer right Sidebar','dbm'), 'id' => 'footer-right-sidebar', 'description' => __('Widgets in this area will be shown on the footer in the right side.','dbm'), 'before_title' => '

', 'after_title' => '

' )); } add_action('widgets_init','dbm_widgets'); if (!function_exists('dbm_comments')) : /** * Template for comments and pingbacks. * * To override this walker in a child theme without modifying the comments template * simply create your own native_comments(), and that function will be used instead. * * Used as a callback by wp_list_comments() for displaying the comments. * * @since Native 1.0 */ function dbm_comments( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case 'pingback' : case 'trackback' : // Display trackbacks differently than normal comments. ?>
  • id="comment-">

    ', '' ); ?>

  • id="li-comment-">
    %1$s %2$s', // If current post author is also comment author, make it known visually. ($comment->user_id === $post->post_author) ? ' ' . __('Post author', 'dbm') . '' : '', get_comment_author_link() ); ?>
    comment_approved ) : ?>

    ', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', 'dbm' ), get_comment_date(), get_comment_time() ) ); ?> ', '

    '); ?>
    __( 'Reply', 'dbm' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>