false,'flex-width'=>true,'width'=>1920,'height'=>430,'header-text'=>false,'default-image'=>get_template_directory_uri() . '/images/banner-0.jpg',)); add_image_size( 'fimage400', 400, 225, true ); register_default_headers( array( 'banner-0' => array( 'url' => '%s/images/banner-0.jpg', 'thumbnail_url' => '%s/images/banner-0_thumb.jpg', 'description' => __( 'Banner 0', 'anime-crowds' ) ) ) ); register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'anime-crowds' ), ) ); } endif; add_filter( 'wp_title', 'animecrowds_wp_title', 10, 2 ); function animecrowds_wp_title( $title, $sep ) { if ( is_feed() ) { return $title; } global $page, $paged; $title .= get_bloginfo( 'name', 'display' ); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) { $title .= " $sep $site_description"; } if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { $title .= " $sep " . sprintf( __( 'Page %s', 'anime-crowds' ), max( $paged, $page ) ); } return $title; } function animecrowds_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?>
  • id="li-comment-">
  • __( 'First Footer Widget Area', 'anime-crowds' ), 'id' => 'first-footer-widget-area', 'description' => __( 'The first footer widget area', 'anime-crowds' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    .:: ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Second Footer Widget Area', 'anime-crowds' ), 'id' => 'second-footer-widget-area', 'description' => __( 'The second footer widget area', 'anime-crowds' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    .:: ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Third Footer Widget Area', 'anime-crowds' ), 'id' => 'third-footer-widget-area', 'description' => __( 'The third footer widget area', 'anime-crowds' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    .:: ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Fourth Footer Widget Area', 'anime-crowds' ), 'id' => 'fourth-footer-widget-area', 'description' => __( 'The fourth footer widget area', 'anime-crowds' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    .:: ', 'after_title' => '

    ', ) ); } function new_excerpt_more( $more ) { return '...'; } add_filter('excerpt_more', 'new_excerpt_more'); function get_excerpt($count){ $permalink = get_permalink($post->ID); $excerpt = get_the_content(); $excerpt = strip_tags($excerpt); $excerpt = substr($excerpt, 0, $count); $excerpt = substr($excerpt, 0, strripos($excerpt, " ")); $excerpt = $excerpt.'...'; return $excerpt; } if ( ! function_exists( 'animecrowds_credit' ) ) : function animecrowds_credit() { printf( __( '
    Website powered by %1$s, Template created by %2$s.
    ', 'anime-crowds' ), sprintf( '%2$s', 'http://wordpress.org', 'WordPress' ), sprintf( '%2$s', 'http://shadythemes.com/', 'ShadyThemes' ) ); } endif; add_action('pre_get_posts', 'wp_ignore_sticky'); function wp_ignore_sticky($query){ if (is_home() && $query->is_main_query()) $query->set('ignore_sticky_posts', true); } if ( ! function_exists( 'animecrowds_post_info' ) ) : function animecrowds_post_info() { printf( __( 'Posted by %1$s on %2$s', 'anime-crowds' ), sprintf( '%3$s', get_author_posts_url( get_the_author_meta( 'ID' ) ), esc_attr( sprintf( __( 'View all posts written by %s', 'anime-crowds' ), get_the_author() ) ), get_the_author() ), get_the_date() ); } endif; function animecrowds_theme_menu() { add_theme_page( 'animecrowds Theme Options', 'Theme Options', 'administrator', 'animecrowds_theme_options', 'animecrowds_theme_display' ); } add_action( 'admin_menu', 'animecrowds_theme_menu' ); function animecrowds_theme_display() { ?>


    '); ?>
    '; foreach($data as $x){ echo'
    '.$x->title.'
    '; } echo''; } function animecrowds_misc_beta($a,$b,$c){ if(!empty(get_transient($a))){ $t = get_transient($a); }else{ $t = wp_remote_retrieve_body(wp_remote_get($b)); set_transient($a,$t,$c); } $data = json_decode($t,false); echo''; } function animecrowds_theme_default_general_options() { $defaults = array( 'animecrowds_social_facebook' => '', 'animecrowds_social_twitter' => '', 'animecrowds_social_googleplus' => '', 'animecrowds_rss' => '', 'animecrowds_banner' => '', ); return apply_filters( 'animecrowds_theme_default_general_options', $defaults ); } function animecrowds_initialize_theme_options() { if( false == get_option( 'animecrowds_theme_general_options' ) ) { add_option( 'animecrowds_theme_general_options', apply_filters( 'animecrowds_theme_default_general_options', animecrowds_theme_default_general_options() ) ); } add_settings_section( 'general_settings_section', __( 'General Settings', 'anime-crowds' ), 'animecrowds_general_options_callback', 'animecrowds_theme_general_options' ); add_settings_field( 'animecrowds_social_facebook', 'Facebook', 'animecrowds_social_facebook_callback', 'animecrowds_theme_general_options', 'general_settings_section', array( __( 'Put a link to your Facebook page. Leave it empty to disable the icon link.', 'anime-crowds' ) ) ); add_settings_field( 'animecrowds_social_twitter', 'Twitter', 'animecrowds_social_twitter_callback', 'animecrowds_theme_general_options', 'general_settings_section', array( __( 'Put a link to your Twitter page. Leave it empty to disable the icon link.', 'anime-crowds' ) ) ); add_settings_field( 'animecrowds_social_googleplus', 'Google+', 'animecrowds_social_googleplus_callback', 'animecrowds_theme_general_options', 'general_settings_section', array( __( 'Put a link to your Google+ page. Leave it empty to disable the icon link.', 'anime-crowds' ) ) ); add_settings_field( 'animecrowds_rss', 'RSS', 'animecrowds_rss_callback', 'animecrowds_theme_general_options', 'general_settings_section', array( __( 'Put a link to your RSS page. Leave it empty to disable the icon link.', 'anime-crowds' ) ) ); register_setting( 'animecrowds_theme_general_options', 'animecrowds_theme_general_options', 'animecrowds_theme_validate_general_options' ); } add_action( 'admin_init', 'animecrowds_initialize_theme_options' ); function animecrowds_general_options_callback() { echo ''; } function animecrowds_social_facebook_callback($args) { $options = get_option( 'animecrowds_theme_general_options' ); $url = ''; if( isset( $options['animecrowds_social_facebook'] ) ) { $url = esc_url( $options['animecrowds_social_facebook'] ); } echo '

    ' . $args[0] . '

    '; } function animecrowds_social_twitter_callback($args) { $options = get_option( 'animecrowds_theme_general_options' ); $url = ''; if( isset( $options['animecrowds_social_twitter'] ) ) { $url = esc_url( $options['animecrowds_social_twitter'] ); } echo '

    ' . $args[0] . '

    '; } function animecrowds_social_googleplus_callback($args) { $options = get_option( 'animecrowds_theme_general_options' ); $url = ''; if( isset( $options['animecrowds_social_googleplus'] ) ) { $url = esc_url( $options['animecrowds_social_googleplus'] ); } echo '

    ' . $args[0] . '

    '; } function animecrowds_rss_callback($args) { $options = get_option( 'animecrowds_theme_general_options' ); $url = ''; if( isset( $options['animecrowds_rss'] ) ) { $url = esc_url( $options['animecrowds_rss'] ); } echo '

    ' . $args[0] . '

    '; } function animecrowds_theme_validate_general_options( $input ) { $output = array(); foreach( $input as $key => $value ) { if( isset( $input[$key] ) ) { $output[$key] = strip_tags( stripslashes( $input[ $key ] ) ); } } return apply_filters( 'animecrowds_theme_validate_animecrowds_settings', $output, $input ); } $animecrowds_options = get_option( 'animecrowds_theme_general_options' ); $homelinkoutput = str_replace( array( 'http://', 'https://', 'www.' ), '', home_url() ); function animecrowds_facebook() { global $animecrowds_options; if ( $animecrowds_options['animecrowds_social_facebook'] ) { echo $animecrowds_options['animecrowds_social_facebook'] ? 'facebook' : ''; } } function animecrowds_twitter() { global $animecrowds_options; if ( $animecrowds_options['animecrowds_social_twitter'] ) { echo $animecrowds_options['animecrowds_social_twitter'] ? 'twitter' : ''; } } function animecrowds_googleplus() { global $animecrowds_options; if ( $animecrowds_options['animecrowds_social_googleplus'] ) { echo $animecrowds_options['animecrowds_social_googleplus'] ? 'googleplus' : ''; } } function animecrowds_rss() { global $animecrowds_options; if( isset( $animecrowds_options['animecrowds_rss'] ) && $animecrowds_options[ 'animecrowds_rss' ] ) { echo 'rss'; } } add_filter( 'comment_form_fields', 'animecrowds_move_comment_field_to_bottom' ); function animecrowds_move_comment_field_to_bottom( $fields ) { $comment_field = $fields['comment']; unset( $fields['comment'] ); $fields['comment'] = $comment_field; return $fields; }