View difference between Paste ID: si6150cd and Mhwx2Mvu
SHOW: | | - or go back to the newest paste.
1-
<?php 
1+
<?php
2-
	global $SMTheme, $post;
2+
if ( is_active_sidebar( 'drugi' ) ){
3-
	
3+
        dynamic_sidebar( 'drugi' );
4-
	if( is_page(1053) || $post->post_parent == 1053 || ($post->ancestors && in_array( 1053, $post->ancestors) ) ) 
4+
    }
5-
	{
5+
else
6-
		get_sidebar( 'drugi' );
6+
{
7-
	}
7+
  echo '<p>Ten tekst będzie się wyświetlał jeżeli w sidebarze nie ma jeszcze żadnego widgetu. Przejdź do kokpitu i dodaj kilka.</p>';
8-
	else 
8+
}
9-
	{
9+