Beispiel #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 add_default_bodyclasses()
 {
     if (osc_is_ad_page()) {
         echo 'ad-page';
     }
     if (osc_is_search_page()) {
         echo 'search-page';
     }
     if (osc_is_static_page()) {
         echo 'static-page';
     }
     if (osc_is_home_page()) {
         echo 'home-page';
     }
     if (osc_is_user_dashboard()) {
         echo 'user-dashboard';
     }
     if (osc_is_publish_page()) {
         echo 'publish-page';
     }
     if (osc_is_login_form()) {
         echo 'login-form';
     }
     if (osc_is_contact_page()) {
         echo 'contact-form';
     }
     if (Params::getParam('action') == 'send_friend') {
         echo 'send-friend';
     }
     if (Params::getParam('action') == 'contact') {
         echo 'item-contact';
     }
 }
Beispiel #3
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;
}
Beispiel #4
0
    }
    ?>
><a href="<?php 
    echo osc_static_page_url();
    ?>
"><?php 
    echo osc_static_page_title();
    ?>
</a></li>
            <?php 
}
?>
            <?php 
osc_reset_static_pages();
?>
            <li <?php 
if (osc_is_contact_page()) {
    echo 'class="current-menu-item"';
}
?>
><a href="<?php 
echo osc_contact_url();
?>
"><?php 
_e('Contact', 'seeker');
?>
</a></li>
        </ul>
        </div>
    </div>
    <div class="wrapper">