// Top Slider Part global $gdl_top_slider_type, $gdl_top_slider_xml; if ($gdl_top_slider_type != "No Slider" && $gdl_top_slider_type != ''){ echo print_item_size('element1-1', "mt0"); $slider_xml = "" . create_xml_tag('size', 'full-width'); $slider_xml = $slider_xml . create_xml_tag('height', get_post_meta( $post->ID, 'page-option-top-slider-height', true) ); $slider_xml = $slider_xml . create_xml_tag('width', 980); $slider_xml = $slider_xml . create_xml_tag('slider-type', $gdl_top_slider_type); $slider_xml = $slider_xml . $gdl_top_slider_xml; $slider_xml = $slider_xml . ""; $slider_xml_dom = new DOMDocument(); $slider_xml_dom->loadXML($slider_xml); print_slider_item($slider_xml_dom->documentElement); echo "
"; } $left_sidebar = get_post_meta( $post->ID , "page-option-choose-left-sidebar", true); $right_sidebar = get_post_meta( $post->ID , "page-option-choose-right-sidebar", true); echo "
"; echo "
"; // Page title and content $gdl_show_title = get_post_meta($post->ID, 'page-option-show-title', true); $gdl_show_content = get_post_meta($post->ID, 'page-option-show-content', true); if ( $gdl_show_title != "No" ){ while (have_posts()){ the_post(); echo '
'; echo '

'; the_title(); echo '

'; $content = get_the_content(); $content = apply_filters('the_content', $content); if( $gdl_show_content != 'No' && !empty( $content ) ){ echo '
'; the_content(); wp_link_pages( array( 'before' => '' ) ); echo '
'; } echo '
'; } }else{ while (have_posts()){ the_post(); $content = get_the_content(); $content = apply_filters('the_content', $content); if( $gdl_show_content != 'No' && !empty( $content ) ){ echo '
'; echo '
'; the_content(); echo '
'; echo '
'; } } } global $gdl_item_row_size; $gdl_item_row_size = 0; // Page Item Part if(!empty($gdl_page_xml)){ $page_xml_val = new DOMDocument(); $page_xml_val->loadXML($gdl_page_xml); foreach( $page_xml_val->documentElement->childNodes as $item_xml){ switch($item_xml->nodeName){ case 'Accordion' : print_item_size(find_xml_value($item_xml, 'size')); print_accordion_item($item_xml); break; case 'Blog' : print_item_size(find_xml_value($item_xml, 'size'), 'wrapper mt0'); print_blog_item($item_xml); break; case 'Contact-Form' : print_item_size(find_xml_value($item_xml, 'size'), 'mt30'); print_contact_form($item_xml); break; case 'Column': print_item_size(find_xml_value($item_xml, 'size')); print_column_item($item_xml); break; case 'Column-Service' : print_item_size(find_xml_value($item_xml, 'size')); print_column_service($item_xml); break; case 'Content' : print_item_size(find_xml_value($item_xml, 'size')); print_content_item($item_xml); break; case 'Divider' : print_item_size(find_xml_value($item_xml, 'size')); print_divider($item_xml); break; case 'Gallery' : print_item_size(find_xml_value($item_xml, 'size'), 'wrapper'); print_gallery_item($item_xml); break; case 'Message-Box' : print_item_size(find_xml_value($item_xml, 'size')); print_message_box($item_xml); break; case 'Page': print_item_size(find_xml_value($item_xml, 'size'), 'wrapper gdl-portfolio-item mt0'); print_page_item($item_xml); break; case 'Price-Item': print_item_size(find_xml_value($item_xml, 'size'), 'gdl-price-item'); print_price_item($item_xml); break; case 'Portfolio' : print_item_size(find_xml_value($item_xml, 'size'), 'wrapper gdl-portfolio-item mt0'); print_portfolio($item_xml); break; case 'Slider' : print_item_size(find_xml_value($item_xml, 'size'), 'mt20'); print_slider_item($item_xml); break; case 'Stunning-Text' : print_item_size(find_xml_value($item_xml, 'size')); print_stunning_text($item_xml); break; case 'Tab' : print_item_size(find_xml_value($item_xml, 'size')); print_tab_item($item_xml); break; case 'Testimonial' : print_item_size(find_xml_value($item_xml, 'size'), 'wrapper'); print_testimonial($item_xml); break; case 'Toggle-Box' : print_item_size(find_xml_value($item_xml, 'size')); print_toggle_box_item($item_xml); break; default: print_item_size(find_xml_value($item_xml, 'size')); break; } echo "
"; } } echo "
"; // end of gdl-page-item get_sidebar('left'); echo "
"; // gdl-page-float-left get_sidebar('right'); ?>