예제 #1
0
"><a href="<?php 
echo PerchUtil::html($API->app_path() . '/' . '?status=pending');
?>
"><?php 
echo $Lang->get('Pending (%s)', $pending_comment_count);
?>
</a></li>
        <?php 
if ($status == 'pending') {
    $Alert->set('filter', $Lang->get('You are viewing all comments pending moderation.') . ' <a href="' . $API->app_path() . '/?status=all' . '" class="action">' . $Lang->get('Clear Filter') . '</a>');
}
$items = array();
$items[] = array('arg' => 'status', 'val' => 'live', 'label' => 'Live', 'path' => $API->app_path() . '/');
$items[] = array('arg' => 'status', 'val' => 'rejected', 'label' => 'Rejected', 'path' => $API->app_path() . '/');
$items[] = array('arg' => 'status', 'val' => 'spam', 'label' => 'Spam', 'path' => $API->app_path() . '/');
echo PerchUtil::smartbar_filter('cf', 'By Status', 'Filtered by ‘%s’', $items, 'folder', $Alert, "You are viewing ‘%s’ comments", $API->app_path() . '/?status=all');
?>
    </ul>

     <?php 
echo $Alert->output();
?>


    <?php 
/* ----------------------------------------- /SMART BAR ----------------------------------------- */
if (PerchUtil::count($comments)) {
    echo $Form->form_start('comments', 'bulk-edit');
    ?>
    <table class="d">
        <thead>
예제 #2
0
echo PerchLang::get('New');
?>
</a></li>
		<?php 
if ($filter == 'new') {
    $Alert->set('filter', PerchLang::get('You are viewing pages with new regions.') . ' <a href="' . PERCH_LOGINPATH . '/core/apps/content/" class="action">' . PerchLang::get('Clear Filter') . '</a>');
}
$templates = $Regions->get_templates_in_use();
if (PerchUtil::count($templates)) {
    $items = array();
    foreach ($templates as $template) {
        if ($template['regionTemplate'] != '') {
            $items[] = array('arg' => 'template', 'val' => $template['regionTemplate'], 'label' => $Regions->template_display_name($template['regionTemplate']), 'path' => PERCH_LOGINPATH . '/core/apps/content/');
        }
    }
    echo PerchUtil::smartbar_filter('rtf', 'By Region Type', 'Filtered by ‘%s’', $items, 'region', $Alert, "You are viewing pages filtered by region type ‘%s’", PERCH_LOGINPATH . '/core/apps/content/');
}
?>


        


		<?php 
if ($CurrentUser->has_priv('content.pages.reorder')) {
    ?>
        <li class="fin"><a class="icon reorder" href="<?php 
    echo PerchUtil::html(PERCH_LOGINPATH . '/core/apps/content/reorder/');
    ?>
"><?php 
    echo PerchLang::get('Reorder Pages');
예제 #3
0
    if ($filter == 'status' && $status == 'draft') {
        $Alert->set('filter', PerchLang::get('You are viewing all draft posts.') . ' <a href="' . $API->app_path() . '" class="action">' . $Lang->get('Clear Filter') . '</a>');
    }
    if (PerchUtil::count($categories)) {
        $items = array();
        foreach ($categories as $Category) {
            $items[] = array('arg' => 'category', 'val' => $Category->catPath(), 'label' => $Category->catTitle(), 'path' => $API->app_path());
        }
        echo PerchUtil::smartbar_filter('cf', 'By Category', 'Filtered by ‘%s’', $items, 'folder', $Alert, "You are viewing posts in ‘%s’", $API->app_path());
    }
    if (PerchUtil::count($sections) > 1) {
        $items = array();
        foreach ($sections as $Section) {
            $items[] = array('arg' => 'section', 'val' => $Section->sectionSlug(), 'label' => $Section->sectionTitle(), 'path' => $API->app_path());
        }
        echo PerchUtil::smartbar_filter('sf', 'By Section', 'Filtered by ‘%s’', $items, 'folder', $Alert, "You are viewing posts in ‘%s’", $API->app_path());
    }
    ?>
    </ul>

    <?php 
} else {
    $Alert->set('notice', $Lang->get('There are no posts yet.'));
}
echo $Alert->output();
/* ----------------------------------------- /SMART BAR ----------------------------------------- */
if (PerchUtil::count($posts)) {
    ?>
    <table class="d">
        <thead>
            <tr>
if (isset($_GET['filter']) && $_GET['filter'] == 'failed') {
    ?>
selected<?php 
}
?>
">
            <a href="<?php 
echo $API->app_path();
?>
?filter=failed"><?php 
echo $Lang->get('Failed');
?>
</a>
        </li>
        <?php 
echo PerchUtil::smartbar_filter('chars', 'By Title', 'Filtered by ‘%s’', [['arg' => 'chars', 'val' => 'abcd', 'label' => 'A-D'], ['arg' => 'chars', 'val' => 'efgh', 'label' => 'E-H'], ['arg' => 'chars', 'val' => 'ijkl', 'label' => 'I-L'], ['arg' => 'chars', 'val' => 'mopq', 'label' => 'M-Q'], ['arg' => 'chars', 'val' => 'rstv', 'label' => 'R-V'], ['arg' => 'chars', 'val' => 'wxyz', 'label' => 'W-Z'], ['arg' => 'chars', 'val' => '0-9', 'label' => '0-9']], 'icon region', $Alert, "You are viewing addresses filtered by title ‘%s’", $API->app_path());
?>
    </ul>

<?php 
$Alert->output();
?>

<?php 
if (PerchUtil::count($addresses)) {
    ?>
    <table class="d">
        <thead>
            <tr>
                <th>
                    <?php 
    echo $status == 'pending' ? 'selected' : '';
    ?>
"><a href="<?php 
    echo PerchUtil::html($API->app_path() . '?status=pending');
    ?>
"><?php 
    echo $Lang->get('Pending');
    ?>
</a></li>
        <?php 
    if (PerchUtil::count($tags)) {
        $items = array();
        foreach ($tags as $Tag) {
            $items[] = array('arg' => 'tag', 'val' => $Tag->tag(), 'label' => $Tag->tagDisplay(), 'path' => $API->app_path());
        }
        echo PerchUtil::smartbar_filter('cf', 'By Tag', 'Filtered by ‘%s’', $items, 'folder', $Alert, "You are viewing members with tag ‘%s’", $API->app_path());
    }
    ?>
    </ul>

    <?php 
} else {
    $Alert->set('notice', $Lang->get('There are no members yet.'));
}
?>

     <?php 
echo $Alert->output();
?>

예제 #6
0
?>
"><?php 
echo $Lang->get('Past');
?>
</a></li>
            
            <?php 
if ($filter == 'past') {
    $Alert->set('filter', PerchLang::get('You are viewing all past events.') . ' <a href="' . $API->app_path() . '" class="action">' . PerchLang::get('Clear Filter') . '</a>');
}
if (PerchUtil::count($categories)) {
    $items = array();
    foreach ($categories as $Category) {
        $items[] = array('arg' => 'category', 'val' => $Category->categorySlug(), 'label' => $Category->categoryTitle(), 'path' => $API->app_path());
    }
    echo PerchUtil::smartbar_filter('cf', 'By Category', 'Filtered by ‘%s’', $items, 'folder', $Alert, "You are viewing events in ‘%s’", $API->app_path());
}
?>
        </ul>

        <?php 
if (!PerchUtil::count($events)) {
    //$Alert->set('notice', $Lang->get('There are no events that match the current filter.'));
}
?>

         <?php 
echo $Alert->output();
?>

예제 #7
0
    foreach ($group_types as $type => $val) {
        $items[] = array('arg' => 'type', 'val' => $type, 'label' => $val['label'], 'path' => $base_path);
    }
    foreach ($types as $type) {
        $items[] = array('arg' => 'type', 'val' => $type, 'label' => strtoupper($type), 'path' => $base_path);
    }
    echo PerchUtil::smartbar_filter('type', 'By Asset Type', 'Filtered by type ‘%s’', $items, 'asset-icon asset-type', $Alert, "You are viewing assets filtered by type ‘%s’", $base_path);
}
// Bucket filter
$buckets = $Assets->get_available_buckets();
if (PerchUtil::count($buckets)) {
    $items = array();
    foreach ($buckets as $bucket) {
        $items[] = array('arg' => 'bucket', 'val' => $bucket, 'label' => ucfirst($bucket), 'path' => $base_path);
    }
    echo PerchUtil::smartbar_filter('bucket', 'By Bucket', 'Filtered by bucket ‘%s’', $items, 'asset', $Alert, "You are viewing assets filtered by bucket ‘%s’", $base_path);
}
?>
        <li class="fin">
            <form method="get" action="?" class="search">
                <input name="q" type="text" placeholder="<?php 
echo PerchLang::get('Search');
?>
" type="required" class="search" value="<?php 
if ($term) {
    echo PerchUtil::html($term, true);
}
?>
" />
                <button type="submit"><img src="<?php 
echo PERCH_LOGINPATH . '/core/assets/img/search.svg';