Exemplo n.º 1
0
/*
 *      Osclass – software for creating and publishing online classified
 *                           advertising platforms
 *
 *                        Copyright (C) 2014 OSCLASS
 *
 *       This program is free software: you can redistribute it and/or
 *     modify it under the terms of the GNU Affero General Public License
 *     as published by the Free Software Foundation, either version 3 of
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
osc_add_hook('header', 'bender_nofollow_construct');
bender_add_body_class('page');
osc_current_web_theme_path('header.php');
?>
<h1><?php 
echo osc_static_page_title();
?>
</h1>
<?php 
echo osc_static_page_text();
osc_current_web_theme_path('footer.php');
Exemplo n.º 2
0
 *     modify it under the terms of the GNU Affero General Public License
 *     as published by the Free Software Foundation, either version 3 of
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
osc_add_hook('header', 'bender_nofollow_construct');
osc_enqueue_script('jquery-validate');
bender_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');
?>
        <?php 
if (bender_default_location_show_as() == 'dropdown') {
    ItemForm::location_javascript();
} else {
    ItemForm::location_javascript_new();
}
?>
Exemplo n.º 3
0
 *     modify it under the terms of the GNU Affero General Public License
 *     as published by the Free Software Foundation, either version 3 of
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
osc_add_hook('header', 'bender_nofollow_construct');
osc_enqueue_script('jquery-validate');
bender_add_body_class('contact');
osc_current_web_theme_path('header.php');
?>
<div class="form-container form-horizontal form-container-box">
    <div class="header">
        <h1><?php 
_e('Send to a friend', 'bender');
?>
</h1>
    </div>
    <div class="resp-wrapper">
        <ul id="error_list"></ul>
        <form name="sendfriend" action="<?php 
echo osc_base_url(true);
?>
" method="post" >
Exemplo n.º 4
0
 *       This program is free software: you can redistribute it and/or
 *     modify it under the terms of the GNU Affero General Public License
 *     as published by the Free Software Foundation, either version 3 of
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
osc_add_hook('header', 'bender_nofollow_construct');
bender_add_body_class('forgot');
osc_current_web_theme_path('header.php');
?>
<div class="form-container form-horizontal form-container-box">
    <div class="header">
        <h1><?php 
_e('Recover your password', 'bender');
?>
</h1>
    </div>
    <div class="resp-wrapper">
        <form action="<?php 
echo osc_base_url(true);
?>
" method="post" >
            <input type="hidden" name="page" value="login" />
Exemplo n.º 5
0
 *       This program is free software: you can redistribute it and/or
 *     modify it under the terms of the GNU Affero General Public License
 *     as published by the Free Software Foundation, either version 3 of
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
osc_add_hook('header', 'bender_nofollow_construct');
bender_add_body_class('user user-profile');
osc_add_hook('before-main', 'sidebar');
function sidebar()
{
    osc_current_web_theme_path('user-sidebar.php');
}
osc_add_filter('meta_title_filter', 'custom_meta_title');
function custom_meta_title($data)
{
    return __('Change password', 'bender');
}
osc_current_web_theme_path('header.php');
$osc_user = osc_user();
?>
<h1><?php 
_e('Change password', 'bender');
Exemplo n.º 6
0
<?php

/*
 *      Osclass – software for creating and publishing online classified
 *                           advertising platforms
 *
 *                        Copyright (C) 2014 OSCLASS
 *
 *       This program is free software: you can redistribute it and/or
 *     modify it under the terms of the GNU Affero General Public License
 *     as published by the Free Software Foundation, either version 3 of
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
bender_add_body_class('custom');
osc_current_web_theme_path('header.php');
osc_render_file();
osc_current_web_theme_path('footer.php');
Exemplo n.º 7
0
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
?>

<?php 
// meta tag robots
osc_add_hook('header', 'bender_nofollow_construct');
bender_add_body_class('error not-found');
osc_current_web_theme_path('header.php');
?>
<div class="flashmessage-404">
    <h1><?php 
_e("Sorry but I can't find the page you're looking for", 'bender');
?>
</h1>

    <p><?php 
_e("Let us help you, we have got a few tips for you to find it.", 'bender');
?>
</p>
    <ul>
        <li>
            <?php 
Exemplo n.º 8
0
osc_add_hook('theme_delete_bender', 'bender_delete');
osc_admin_menu_appearance(__('Header logo', 'bender'), osc_admin_render_theme_url('oc-content/themes/bender/admin/header.php'), 'header_bender');
osc_admin_menu_appearance(__('Theme settings', 'bender'), osc_admin_render_theme_url('oc-content/themes/bender/admin/settings.php'), 'settings_bender');
/**
TRIGGER FUNCTIONS
*/
check_install_bender_theme();
if (osc_is_home_page()) {
    osc_add_hook('inside-main', 'bender_draw_categories_list');
} else {
    if (osc_is_static_page() || osc_is_contact_page()) {
        osc_add_hook('before-content', 'bender_draw_categories_list');
    }
}
if (osc_is_home_page() || osc_is_search_page()) {
    bender_add_body_class('has-searchbox');
}
function bender_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;
Exemplo n.º 9
0
 *       This program is free software: you can redistribute it and/or
 *     modify it under the terms of the GNU Affero General Public License
 *     as published by the Free Software Foundation, either version 3 of
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
osc_add_hook('header', 'bender_follow_construct');
bender_add_body_class('home');
$buttonClass = '';
$listClass = '';
if (bender_show_as() == 'gallery') {
    $listClass = 'listing-grid';
    $buttonClass = 'active';
}
osc_current_web_theme_path('header.php');
?>
<div class="clear"></div>
<div class="latest_ads">
<h1><strong><?php 
_e('Latest Listings', 'bender');
?>
</strong></h1>
 <?php 
Exemplo n.º 10
0
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
if (osc_count_items() == 0 || stripos(Params::getServerParam('REQUEST_URI', false, false), 'search')) {
    osc_add_hook('header', 'bender_nofollow_construct');
} else {
    osc_add_hook('header', 'bender_follow_construct');
}
bender_add_body_class('search');
$listClass = '';
$buttonClass = '';
if (osc_search_show_as() == 'gallery') {
    $listClass = 'listing-grid';
    $buttonClass = 'active';
}
osc_add_hook('before-main', 'sidebar');
function sidebar()
{
    osc_current_web_theme_path('search-sidebar.php');
}
osc_add_hook('footer', 'autocompleteCity');
function autocompleteCity()
{
    ?>
Exemplo n.º 11
0
 *       This program is free software: you can redistribute it and/or
 *     modify it under the terms of the GNU Affero General Public License
 *     as published by the Free Software Foundation, either version 3 of
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
osc_add_hook('header', 'bender_nofollow_construct');
bender_add_body_class('login');
osc_current_web_theme_path('header.php');
?>
<div class="form-container form-horizontal form-container-box">
    <div class="header">
        <h1><?php 
_e('Access to your account', 'bender');
?>
</h1>
    </div>
    <div class="resp-wrapper">
        <form action="<?php 
echo osc_base_url(true);
?>
" method="post" >
            <input type="hidden" name="page" value="login" />
Exemplo n.º 12
0
 *       This program is free software: you can redistribute it and/or
 *     modify it under the terms of the GNU Affero General Public License
 *     as published by the Free Software Foundation, either version 3 of
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
osc_add_hook('header', 'bender_nofollow_construct');
bender_add_body_class('user user-items');
osc_add_hook('before-main', 'sidebar');
function sidebar()
{
    osc_current_web_theme_path('user-sidebar.php');
}
osc_current_web_theme_path('header.php');
$listClass = '';
$buttonClass = '';
if (Params::getParam('ShowAs') == 'gallery') {
    $listClass = 'listing-grid';
    $buttonClass = 'active';
}
?>
<div class="list-header">
    <?php 
Exemplo n.º 13
0
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
if (osc_item_is_spam() || osc_premium_is_spam()) {
    osc_add_hook('header', 'bender_nofollow_construct');
} else {
    osc_add_hook('header', 'bender_follow_construct');
}
osc_enqueue_script('fancybox');
osc_enqueue_style('fancybox', osc_current_web_theme_url('js/fancybox/jquery.fancybox.css'));
osc_enqueue_script('jquery-validate');
bender_add_body_class('item');
osc_add_hook('after-main', 'sidebar');
function sidebar()
{
    osc_current_web_theme_path('item-sidebar.php');
}
$location = array();
if (osc_item_city_area() !== '') {
    $location[] = osc_item_city_area();
}
if (osc_item_city() !== '') {
    $location[] = osc_item_city();
}
if (osc_item_region() !== '') {
    $location[] = osc_item_region();
}
Exemplo n.º 14
0
 *       This program is free software: you can redistribute it and/or
 *     modify it under the terms of the GNU Affero General Public License
 *     as published by the Free Software Foundation, either version 3 of
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
osc_add_hook('header', 'bender_nofollow_construct');
bender_add_body_class('recover');
osc_current_web_theme_path('header.php');
?>
<div class="form-container form-horizontal form-container-box">
    <div class="header">
        <h1><?php 
_e('Recover your password', 'bender');
?>
</h1>
    </div>
    <div class="resp-wrapper">
        <form action="<?php 
echo osc_base_url(true);
?>
" method="post" >
        <input type="hidden" name="page" value="login" />
Exemplo n.º 15
0
/*
 *      Osclass – software for creating and publishing online classified
 *                           advertising platforms
 *
 *                        Copyright (C) 2014 OSCLASS
 *
 *       This program is free software: you can redistribute it and/or
 *     modify it under the terms of the GNU Affero General Public License
 *     as published by the Free Software Foundation, either version 3 of
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
osc_add_hook('header', 'bender_nofollow_construct');
bender_add_body_class('user user-custom');
osc_add_hook('before-main', 'sidebar');
function sidebar()
{
    osc_current_web_theme_path('user-sidebar.php');
}
osc_current_web_theme_path('header.php');
osc_render_file();
osc_current_web_theme_path('footer.php');
Exemplo n.º 16
0
 *       This program is free software: you can redistribute it and/or
 *     modify it under the terms of the GNU Affero General Public License
 *     as published by the Free Software Foundation, either version 3 of
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
osc_add_hook('header', 'bender_nofollow_construct');
bender_add_body_class('register');
osc_enqueue_script('jquery-validate');
osc_current_web_theme_path('header.php');
?>
<div class="form-container form-horizontal form-container-box">
    <div class="header">
        <h1><?php 
_e('Register an account for free', 'bender');
?>
</h1>
    </div>
    <div class="resp-wrapper">
        <form name="register" action="<?php 
echo osc_base_url(true);
?>
" method="post" >