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 );

DESERT ANGELS: SAMPLE PAGE

DESERT ANGELS: SAMPLE PAGE

Chapter 13: Angel Unaware

Eva approached Sarah and Mattie just before breakfast. They had already prepared coffee on the fire, along with a mixture of hardtack and salt pork.

    “I want to go with you.”

    “Go with us?” Sarah gave her a puzzled look. “You are already with us.”

    “No, I mean to go with you and Mattie and General Howard.”

    Sarah scowled. “I promised Captain Bernard to take you to the Stone House and that I have done.”

    “Yes, I know,” said Eva, “and I’m so very grateful. But I had a very bad dream last night. I’ve dreamed this very same dream for two nights. It’s like a warning – an omen. Sarah, death is going to take my Jim if I don’t get to him in time.”

16feee_66f6c06b1bb8447db50803ce1cc494a9_mv2

Sarah raised her eyebrows as a look of intrigue crossed her face. “Tell me more about your dream.” So Eva told her about the bedraggled Indian on the pony, the turkey feather on his head, the dirty blanket over his shoulders, the war club. She spoke as if she’d really seen him, and when she finished, she was trembling.

    Sarah was silent for a few moments, seemingly lost in thought. “Many of my family,” she said, “dream of things before they happen. When I was a little girl, my father once told my people a fearful dream, as he called it. He said, ‘I dreamed the same dream for three nights. I saw the greatest emigration that has yet been through our country. I looked north and south and east and west, and saw nothing but dust, and I heard a great weeping. I saw women crying, and I also saw my men shot down by the white people. They were killing my people with something that made a great noise like thunder and lightning, and I saw the blood streaming from the mouths of my men that lay all around me. I saw it as if it was real. Oh, my dear children! You may all think it is only a dream, nevertheless, I feel that it will come to pass.’”

    Sarah put the coffeepot down. “Even as he said it would happen, it came to pass.”

    “It’s as if God had warned your people,” said Eva.

    “And maybe God is warning you,” said Sarah. “My people heard my father’s dream and later they were sad because it came true. Let us pray that it is not too late for your Sergeant Jim.”

    “You mean I can go with you?”

    “I did not say that.”

    “Oh, please, Sarah, let me go with you. I’ll help you. I’ll do whatever you wish.”

    “You do not know how to survive in the desert. You do not know where to find water. You do not know our language. Even your skin is a different color. Why should I want you to go with us? You will only get in the way and slow us down. I will find your Sergeant Adams and send him back – if he is still alive. You are better off in Fort Boise until this war is over.”

    Eva clenched her fists. “I won’t go to Fort Boise! I’ll get a horse and I’ll find Jim, no matter what!” Glaring, she turned her back and stormed angrily away.

    Sarah and Mattie continued their breakfast in silence.

    All at once, Mattie stopped and uttered the oddest thing Sarah had ever heard her say.

    “I think she is an angel.”

16feee_c25f553641f542be9b4c4762f0bcd273_mv2

“Who?”

    “Eva,” answered Mattie. “I think she is an angel. Do you remember the story your Grandfather told us about our forefather and mother?”

    Sarah was completely taken by surprise but kept her calm. She thought for a while and then remembered. “Yes, long ago, Grandfather gathered all his people together and told the story. It is a tradition of our people.”

    “Oh, Sarah, would you please tell it to me again?”

    “Of course,” replied Sarah, “but what does that have to do with angels?”

    “You’ll see.” Mattie leaned forward. “I will listen carefully…”

16feee_4e39b0134b8e4d59befe3795a265df5e_mv2