if (!defined('YIT')) {
    exit('Direct access forbidden.');
}
$post_types = get_post_types(array('public' => true, 'publicly_queryable' => true), 'name');
$exclude_posts_type = array('attachment', 'revision', 'nav_menu_item');
$post_types['page'] = get_post_type_object('page');
$taxonomies = get_taxonomies(array('show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true), 'name');
$exclude_taxonomies = array('nav_menu');
$taxonomies['post_format'] = get_taxonomy('post_format');
?>

<div id="side-sortables" class="accordion-container">
    <ul class="outer-border">

        <?php 
YIT_Layout_Module_Site()->get_box();
foreach ($post_types as $name => $post_type) {
    if (!in_array($name, $exclude_posts_type)) {
        YIT_Layout_Module_Post_Type()->get_box($name);
    }
}
// YIT_Layout_Module_Static()->get_box();
foreach ($taxonomies as $name => $taxonomy) {
    if (!in_array($name, $exclude_taxonomies)) {
        YIT_Layout_Module_Taxonomy()->get_box($name);
    }
}
YIT_Layout_Module_Author()->get_box('author');
?>
    </ul>
</div>
     *
     */
    public function __construct()
    {
        parent::__construct('site', __('Site', 'yit'), true);
    }
    public function get_box()
    {
        $data = array('model' => 'site', 'type' => 'site', 'tabs' => array(), 'label' => __('Default Configuration', 'yit'));
        yit_get_template('/admin/layout/accordion-item.php', $data);
    }
}
/**
 * Main instance of plugin
 *
 * @return object
 * @since  1.0
 * @author Emanuela Castorina <*****@*****.**>
 */
function YIT_Layout_Module_Site()
{
    return YIT_Layout_Module_Site::instance();
}
/**
 * Instantiate Sidebar class
 *
 * @since  1.0
 * @author Emanuela Castorina <*****@*****.**>
 */
YIT_Layout_Module_Site();