__( 'Firefox Navigation'), ) ); } function afccopyright() { global $wpdb; $copyright_dates = $wpdb->get_results(" SELECT YEAR(min(post_date_gmt)) AS firstdate, YEAR(max(post_date_gmt)) AS lastdate FROM $wpdb->posts WHERE post_status = 'publish' "); $output = ''; if($copyright_dates) { $copyright = " © ". $copyright_dates[0]->firstdate; if($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) { $copyright .= '-' . $copyright_dates[0]->lastdate; } $output = bloginfo('name') . $copyright; } return $output; } function page_menu_args( $args ) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'page_menu_args' ); function afc_excerpt_length($length) { return 90; } add_filter('excerpt_length', 'afc_excerpt_length'); function continue_reading_link() { return ' ' . __( 'Read More...') . ''; } function afc_excerpt_more( $more ) { return ' …' . continue_reading_link(); } add_filter( 'excerpt_more', 'afc_excerpt_more' ); function custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { $output .= continue_reading_link(); } return $output; } add_filter( 'get_the_excerpt', 'custom_excerpt_more' ); function afccomment_init() { add_filter('comment_form_defaults','afc_comments_form_defaults'); } add_action('after_setup_theme','afccomment_init'); function afc_comments_form_defaults($default) { unset($default['comment_notes_after']); return $default; } if ( ! function_exists( 'afc_comment' ) ) : function afc_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?>
  • id="li-comment-">
    says:' ), sprintf( '%s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
  • permalink.', 'anggrek_ungu' ); } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { $posted_in = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'anggrek_ungu' ); } else { $posted_in = __( 'Bookmark the permalink.', 'anggrek_ungu' ); } printf( $posted_in, get_the_category_list( ', ' ), $tag_list, get_permalink(), the_title_attribute( 'echo=0' ) ); } endif; function afcget_search_form($form) { $form = '
    '; return $form; } add_filter('get_search_form', 'afcget_search_form'); //------------// if ( ! function_exists( 'posted_on' ) ) : function posted_on() { printf( __( ' %2$s by %3$s' ), 'meta-prep meta-prep-author', sprintf( '', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), sprintf( '%3$s', get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s' ), get_the_author() ), get_the_author() ) ); } //------------// if ( ! function_exists( 'posted_in' ) ) : function posted_in() { $tag_list = get_the_tag_list( '', ', ' ); if ( $tag_list ) { $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the permalink.' ); } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { $posted_in = __( 'This entry was posted in %1$s. Bookmark the permalink.'); } else { $posted_in = __( 'Bookmark the permalink.' ); } printf( $posted_in, get_the_category_list( ', ' ), $tag_list, get_permalink(), the_title_attribute( 'echo=0' ) ); } endif; function mytheme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • id="li-comment-">
    ' ); ?> %s says:'), get_comment_author_link()) ?>
    comment_approved == '0') : ?>
    $depth, 'max_depth' => $args['max_depth']))) ?>
    __( 'blueFirefox Main Widget' ), 'id' => 'bfx-widget-utama', 'description' => __( 'Widget Utama'), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'blueFirefox Widget for Category' ), 'id' => 'bfx-category-widget', 'description' => __( 'Category widget area' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'blueFirefox Widget for Tag' ), 'id' => 'bfx-tag-widget', 'description' => __( 'Tag widget area' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'blueFirefox Widget for Archive' ), 'id' => 'bfx-archive-widget', 'description' => __( 'Archive widget area' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'blueFirefox Widget for Single Post' ), 'id' => 'bfx-single-widget', 'description' => __( 'Single Post widget area' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'blueFirefox First Footer Widget' ), 'id' => 'bfx-footerone-widget', 'description' => __( 'The first footer widget area' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

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

    ', 'after_title' => '

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

    ', 'after_title' => '

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

    ', 'after_title' => '

    ', ) ); } add_action( 'widgets_init','afc_widgets_init' ); function custom_dashboard_help() { echo '

    Welcome to AllFreeCMS Free Custom Wordpress Theme! Need help? Want to Donate to get more free Custom WordPress Theme, Donations.

    '; } endif; $themename = "AFC blueFirefox"; $shortname = "afcfx"; $options = array ( array( "name" => $themename." Options", "type" => "title"), array( "name" => "Advertising Options", "type" => "section"), array( "type" => "open"), array( "name" => "Advertising Code for for home page", "desc" => "Insert Advertising Code, like Google Ads or others ads", "id" => $shortname."getads_home", "type" => "textarea", "std" => ""), array( "name" => "Advertising Code for single page", "desc" => "Insert Advertising Code, like Google Ads or others ads ", "id" => $shortname."getads_single", "type" => "textarea", "std" => ""), array( "type" => "close"), array( "name" => "Footer", "type" => "section"), array( "type" => "open"), array( "name" => "Footer Code", "desc" => "You can paste your Google Analytics or other tracking code in this box. This will be automatically added to the footer.", "id" => $shortname."getfoot_code", "type" => "textarea", "std" => ""), array( "type" => "close") ); function mytheme_add_admin() { global $themename, $shortname, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } foreach ($options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } header("Location: admin.php?page=functions.php&saved=true"); die;} else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); } header("Location: admin.php?page=functions.php&reset=true"); die; }} add_menu_page($themename, $themename, 'administrator', basename(__FILE__), 'mytheme_admin'); } function mytheme_add_init() { $file_dir=get_bloginfo('template_directory'); wp_enqueue_style("functions", $file_dir."/functions/functions.css", false, "1.0", "all"); wp_enqueue_script("rm_script", $file_dir."/functions/rm_script.js", false, "1.0"); } function mytheme_admin() { global $themename, $shortname, $options; $i=0;if ( $_REQUEST['saved'] ) echo '

    '.$themename.' settings saved.

    '; if ( $_REQUEST['reset'] ) echo '

    '.$themename.' settings reset.

    ';?>

    Settings


    Thanks for using , below some options that may help you to use the power of WordPress Theme I have made. Don't miss other themes for free from All Free CMS theme Collections with Feed subscribing and if you happy with this theme and want to support me to make more and more free theme, you can do some donations and or join as sponsors for the next more featured theme.

    " />
    />

    Theme present by : All Free CMS