ID,'page-option-sidebar-template',true); $sidebar_reverse = ($sidebar == 'both-sidebar-reverse' || $sidebar == 'left-sidebar' )? 'reverse-sidebar': 'normal-sidebar'; $sidebar_array = gdl_get_sidebar_size( $sidebar ); ?>
>
ID , "page-option-choose-left-sidebar", true); $right_sidebar = get_post_meta( $post->ID , "page-option-choose-right-sidebar", true); echo '
'; echo '
'; echo '
'; echo '
'; // page content global $gdl_item_row_size; while (have_posts()){ the_post(); // print content $gdl_show_content = get_post_meta($post->ID, 'page-option-show-content', true); if( $gdl_show_content != 'No' ){ $content = get_the_content(); $content = apply_filters('the_content', $content); if(empty($content)){ $gdl_item_row_size = print_item_size( '1/1', $gdl_item_row_size ,'mb0'); }else{ $gdl_item_row_size = print_item_size( '1/1', $gdl_item_row_size, 'mb45'); } echo '
'; echo $content; wp_link_pages( array( 'before' => '' ) ); echo '
'; echo '
'; // print_item_size } } // Page Item Part if(!empty($gdl_page_xml) && !post_password_required() ){ $item_count = 0; $page_xml_val = new DOMDocument(); $page_xml_val->loadXML($gdl_page_xml); foreach( $page_xml_val->documentElement->childNodes as $item_xml){ $additional_style = ''; $additional_class = strtolower($item_xml->nodeName) . '-item-class '; $additional_class = $additional_class . strtolower($item_xml->nodeName) . '-item-class-' . $item_count; if( $item_xml->nodeName == 'Title' ){ $item_margin = find_xml_value($item_xml, 'item-margin', false, 0); }else if( $item_xml->nodeName == 'Blog' || $item_xml->nodeName == 'Portfolio' ){ $item_margin = find_xml_value($item_xml, 'item-margin', false, 40); }else{ $item_margin = find_xml_value($item_xml, 'item-margin', false, 45); } $item_margin = intval($item_margin); if( $item_margin <= 50 ){ $additional_class = $additional_class. ' mb' . $item_margin; }else{ $additional_style = 'margin-bottom: ' . $item_margin . 'px;'; } $gdl_item_row_size = print_item_size(find_xml_value($item_xml, 'size'), $gdl_item_row_size, $additional_class, 'div', 'div', $additional_style); switch($item_xml->nodeName){ case 'Accordion' : print_accordion_item($item_xml); break; case 'Blog' : print_blog_item($item_xml); break; case 'Contact-Form' : print_contact_form($item_xml); break; case 'Column': print_column_item($item_xml); break; case 'Content' : print_content_item($item_xml); break; case 'Divider' : print_divider($item_xml); break; case 'Gallery' : print_gallery_item($item_xml); break; case 'Message-Box' : print_message_box($item_xml); break; case 'Page': print_page_item($item_xml); break; case 'Personnal': print_personnal_item($item_xml); break; case 'Portfolio' : print_portfolio($item_xml); break; case 'Post-Slider' : print_post_slider_item($item_xml); break; case 'Price-Item': print_price_item($item_xml); break; case 'Slider' : print_slider_item($item_xml); break; case 'Stunning-Text' : print_stunning_text($item_xml); break; case 'Tab' : print_tab_item($item_xml); break; case 'Testimonial' : print_testimonial($item_xml); break; case 'Toggle-Box' : print_toggle_box_item($item_xml); break; default: break; } echo "
"; // close column from print_item_size() $item_count++; } } echo '
'; echo "
"; // close row from print_item_size() echo "
"; // end of gdl-page-item wp_reset_query(); get_sidebar('left'); echo '
'; echo "
"; // row echo "
"; // gdl-page-left get_sidebar('right'); echo '
'; echo ""; // row ?>