global $content_width; if ( ! isset( $content_width ) ) $content_width = 640; /* pixels */ if (!function_exists('library_books_setup')): /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which runs * before the init hook. The init hook is too late for some features, such as indicating * support post thumbnails. */ function library_books_setup() { load_theme_textdomain('library-books', get_template_directory() . '/languages'); add_theme_support('automatic-feed-links'); add_theme_support('woocommerce'); add_theme_support('post-thumbnails'); add_theme_support('custom-header'); add_theme_support('title-tag'); add_theme_support('custom-logo', array( 'height' => 52, 'width' => 268, 'flex-height' => true, )); register_nav_menus(array( 'primary' => esc_html__('Primary Menu', 'library-books') , )); add_theme_support('custom-background', array( 'default-color' => 'ffffff' )); add_editor_style( 'editor-style.css' ); add_post_type_support( 'page', 'excerpt' ); } endif; // library_books_setup add_action('after_setup_theme', 'library_books_setup'); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function library_books_widgets_init() { register_sidebar(array( 'name' => esc_html__('Sidebar', 'library-books') , 'description' => esc_html__('Appears on page/post sidebar', 'library-books') , 'id' => 'sidebar-1', 'before_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Footer Column 1', 'library-books') , 'description' => esc_html__('Appears on footer', 'library-books') , 'id' => 'fc-1', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', )); register_sidebar(array( 'name' => esc_html__('Footer Column 2', 'library-books') , 'description' => esc_html__('Appears on footer', 'library-books') , 'id' => 'fc-2', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', )); register_sidebar(array( 'name' => esc_html__('Footer Column 3', 'library-books') , 'description' => esc_html__('Appears on footer', 'library-books') , 'id' => 'fc-3', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', )); } add_action('widgets_init', 'library_books_widgets_init'); /** * Register custom fonts. */ function library_books_font_url() { $font_url = ''; /* Translators: If there are any character that are not * supported by Roboto Condensed, trsnalate this to off, do not * translate into your own language. */ $robotocondensed = _x('on', 'robotocondensed:on or off', 'library-books'); /* Translators: If there has any character that are not supported * by Scada, translate this to off, do not translate * into your own language. */ $scada = _x('on', 'Scada:on or off', 'library-books'); /* Translators: If there has any character that are not supported * by Roboto Slab, translate this to off, do not translate * into your own language. */ $robotoslab = _x('on', 'Roboto Slab:on or off', 'library-books'); /* Translators: If there has any character that are not supported * by Merriweather, translate this to off, do not translate * into your own language. */ $merriweather = _x('on', 'Merriweather:on or off', 'library-books'); /* Translators: If there has any character that are not supported * by Roboto, translate this to off, do not translate * into your own language. */ $roboto = _x('on', 'Roboto:on or off', 'library-books'); /* Translators: If there has any character that are not supported * by Lato, translate this to off, do not translate * into your own language. */ $lato = _x('on', 'Lato:on or off', 'library-books'); /* Translators: If there has any character that are not supported * by Playfair Display, translate this to off, do not translate * into your own language. */ $playfairdisplay = _x('on', 'Playfair Display:on or off', 'library-books'); /* Translators: If there has any character that are not supported * by Assistant , translate this to off, do not translate * into your own language. */ $assistant = _x('on', 'Assistant:on or off', 'library-books'); if ('off' !== $robotocondensed) { $font_family = array(); if ('off' !== $robotocondensed) { $font_family[] = 'Roboto Condensed:300,400,600,700,800,900'; } if ('off' !== $robotoslab) { $font_family[] = 'Roboto Slab:300,400,700'; } if ('off' !== $merriweather) { $font_family[] = 'Merriweather:300,400,400i,700,700i,900,900i'; } if ('off' !== $roboto) { $font_family[] = 'Roboto:100,300,300i,400,400i,500,500i,700,700i,900,900i'; } if ('off' !== $lato) { $font_family[] = 'Lato:300,300i,400,400i,700,700i,900,900i'; } if ('off' !== $playfairdisplay) { $font_family[] = 'Playfair Display:400,400i,700,700i,900,900i'; } if ('off' !== $assistant) { $font_family[] = 'Assistant:200,300,400,600,700,800'; } $query_args = array( 'family' => urlencode(implode('|', $font_family)) , ); $font_url = add_query_arg($query_args, '//fonts.googleapis.com/css'); } return $font_url; } /** * Enqueue scripts and styles. */ function library_books_scripts() { wp_enqueue_style('library-books-font', library_books_font_url() , array()); wp_enqueue_style('library-books-basic-style', get_stylesheet_uri()); wp_enqueue_style('library-books-print-style', get_template_directory_uri() . "/print.css"); wp_enqueue_style('nivo-slider', get_template_directory_uri() . "/css/nivo-slider.css"); wp_enqueue_style('font-awesome', get_template_directory_uri() . "/css/font-awesome.css"); wp_enqueue_style('library-books-main-style', get_template_directory_uri() . "/css/responsive.css"); wp_enqueue_style('library-books-base-style', get_template_directory_uri() . "/css/style_base.css"); wp_enqueue_script('jquery-nivo', get_template_directory_uri() . '/js/jquery.nivo.slider.js', array( 'jquery' )); wp_enqueue_script('library-books-custom-js', get_template_directory_uri() . '/js/custom.js'); if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } } add_action('wp_enqueue_scripts', 'library_books_scripts'); define('LIBRARY_BOOKS_URL', 'https://www.pinnaclethemes.net/'); define('LIBRARY_BOOKS_PRO_THEME_URL', 'https://www.pinnaclethemes.net/product/library-wordpress-theme/'); define('LIBRARY_BOOKS_FREE_THEME_URL', 'https://www.pinnaclethemes.net/product/free-bookstore-wordpress-theme/'); define('LIBRARY_BOOKS_THEME_DOC', 'https://pinnaclethemes.net/themedocumentation/library-documentation/'); define('LIBRARY_BOOKS_LIVE_DEMO', 'https://www.pinnaclethemes.net/themedemos/librarybooks/'); define('LIBRARY_BOOKS_THEMES', 'https://www.pinnaclethemes.net/cool-wordpress-themes/'); /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Custom template for about theme. */ require get_template_directory() . '/inc/about-themes.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/extras.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Add a pingback url auto-discovery header for singularly identifiable articles. */ function library_books_pingback_header() { if (is_singular() && pings_open()) { printf( '' . "\n", esc_html(get_bloginfo( 'pingback_url' ) )); } } add_action('wp_head', 'library_books_pingback_header'); // Add class in body if slide option enable function library_books_body_class( $classes ) { $hideslide = get_theme_mod('hide_slides', 1); if (!is_home() && is_front_page()) { if( $hideslide == '') { $classes[] = 'visibleslide'; } } return $classes; } add_filter( 'body_class','library_books_body_class' ); // get slug by id function library_books_get_slug_by_id($id) { $post_data = get_post($id, ARRAY_A); $slug = $post_data['post_name']; return $slug; } require_once get_template_directory() . '/upgrade-pro/example-1/class-customize.php'; /** * Filter the except length to 20 words. * * @param int $length Excerpt length. * @return int (Maybe) modified excerpt length. */ function library_books_custom_excerpt_length( $excerpt_length ) { return 20; } add_filter( 'excerpt_length', 'library_books_custom_excerpt_length', 999 );{"id":941,"date":"2021-02-21T08:25:33","date_gmt":"2021-02-21T08:25:33","guid":{"rendered":"https:\/\/booksbypatricksimpson.com\/?p=941"},"modified":"2021-02-21T08:25:44","modified_gmt":"2021-02-21T08:25:44","slug":"tara-home","status":"publish","type":"post","link":"https:\/\/booksbypatricksimpson.com\/tara-home\/","title":{"rendered":"Tara! Home!"},"content":{"rendered":"
\n
\n

<\/h1>\n<\/div>\n<\/div>\n
\n
\n
\n
\n
<\/div>\n
<\/a><\/div>\n

Wednesday, 12 October 1994:<\/p>\n

Remembering Scarlett\u2019s \u201cTara\u201d from Margaret Mitchell’s novel,\u00a0Gone with the Wind<\/i>, we planned to visit a place we’d always wanted to see, the fabled Hill of Tara, seat of the High Kings of Ireland.<\/p>\n

We drove (crawled) endlessly that morning through fat rolls of fog. Suddenly the sun broke through and there it was \u2013 Tara! We were excited.<\/p>\n

<\/div>\n

<\/a>But it looked very closed.<\/p>\n

We found a path leading up to a place marked on my map as Saint Patrick\u2019s Church, used as a visitors center next to the site. The car gate was locked but the footpath was open so I lifted Anne’s wheelchair over the wall and we were on our way. A young man greeted us at the church.<\/p>\n

\u201cOh, yes,\u201d he said, almost sheepishly. \u201cWe\u2019re open. Must\u2019ve forgotten to unlock the gate.\u201d He was friendly enough, but I think he was taking a nap. \u201cThe church is no longer a church,\u201d he said, \u201cbut a visitors center. The tour includes a good audiovisual show as well. I\u2019ll start it up for you.\u201d<\/p>\n

We sat in one of the church pews and he disappeared into the church somewhere. Suddenly, long black window shades began to lower on all the windows at once, shutting out the sunlight. Simultaneously, a movie screen lowered to the altar in front of us and, when all was ready, the show began. It was a good audiovisual indeed:\u00a0Tara, Meeting Place of Heroes<\/i>. The story unfolded like a dream; we learned that nearly two thousand years ago, Tara was the seat of the most powerful rulers in Ireland. Here the high king and his royal court lived in their ceremonial residence while they feasted and watched over the realm. They were gone now, but the sense of their commanding presence remained.<\/p>\n

The show was especially good for Anne because it gave overall aerial views of the place and was about the only way she could see it. The Hill of Tara was grass-covered and bumpy, as we could see from the film, and not friendly to wheelchairs. Afterwards she looked longingly at the gentle sloping hill from the church door. She sighed \u201cIf I only had wings \u2026\u201d<\/p>\n

The young man sensed her yearning for two good feet. \u201cSorry about that,\u201d he said, almost inaudibly. Then he smiled. \u201cHere, let me push you back to your car while your husband has a look around.\u201d<\/p>\n

<\/a><\/div>\n

I wandered out into the wide meadows. We were together, Tara and I, three hundred feet above the plains of Meath. After fifty centuries of pagan rulers and powerful kings, I alone was left standing here this day; among the grassy mounds and depressions that once were Stone Age passage tombs, Iron Age forts, and ruined houses of kings. Fifty centuries of living had once filled the air with wild shouts of war and pagan revelry \u2013 later to be stilled by St. Patrick\u2019s reverent voice of prayer as he baptized thousands here. Tara\u2019s influence declined soon after Christianity took root in the country but more recently, in 1843, Daniel O\u2019Connell, the \u201cLiberator\u201d and leader of the opposition to union with Britain, held one of his \u201cmonster meetings\u201d here and drew a crowd of 750,000 people.<\/p>\n

All were distant memories now. I stood alone with the fading echoes of the past. After one last look, I too, was gone.<\/p>\n

(Excerpt from\u00a0Wheelchair Around the World<\/i>, by Patrick Simpson)<\/div>\n<\/div>\n
\n
<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

Wednesday, 12 October 1994: Remembering Scarlett\u2019s \u201cTara\u201d from Margaret Mitchell’s novel,\u00a0Gone with the Wind, we planned to visit a place we’d always wanted to see, the fabled Hill of Tara, seat of the High Kings of Ireland. We drove (crawled) endlessly that morning through fat rolls of fog. Suddenly the sun broke through and there […]<\/a><\/p>\n","protected":false},"author":1,"featured_media":942,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pgc_meta":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-941","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/booksbypatricksimpson.com\/wp-json\/wp\/v2\/posts\/941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/booksbypatricksimpson.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/booksbypatricksimpson.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/booksbypatricksimpson.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/booksbypatricksimpson.com\/wp-json\/wp\/v2\/comments?post=941"}],"version-history":[{"count":1,"href":"https:\/\/booksbypatricksimpson.com\/wp-json\/wp\/v2\/posts\/941\/revisions"}],"predecessor-version":[{"id":943,"href":"https:\/\/booksbypatricksimpson.com\/wp-json\/wp\/v2\/posts\/941\/revisions\/943"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/booksbypatricksimpson.com\/wp-json\/wp\/v2\/media\/942"}],"wp:attachment":[{"href":"https:\/\/booksbypatricksimpson.com\/wp-json\/wp\/v2\/media?parent=941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/booksbypatricksimpson.com\/wp-json\/wp\/v2\/categories?post=941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/booksbypatricksimpson.com\/wp-json\/wp\/v2\/tags?post=941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}