Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; // BEGIN ENQUEU..

Decoded Output download

<?php 
// Exit if accessed directly 
if ( !defined( 'ABSPATH' ) ) exit; 
 
// BEGIN ENQUEUE PARENT ACTION 
// AUTO GENERATED - Do not modify or remove comment markers above or below: 
 
if ( !function_exists( 'chld_thm_cfg_locale_css' ) ): 
    function chld_thm_cfg_locale_css( $uri ){ 
        if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) ) 
            $uri = get_template_directory_uri() . '/rtl.css'; 
        return $uri; 
    } 
endif; 
add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' ); 
          
if ( !function_exists( 'child_theme_configurator_css' ) ): 
    function child_theme_configurator_css() { 
        wp_enqueue_style( 'chld_thm_cfg_separate', trailingslashit( get_stylesheet_directory_uri() ) . 'ctc-style.css', array( 'storefront-gutenberg-blocks','storefront-style','storefront-style','storefront-icons' ) ); 
    } 
endif; 
add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css', 30 ); 
 
//update_option('admin_email', '[email protected]'); 
 
// END ENQUEUE PARENT ACTION 
 
 
/** 
 * PK 2020.08.24 Custom image size 
 * 
 */ 
 
 
if (function_exists('add_image_size')) { 
    //add_image_size( 'custom-size', 780, 485, false ); 
   	add_image_size('gallery', 952, 952, true); 
} 
 
/* 
* 
* PK 2020.08.21 Add banner strona gwna i podstrony 
* 
*/ 
if (!function_exists('pk_add_top')): 
    function pk_add_top() 
    { 
		//============Gwna 
		global $post; 
		if ($post->ID == '2'): 
		 
		 
		  echo '<div id="top" class="clear"> 
        <div class="container"> 
            <a href="/" title="" id="logo">'; 
                		if ( get_field( 'logo' ) ) :  
	    echo'<img src="' . get_field( 'logo' ) . '" />'; 
      endif; 
        echo '      </a> 
       <a class="icon-menu" title="" href="#"> 
<span class="l1"></span> 
<span class="l2"></span> 
<span class="l3"></span> 
</a> 
 
        
  '; 
		 
 
 
		endif; 
    } 
endif; 
add_action('storefront_header', 'pk_add_top', 30); 
add_action('storefront_header', 'storefront_primary_navigation', 40); 
 
 
if (!function_exists('pk_add_top2')): 
    function pk_add_top2() 
    { 
		//============Gwna 
		global $post; 
		if ($post->ID == '2'): 
		 
        echo '</div></div> <div class="top-graf">'; 
 
 
 if ( have_rows( 'slajder' ) ) :  
 echo '<div class="slider">'; 
	 while ( have_rows( 'slajder' ) ) : the_row();  
	 echo '<div class="slide">'; 
		 if ( get_sub_field( 'foto' ) ) :  
			echo'<img src="' . get_sub_field( 'foto' ) . '" />'; 
		 endif;  
		 echo '<h2>'; 
		 the_sub_field( 'title' );  
		 echo '</h2> 
		 <div class="slide-bar" style="background:'; 
		 the_sub_field( 'color_bg' ); 
echo '		 ">'; 
		 the_sub_field( 'title_2' );  
		 echo '</div> 
		 </div>'; 
	 endwhile;  
	 echo '</div>'; 
 else :  
	 // no rows found  
 endif;  
    echo ' </div>'; 
		else: 
		//============Podstrony 
//		echo '<div class="top-graf">'; 
 
 
 //       echo '<img src="' . get_field('background_sub', 6) . '" /> '; 
 //       echo '<img class="top-rwd" src="' . get_field('background_rwd_sub', 6) . '" /> '; 
 //       echo '<div class="container"><div class="logo-box">'; 
  //      echo '<img src="' . get_field('logo', 6) . '" />'; 
  //      echo '<h1>'; 
  //      the_field('title', 6); 
  //      echo '</h1> </div>'; 
  //      echo '</div></div></div>'; 
 
		endif; 
    } 
endif; 
add_action('storefront_page', 'pk_add_top2', 20); 
 
 
 
if (!function_exists('pk_add_content')): 
    function pk_add_content() 
    { 
echo' 
<div  class="philosophy-box"> 
    <div class="container"> 
	<div  class="philosophy-box-content clear"> 
        <div class="philosophy-photo">'; 
             if ( get_field( 'philosophy_image' ) ) :  
	echo '<img src="' . get_field( 'philosophy_image' ) . '" />'; 
 endif;  
 
       echo ' </div> 
        <div class="text-intro">'; 
 the_field( 'philosophy_intro' );  
 
       echo ' </div> 
        <div class="text">'; 
        the_field( 'philosophy_description' );  
       echo ' </div> 
    </div> 
	</div> 
</div> 
<div class="about-box clear" id="onas"> 
 
<div class="about-left"> 
<div class="slider2">'; 
    $about_slajder_ids = get_field( 'about_slajder' );  
 $size = 'gallery';  
 if ( $about_slajder_ids ) :   
	 foreach ( $about_slajder_ids as $about_slajder_id ):  
		  echo '<div class="slide">'; 
		  echo wp_get_attachment_image( $about_slajder_id, $size );  
		   echo '</div>'; 
	 endforeach;  
 endif;  
 echo '</div> 
</div> 
        <div class="about-right"> 
		<div class="about-content"> 
        <h2>'; 
		the_field( 'about_title' );  
 
  echo '</h2>  
            <div class="text-intro">'; 
		 the_field( 'about_intro' );  
 
             echo '</div> 
            <div class="text">'; 
 the_field( 'about_description' );  
         echo '</div> 
  </div> 
</div> 
</div> 
<div class="kindergarten-box" id="przedszkole"> 
 
    <div class="container"> 
	<div class="kindergarten-box-content clear"> 
        <div class="kindergarten-left">	 
        <h2>'; 
		the_field( 'offer_title' ); 
		echo '</h2>  
            <div class="text-intro">'; 
		 the_field( 'offer_intro' );  
            echo '</div><div class="text">'; 
 the_field( 'offer_description' );   
            echo '</div> 
		<a href="#more4" id="more4">Dowiedz si wicej</a>	'; 
		 
		 if ( get_field( 'offer_files' ) ) :  
 
	echo'<a class="pdf" href="'. get_field( 'offer_files' ) .'">Pobierz ofert dla przedszkoli</a>'; 
 endif;  
	 
  echo '      </div> </div> 
    </div> 
</div> 
<div class="kindergarten-box-hidden"> 
<a name="more4"></a> 
 <div class="container"> 
	<span class="close2"></span> 
	<div class="clear"></div> 
	<h2>'; the_field( 'offer_title_more' );  
	echo '</h2>  
	 <div class="text">'; 
 the_field( 'offer_description_more' );  
 echo '</div>'; 
	 
		 $offer_gallery_more_ids = get_field( 'offer_gallery_more' );  
 $size = 'thumbnail';  
 if ( $offer_gallery_more_ids ) :   
 	echo '<ul class="gallery">'; 
	 foreach ( $offer_gallery_more_ids as $offer_gallery_more_id ):  
		 echo '<li>'; 
		 echo wp_get_attachment_image( $offer_gallery_more_id, $size );  
		 echo '</li>'; 
	 endforeach;  
	 	echo '</ul>	'; 
 endif;  
echo '	 
	</div> 
</div> 
<div class="school-box" id="szkola"> 
    <div class="container"> 
        <div class="school-left"> 
        <h2>'; 
		the_field( 'offer_schools_title' );  
		 echo '</h2>  
            <div class="text-intro">'; 
 the_field( 'offer_schools_intro' );  
     echo '        </div> 
            <div class="text">'; 
 the_field( 'offer_schools_description' );         
       echo '      </div> 
			<a href="/#more3a" id="more3">Dowiedz si wicej</a> 
			 
			'; 
			 if ( get_field( 'offer_schools_files' ) ) :  
	echo'<a class="pdf"  href="' . get_field( 'offer_schools_files' ).'">Pobierz ofert dla szk</a>'; 
 endif;  
		 
    echo '     </div> 
    </div> 
</div>  
<div class="school-box-hidden"> 
<a name="more3a"></a> 
 <div class="container"> 
	<span class="close2"></span> 
	<div class="clear"></div> 
	<h2>'; the_field( 'offer_schools_title_more' );  
	 echo '</h2>  
	 <div class="text">'; 
 the_field( 'offer_schools_description_more' );  
 echo ' </div>'; 
 $offer_schools_gallery_more_ids = get_field( 'offer_schools_gallery_more' );  
 $size = 'thumbnail';  
 if ( $offer_schools_gallery_more_ids ) :   
 	 echo '<ul class="gallery">'; 
	 foreach ( $offer_schools_gallery_more_ids as $offer_schools_gallery_more_id ):  
		  echo '<li>';echo wp_get_attachment_image( $offer_schools_gallery_more_id, $size );  
		   echo '</li>'; 
	 endforeach;  
	  echo '</ul>	'; 
 endif; 
 echo ' 
			 
	</div> 
</div> 
<div class="training-box clear" id="warsztaty"> 
    <div class="container"> 
        <div class="training-left"> 
        <h2>'; 
		the_field( 'workshops_title' );  
		echo '</h2> '; 
             if ( get_field( 'workshops_image' ) ) :  
	echo'<img src="'. get_field( 'workshops_image' ) .'" />'; 
 endif; 
     echo '       <div class="text-intro">'; 
 the_field( 'workshops_description' ); 
 echo '</div> 
            <a href="#more1" id="more1">Dowiedz si wicej</a> 
'; 
			 
			 if ( get_field( 'workshops_files' ) ) :  
	echo'<a class="pdf" href="'. get_field( 'workshops_files' ).'">Pobierz ofert warsztatw</a>'; 
 endif;  
 echo '   </div> 
</div></div> 
<div class="training-box-hidden clear"> 
	<a name="more1"></a> 
    <div class="container"> 
	<span class="close2"></span> 
	<div class="clear"></div> 
	<h2> '; 
	the_field( 'workshops_title_more' );  
	echo '</h2>  
	 <div class="text">'; 
 the_field( 'workshops_description_more' );  
 echo ' 
 </div> 
				 
	</div> 
</div> 
<div class="knowledge-box" id="wiedza"> 
    <div class="container"> 
        <div class="knowledge-left"> 
        <h2>'; 
		the_field( 'know_title' );  
		echo '</h2>  
            <div class="text-intro">'; 
 the_field( 'know_intro' );            
echo ' </div> 
            <div class="text">'; 
the_field( 'know_description' ); 
echo '</div> 
			<a href="#more2" id="more2">Dowiedz si wicej</a> 
        </div> 
    </div> 
</div>  
 
<div class="knowledge-box-hidden clear"> 
	<a name="more2"></a> 
    <div class="container"> 
	<span class="close2"></span> 
	<div class="clear"></div> 
	<h2>'; the_field( 'know_schools_title_more' ); 
	echo '</h2>  
	 <div class="text">'; 
the_field( 'know_description_more' );    
echo '</div> 
		 
	</div> 
</div> 
 
<div class="pfr-box clear"> 
    <div class="container"> 
	<img src="' . trailingslashit(get_stylesheet_directory_uri()) . 'images/pfr.png" alt="" class="img-desktop" /> 
	<img src="' . trailingslashit(get_stylesheet_directory_uri()) . 'images/pfr_mobile.png" alt="" class="img-mobile" /> 
	</div> 
</div> 
 
<div class="contact-box clear" id="kontakt"> 
    <div class="container"> 
        
        <div class="contact-content"> 
            <h2>'; the_field( 'contact_title' );  
			echo '</h2> 
			<h3> ';the_field( 'contact_description' ); 
echo '			</h3> 
            <div class="form">'; 
			 
			echo do_shortcode( '[contact-form-7 id="6" title="Contact form 1"]' ); 
			echo ' 
			 
           </div> 
        </div>'; 
    } 
endif; 
add_action('storefront_page', 'pk_add_content', 30); 
 
 
/* 
 * 
 * PK 2020.04.28 Auto copyright // 
 * 
 */ 
function pk_auto_copyright($year = '2020') 
{ 
    if (intval($year) == 'auto') { 
        $year = date('Y'); 
    } 
    if (intval($year) == date('Y')) { 
        echo intval($year); 
    } 
    if (intval($year) < date('Y')) { 
        echo intval($year) . ' - ' . date('Y'); 
    } 
    if (intval($year) > date('Y')) { 
        echo date('Y'); 
    } 
} 
 
/* 
 * 
 * PK 2020.04.28 Add copyright  
 * 
 */ 
if (!function_exists('pk_add_copyright')): 
    function pk_add_copyright() 
    { 
        echo '<footer> 
                <div class="container"> 
                    <div class="footer-content"> 
						<div class="text text-copyright">'; 
        the_field('copy_right', 7); 
        echo '</div> 
					 
                        <div class="footer-text">Copyright  <strong>'; 
        bloginfo('name'); 
        echo ' </strong>'; 
        pk_auto_copyright(); 
        echo '. All rights reserved.</div> 
                        <a class="webscy" title="Tworzenie Profesjonalnych strony www" href="https://technomatica.pl/"> 
                            <img src="' . trailingslashit(get_stylesheet_directory_uri()) . 'images/technomatica.png" alt="Tworzenie aplikacje internetowych" /> 
                        </a> 
						<a class="webscy" title="Projektowanie profesjonalych stron www" href="https://webscy.com/"> 
                            <img src="' . trailingslashit(get_stylesheet_directory_uri()) . 'images/webscy.png" alt="Identyfikacja wizualna" /> 
                        </a> 
                    </div> 
                </div> 
            </footer>'; 
 
    } 
endif; 
add_action('storefront_footer', 'pk_add_copyright', 20); 
 
if (!function_exists('child_theme_custom')): 
    function child_theme_custom() 
    { 
        wp_enqueue_style('typekit-css', 'https://use.typekit.net/cps3uom.css'); 
        wp_enqueue_script('matchHeight', trailingslashit(get_stylesheet_directory_uri()) . 'js/jquery.matchHeight-min.js', array()); 
        wp_enqueue_script('slick_js', trailingslashit(get_stylesheet_directory_uri()) . 'js/slick/js/slick.min.js', array()); 
		wp_enqueue_script('icheck_js', trailingslashit(get_stylesheet_directory_uri()) . 'js/icheck/js/icheck.min.js', array()); 
        wp_enqueue_script('functions', trailingslashit(get_stylesheet_directory_uri()) . 'js/scripts.js', array()); 
		wp_enqueue_style('icheck_css', trailingslashit(get_stylesheet_directory_uri()) . 'js/icheck/css/icheck.css', array()); 
        wp_enqueue_style('slick_css', trailingslashit(get_stylesheet_directory_uri()) . 'js/slick/css/slick.min.css', array()); 
        wp_enqueue_style('style_custom', trailingslashit(get_stylesheet_directory_uri()) . 'css/style-custom.css', array()); 
    } 
endif; 
add_action('wp_enqueue_scripts', 'child_theme_custom', 50); 
if (!function_exists('pk_remove_actions_theme')): 
    function pk_remove_actions_theme() 
    { 
        remove_action('wp_head', 'feed_links'); // Odnonik do podstawowego kanau RSS (dla wpisw i komentarzy) 
        remove_action('wp_head', 'rsd_link'); // Odnonik dla serwisu Really Simple Discovery 
        remove_action('wp_head', 'wlwmanifest_link'); //Odnonik dla Windows Live Writer manifest 
        remove_action('wp_head', 'index_rel_link'); // Odnonik do Home 
        remove_action('wp_head', 'start_post_rel_link', 10, 0); // Odnoink do pierwszego wpisu 
        remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0); //odnonik do nastpnego i poprzedniego wpisu (notacja dla wersji 3.0 i wyej) 
        remove_action('wp_head', 'wp_generator'); // Informacja, e generatorem strony jest WordPress oraz numer jego biecej wersji 
        remove_action('storefront_before_content', 'woocommerce_breadcrumb', 10); 
        remove_action('storefront_header', 'storefront_site_branding', 20); 
        remove_action('storefront_header', 'storefront_secondary_navigation', 30); 
        remove_action('storefront_header', 'storefront_product_search', 40); 
        remove_action('storefront_header', 'storefront_primary_navigation_wrapper', 42); 
        remove_action('storefront_header', 'storefront_primary_navigation', 50); 
        remove_action('storefront_header', 'storefront_header_cart', 60); 
        remove_action('storefront_header', 'storefront_primary_navigation_wrapper_close', 68); 
        //remove_action( 'storefront_page', 'storefront_page_content', 20 ); 
        remove_action('homepage', 'storefront_product_categories', 20); 
        remove_action('homepage', 'storefront_recent_products', 30); 
        remove_action('homepage', 'storefront_featured_products', 40); 
        remove_action('homepage', 'storefront_popular_products', 50); 
        remove_action('homepage', 'storefront_on_sale_products', 60); 
        remove_action('homepage', 'storefront_best_selling_products', 70); 
        remove_action('storefront_footer', 'storefront_credit', 20); 
        remove_action('storefront_header', 'storefront_header_container', 0); 
        remove_action('storefront_header', 'storefront_header_container_close', 41); 
        remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10); 
        remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30); 
        remove_action('woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10); 
        remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40); //Hide SKU, Cats, Tags @ Single Product Page - WooCommerce 
        remove_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10); 
        remove_action('woocommerce_after_shop_loop', 'woocommerce_catalog_ordering', 10); //Wyczenie sortowania 
        remove_action('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10); //Wyczenie sortowania 
        remove_action('woocommerce_after_shop_loop', 'woocommerce_result_count', 20); //Wyczenie iloci produktw 
        remove_action('woocommerce_before_shop_loop', 'woocommerce_result_count', 20); //Wyczenie iloci produktw 
        remove_action('storefront_single_post_bottom', 'storefront_post_nav', 10);//Wyczenie nastpny poprzedni post 
        remove_action('storefront_single_post_bottom', 'storefront_display_comments', 20);//Wyczenie komentarzy 
        //remove_action('storefront_single_post', 'storefront_post_header', 10);//Wyczenie headera postu pojedyczego 
		remove_action( 'storefront_page', 'storefront_edit_post_link', 30 ); 
		add_action( 'storefront_page', 'storefront_edit_post_link', 200 ); 
    } 
endif; 
add_action('init', 'pk_remove_actions_theme', 10); ?>

Did this file decode correctly?

Original Code

<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;

// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED - Do not modify or remove comment markers above or below:

if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):
    function chld_thm_cfg_locale_css( $uri ){
        if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) )
            $uri = get_template_directory_uri() . '/rtl.css';
        return $uri;
    }
endif;
add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );
         
if ( !function_exists( 'child_theme_configurator_css' ) ):
    function child_theme_configurator_css() {
        wp_enqueue_style( 'chld_thm_cfg_separate', trailingslashit( get_stylesheet_directory_uri() ) . 'ctc-style.css', array( 'storefront-gutenberg-blocks','storefront-style','storefront-style','storefront-icons' ) );
    }
endif;
add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css', 30 );

//update_option('admin_email', '[email protected]');

// END ENQUEUE PARENT ACTION


/**
 * PK 2020.08.24 Custom image size
 *
 */


if (function_exists('add_image_size')) {
    //add_image_size( 'custom-size', 780, 485, false );
   	add_image_size('gallery', 952, 952, true);
}

/*
*
* PK 2020.08.21 Add banner strona gwna i podstrony
*
*/
if (!function_exists('pk_add_top')):
    function pk_add_top()
    {
		//============Gwna
		global $post;
		if ($post->ID == '2'):
		
		
		  echo '<div id="top" class="clear">
        <div class="container">
            <a href="/" title="" id="logo">';
                		if ( get_field( 'logo' ) ) : 
	    echo'<img src="' . get_field( 'logo' ) . '" />';
      endif;
        echo '      </a>
       <a class="icon-menu" title="" href="#">
<span class="l1"></span>
<span class="l2"></span>
<span class="l3"></span>
</a>

       
  ';
		


		endif;
    }
endif;
add_action('storefront_header', 'pk_add_top', 30);
add_action('storefront_header', 'storefront_primary_navigation', 40);


if (!function_exists('pk_add_top2')):
    function pk_add_top2()
    {
		//============Gwna
		global $post;
		if ($post->ID == '2'):
		
        echo '</div></div> <div class="top-graf">';


 if ( have_rows( 'slajder' ) ) : 
 echo '<div class="slider">';
	 while ( have_rows( 'slajder' ) ) : the_row(); 
	 echo '<div class="slide">';
		 if ( get_sub_field( 'foto' ) ) : 
			echo'<img src="' . get_sub_field( 'foto' ) . '" />';
		 endif; 
		 echo '<h2>';
		 the_sub_field( 'title' ); 
		 echo '</h2>
		 <div class="slide-bar" style="background:';
		 the_sub_field( 'color_bg' );
echo '		 ">';
		 the_sub_field( 'title_2' ); 
		 echo '</div>
		 </div>';
	 endwhile; 
	 echo '</div>';
 else : 
	 // no rows found 
 endif; 
    echo ' </div>';
		else:
		//============Podstrony
//		echo '<div class="top-graf">';


 //       echo '<img src="' . get_field('background_sub', 6) . '" /> ';
 //       echo '<img class="top-rwd" src="' . get_field('background_rwd_sub', 6) . '" /> ';
 //       echo '<div class="container"><div class="logo-box">';
  //      echo '<img src="' . get_field('logo', 6) . '" />';
  //      echo '<h1>';
  //      the_field('title', 6);
  //      echo '</h1> </div>';
  //      echo '</div></div></div>';

		endif;
    }
endif;
add_action('storefront_page', 'pk_add_top2', 20);



if (!function_exists('pk_add_content')):
    function pk_add_content()
    {
echo'
<div  class="philosophy-box">
    <div class="container">
	<div  class="philosophy-box-content clear">
        <div class="philosophy-photo">';
             if ( get_field( 'philosophy_image' ) ) : 
	echo '<img src="' . get_field( 'philosophy_image' ) . '" />';
 endif; 

       echo ' </div>
        <div class="text-intro">';
 the_field( 'philosophy_intro' ); 

       echo ' </div>
        <div class="text">';
        the_field( 'philosophy_description' ); 
       echo ' </div>
    </div>
	</div>
</div>
<div class="about-box clear" id="onas">

<div class="about-left">
<div class="slider2">';
    $about_slajder_ids = get_field( 'about_slajder' ); 
 $size = 'gallery'; 
 if ( $about_slajder_ids ) :  
	 foreach ( $about_slajder_ids as $about_slajder_id ): 
		  echo '<div class="slide">';
		  echo wp_get_attachment_image( $about_slajder_id, $size ); 
		   echo '</div>';
	 endforeach; 
 endif; 
 echo '</div>
</div>
        <div class="about-right">
		<div class="about-content">
        <h2>';
		the_field( 'about_title' ); 

  echo '</h2> 
            <div class="text-intro">';
		 the_field( 'about_intro' ); 

             echo '</div>
            <div class="text">';
 the_field( 'about_description' ); 
         echo '</div>
  </div>
</div>
</div>
<div class="kindergarten-box" id="przedszkole">

    <div class="container">
	<div class="kindergarten-box-content clear">
        <div class="kindergarten-left">	
        <h2>';
		the_field( 'offer_title' );
		echo '</h2> 
            <div class="text-intro">';
		 the_field( 'offer_intro' ); 
            echo '</div><div class="text">';
 the_field( 'offer_description' );  
            echo '</div>
		<a href="#more4" id="more4">Dowiedz si wicej</a>	';
		
		 if ( get_field( 'offer_files' ) ) : 

	echo'<a class="pdf" href="'. get_field( 'offer_files' ) .'">Pobierz ofert dla przedszkoli</a>';
 endif; 
	
  echo '      </div> </div>
    </div>
</div>
<div class="kindergarten-box-hidden">
<a name="more4"></a>
 <div class="container">
	<span class="close2"></span>
	<div class="clear"></div>
	<h2>'; the_field( 'offer_title_more' ); 
	echo '</h2> 
	 <div class="text">';
 the_field( 'offer_description_more' ); 
 echo '</div>';
	
		 $offer_gallery_more_ids = get_field( 'offer_gallery_more' ); 
 $size = 'thumbnail'; 
 if ( $offer_gallery_more_ids ) :  
 	echo '<ul class="gallery">';
	 foreach ( $offer_gallery_more_ids as $offer_gallery_more_id ): 
		 echo '<li>';
		 echo wp_get_attachment_image( $offer_gallery_more_id, $size ); 
		 echo '</li>';
	 endforeach; 
	 	echo '</ul>	';
 endif; 
echo '	
	</div>
</div>
<div class="school-box" id="szkola">
    <div class="container">
        <div class="school-left">
        <h2>';
		the_field( 'offer_schools_title' ); 
		 echo '</h2> 
            <div class="text-intro">';
 the_field( 'offer_schools_intro' ); 
     echo '        </div>
            <div class="text">';
 the_field( 'offer_schools_description' );        
       echo '      </div>
			<a href="/#more3a" id="more3">Dowiedz si wicej</a>
			
			';
			 if ( get_field( 'offer_schools_files' ) ) : 
	echo'<a class="pdf"  href="' . get_field( 'offer_schools_files' ).'">Pobierz ofert dla szk</a>';
 endif; 
		
    echo '     </div>
    </div>
</div> 
<div class="school-box-hidden">
<a name="more3a"></a>
 <div class="container">
	<span class="close2"></span>
	<div class="clear"></div>
	<h2>'; the_field( 'offer_schools_title_more' ); 
	 echo '</h2> 
	 <div class="text">';
 the_field( 'offer_schools_description_more' ); 
 echo ' </div>';
 $offer_schools_gallery_more_ids = get_field( 'offer_schools_gallery_more' ); 
 $size = 'thumbnail'; 
 if ( $offer_schools_gallery_more_ids ) :  
 	 echo '<ul class="gallery">';
	 foreach ( $offer_schools_gallery_more_ids as $offer_schools_gallery_more_id ): 
		  echo '<li>';echo wp_get_attachment_image( $offer_schools_gallery_more_id, $size ); 
		   echo '</li>';
	 endforeach; 
	  echo '</ul>	';
 endif;
 echo '
			
	</div>
</div>
<div class="training-box clear" id="warsztaty">
    <div class="container">
        <div class="training-left">
        <h2>';
		the_field( 'workshops_title' ); 
		echo '</h2> ';
             if ( get_field( 'workshops_image' ) ) : 
	echo'<img src="'. get_field( 'workshops_image' ) .'" />';
 endif;
     echo '       <div class="text-intro">';
 the_field( 'workshops_description' );
 echo '</div>
            <a href="#more1" id="more1">Dowiedz si wicej</a>
';
			
			 if ( get_field( 'workshops_files' ) ) : 
	echo'<a class="pdf" href="'. get_field( 'workshops_files' ).'">Pobierz ofert warsztatw</a>';
 endif; 
 echo '   </div>
</div></div>
<div class="training-box-hidden clear">
	<a name="more1"></a>
    <div class="container">
	<span class="close2"></span>
	<div class="clear"></div>
	<h2> ';
	the_field( 'workshops_title_more' ); 
	echo '</h2> 
	 <div class="text">';
 the_field( 'workshops_description_more' ); 
 echo '
 </div>
				
	</div>
</div>
<div class="knowledge-box" id="wiedza">
    <div class="container">
        <div class="knowledge-left">
        <h2>';
		the_field( 'know_title' ); 
		echo '</h2> 
            <div class="text-intro">';
 the_field( 'know_intro' );           
echo ' </div>
            <div class="text">';
the_field( 'know_description' );
echo '</div>
			<a href="#more2" id="more2">Dowiedz si wicej</a>
        </div>
    </div>
</div> 

<div class="knowledge-box-hidden clear">
	<a name="more2"></a>
    <div class="container">
	<span class="close2"></span>
	<div class="clear"></div>
	<h2>'; the_field( 'know_schools_title_more' );
	echo '</h2> 
	 <div class="text">';
the_field( 'know_description_more' );   
echo '</div>
		
	</div>
</div>

<div class="pfr-box clear">
    <div class="container">
	<img src="' . trailingslashit(get_stylesheet_directory_uri()) . 'images/pfr.png" alt="" class="img-desktop" />
	<img src="' . trailingslashit(get_stylesheet_directory_uri()) . 'images/pfr_mobile.png" alt="" class="img-mobile" />
	</div>
</div>

<div class="contact-box clear" id="kontakt">
    <div class="container">
       
        <div class="contact-content">
            <h2>'; the_field( 'contact_title' ); 
			echo '</h2>
			<h3> ';the_field( 'contact_description' );
echo '			</h3>
            <div class="form">';
			
			echo do_shortcode( '[contact-form-7 id="6" title="Contact form 1"]' );
			echo '
			
           </div>
        </div>';
    }
endif;
add_action('storefront_page', 'pk_add_content', 30);


/*
 *
 * PK 2020.04.28 Auto copyright //
 *
 */
function pk_auto_copyright($year = '2020')
{
    if (intval($year) == 'auto') {
        $year = date('Y');
    }
    if (intval($year) == date('Y')) {
        echo intval($year);
    }
    if (intval($year) < date('Y')) {
        echo intval($year) . ' - ' . date('Y');
    }
    if (intval($year) > date('Y')) {
        echo date('Y');
    }
}

/*
 *
 * PK 2020.04.28 Add copyright 
 *
 */
if (!function_exists('pk_add_copyright')):
    function pk_add_copyright()
    {
        echo '<footer>
                <div class="container">
                    <div class="footer-content">
						<div class="text text-copyright">';
        the_field('copy_right', 7);
        echo '</div>
					
                        <div class="footer-text">Copyright  <strong>';
        bloginfo('name');
        echo ' </strong>';
        pk_auto_copyright();
        echo '. All rights reserved.</div>
                        <a class="webscy" title="Tworzenie Profesjonalnych strony www" href="https://technomatica.pl/">
                            <img src="' . trailingslashit(get_stylesheet_directory_uri()) . 'images/technomatica.png" alt="Tworzenie aplikacje internetowych" />
                        </a>
						<a class="webscy" title="Projektowanie profesjonalych stron www" href="https://webscy.com/">
                            <img src="' . trailingslashit(get_stylesheet_directory_uri()) . 'images/webscy.png" alt="Identyfikacja wizualna" />
                        </a>
                    </div>
                </div>
            </footer>';

    }
endif;
add_action('storefront_footer', 'pk_add_copyright', 20);

if (!function_exists('child_theme_custom')):
    function child_theme_custom()
    {
        wp_enqueue_style('typekit-css', 'https://use.typekit.net/cps3uom.css');
        wp_enqueue_script('matchHeight', trailingslashit(get_stylesheet_directory_uri()) . 'js/jquery.matchHeight-min.js', array());
        wp_enqueue_script('slick_js', trailingslashit(get_stylesheet_directory_uri()) . 'js/slick/js/slick.min.js', array());
		wp_enqueue_script('icheck_js', trailingslashit(get_stylesheet_directory_uri()) . 'js/icheck/js/icheck.min.js', array());
        wp_enqueue_script('functions', trailingslashit(get_stylesheet_directory_uri()) . 'js/scripts.js', array());
		wp_enqueue_style('icheck_css', trailingslashit(get_stylesheet_directory_uri()) . 'js/icheck/css/icheck.css', array());
        wp_enqueue_style('slick_css', trailingslashit(get_stylesheet_directory_uri()) . 'js/slick/css/slick.min.css', array());
        wp_enqueue_style('style_custom', trailingslashit(get_stylesheet_directory_uri()) . 'css/style-custom.css', array());
    }
endif;
add_action('wp_enqueue_scripts', 'child_theme_custom', 50);
if (!function_exists('pk_remove_actions_theme')):
    function pk_remove_actions_theme()
    {
        remove_action('wp_head', 'feed_links'); // Odnonik do podstawowego kanau RSS (dla wpisw i komentarzy)
        remove_action('wp_head', 'rsd_link'); // Odnonik dla serwisu Really Simple Discovery
        remove_action('wp_head', 'wlwmanifest_link'); //Odnonik dla Windows Live Writer manifest
        remove_action('wp_head', 'index_rel_link'); // Odnonik do Home
        remove_action('wp_head', 'start_post_rel_link', 10, 0); // Odnoink do pierwszego wpisu
        remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0); //odnonik do nastpnego i poprzedniego wpisu (notacja dla wersji 3.0 i wyej)
        remove_action('wp_head', 'wp_generator'); // Informacja, e generatorem strony jest WordPress oraz numer jego biecej wersji
        remove_action('storefront_before_content', 'woocommerce_breadcrumb', 10);
        remove_action('storefront_header', 'storefront_site_branding', 20);
        remove_action('storefront_header', 'storefront_secondary_navigation', 30);
        remove_action('storefront_header', 'storefront_product_search', 40);
        remove_action('storefront_header', 'storefront_primary_navigation_wrapper', 42);
        remove_action('storefront_header', 'storefront_primary_navigation', 50);
        remove_action('storefront_header', 'storefront_header_cart', 60);
        remove_action('storefront_header', 'storefront_primary_navigation_wrapper_close', 68);
        //remove_action( 'storefront_page', 'storefront_page_content', 20 );
        remove_action('homepage', 'storefront_product_categories', 20);
        remove_action('homepage', 'storefront_recent_products', 30);
        remove_action('homepage', 'storefront_featured_products', 40);
        remove_action('homepage', 'storefront_popular_products', 50);
        remove_action('homepage', 'storefront_on_sale_products', 60);
        remove_action('homepage', 'storefront_best_selling_products', 70);
        remove_action('storefront_footer', 'storefront_credit', 20);
        remove_action('storefront_header', 'storefront_header_container', 0);
        remove_action('storefront_header', 'storefront_header_container_close', 41);
        remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10);
        remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30);
        remove_action('woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10);
        remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40); //Hide SKU, Cats, Tags @ Single Product Page - WooCommerce
        remove_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10);
        remove_action('woocommerce_after_shop_loop', 'woocommerce_catalog_ordering', 10); //Wyczenie sortowania
        remove_action('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10); //Wyczenie sortowania
        remove_action('woocommerce_after_shop_loop', 'woocommerce_result_count', 20); //Wyczenie iloci produktw
        remove_action('woocommerce_before_shop_loop', 'woocommerce_result_count', 20); //Wyczenie iloci produktw
        remove_action('storefront_single_post_bottom', 'storefront_post_nav', 10);//Wyczenie nastpny poprzedni post
        remove_action('storefront_single_post_bottom', 'storefront_display_comments', 20);//Wyczenie komentarzy
        //remove_action('storefront_single_post', 'storefront_post_header', 10);//Wyczenie headera postu pojedyczego
		remove_action( 'storefront_page', 'storefront_edit_post_link', 30 );
		add_action( 'storefront_page', 'storefront_edit_post_link', 200 );
    }
endif;
add_action('init', 'pk_remove_actions_theme', 10);

Function Calls

defined 1

Variables

None

Stats

MD5 ae56a9996b53237d803e6cdaf56479ed
Eval Count 0
Decode Time 77 ms