/** * Sentio theme functions and definitions * */ /* Set content width */ if ( ! isset( $content_width ) ) { $content_width = 645; } if( !function_exists( 'sentio_theme_setup' ) ): /** * Sets up theme defaults and registers support for various WordPress features. */ function sentio_theme_setup() { /* Allow theme for translations */ load_theme_textdomain( 'sentio', get_template_directory() . '/languages' ); /* Add posts and comments RSS feed links to head */ add_theme_support( 'automatic-feed-links' ); /* Automatic tag in the head */ add_theme_support( 'title-tag' ); /* Enable post thumbnails */ add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 745, 400, true ); /* Enable custom header */ $args = array( 'default-image' => '', 'random-default' => true, 'flex-height' => true, 'flex-width' => true, 'height' => 650, 'width' => 1980, 'default-text-color' => '#ffffff', 'header-text' => true, 'uploads' => true, ); add_theme_support( "custom-header", $args ); /* Enable custom backgrounds */ $args = array( 'default-color' => '#eeefef', ); add_theme_support( 'custom-background', $args ); /* Register menu locations */ register_nav_menus( array( 'primary' => __( 'Primary Menu', 'sentio' ) ) ); /* Allow HTML5 support in forms */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); /* Enable post formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat' ) ); } endif; // sentio_theme_setup add_action( 'after_setup_theme', 'sentio_theme_setup' ); if( !function_exists( 'sentio_editor_styles' ) ): /** * Sets up theme defaults and registers support for various WordPress features. */ function sentio_editor_styles() { add_editor_style( 'editor-style.css' ); } endif; add_action( 'admin_init', 'sentio_editor_styles' ); if ( ! function_exists( 'sentio_fonts_url' ) ) : /** * Register Google Fonts */ function sentio_fonts_url() { $fonts_url = ''; $fonts = array(); $subsets = 'latin,latin-ext'; /* * Translators: If there are characters in your language that are not supported * by Quattrocento, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Quattrocento font: on or off', 'sentio' ) ) { $fonts[] = 'Quattrocento:400,700'; } /* * Translators: If there are characters in your language that are not supported * by Quattrocento Sans, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Quattrocento Sans font: on or off', 'sentio' ) ) { $fonts[] = 'Quattrocento Sans:400,700'; } if ( $fonts ) { $fonts_url = add_query_arg( array( 'family' => urlencode( implode( '|', $fonts ) ), 'subset' => urlencode( $subsets ), ), '//fonts.googleapis.com/css' ); } return $fonts_url; } endif; function sentio_scripts() { /* Load Google fonts */ wp_enqueue_style( 'sentio-fonts', sentio_fonts_url(), array(), null ); /* Load main styles*/ wp_enqueue_style( 'sentio-style', get_stylesheet_uri(), '', array(), null ); /* Load main JS file */ wp_enqueue_script( 'sentio-js', get_template_directory_uri() . '/js/sentio.js', array( 'jquery' ), rand(0, 100), true ); if ( is_singular() && comments_open() ) { wp_enqueue_script( 'comment-reply' ); } /* Send data to js */ wp_localize_script( 'sentio-js', 'dhData', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) ); /* CUstom CSS */ $custom_css = get_theme_mod('header_textcolor') !== 'blank' ? '.hero-message * { color: #' . get_theme_mod('header_textcolor') . ' !important;}' : ''; wp_add_inline_style('sentio-style', $custom_css); } add_action( 'wp_enqueue_scripts', 'sentio_scripts' ); function sentio_sidebars() { register_sidebar(array( 'name' => __( 'Widget Area', 'sentio' ), 'id' => 'sidebar-1', 'description' => __( 'Add widgets here to appear in your sidebar.', 'sentio' ), 'before_widget' => '<div id="%1$s" class="dh-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title text-delta">', 'after_title' => '</h4>', )); } add_action( 'widgets_init', 'sentio_sidebars' ); function sentio_customizer_scripts( $hook ) { // TO DO : Iclude customizer stuff only on cuztomize.php /* Load custom customizer styles*/ wp_enqueue_style( 'sentio-customizer-style', get_template_directory_uri() . '/css/admin/customizer.css' ); /* Load custom customizer script*/ wp_enqueue_script( 'sentio-customizer-js', get_template_directory_uri() . '/js/admin/customizer.js', array(), false, true ); } add_action( 'customize_controls_enqueue_scripts', 'sentio_customizer_scripts' ); /** * Helper functions */ /* Pass data into a template */ function sentio_template( $name = null, array $params = array(), $folder = false ) { global $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID; $templates = array(); if( isset($name )) { $template_container = isset( $folder ) ? 'templates/'.$folder : 'templates'; $templates[] = $template_container."/{$name}.php"; } $_template_file = locate_template( $templates, false, false ); if(!empty( $_template_file )) { if( is_array( $wp_query->query_vars ) ) { extract( $wp_query->query_vars, EXTR_SKIP ); } extract( $params, EXTR_SKIP ); require( $_template_file ); } } function sentio_get_template( $name = null, array $params = array(), $folder = false ) { ob_start(); sentio_template( $name, $params, $folder ); return ob_get_clean(); } function sentio_icons_hex( $index ) { $icons = array( 'Facebook' => '', 'Twitter' => '', 'Google' => '', 'Linkedin' => '', 'YouTube' => '', 'GitHub' => '', 'Instagram' => '', 'Dribbble' => '', 'Skype' => '' ); return array_key_exists( $index, $icons ) ? $icons[$index] : ''; } function sentio_social( $array ) { if( is_array( $array ) ) { $items = ''; foreach ($array as $key => $value) { $items .= sprintf( '<li><a href="%s"><i data-icon="%s"></i></a></li>', !empty( $value->url ) ? esc_url( $value->url ) : '', !empty( $value->icon ) ? esc_attr( sentio_icons_hex( $value->icon ) ) : '' ); } return sprintf( '<ul class="inline-list">%s</ul>', $items ); } } if( !function_exists( 'sentio_menu_callback' ) ): /** * Menu callback */ function sentio_menu_callback( $class = '' ) { $defaults = array( 'authors' => '', 'child_of' => 0, 'date_format' => get_option('date_format'), 'depth' => 0, 'echo' => 0, 'exclude' => '', 'include' => '', 'link_after' => '', 'link_before' => '', 'post_type' => 'page', 'post_status' => 'publish', 'show_date' => '', 'sort_column' => 'menu_order, post_title', 'title_li' => '', 'walker' => '' ); return sprintf('<ul class="%1$s">%2$s</ul>', esc_attr( $class['menu_class'] ), wp_list_pages($defaults)); } endif; if( !function_exists( 'sentio_header' ) ): /** * Init action for custom header */ function sentio_header() { do_action( 'sentio_header' ); } endif; if( !function_exists( 'sentio_footer' ) ): /** * Init action for custom footer */ function sentio_footer() { do_action( 'sentio_footer' ); } endif; if( !function_exists( 'sentio_build_header' ) ): /** * Generate Header */ function sentio_build_header() { $options = get_theme_mod('sentio_header_layout'); $layout = !empty( $options['layout'] ) ? $options['layout'] : 'one'; $logo_pat = !empty( $options['logo'] ) ? '<a href="%s" rel="home"><img src="%s" alt="%s"></a>' : '<h2><a class="text-alpha" href="%s" rel="home">%s</a></h2>'; $logo = !empty( $options['logo'] ) ? esc_url( $options['logo'] ) : (!empty( $options['logo_text'] ) ? $options['logo_text'] : get_bloginfo('name') ); $logo_moto = get_bloginfo('description') ? sprintf( '<h4 class="text-delta">%s</h4>', get_bloginfo('description') ) : ''; $menu_settings =array( 'theme_location' => 'primary', 'container' => false, 'fallback_cb' => 'sentio_menu_callback', 'menu_class' => 'inline-list', 'echo' => false, 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'depth' => 0 ); $meta = !empty( $options['meta'] ) ? $options['meta'] : ''; $social = !empty( $options['social'] ) ? json_decode($options['social']) : ''; $data = array( 'logo' => sprintf( $logo_pat, esc_url( home_url( '/' ) ), $logo, esc_attr( get_bloginfo( 'name' ) ) ) . $logo_moto, 'menu' => wp_nav_menu($menu_settings), 'meta' => $meta, 'social' => sentio_social( $social ) ); sentio_template( 'header-' . $layout, $data, 'header' ); } endif; add_action( 'sentio_header', 'sentio_build_header' ); if( !function_exists( 'sentio_build_footer' ) ): /** * Generate Fooetr */ function sentio_build_footer() { $options = get_theme_mod('sentio_footer_layout'); $layout = !empty( $options['layout'] ) ? $options['layout'] : 'one'; $logo_pat = '<a href="%s" rel="home"><img src="%s" alt="%s"></a>'; $logo = !empty( $options['logo'] ) ? $options['logo'] : ''; $data = array( 'logo' => !empty( $logo ) ? sprintf( $logo_pat, esc_url( home_url( '/' ) ), esc_url( $logo ), get_bloginfo( 'name' ) ) : '', 'info' => !empty( $options['info'] ) ? $options['info'] : '' ); sentio_template( 'footer-' . $layout, $data, 'footer' ); } endif; add_action( 'sentio_footer', 'sentio_build_footer' ); function sentio_search_form( $html ) { return sprintf( '<form role="search" method="get" class="search-form" action="%s"> <input type="search" class="search-field" placeholder="%s" value="%s" name="s" title="%s"> <button class="search-submit"></button></form>', esc_url( home_url( '/' ) ), __( 'Search', 'sentio' ), get_search_query(), __( 'Search for:', 'sentio' ) ); } add_filter( 'get_search_form', 'sentio_search_form' ); if( !function_exists( 'custom_excerpt_more' ) ): /** * Create custom excerpt read more button */ function custom_excerpt_more( $more ) { return $more . ' <a class="more-link" href="' . esc_url( get_permalink( get_the_ID() ) ) . '">' . __( 'Keep reading', 'sentio' ) . '</a>'; } endif; add_filter( 'the_excerpt', 'custom_excerpt_more' ); if( !function_exists( 'sentio_get_meta_title' ) ): /** * Create custom excerpt read more button */ function sentio_get_meta_title() { $patt = '<div class="bg-white text-center text-uppercase meta-title"><h2 class="text-gamma">%s</h2></div>'; if( is_archive() ) { return sprintf( $patt, get_the_archive_title() ); } else if( is_search() ) { return sprintf( $patt, get_search_query() ); } } endif; /** * Include Customizer options */ require get_template_directory() . '/inc/customizer-controls.php'; require get_template_directory() . '/inc/customizer.php';<!DOCTYPE html> <html lang="en-US" prefix="og: http://ogp.me/ns#" class="no-js"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="https://lilteddymailer.com/xmlrpc.php"> <meta name='robots' content='max-image-preview:large' /> <!-- This site is optimized with the Yoast WordPress SEO plugin v1.5.4.2 - https://yoast.com/wordpress/plugins/seo/ --> <link rel="canonical" href="https://lilteddymailer.com" /> <link rel="next" href="https://lilteddymailer.com/page/2/" /> <meta property="og:locale" content="en_US" /> <meta property="og:type" content="website" /> <meta property="og:title" content="lilteddymailer -" /> <meta property="og:url" content="https://lilteddymailer.com" /> <meta property="og:site_name" content="lilteddymailer" /> <!-- / Yoast WordPress SEO plugin. --> <style id='wp-img-auto-sizes-contain-inline-css' type='text/css'> img:is([sizes=auto i],[sizes^="auto," i]){contain-intrinsic-size:3000px 1500px} /*# sourceURL=wp-img-auto-sizes-contain-inline-css */ </style> <style id='wp-emoji-styles-inline-css' type='text/css'> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 0.07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } /*# sourceURL=wp-emoji-styles-inline-css */ </style> <style id='wp-block-library-inline-css' type='text/css'> :root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}.has-fit-text{white-space:nowrap!important}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}} /*# sourceURL=wp-block-library-inline-css */ </style> <style id='classic-theme-styles-inline-css' type='text/css'> /*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} /*# sourceURL=/wp-includes/css/classic-themes.min.css */ </style> <script type="text/javascript" src="https://lilteddymailer.com/wp-includes/js/jquery/jquery.min.js?ver=3.7.1" id="jquery-core-js"></script> <script type="text/javascript" src="https://lilteddymailer.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1" id="jquery-migrate-js"></script> <script type="text/javascript" src="https://lilteddymailer.com/wp-content/plugins/wp-fast-start/modules/js/front.js?ver=1.0" id="wcf_front.js-js"></script> <link rel="https://api.w.org/" href="https://lilteddymailer.com/wp-json/" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://lilteddymailer.com/xmlrpc.php?rsd" /> <meta name="generator" content="WordPress 6.9.4" /> </head> <body class="home blog wp-theme-sentio"> <div id="page-canvas" class="main-container">