function record_add()
 {
     $APSC_Lists = new APSC_Lists();
     $taxonomies = $APSC_Lists->get_custom_taxonomies();
     if (!empty($taxonomies)) {
         foreach ($taxonomies as $tax_name => $tanoxomy) {
             $this->Record['ct_' . $tax_name] = $this->ltd . '_ct_' . $tax_name;
         }
     }
 }
Esempio n. 2
0
 function admin_menu()
 {
     global $APSC;
     $cap = 'administrator';
     $view_func = array($this, 'views');
     add_menu_page(sprintf(__('%1$s %2$s for %3$s %4$s', $APSC->ltd), __('Customize'), __('Sort', $APSC->ltd), __('Home'), __('Archives')), __('Archive Posts Sort Customize', $APSC->ltd), $cap, $APSC->PageSlug, $view_func);
     add_submenu_page($APSC->PageSlug, sprintf(__('%1$s %2$s for %3$s %4$s', $APSC->ltd), __('Customize'), __('Sort', $APSC->ltd), __('Categories'), __('Archives')), __('Categories'), $cap, $APSC->Record['cat'], $view_func);
     add_submenu_page($APSC->PageSlug, sprintf(__('%1$s %2$s for %3$s %4$s', $APSC->ltd), __('Customize'), __('Sort', $APSC->ltd), __('Tags'), __('Archives')), __('Tags'), $cap, $APSC->Record['tag'], $view_func);
     $APSC_Lists = new APSC_Lists();
     $taxonomies = $APSC_Lists->get_custom_taxonomies();
     if (!empty($taxonomies)) {
         foreach ($taxonomies as $tax_name => $tanoxomy) {
             add_submenu_page($APSC->PageSlug, sprintf(__('%1$s %2$s for %3$s %4$s', $APSC->ltd), __('Customize'), __('Sort', $APSC->ltd), $tanoxomy->label, __('Archives')), $tanoxomy->label, $cap, $APSC->Record['ct_' . $tax_name], $view_func);
         }
     }
     add_submenu_page($APSC->PageSlug, sprintf(__('%1$s %2$s for %3$s %4$s', $APSC->ltd), __('Customize'), __('Sort', $APSC->ltd), __('Search'), __('Archives')), __('Search'), $cap, $APSC->Record['search'], $view_func);
     add_submenu_page($APSC->PageSlug, sprintf(__('%1$s %2$s for %3$s %4$s', $APSC->ltd), __('Customize'), __('Sort', $APSC->ltd), __('Monthly'), __('Archives')), sprintf('%1$s ( %2$s )', __('Archives'), __('Monthly', $APSC->ltd)), $cap, $APSC->Record['monthly'], $view_func);
 }
Esempio n. 3
0
<?php

global $APSC;
$APSC_Lists = new APSC_Lists();
// include js css
$ReadedJs = array('jquery', 'jquery-ui-sortable');
wp_enqueue_script($APSC->PageSlug, $this->get_asset_url() . 'manage.js', $ReadedJs, $APSC->Ver);
wp_enqueue_style($APSC->PageSlug, $this->get_asset_url() . 'manage.css', array(), $APSC->Ver);
?>
<div class="wrap">
	<div class="icon32" id="icon-options-general"></div>
	<h2><?php 
printf(__('%1$s %2$s for %3$s %4$s', $APSC->ltd), __('Customize'), __('Sort', $APSC->ltd), __('Home'), __('Archives'));
?>
</h2>
	<p><?php 
_e('Please set your favorite.', $APSC->ltd);
?>
</p>
	
	<div class="metabox-holder columns-2 <?php 
echo $APSC->ltd;
?>
">

		<div id="postbox-container-1" class="postbox-container">

			<form id="<?php 
echo $APSC->PageSlug;
?>
_form" method="post" action="<?php