public function init()
    {
        if (self::$instance != null) {
            throw new Exception('Singleton class YoPressFormModule cannot 
				be inited more than one time!');
        }
        self::$instance = $this;
        $this->model = new YoPressFormModel();
    }
Ejemplo n.º 2
0
		<div id="wpbody-content" tabindex="0">
			<div class="wrap">
				<div class="yopress-navbar">
					<ul>
						<li>
							<small id="yopress-saved" style="margin-right:10px;font-size:14px;float:right; color: rgb(68, 197, 0); display: none"><?php 
_t('Settings saved');
?>
</small>
						</li>
					</ul>
				</div>
				<div class="yopress-admin-content">
					
					<?php 
$formRenderer = YoPressFormModule::instance();
$class = '';
foreach ($pages as $levels) {
    foreach ($levels as $page) {
        if ($page['id'] == $_GET['tab']) {
            ?>
								<div id="<?php 
            echo $page['id'];
            ?>
" class="yopress-admin-page <?php 
            echo $class;
            ?>
">
									<?php 
            if (isset($settings[$page['id']])) {
                ?>