function create_page_option_elements()
 {
     global $post;
     $option_value = gdlr_decode_preventslashes(get_post_meta($post->ID, $this->setting['option_name'], true));
     if (!empty($option_value)) {
         $option_value = json_decode($option_value, true);
     }
     $option_generator = new gdlr_admin_option_html();
     echo '<div class="gdlr-page-option-wrapper position-' . $this->setting['position'] . '" >';
     foreach ($this->option as $option_section) {
         echo '<div class="gdlr-page-option">';
         echo '<div class="gdlr-page-option-title">' . $option_section['title'] . '</div>';
         echo '<div class="gdlr-page-option-input-wrapper">';
         foreach ($option_section['options'] as $option_slug => $option) {
             $option['slug'] = $option_slug;
             $option['name'] = '';
             if (!empty($option_value) && isset($option_value[$option_slug])) {
                 $option['value'] = $option_value[$option_slug];
             }
             $option_generator->generate_admin_option($option);
         }
         echo '</div>';
         // page-option-input-wrapper
         echo '</div>';
         // page-option-title
     }
     echo '<textarea class="gdlr-input-hidden" name="' . $this->setting['option_name'] . '"></textarea>';
     echo '</div>';
     // gdlr-page-option-wrapper
 }
 function print_admin_content()
 {
     $option_generator = new gdlr_admin_option_html();
     // admin content
     echo '<div class="gdlr-admin-content-wrapper" id="gdlr-admin-content">';
     echo '<div class="gdlr-admin-head">';
     echo '<div class="gdlr-save-button">';
     echo '<img class="now-loading" src="' . GDLR_PATH . '/framework/images/admin-panel/loading.gif" alt="loading" />';
     echo '<input value="' . __('Save Changes', 'gdlr_translate') . '" type="submit" class="gdl-button" />';
     echo '</div>';
     echo '<div class="gdlr-admin-head-gimmick"></div>';
     echo '<div class="clear"></div>';
     echo '</div>';
     // gdlr-admin-head
     echo '<div class="gdlr-content-group">';
     foreach ($this->option as $menu_slug => $menu_settings) {
         foreach ($menu_settings['options'] as $sub_menu_slug => $sub_menu_settings) {
             if (!empty($sub_menu_settings)) {
                 echo '<div class="gdlr-content-section" id="' . $sub_menu_slug . '" >';
                 foreach ($sub_menu_settings['options'] as $option_slug => $option_settings) {
                     $option_settings['slug'] = $option_slug;
                     $option_settings['name'] = $option_slug;
                     if (isset($this->value[$option_slug])) {
                         $option_settings['value'] = $this->value[$option_slug];
                     }
                     $option_generator->generate_admin_option($option_settings);
                 }
                 echo '</div>';
                 // gdlr-content-section
             }
         }
     }
     echo '</div>';
     // gdlr-content-group
     echo '<div class="gdlr-admin-footer">';
     echo '<div class="gdlr-save-button">';
     echo '<img class="now-loading" src="' . GDLR_PATH . '/framework/images/admin-panel/loading.gif" alt="loading" />';
     echo '<input value="' . __('Save Changes', 'gdlr_translate') . '" type="submit" class="gdl-button" />';
     echo '</div>';
     echo '<div class="clear"></div>';
     echo '</div>';
     // gdlr-admin-footer
     echo '</div>';
     // gdlr-admin-content-wrapper
 }