Wordpress"; if (!defined('HEADER_IMAGE')) define('HEADER_IMAGE', '%s/images/Ans.png'); register_sidebar(); register_nav_menus( array( 'ans_menu' => 'Primary Menu', ) ); define('HEADER_IMAGE_WIDTH', apply_filters('HEADER_IMAGE_WIDTH', 1000)); define('HEADER_IMAGE_HEIGHT', apply_filters('HEADER_IMAGE_HEIGHT', 150)); set_post_thumbnail_size(HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true); register_default_headers(array( 'Ans' => array('url' => '%s/images/Ans.png', 'thumbnail_url' => '%s/images/thumb-Ans.jpg', 'description' => 'Ans Default Image' ), )); } add_action('admin_menu', 'create_theme_style_page'); add_custom_image_header('', 'admin_header_style'); add_theme_support( 'post-thumbnails' ); add_theme_support( 'automatic-feed-links' ). add_theme_support( 'admin-bar', array( 'callback' => '') ); add_custom_background(); add_editor_style('style-of-editor.css'); if ( is_singular() ) wp_enqueue_script( "comment-reply" ); function create_theme_style_page() { add_theme_page('Ans Configuration', 'Footer', 'administrator', 'pho.php', 'build_styleguide_page'); } function build_styleguide_page() { ?>

Footer

' . get_the_date() . ''; } add_action('widgets_init', 'ans_menus_init'); function contentResize($cr_text, $cr_size=20, $cr_def='') { $cr_text = str_replace(']]>', ']]>', $cr_text); $cr_size += 1; $cr_text_1 = explode(' ', $cr_text, $cr_size); array_pop($cr_text_1); array_push($cr_text_1, ''); $cr_text = implode(' ', $cr_text_1); switch ($cr_def) { case 'list': $cr_text = '
  • ' . $cr_text . '
  • '; break; case 'flag': $cr_text = ' ' . $cr_text; } echo $cr_text; } ?>