Esempio n. 1
0
 public function hackgov_post_types()
 {
     $this->cpt_post = register_cuztom_post_type('Post');
     $this->cpt_post->add_meta_box('post', 'Recommendation', array(array('name' => 'recommendation', 'label' => 'Recommendation', 'description' => 'Recommendation content', 'type' => 'wysiwyg')));
     $this->cpt_post->add_meta_box('category', 'Recommendation', array(array('name' => 'status', 'label' => 'Status', 'description' => 'Problem Status', 'type' => 'select', 'options' => hackgov_status()), array('name' => 'category', 'label' => 'Category', 'description' => 'Category problem', 'type' => 'radios', 'options' => hackgov_category()), array('name' => 'priority', 'label' => 'Priority', 'description' => 'Priority problem', 'type' => 'radios', 'options' => hackgov_priority())), 'side');
     // // register custom post status
     // register_post_status( 'nothing', array(
     // 	'label'                     => _x( 'Nothing', 'post' ),
     // 	'public'                    => true,
     // 	'exclude_from_search'       => false,
     // 	'show_in_admin_all_list'    => true,
     // 	'show_in_admin_status_list' => true,
     // 	'label_count'               => _n_noop( 'Nothing <span class="count">(%s)</span>', 'Nothing <span class="count">(%s)</span>' ),
     // ) );
     // // register custom post status
     // register_post_status( 'on-going', array(
     // 	'label'                     => _x( 'On Going', 'post' ),
     // 	'public'                    => true,
     // 	'exclude_from_search'       => false,
     // 	'show_in_admin_all_list'    => true,
     // 	'show_in_admin_status_list' => true,
     // 	'label_count'               => _n_noop( 'On Going <span class="count">(%s)</span>', 'On Going <span class="count">(%s)</span>' ),
     // ) );
     // // register custom post status
     // register_post_status( 'resolved', array(
     // 	'label'                     => _x( 'Resolved', 'post' ),
     // 	'public'                    => true,
     // 	'exclude_from_search'       => false,
     // 	'show_in_admin_all_list'    => true,
     // 	'show_in_admin_status_list' => true,
     // 	'label_count'               => _n_noop( 'Resolved <span class="count">(%s)</span>', 'Resolved <span class="count">(%s)</span>' ),
     // ) );
     // remove post tag and category
     register_taxonomy('category', array());
     register_taxonomy('post_tag', array());
 }
Esempio n. 2
0
					</div>
					<div id="map" style="height:300px;"></div>
				</div>
				<div class="form-group">
					<label>Masalah</label>
					<textarea name="problem" class="form-control" id="content_problem" cols="30" rows="10" placeholder="Masalah"></textarea>
				</div>
				<div class="form-group">
					<label>Solusi</label>
					<textarea name="recommendation" id="content_recommendation" cols="30" rows="10" placeholder="Saran" class="form-control"></textarea>
				</div>
				<div class="form-group">
					<label>Prioritas</label>
					<select class="form-control" name="priority">
						<?php 
foreach (hackgov_priority() as $key => $value) {
    echo '<option value="' . $key . '">' . $value . '</option>';
}
?>
					</select>
				</div>
				<div class="form-group">
					<button type="submit" class="btn btn-big form-control">Kirim</button>
					<?php 
wp_nonce_field('hackgov_submit_new_nonce', 'hackgov_submit_new');
?>
				</div>
			</form>
		</div>
	</div>