to output valid HTML5. */ add_theme_support('html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', )); /* * Enable support for Post Formats. * * See: https://codex.wordpress.org/Post_Formats */ add_theme_support('post-formats', array( 'image', 'video', 'gallery', 'audio', )); // Set up the WordPress core custom background feature. add_theme_support('custom-background', apply_filters('advance_blog_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ))); /** * Add theme support for gutenberg block * */ add_theme_support( 'align-wide' ); add_theme_support( 'responsive-embeds' ); add_theme_support( 'wp-block-styles' ); } endif; add_action('after_setup_theme', 'advance_blog_setup'); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function advance_blog_content_width() { $GLOBALS['content_width'] = apply_filters('advance_blog_content_width', 640); } add_action('after_setup_theme', 'advance_blog_content_width', 0); /** * Return early if Custom Logos are not available. * * @todo Remove after WP 4.7 */ function advance_blog_the_custom_logo() { if (!function_exists('the_custom_logo')) { return; } else { the_custom_logo(); } } /** * Enqueue scripts and styles. */ function advance_blog_scripts() { wp_enqueue_style('slick', get_template_directory_uri() . '/assets/lib/slick/css/slick.min.css'); wp_enqueue_style('magnific-popup', get_template_directory_uri().'/assets/lib/magnific-popup/magnific-popup.css'); wp_enqueue_style('advance-blog-style', get_stylesheet_uri()); wp_style_add_data( 'advance-blog-style', 'rtl', 'replace' ); $fonts_url = advance_blog_fonts_url(); if (!empty($fonts_url)) { wp_enqueue_style('advance-blog-google-fonts', $fonts_url, array(), null); } wp_enqueue_script('slick', get_template_directory_uri() . '/assets/lib/slick/js/slick.min.js', array('jquery'), '', 1); wp_enqueue_script('jquery-match-height', get_template_directory_uri() . '/assets/lib/jquery-match-height/jquery.matchHeight.min.js', array('jquery'), '', 1); wp_enqueue_script('magnific-popup', get_template_directory_uri().'/assets/lib/magnific-popup/jquery.magnific-popup.min.js', array('jquery'), '', true); wp_enqueue_script('advance-blog-main', get_template_directory_uri() . '/assets/js/main.js', array('jquery'), '', 1); if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } wp_localize_script( 'advance-blog-main', 'advance_blog_main', array( 'next_svg' => advance_blog_the_theme_svg('arrow-right',true), 'prev_svg' => advance_blog_the_theme_svg('arrow-left',true), 'arrow_down' => advance_blog_the_theme_svg('chevron-down',true), ) ); } add_action('wp_enqueue_scripts', 'advance_blog_scripts'); /** * Enqueue admin scripts and styles. */ function advance_blog_admin_scripts() { $current_screen = get_current_screen(); if( $current_screen->id === "widgets" ) { // Enqueue Script Only On Widget Page. wp_enqueue_media(); wp_enqueue_script('advance-blog-widget', get_template_directory_uri() . '/assets/js/widget.js', array('jquery'), '', 1); } wp_enqueue_style('admin-style', get_template_directory_uri() . '/assets/css/admin-style.css'); } add_action('admin_enqueue_scripts', 'advance_blog_admin_scripts'); if ( is_admin() ) { require_once get_template_directory() . '/inc/dashboard/class-dashboard.php'; new Wpinterface_Dashboard(); } require get_template_directory() . '/inc/custom-header.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/customizer.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; /** * Load added-functions file. */ require get_template_directory() . '/inc/added-functions.php'; /** * Load metabox file. */ require get_template_directory() . '/inc/meta-box.php'; /** * Tgmpa plugin activation. */ require get_template_directory().'/assets/lib/tgm/tgm.php'; require get_template_directory() . '/inc/class-svg-icons.php'; require get_template_directory() . '/inc/widgets/widget.php'; 1.0Hydroponic System Growhttps://hydroponicsystemgrow.comhydroponicsystemgrow.comhttps://hydroponicsystemgrow.com/author/hydroponicsystemgrow-com/Privacy Policyrich600338<blockquote class="wp-embedded-content" data-secret="x6sAzDaqug"><a href="https://hydroponicsystemgrow.com/privacy-policy/">Privacy Policy</a></blockquote><iframe sandbox="allow-scripts" security="restricted" src="https://hydroponicsystemgrow.com/privacy-policy/embed/#?secret=x6sAzDaqug" width="600" height="338" title="“Privacy Policy” — Hydroponic System Grow" data-secret="x6sAzDaqug" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe><script type="text/javascript"> /* <![CDATA[ */ /*! This file is auto-generated */ !function(d,l){"use strict";l.querySelector&&d.addEventListener&&"undefined"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i<o.length;i++)o[i].style.display="none";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute("style"),"height"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):"link"===t.message&&(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document); /* ]]> */ </script>