function ut_section_loader() { echo '<div id="ut-section-loader-popup" style="display:none;">'; echo '<h2>Load Section Preset</h2>'; echo '<div>'; foreach (ut_recognized_sections() as $section) { echo '<h3>' . $section['title'] . '</h3>'; echo '<p>'; echo '<a target="_blank" href="', $section['url'], '">', esc_html__('Preview this Demo', 'unitedthemes'), '</a>'; echo '</p>'; } echo '</div>'; echo '</div>'; }
function ut_section_loader() { ?> <div id="ut-section-loader-modal" class="ut-modal-option-tree" style="display:none;"> <div class="ut-modal-box-option-tree ut-admin"> <div class="ut-modal-option-tree-header"> <div class="inner"> <h2><?php esc_html_e('Load Section Preset', 'unitedthemes'); ?> </h2> </div> </div> <div class="ut-modal-option-tree-body"> <div class="inner"> <div id="ut-available-sections"> <?php foreach (ut_recognized_sections() as $site) { ?> <h3><?php echo $site['title']; ?> <a target="_blank" href="<?php echo $site['url']; ?> "><?php esc_html_e('Preview this Demo', 'unitedthemes'); ?> </a></h3> <div> <div class="ut-table-wrapper"> <div class="ut-table"> <div class="row header blue"> <div class="cell"> Name </div> <div class="cell"> Preview </div> <div class="cell"> Install </div> </div> <?php foreach ($site['sections'] as $section) { ?> <div class="row"> <div class="cell"> <?php echo $section['title']; ?> </div> <div class="cell"> <a class="ut-section-action" target="_blank" href="<?php echo $site['url']; echo $section['url']; ?> "> <i class="fa fa-search"></i> </a> </div> <div class="cell"> <a id="" class="ut-section-action" href=""> <i class="fa fa-download"></i> </a> </div> </div> <?php } ?> </div> </div> </div> <?php } ?> </div> </div> </div> <div class="ut-modal-option-tree-footer"> <div class="inner"> <a href="#" class="close-ut-modal-option-tree"><?php _e('Close', 'unitedthemes'); ?> </a> </div> </div> </div> </div> <?php }