* Template - wrapper for Gigya setting pages. * Render with @see _gigya_render_tpl(). */ ?> <div class="wrap"> <div class="header"> <span class="icon32" id="icon-options-general"></span> <h1>Gigya v:<?php echo GIGYA__VERSION; ?> </h1> </div> <div class="nav-tab-wrapper"> <?php foreach (GigyaSettings::getSections() as $section) { ?> <a href="?page=<?php echo $section['slug']; ?> " class="nav-tab <?php echo $page == $section['slug'] ? 'nav-tab-active' : ''; ?> "><?php echo $section['title']; ?> </a> <?php } ?> </div>
/** * admin_action_ hook. * Fires when an 'action' REQUEST variable is sent. */ public function adminActionUpdate() { require_once GIGYA__PLUGIN_DIR . 'admin/admin.GigyaSettings.php'; GigyaSettings::onSave(); }