function gdlr_print_page_builder($content, $full_width = true)
 {
     $section = array(0, false);
     // (size, independent)
     foreach ($content as $item) {
         // determine the current item size
         $current_size = 1;
         if (!empty($item['size'])) {
             $current_size = gdlr_item_size_to_num($item['size']);
         }
         // print each section
         if ($item['type'] == 'color-wrapper' || $item['type'] == 'parallax-bg-wrapper' || $item['type'] == 'full-size-wrapper') {
             $section = gdlr_print_section($section, $current_size, true);
         } else {
             $section = gdlr_print_section($section, $current_size, false);
         }
         // start printing item
         if ($item['item-type'] == 'wrapper') {
             if ($item['type'] == 'color-wrapper') {
                 gdlr_print_color_wrapper($item);
             } else {
                 if ($item['type'] == 'parallax-bg-wrapper') {
                     gdlr_print_parallax_wrapper($item);
                 } else {
                     if ($item['type'] == 'full-size-wrapper') {
                         gdlr_print_full_size_wrapper($item);
                     } else {
                         gdlr_print_column_wrapper($item);
                     }
                 }
             }
         } else {
             gdlr_print_item($item);
         }
     }
     echo '<div class="clear"></div>';
     if (!$section[1]) {
         echo '</div>';
     }
     // close container of dependent section
     echo '</section>';
     // close the last opened section
 }
 function gdlr_print_full_size_wrapper($content)
 {
     $item_id = empty($content['option']['page-item-id']) ? '' : ' id="' . $content['option']['page-item-id'] . '" ';
     global $gdlr_spaces;
     $padding = !empty($content['option']['padding-top']) && $gdlr_spaces['top-full-wrapper'] != $content['option']['padding-top'] ? 'padding-top: ' . $content['option']['padding-top'] . '; ' : '';
     $padding .= !empty($content['option']['padding-bottom']) && $gdlr_spaces['bottom-wrapper'] != $content['option']['padding-bottom'] ? 'padding-bottom: ' . $content['option']['padding-bottom'] . '; ' : '';
     $border = '';
     if (!empty($content['option']['border']) && $content['option']['border'] != 'none') {
         if ($content['option']['border'] == 'top' || $content['option']['border'] == 'both') {
             $border .= ' border-top: 4px solid ' . $content['option']['border-top-color'] . '; ';
         }
         if ($content['option']['border'] == 'bottom' || $content['option']['border'] == 'both') {
             $border .= ' border-bottom: 4px solid ' . $content['option']['border-bottom-color'] . '; ';
         }
     }
     $background = !empty($content['option']['background']) ? ' background-color: ' . $content['option']['background'] . '; ' : '';
     $content['option']['show-section'] = !empty($content['option']['show-section']) ? $content['option']['show-section'] : '';
     $style = !empty($padding) || !empty($border) || !empty($background) ? ' style="' . $padding . $border . $background . '" ' : '';
     echo '<div class="gdlr-full-size-wrapper ' . $content['option']['show-section'] . '" ' . $item_id . $style . ' >';
     $size = 0;
     foreach ($content['items'] as $item) {
         if ($item['item-type'] == 'wrapper') {
             if ($size != 0 && abs($size - intval($size)) < 0.01) {
                 echo '<div class="clear"></div>';
             }
             gdlr_print_column_wrapper($item);
             $size += gdlr_item_size_to_num($item['size']);
         } else {
             $size = 0;
             gdlr_print_item($item);
             echo '<div class="clear"></div>';
         }
     }
     echo '<div class="clear"></div>';
     echo '</div>';
     // close wrapper
 }