<?php

// meta tag robots
osc_add_hook('header', 'pop_nofollow_construct');
pop_add_body_class('contact');
osc_enqueue_script('jquery-validate');
osc_current_web_theme_path('header.php');
?>
<div class="form-container box">
    <div class="header">
        <h1><?php 
_e('Contact us', 'pop');
?>
</h1>
    </div>
    <div class="form-content">
        <ul id="error_list"></ul>
        <form name="contact_form" action="<?php 
echo osc_base_url(true);
?>
" method="post" >
            <input type="hidden" name="page" value="contact" />
            <input type="hidden" name="action" value="contact_post" />
            <div class="control-group">
                <label class="control-label" for="yourName">
                    <?php 
_e('Your name', 'pop');
?>
                    (<?php 
_e('optional', 'pop');
?>
Пример #2
0
<?php

$location = array();
if (osc_item_region() !== '') {
    $location[] = osc_item_region();
}
if (osc_item_city() !== '') {
    $location[] = osc_item_city();
}
if (osc_item_city_area() !== '') {
    $location[] = osc_item_city_area();
}
// meta tag robots
osc_add_hook('header', 'pop_follow_construct');
pop_add_body_class('item');
osc_enqueue_script('jquery-validate');
osc_enqueue_script('jquery-bxslider');
osc_enqueue_style('jquery-bxslider-css', osc_current_web_theme_url('css/jquery.bxslider.css'));
osc_enqueue_script('imgLiquid-js');
View::newInstance()->_exportVariableToView('user', User::newInstance()->findByPrimaryKey(osc_item_user_id()));
?>

<?php 
osc_current_web_theme_path('header.php');
$class = '';
if (osc_count_item_resources() == 0) {
    $class = "no-image";
}
?>
<div class="container">
    <div class="row">
Пример #3
0
<?php

include 'frm.class/PopUserForm.php';
// meta tag robots
osc_add_hook('header', 'pop_nofollow_construct');
pop_add_body_class('register');
osc_enqueue_script('jquery-validate');
osc_enqueue_script('jquery-metadata');
osc_current_web_theme_path('header.php');
?>

<div class="form-container box">
    <div class="header">
        <h1><?php 
_e('Register', 'pop');
?>
</h1>
    </div>
    <div class="form-content form-horizontal">
        <form name="register" action="<?php 
echo osc_base_url(true);
?>
" method="post" >
            <input type="hidden" name="page" value="register" />
            <input type="hidden" name="action" value="register_post" />
            <ul id="error_list"></ul>
            <div class="control-group">
                <label class="control-label" for="name"><?php 
_e('Name', 'pop');
?>
</label>
<?php

// meta tag robots
osc_add_hook('header', 'pop_nofollow_construct');
pop_add_body_class('user user-profile');
osc_add_filter('meta_title_filter', 'custom_meta_title');
function custom_meta_title($data)
{
    return __('Update account', 'pop');
}
osc_current_web_theme_path('header.php');
$osc_user = osc_user();
?>

<?php 
osc_current_web_theme_path('user-sidebar.php');
?>
<div class="user-content box">
    <div class="header">
        <h1><?php 
_e('Update account', 'pop');
?>
</h1>
    </div>
<?php 
UserForm::location_javascript();
?>
    <div class="form-container form-horizontal">
        <div class="resp-wrapper">
            <ul id="error_list"></ul>
            <form action="<?php 
osc_admin_menu_appearance(__('Theme settings', 'pop'), osc_admin_render_theme_url('oc-content/themes/pop/admin/settings.php'), 'settings_pop');
osc_admin_menu_appearance(__('Header logo', 'pop'), osc_admin_render_theme_url('oc-content/themes/pop/admin/header.php'), 'header_pop');
osc_admin_menu_appearance(__('Color settings', 'pop'), osc_admin_render_theme_url('oc-content/themes/pop/admin/color_settings.php'), 'settings_color_pop');
/**
 TRIGGER FUNCTIONS
*/
check_install_pop_theme();
if (osc_is_home_page()) {
    osc_add_hook('inside-main', 'pop_draw_categories_list');
} else {
    if (osc_is_static_page() || osc_is_contact_page()) {
        osc_add_hook('before-content', 'pop_draw_categories_list');
    }
}
if (osc_is_home_page() || osc_is_search_page()) {
    pop_add_body_class('has-searchbox');
}
function pop_sidebar_category_search($catId = null)
{
    $aCategories = array();
    if ($catId == null) {
        $aCategories[] = Category::newInstance()->findRootCategoriesEnabled();
    } else {
        // if parent category, only show parent categories
        $aCategories = Category::newInstance()->toRootTree($catId);
        end($aCategories);
        $cat = current($aCategories);
        // if is parent of some category
        $childCategories = Category::newInstance()->findSubcategoriesEnabled($cat['pk_i_id']);
        if (count($childCategories) > 0) {
            $aCategories[] = $childCategories;
Пример #6
0
<?php

// meta tag robots
osc_add_hook('header', 'pop_nofollow_construct');
pop_add_body_class('user user-custom');
osc_current_web_theme_path('header.php');
?>

<?php 
osc_current_web_theme_path('user-sidebar.php');
?>
<div class="user-content box">
    <div class="header">
    </div>
    <?php 
osc_render_file();
?>
</div>
<?php 
osc_current_web_theme_path('footer.php');
Пример #7
0
<?php

// meta tag robots
osc_add_hook('header', 'pop_nofollow_construct');
pop_add_body_class('page');
osc_current_web_theme_path('header.php');
?>
<div class="form-container box">
    <div class="header">
        <h1><?php 
echo osc_static_page_title();
?>
</h1>
    </div>
    <div class="form-content">
        <?php 
echo osc_static_page_text();
?>
    </div>
</div>
<?php 
osc_current_web_theme_path('footer.php');
Пример #8
0
<?php

// meta tag robots
osc_add_hook('header', 'pop_nofollow_construct');
pop_add_body_class('recover');
osc_current_web_theme_path('header.php');
?>
<div class="form-container box">
    <div class="header">
        <h1><?php 
_e('Recover your password', 'pop');
?>
</h1>
    </div>
    <div class="form-content">

        <form action="<?php 
echo osc_base_url(true);
?>
" method="post" >
            <input type="hidden" name="page" value="login" />
            <input type="hidden" name="action" value="recover_post" />
            <div class="control-group">
                <label class="control-label" for="email"><?php 
_e('E-mail', 'pop');
?>
</label>
                <div class="controls">
                    <?php 
UserForm::email_text();
?>
    $address = osc_user_city_area();
}
$location_array = array();
if (trim(osc_user_city() . " " . osc_user_zip()) != '') {
    $location_array[] = trim(osc_user_city() . " " . osc_user_zip());
}
if (osc_user_region() != '') {
    $location_array[] = osc_user_region();
}
if (osc_user_country() != '') {
    $location_array[] = osc_user_country();
}
$location = implode(", ", $location_array);
unset($location_array);
osc_enqueue_script('jquery-validate');
pop_add_body_class('user-public-profile');
osc_add_hook('before-main', 'pop_user_map_header');
function pop_user_map_header()
{
    osc_current_web_theme_path('inc.user_header_public_profile.php');
}
osc_current_web_theme_path('header.php');
?>


<?php 
if (osc_count_items() > 0) {
    osc_current_web_theme_path('loop.php');
}
?>
<?php

// meta tag robots
osc_add_hook('header', 'pop_nofollow_construct');
pop_add_body_class('login');
osc_current_web_theme_path('header.php');
?>
<div class="form-container box">
    <div class="header">
        <h1><?php 
_e('Access to your account', 'pop');
?>
</h1>
    </div>
    <div class="form-content">
        <form action="<?php 
echo osc_base_url(true);
?>
" method="post" >
            <input type="hidden" name="page" value="login" />
            <input type="hidden" name="action" value="login_post" />

            <div class="control-group">
                <label class="control-label" for="email"><?php 
_e('E-mail', 'pop');
?>
</label>
                <div class="controls">
                    <?php 
UserForm::email_login_text();
?>
Пример #11
0
<?php

include 'frm.class/PopUserForm.php';
// meta tag robots
osc_add_hook('header', 'pop_nofollow_construct');
osc_enqueue_script('jquery-validate');
pop_add_body_class('item item-post');
$action = 'item_add_post';
$edit = false;
if (Params::getParam('action') == 'item_edit') {
    $action = 'item_edit_post';
    $edit = true;
}
osc_current_web_theme_path('header.php');
PopUserForm::location_javascript();
?>
<div class="container">
    <div class="header">
        <h1><?php 
_e('Publish a listing', 'pop');
?>
</h1>
    </div>
    <ul id="error_list"></ul>
    <div class="form-container row">
        <form name="item" action="<?php 
echo osc_base_url(true);
?>
" method="post" enctype="multipart/form-data" id="item-post" class="form-horizontal">
            <fieldset>
                <input type="hidden" name="action" value="<?php 
Пример #12
0
<?php

// meta tag robots
osc_add_hook('header', 'pop_follow_construct');
pop_add_body_class('home');
$listClass = '';
osc_current_web_theme_path('header.php');
?>
   <div id="header_map">

        <div class="overlay">
            <div class="headline">
                <h1>Reinoieste-ti garderoba!</h1>
                <h6>Bazar online cu haine, incaltaminte si accesorii noi si second hand</h6>
            </div>
        <div class="main-search">
      <?php 
require WebThemes::newInstance()->getCurrentThemePath() . 'inc.quick.search.php';
?>
      </div>
        </div>

      </div>
<section class="categories">

    <div class="container text-center">
        <div>
            <h1 class="title">
                <?php 
_e('Categories', 'pop');
?>
<?php

// meta tag robots
osc_add_hook('header', 'pop_nofollow_construct');
pop_add_body_class('user user-items');
osc_current_web_theme_path('header.php');
?>

<?php 
osc_current_web_theme_path('user-sidebar.php');
?>
<div class="user-content box">
    <div class="header">
        <h1><?php 
_e('My listings', 'pop');
?>
</h1>
    </div>
    <?php 
if (osc_count_items() == 0) {
    ?>
        <p class="empty" ><?php 
    _e('No listings have been added yet', 'pop');
    ?>
</p>
    <?php 
} else {
    ?>

    <?php 
    View::newInstance()->_exportVariableToView("listAdmin", true);
Пример #14
0
<?php

// meta tag robots
osc_add_hook('header', 'pop_nofollow_construct');
osc_add_filter('meta_title_filter', 'pop_title_404');
function pop_title_404($title)
{
    $header_text = __("Sorry but I can't find the page you're looking for", 'pop');
    if (View::newInstance()->_get('pop_404_header_text') != '') {
        $header_text = View::newInstance()->_get('pop_404_header_text');
    }
    return $header_text;
}
pop_add_body_class('_404');
osc_current_web_theme_path('header.php');
?>
<div class="form-container box">
    <div class="header">
        <?php 
$header_text = __("Sorry but I can't find the page you're looking for", 'pop');
if (View::newInstance()->_get('pop_404_header_text') != '') {
    $header_text = View::newInstance()->_get('pop_404_header_text');
}
?>
        <h1><?php 
echo $header_text;
?>
</h1>
    </div>
    <div class="form-content">
        <div class="flashmessage-404">
<?php

// meta tag robots
if (osc_count_items() == 0 || stripos($_SERVER['REQUEST_URI'], 'search')) {
    osc_add_hook('header', 'pop_nofollow_construct');
} else {
    osc_add_hook('header', 'pop_follow_construct');
}
$listClass = 'item';
pop_add_body_class('search');
if (osc_count_latest_items() == 0) {
    pop_redirect_404(sprintf(__('There are no results matching "%s"', 'pop'), osc_search_pattern()));
}
osc_current_web_theme_path('header.php');
?>

<?php 
if (osc_count_latest_items() == 0) {
    ?>
    <div class="clear"></div>
    <p class="empty" ><?php 
    printf(__('There are no results matching "%s"', 'pop'), osc_search_pattern());
    ?>
</p>
<?php 
} else {
    View::newInstance()->_exportVariableToView("listType", 'latestItems');
    View::newInstance()->_exportVariableToView("listClass", $listClass);
    osc_current_web_theme_path('loop.php');
}
osc_current_web_theme_path('footer.php');
Пример #16
0
<?php

pop_add_body_class('custom');
osc_current_web_theme_path('header.php');
?>

    <?php 
osc_render_file();
?>

<?php 
osc_current_web_theme_path('footer.php');