function person_page()
{
    $object = new Pod('authors');
    $add_fields = $edit_fields = array('slug', 'name', 'family_name', 'title', 'email_address', 'photo', 'photo_legacy', 'profile_text', 'organization', 'role', 'additional_affiliations', 'qualifications', 'staff_pages_blurb', 'office_location', 'display_after', 'display_until', 'extended_blurb', 'groups', 'research_projects');
    $object->ui = array('title' => 'Person', 'sort' => 't.family_name ASC', 'columns' => array('name' => 'Name', 'family_name' => 'Family name', 'organization' => 'Organization', 'created' => 'Date Created', 'modified' => 'Last Modified'), 'add_fields' => $add_fields, 'edit_fields' => $edit_fields);
    pods_ui_manage($object);
}
function tile_page()
{
    $object = new Pod('tile');
    $add_fields = $edit_fields = array('slug', 'name', 'display_title', 'tagline', 'blurb', 'tile_layout', 'class', 'target_page', 'target_post', 'target_uri', 'target_event', 'target_research_project', 'image', 'posts_category', 'plain_content');
    $object->ui = array('title' => 'Tile', 'reorder' => 'displayorder', 'reorder_columns' => array('name' => 'Title', 'tagline' => 'Subtitle', 'tile_layout' => 'Layout'), 'columns' => array('name' => 'Title', 'tagline' => 'Subtitle', 'tile_layout' => 'Layout', 'class' => 'Extra classes', 'created' => 'Date Created', 'modified' => 'Last Modified'), 'add_fields' => $add_fields, 'edit_fields' => $edit_fields);
    pods_ui_manage($object);
}
Esempio n. 3
0
function pods_ui_demo_page_three()
{
    $object = new Pod('pods_ui_lolcats');
    $add_fields = $edit_fields = array('name', 'description', 'link');
    $object->ui = array('title' => 'LOLCats', 'item' => 'LOLCat', 'columns' => array('name' => 'Name', 'created' => 'Date Created', 'modified' => 'Last Modified'), 'add_fields' => $add_fields, 'edit_fields' => $edit_fields);
    pods_ui_manage($object);
}
Esempio n. 4
0
 function pods_ui_reorder($object)
 {
     pods_ui_manage($object);
 }
Esempio n. 5
0
" />-->
                <input type="hidden" name="page" value="<?php 
    echo pods_var('page', 'get');
    ?>
" />
                <input type="submit" class="button" value="  Browse Pod  " />
            </form>
        </div>
<?php 
    if (0 < strlen($dtname)) {
        pods_ui_manage('pod=' . $dtname . '&sort=p.modified DESC&session_filters=false');
    } else {
        echo "<p>Select a Pod from above to begin managing content.</p>";
    }
} elseif (pods_access('pod_' . $dtname)) {
    pods_ui_manage('pod=' . $dtname . '&sort=p.modified DESC' . ('top-level-manage' != $manage_action ? '&session_filters=false' : ''));
} else {
    echo "<p>You do not have access to manage this Pod's content.</p>";
}
/* Using Pods UI now
?>
        <table class="widefat">
            <thead>
                <tr>
                    <th>Name</th>
                    <th>Type</th>
                    <th>Date</th>
                </tr>
            </thead>
            <tfoot>
                <tr>
function event_session_page()
{
    $object = new Pod('event_session');
    $object->ui = array('title' => 'Event session', 'sort' => 'start', 'columns' => array('name' => 'Title', 'session_type' => 'Session type', 'sequence' => 'Sequence', 'start' => 'Start', 'created' => 'Date Created', 'modified' => 'Last Modified'));
    pods_ui_manage($object);
}