ID) . '"> ...'; } add_theme_support('post-thumbnails'); set_post_thumbnail_size(160, 100); register_nav_menu('header_menu','Menu which is located in the header (ver template, cap). To activate, tick' ); register_sidebars(array( 'mane' => 'Widgets saytbara', 'id' => 'sdebar_sity', 'description' => 'Widgets side', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar(array( 'mane' => 'Widgets menu Hats', 'id' => 'header_vidget', 'description' => 'Widgets menu Hats' ) ); register_sidebar(array( 'mane' => 'Second widgets menu Hats', 'id' => 'header_vidget_two', 'description' => 'Second widgets menu Hats' ) ); register_sidebar(array( 'mane' => 'The third menu widgets caps', 'id' => 'header_vidget_three', 'description' => 'The third menu widgets caps' ) ); register_sidebar(array( 'mane' => 'The first basement widgets', 'id' => 'foorer_vi_1', 'description' => 'The first basement widgets' ) ); register_sidebar(array( 'mane' => 'The second basement widgets', 'id' => 'foorer_vi_2', 'description' => 'The second basement widgets' ) ); register_sidebar(array( 'mane' => 'Third basement widgets', 'id' => 'foorer_vi_3', 'description' => 'Third basement widgets' ) ); $default_attr = array( 'src' => $src, 'class' => "img-responsive", 'alt' => trim(strip_tags( $attachment->post_excerpt )), 'title' => trim(strip_tags( $attachment->post_title )), ); // add fan require_once( apply_filters( 'functn', get_template_directory() . '/main/function.php' ) ); add_action('wp_head', 'gamesquare_css_customizer'); add_action('customize_register','gamesquare_customizer_register'); if (!class_exists('clean_comments_constructor')) { class clean_comments_constructor extends Walker_Comment { public function start_lvl( &$output, $depth = 0, $args = array()) { $output .= '\n"; } protected function comment( $comment, $depth, $args ) { $classes = implode(' ', get_comment_class()).($comment->comment_author_email == get_the_author_meta('email') ? ' author-comment' : ''); echo '
  • '."\n"; echo '
    '.get_avatar($comment, 64, '', get_comment_author(), array('class' => 'media-object'))."
    \n"; echo '
    '; echo ' avtor: '.get_comment_author()."\n"; echo ' '.get_comment_author_url(); echo ' Added '.get_comment_date('F j, Y v H:i')."\n"; if ( '0' == $comment->comment_approved ) echo '
    Your comment will be published after being moderated.'."\n"; echo "
    "; comment_text()."\n"; $reply_link_args = array( 'depth' => $depth, 'reply_text' => 'Reply', 'login_text' => 'You must be logged in' ); echo get_comment_reply_link(array_merge($args, $reply_link_args)); echo '
    '."\n"; } public function end_el( &$output, $comment, $depth = 0, $args = array() ) { // $output .= "
  • \n"; } } } function bak_widgets_init() { //add register_sidebar posted above ... end before add_theme_support } add_action( 'widgets_init', 'bak_widgets_init' ); function ys_sanitize_category( $category ) { if ( ! in_array( $category, array( 'Uncategorized', 'Blogposts', 'News' ) ) ) { // Add the names of your categories here. Use get_categories() to fetch them dynamically. $category = 'Uncategorized'; } return $category; } ?>