AlkantarClanX12
Current Path : /home/thanudqk/siamfreetour.com/wp-content/uploads/2024/02/ |
Current File : /home/thanudqk/siamfreetour.com/wp-content/uploads/2024/02/recipe-delights.1.0.0.zip |
PK �uKXs�Ѳ 4 4 recipe-delights/functions.php<?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; /** * After setup theme hook */ function recipe_delights_theme_setup(){ /* * Make child theme available for translation. * Translations can be filed in the /languages/ directory. */ load_child_theme_textdomain( 'recipe-delights', get_stylesheet_directory() . '/languages' ); } add_action( 'after_setup_theme', 'recipe_delights_theme_setup', 100 ); function recipe_delights_styles() { $my_theme = wp_get_theme(); $version = $my_theme['Version']; wp_enqueue_style( 'blossom-recipe', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'recipe-delights-style', get_stylesheet_directory_uri() . '/style.min.css', array( 'blossom-recipe' ), $version ); wp_enqueue_script( 'recipe-delights-custom', get_stylesheet_directory_uri() . '/js/custom.js', array( 'jquery'), $version, true ); } add_action( 'wp_enqueue_scripts', 'recipe_delights_styles'); function blossom_recipe_header(){ $ed_cart = get_theme_mod( 'ed_shopping_cart', true ); $ed_search = get_theme_mod( 'ed_header_search', true ); ?> <header id="masthead" class="site-header header-three" itemscope itemtype="https://schema.org/WPHeader"> <div class="header-t"> <div class="container"> <?php if( blossom_recipe_social_links( false ) ){ echo '<div class="header-social-icons">'; blossom_recipe_social_links(); echo '</div>'; } blossom_recipe_primary_nagivation(); ?> <?php if( ( blossom_recipe_is_woocommerce_activated() && $ed_cart ) || $ed_search ){ echo '<div class="search-wrap">'; if( $ed_search ) blossom_recipe_form_section(); if( blossom_recipe_is_woocommerce_activated() && $ed_cart ) blossom_recipe_wc_cart_count(); echo '</div>'; } ?> </div> </div> <div class="main-header"> <div class="container"> <?php blossom_recipe_site_branding( false ); ?> </div> </div><!-- .main-header --> </header> <?php } function blossom_recipe_banner(){ if( is_front_page() || is_home() ) { $ed_banner = get_theme_mod( 'ed_banner_section', 'slider_banner' ); $slider_type = get_theme_mod( 'slider_type', 'latest_posts' ); $slider_cat = get_theme_mod( 'slider_cat' ); $posts_per_page = get_theme_mod( 'no_of_slides', 4 ); $banner_title = get_theme_mod( 'banner_title', __( 'Relaxing Is Never Easy On Your Own', 'recipe-delights' ) ); $banner_subtitle = get_theme_mod( 'banner_subtitle' , __( 'Come and discover your oasis. It has never been easier to take a break from stress and the harmful factors that surround you every day!', 'recipe-delights' ) ) ; $banner_button = get_theme_mod( 'banner_button', __( 'Read More', 'recipe-delights' ) ); $banner_url = get_theme_mod( 'banner_url', '#' ); $image_size = 'blossom-recipe-slider'; if( $ed_banner == 'static_banner' && has_custom_header() ){ ?> <div class="site-banner static-banner<?php if( has_header_video() ) echo esc_attr( ' video-banner' ); ?>"> <?php the_custom_header_markup(); if( $ed_banner == 'static_banner' && ( $banner_title || $banner_subtitle || ( $banner_button && $banner_url ) )){ ?> <div class="banner-caption"> <div class="container"> <?php if( $banner_title ) echo '<h2 class="banner-title">' . esc_html( $banner_title ) . '</h2>'; if( $banner_subtitle ) echo '<div class="banner-desc">' . wp_kses_post( $banner_subtitle ) . '</div>'; if( $banner_button && $banner_url ) echo '<a href="'.esc_url( $banner_url ).'" class="btn btn-green"><span>'.esc_html( $banner_button ).'</span></a>'; ?> </div> </div> <?php } ?> </div> <?php }elseif( $ed_banner == 'slider_banner' ){ if( $slider_type == 'latest_posts' || $slider_type == 'cat' || ( blossom_recipe_is_brm_activated() && $slider_type == 'latest_recipes' ) || ( blossom_recipe_is_delicious_recipe_activated() && $slider_type == 'latest_dr_recipe' ) ){ $args = array( 'post_status' => 'publish', 'ignore_sticky_posts' => true ); if( blossom_recipe_is_delicious_recipe_activated() && $slider_type == 'latest_dr_recipe' ){ $args['post_type'] = DELICIOUS_RECIPE_POST_TYPE; $args['posts_per_page'] = $posts_per_page; }elseif( $slider_type == 'latest_recipes' ){ $args['post_type'] = 'blossom-recipe'; $args['posts_per_page'] = $posts_per_page; }elseif( $slider_type === 'cat' && $slider_cat ){ $args['post_type'] = 'post'; $args['cat'] = $slider_cat; $args['posts_per_page'] = -1; }else{ $args['post_type'] = 'post'; $args['posts_per_page'] = $posts_per_page; } $qry = new WP_Query( $args ); if( $qry->have_posts() ){ ?> <div class="site-banner slider-five"> <div class="container"> <div class="banner-slider owl-carousel"> <?php while( $qry->have_posts() ){ $qry->the_post(); ?> <div class="slider-item"> <a href="<?php the_permalink(); ?>"> <?php if( has_post_thumbnail() ){ the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) ); }else{ blossom_recipe_get_fallback_svg( $image_size ); } ?> </a> <?php if( blossom_recipe_is_delicious_recipe_activated() && DELICIOUS_RECIPE_POST_TYPE == get_post_type() ){ echo '<div class="recipe-meta-data">'; recipe_delights_recipe_keywords(); echo '</div>'; } ?> <div class="banner-caption"> <?php the_title( '<h3 class="banner-title"><a href="' . esc_url( get_the_permalink() ) . '" rel="bookmark">', '</a></h3>' ); ?> </div> <?php if ( blossom_recipe_is_delicious_recipe_activated() && DELICIOUS_RECIPE_POST_TYPE === get_post_type() ){ echo '<div class="recipe-item-meta">'; blossom_recipe_prep_time(); blossom_recipe_difficulty_level(); blossom_recipe_recipe_rating(); echo '</div>'; } ?> </a> </div> <?php } ?> </div> </div> </div> <?php } wp_reset_postdata(); } } } } if( ! function_exists( 'recipe_delights_recipe_keywords' ) ) : /** * Recipe Keys. */ function recipe_delights_recipe_keywords(){ global $recipe; if ( ! empty( $recipe->recipe_keys ) ) : ?> <span class="dr-category"> <?php foreach( $recipe->recipe_keys as $recipe_key ) { $key = get_term_by( 'name', $recipe_key, 'recipe-key' ); ?> <a href="<?php echo esc_url( get_term_link( $key, 'recipe-key' ) ); ?>" title="<?php echo esc_attr( $recipe_key ); ?>"> <?php delicious_recipes_get_tax_icon( $key ); ?> <span class="cat-name"><?php echo esc_html( $recipe_key ); ?></span> </a> <?php } ?> </span> <?php endif; } endif; function blossom_recipe_body_classes( $classes ) { // Adds a class of hfeed to non-singular pages. if ( ! is_singular() ) { $classes[] = 'hfeed'; } // Adds a class of custom-background-image to sites with a custom background image. if ( get_background_image() ) { $classes[] = 'custom-background-image'; } // Adds a class of custom-background-color to sites with a custom background color. if ( get_background_color() != 'ffffff' ) { $classes[] = 'custom-background-color'; } if( is_home() || is_archive() || is_search() ){ $classes[] = 'list-view'; } if( is_single() || is_page() ){ $classes[] = 'underline'; } $classes[] = blossom_recipe_sidebar( true ); return $classes; } function blossom_recipe_fonts_url() { $fonts_url = ''; $fonts = array(); $subsets = 'latin,latin-ext'; /* translators: If there are characters in your language that are not supported by Lato, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Lato: on or off', 'recipe-delights' ) ) { $fonts[] = 'Lato:300,300i,400,400i,600,600i,700,700i,800,800i'; } /* translators: If there are characters in your language that are not supported by Marcellus, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Bitter: on or off', 'recipe-delights' ) ) { $fonts[] = 'Bitter:'; } $query_args = array( 'family' => urlencode( implode( '|', $fonts ) ), 'subset' => urlencode( $subsets ), ); if ( $fonts ) { $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); } if( get_theme_mod( 'ed_localgoogle_fonts', false ) ) { $fonts_url = blossom_recipe_get_webfont_url( add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ) ); } return esc_url_raw( $fonts_url ); } function blossom_recipe_footer_bottom(){ ?> <div class="bottom-footer"> <div class="container"> <div class="copyright"> <?php blossom_recipe_get_footer_copyright(); esc_html_e( ' Recipe Delights | Developed By ', 'recipe-delights' ); echo '<a href="' . esc_url( 'https://blossomthemes.com/' ) .'" rel="nofollow" target="_blank">' . esc_html__( 'Blossom Themes', 'recipe-delights' ) . '</a>.'; printf( esc_html__( ' Powered by %s', 'recipe-delights' ), '<a href="'. esc_url( __( 'https://wordpress.org/', 'recipe-delights' ) ) .'" target="_blank">WordPress</a>. ' ); if ( function_exists( 'the_privacy_policy_link' ) ) { the_privacy_policy_link(); } ?> </div> </div> </div> <?php } function recipe_delights_dynamic_css(){ $primary_color = '#c94f68'; echo "<style type='text/css' media='all'>"; ?> .btn-link:after, .readmore-btn .more-button:after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='<?php echo recipe_delights_hash_to_percent23( recipe_delights_sanitize_hex_color( $primary_color ) ); ?>' d='M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z'%3E%3C/path%3E%3C/svg%3E"); } <?php echo "</style>"; } add_action( 'wp_head', 'recipe_delights_dynamic_css',99 ); function recipe_delights_hash_to_percent23( $color_code ){ $color_code = str_replace( "#", "%23", $color_code ); return $color_code; } function recipe_delights_sanitize_hex_color( $color ){ if ( '' === $color ) return ''; // 3 or 6 hex digits, or the empty string. if ( preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $color ) ) return $color; }PK �uKXfŔ� � recipe-delights/readme.txt=== Recipe Delights === Contributors: Wp Delicious Requires at least: 4.7 Requires PHP: 5.6 Tested up to: 6.2 Stable tag: 1.0.0 License: GNU General Public License v3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, footer-widgets, custom-background, custom-header, custom-menu, custom-logo, featured-images, threaded-comments, full-width-template, rtl-language-support, translation-ready, theme-options, e-commerce, food-and-drink == Description == Recipe Delights is a free recipe WordPress theme designed for building an engaging and professional food and recipe website. This theme is compatible with the Delicious Recipes plugin, which provides various features that streamline the process of creating and sharing your recipes with your audience. This mobile-friendly theme is SEO-optimized to boost your recipe's visibility on search engine rankings. Recipe Delights is speed-optimized to ensure fast site loading and better rankings on search engines. With its pre-defined Instagram section, you can easily exhibit your foodie snaps and increase your follower growth. The theme also incorporates newsletter integration, helping you increase your email subscribers and build an enduring relationship with your readers. Recipe Delights is translation-ready, RTL-ready, and fully compatible with WooCommerce. Check the demo at https://blossomthemes.com/theme-demo/?theme=recipe-delights, documentation at https://docs.blossomthemes.com/blossom-recipe/, and get support at https://blossomthemes.com/support-ticket/. == Installation == 1. In your admin panel, go to Appearance > Themes and click the Add New button. 2. Click Upload Theme and Choose File, then select the theme's .zip file. Click Install Now. 3. Click Activate to use your new theme right away. == Copyright == Recipe Delights WordPress Theme, Copyright 2023 wpdelicious.com Recipe Delights is distributed under the terms of the GNU GPL This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Recipe Delights bundles the following third-party resources: Recipe Delights Theme incorporates code from Kirki, Copyright (c) 2017 Aristeides Stathopoulos License: https://github.com/aristath/kirki/blob/develop/LICENSE Source: https://github.com/aristath/kirki Some codes are taken from https://blog.josemcastaneda.com/2016/08/08/copy-paste-hurting-theme/ Images used in screenshots. License : CC0 1.0 Universal (CC0 1.0) License URI : https://www.foodiesfeed.com/license/ Source : https://www.foodiesfeed.com/free-food-photo/fried-egg-with-guacamole-sandwiches/ License : CC0 1.0 Universal (CC0 1.0) License URI : https://www.foodiesfeed.com/license/ Source : https://www.foodiesfeed.com/free-food-photo/spaghetti-with-fresh-tomatoes-and-basil-leafs/ License : CC0 1.0 Universal (CC0 1.0) License URI : https://stocksnap.io/license, Source : https://stocksnap.io/photo/food-styling-55H7SCDG0Y == Changelog == 1.0.0 - July 12, 2023 * Initial releasePK �uKX*^�� �� recipe-delights/screenshot.png�PNG IHDR � � ��8� �PLTE����Oh����������������������������������������١����ʿ�����Ԗ�ܭ�������Ļ���û���y��j�щ���������ˉ��6��Y�����Ƚ��xyx�®��y���? ���ɵ��U�������>������[2T � ��}�ZlZK����Ѷ����ػ5��IJ��n6 tdV�O�J, G-���m�;�~Ҋ%��d��O�p` �l��䫪�¤��աX=)���؛G֦[γ��㐮m���˭^P<uF�����g�bTf�&������qro�{m����ĔO����ʒ�@ �ʼn9�ϣԚ0�*��߰�z4�* ��j���~% h$����h|��{�](���үx����zbr3�Z�1L�c1��z�~#�nXYV`Hfff��0�� ��5��p��g�:�!��JKG��i0; myQ.�NCWr��Y��v./*�xGD� :>9�_�G?�S̛r�H 㵊ف�q�G�Ƈh@�yP�����ॾ)���T��^��9��L,&��5��{��vŷKe�CS$�҉�U,�B�#*��L�v �fno^T��*X͝��j�Ŭ�c�nD�q�d��*��WA4��?�B'�����Ժ�ʦ�������g�}�i�Nk]E2$�7y5S��*S�R���!C_���+!� ��IDATx���1�0 �0�� 6�h�"5�̮���, !�aX@�bð��E���>=m Ж�1�2�wX�b�k�bX�0�o��gX��2,�"�a�að˰�aX�f�:E��{Q��|ADA�,DA<��u�V��B��"p)�O��*)v���U��~��$�{�˭��'7�m��L�,ΏI�����N)uǬ��J٭��Z�Sw��J-WO����_W�2����M�����Y!��b�Q�ϛʜ����2�p���X`�9���`��+����R�vT�<����д%�pK���ө�>|%��[-�d� or�Y�Źe�S���� ����_2�e����b����u ֞�ȝ���ae �Q�XW;`Ub�+r~X"�h�Y`Ʌ%�?[��� ��g �t��:�&��R��ߗv �X�m���H���O�A�¤�������%&z�g�5d�\au*��걡����i��?�<