public static function checkbox($name, $args = array()) { $args['type'] = 'checkbox'; if ($args['checked'] != true) { unset($args['checked']); } return \Meta\Core\Form::input($name, $args); }
.ui-widget-header { background:#CCC ; color:#636363; border: 1px solid; padding: 3px } </style> <div id="popup"></div> <div id="form-info"> <h3>Page settings</h3> <div> <?php \Meta\Core\Form::open(); ?> <?php \Meta\Core\Form::input('name', array('label' => t('Path'), 'default_value' => $page_name)); ?> <br/> <?php \Meta\Core\Form::input('label', array('label' => t('Title'), 'default_value' => $pageLabel)); ?> <br/> <?php \Meta\Core\Form::select('pageType', array('label' => 'Page type', 'options' => $pageTypes, 'value' => $pageType, 'required' => true)); ?> <br/> <?php \Meta\Core\Form::checkbox('showonmenu', array('label' => t('Display on menu'), 'checked' => $pageShowOnMenu)); ?> <br/> <div class="menu-props" style="margin-left: 20px"> <fieldset> <legend>Menu options</legend> <?php \Meta\Core\Form::select('parentmenu', array('label' => 'Parent menu', 'options' => $pagesList, 'value' => $pageParent));
<?php print_header(); ?> <h2><?php echo page_title(); ?> </h2> <?php \Meta\Core\Form::open(); ?> <?php \Meta\Core\Form::input('name', array('label' => t('Path'))); ?> <br/> <?php \Meta\Core\Form::input('label', array('label' => t('Title'))); ?> <br/> <?php \Meta\Core\Form::submit(); ?> <?php \Meta\Core\Form::close(); ?> <?php print_footer(); ?> <?php }); // edit/manage page route route_add('builder/page/*', function ($path) {