コード例 #1
0
ファイル: hPagination.php プロジェクト: mylastof/os-class
function osc_pagination_items($extraParams = array(), $field = false)
{
    if (osc_is_public_profile()) {
        $url = osc_user_list_items_pub_profile_url('{PAGE}', $field);
        $first_url = osc_user_public_profile_url();
    } elseif (osc_is_list_items()) {
        $url = osc_user_list_items_url('{PAGE}', $field);
        $first_url = osc_user_list_items_url();
    }
    $params = array('total' => osc_search_total_pages(), 'selected' => osc_search_page(), 'url' => $url, 'first_url' => $first_url);
    if (is_array($extraParams) && !empty($extraParams)) {
        foreach ($extraParams as $key => $value) {
            $params[$key] = $value;
        }
    }
    $pagination = new Pagination($params);
    return $pagination->doPagination();
}
コード例 #2
0
function pop_email_share_url()
{
    if (osc_is_public_profile()) {
        $subject = sprintf(__("Check out this profile with interesting products at %s.", 'pop'), osc_page_title());
        $body = sprintf(__('Take a look at %1$s\'s profile on %2$s', 'pop'), osc_user_public_profile_url(), osc_page_title());
    }
    if (osc_is_ad_page()) {
        $subject = sprintf(__("Check out what I just found < %s >", 'pop'), osc_item_title());
        $body = sprintf(__('Take a look at %s', 'pop'), osc_item_url());
    }
    return 'mailto:?body=' . $body . '&subject=' . $subject;
}
コード例 #3
0
ファイル: loop.php プロジェクト: oanav/closetshare
    if (osc_is_search_page() && Params::getParam('hook') != 'load_more_listing') {
        ?>
    <div class="item stamp  stamp-alert">
        <?php 
        require WebThemes::newInstance()->getCurrentThemePath() . 'inc.alert.form.php';
        ?>
    </div>
    <?php 
    }
    ?>
    <?php 
}
?>
    <?php 
// get premium ads
if (!osc_is_list_items() && !osc_is_public_profile()) {
    $max = osc_get_preference('pop_max_premium', 'pop_theme');
    osc_get_premiums($max);
    if (osc_count_premiums() > 0) {
        while (osc_has_premiums()) {
            pop_draw_item($class, false, true);
        }
    }
}
$i = 0;
if ($type == 'latestItems') {
    while (osc_has_latest_items()) {
        pop_draw_item($class);
        $i++;
    }
} elseif ($type == 'premiums') {
コード例 #4
0
        <?php 
$breadcrumb = osc_breadcrumb('&raquo;', false, get_breadcrumb_lang());
if ($breadcrumb !== '') {
    ?>
            <div class="breadcrumb">
                <?php 
    echo $breadcrumb;
    ?>
                <div class="clear"></div>
            </div>
        <?php 
}
?>
        <?php 
if (!osc_is_public_profile()) {
    ?>
            <div class="wrapper ads_header"><!-- header ad 728x60-->
                <?php 
    echo osc_get_preference('header-728x90', 'pop_theme');
    ?>
            </div><!-- /header ad 728x60-->
        <?php 
}
?>
        <?php 
osc_run_hook('before-main');
?>
        <div class="wrapper">

        <div class="search-responsive-wrapper">