theme-info.php (1821B)
1 <?php 2 $materialis_tabs = apply_filters('materialis_info_page_tabs', array( 3 'getting-started' => array( 4 'title' => __('Getting started', 'materialis'), 5 'partial' => get_template_directory() . "/inc/infopage-parts/getting-started.php", 6 ), 7 'free-vs-pro' => array( 8 'title' => __('Free vs PRO', 'materialis'), 9 'partial' => get_template_directory() . "/inc/infopage-parts/free-vs-pro.php", 10 ), 11 12 )); 13 14 $currentTab = (isset($_REQUEST['tab']) && isset($materialis_tabs[$_REQUEST['tab']])) ? $_REQUEST['tab'] : 'getting-started'; 15 16 ?> 17 18 19 <div class="wrap about-wrap full-width-layout materialis-page"> 20 <h1><?php _e('Thanks for choosing Materialis!', 'materialis'); ?></h1> 21 <p><?php _e('We\'re glad you chose our theme and we hope it will help you create a beautiful site in no time!<br> If you have any suggestions, don\'t hesitate to leave us some feedback.', 'materialis'); ?></p> 22 23 <img class="site-badge" src="https://extendthemes.com/materialis/wp-content/uploads/2018/06/logo-materialis-260.png"> 24 <h2 class="nav-tab-wrapper wp-clearfix"> 25 26 <?php foreach ($materialis_tabs as $tabID => $tab): ?> 27 <a href="?page=materialis-welcome&tab=<?php echo $tabID; ?>" class="nav-tab <?php echo($tabID === $currentTab ? 'nav-tab-active' : '') ?>"><?php echo $tab['title'] ?></a> 28 <?php $first = false; ?> 29 <?php endforeach; ?> 30 </h2> 31 32 <div class="tab-group"> 33 <div class="tab-item tab-item-active"> 34 <?php 35 if ( isset( $materialis_tabs[ $currentTab ]['partial'] ) ) { 36 require $materialis_tabs[ $currentTab ]['partial']; 37 } else { 38 call_user_func( $materialis_tabs[ $currentTab ]['callback'] ); 39 } 40 ?> 41 </div> 42 </div> 43 </div>