예제 #1
0
}
?>
      </div>
      <?php 
if (osclasswizards_welcome_message()) {
    ?>
      <p class="welcome-message"><?php 
    echo osclasswizards_welcome_message();
    ?>
</p>
      <?php 
}
?>
	    <ul>
        <?php 
if (osc_is_static_page() || osc_is_contact_page()) {
    ?>
        <li class="search"><a class="ico-search icons" data-bclass-toggle="display-search"></a></li>
        <li class="cat"><a class="ico-menu icons" data-bclass-toggle="display-cat"></a></li>
        <?php 
}
?>
        <?php 
if (osc_users_enabled()) {
    ?>
        <?php 
    if (osc_is_web_user_logged_in()) {
        ?>
        <li class="first logged"> <span><?php 
        echo sprintf(__('Hi %s', OSCLASSWIZARDS_THEME_FOLDER), osc_logged_user_name() . '!');
        ?>
function allSeo_keywords_filter($text)
{
    // Listing page
    if (osc_is_ad_page() and GetItemKeywords() != '') {
        $text = GetItemKeywords();
    }
    // Static page
    if (osc_is_static_page() and GetPageKeywords() != '') {
        $text = GetPageKeywords();
    }
    // Search & Category page
    if (osc_is_search_page()) {
        $category = osc_search_category_id();
        if (isset($category[0]) && GetCatKeywords($category[0]) != '') {
            $text = GetCatKeywords($category[0]);
        }
        $text .= GetCtrKeywords(osc_search_country()) ? ', ' . GetCtrKeywords(osc_search_country()) : '';
        $text .= GetRegKeywords(osc_search_region()) ? ', ' . GetRegKeywords(osc_search_region()) : '';
    }
    if (osc_get_preference('allSeo_keywords', 'plugin-all_in_one') != '') {
        if ($text != '') {
            $text .= ', ';
        }
        $text .= osc_get_preference('allSeo_keywords', 'plugin-all_in_one');
    }
    return $text;
}
예제 #3
0
function meta_description()
{
    $text = '';
    // home page
    if (osc_is_home_page()) {
        $text = osc_page_description();
    }
    // static page
    if (osc_is_static_page()) {
        $text = osc_highlight(osc_static_page_text(), 140, '', '');
    }
    // search
    if (osc_is_search_page()) {
        if (osc_has_items()) {
            $text = osc_item_category() . ' ' . osc_item_city() . ', ' . osc_highlight(osc_item_description(), 120);
        }
        osc_reset_items();
    }
    // listing
    if (osc_is_ad_page()) {
        $text = osc_item_category() . ' ' . osc_item_city() . ', ' . osc_highlight(osc_item_description(), 120);
    }
    return osc_apply_filter('meta_description_filter', $text);
}
예제 #4
0
function seo_meta_keywords_filter()
{
    $text = '';
    //home page
    if (osc_is_home_page()) {
        if (osc_get_preference('seo_metakeywords_home', 'seo_plugin')) {
            $text = osc_get_preference('seo_metakeywords_home', 'seo_plugin');
        }
    }
    // static page
    if (osc_is_static_page()) {
        if (osc_get_preference('seo_metakeywords_page_' . osc_static_page_id(), 'seo_plugin')) {
            $text = osc_get_preference('seo_metakeywords_page_' . osc_static_page_id(), 'seo_plugin');
        }
    }
    //contact page
    if (osc_is_contact_page()) {
        if (osc_get_preference('seo_metakeywords_page_contact', 'seo_plugin')) {
            $text = osc_get_preference('seo_metakeywords_page_contact', 'seo_plugin');
        }
    }
    // search
    if (osc_is_search_page()) {
        if (osc_has_items()) {
            $keywords = array();
            $keywords[] = osc_item_category();
            if (osc_item_city() != '') {
                $keywords[] = osc_item_city();
                $keywords[] = sprintf('%s %s', osc_item_category(), osc_item_city());
            }
            if (osc_item_region() != '') {
                $keywords[] = osc_item_region();
                $keywords[] = sprintf('%s %s', osc_item_category(), osc_item_region());
            }
            if (osc_item_city() != '' && osc_item_region() != '') {
                $keywords[] = sprintf('%s %s %s', osc_item_category(), osc_item_region(), osc_item_city());
                $keywords[] = sprintf('%s %s', osc_item_region(), osc_item_city());
            }
            $text = implode(', ', $keywords);
        }
        osc_reset_items();
    }
    // listing
    if (osc_is_ad_page()) {
        $detail = seo_get_row(osc_item_id());
        if (empty($detail['seo_item_meta_keywords'])) {
            $keywords = array();
            $keywords[] = osc_item_category();
            if (osc_item_city() != '') {
                $keywords[] = osc_item_city();
                $keywords[] = sprintf('%s %s', osc_item_category(), osc_item_city());
            }
            if (osc_item_region() != '') {
                $keywords[] = osc_item_region();
                $keywords[] = sprintf('%s %s', osc_item_category(), osc_item_region());
            }
            if (osc_item_city() != '' && osc_item_region() != '') {
                $keywords[] = sprintf('%s %s %s', osc_item_category(), osc_item_region(), osc_item_city());
                $keywords[] = sprintf('%s %s', osc_item_region(), osc_item_city());
            }
            $text = implode(', ', $keywords);
        } else {
            $text = $detail['seo_item_meta_keywords'];
        }
    }
    return $text;
}
예제 #5
0
 function is_current_page($page_id)
 {
     if (osc_is_static_page() && Params::getParam("id") == $page_id) {
         return true;
     }
     return false;
 }
예제 #6
0
?>
</strong>
            <?php 
_e('We will automatically receive your information and we will study your candidature.', 'seeker');
?>
            <a href="<?php 
echo osc_contact_url();
?>
" id="upload-button"><?php 
_e('Upload your CV now!', 'seeker');
?>
</a>
        </div>
        <ul id="nav">
            <li <?php 
if (!osc_is_static_page() && !osc_is_contact_page()) {
    echo 'class="current-menu-item"';
}
?>
><a href="<?php 
echo osc_base_url();
?>
"><?php 
_e('Advertises', 'seeker');
?>
</a></li>
            <?php 
while (osc_has_static_pages()) {
    ?>
                <li <?php 
    if (is_current_page(osc_static_page_id())) {