function tonelp_edit_options() { // Save options if (isset($_POST['options'])) { foreach ($_POST['options'] as $option => $value) { update_option($option, $value); } } // Show edit page echo render_tmpl(__DIR__ . "/admin/options.php"); }
<?php wp_nav_menu(array('theme_location' => 'top-menu')); ?> </nav> </div> <ul class="soc"> <li><a class="soc-twitter" href="#"><i class="fa fa-twitter-square"></i></a></li> <li><a class="soc-facebook" href="#"><i class="fa fa-facebook-square"></i></a></li> <li><a class="soc-google" href="#"><i class="fa fa-google-plus-square"></i></a></li> <li><a class="soc-linkedin soc-icon-last" href="#"><i class="fa fa-linkedin-square"></i></a></li> </ul> </div> </header> <?php echo render_tmpl('calc.php'); ?> <section style="background: rgba(0, 126, 167, 0) url('<?php echo get_option("tonelp_infoblock_background_link", ""); ?> ') no-repeat scroll 0 0 / cover;" id="info-block"> <?php echo get_post('21')->post_content; ?> </section> <section id="skills"> <?php echo get_post('36')->post_content; ?> </section> <section id="video-tutorial">