コード例 #1
0
ファイル: item-post.php プロジェクト: oanav/closetshare
 *     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', 'osclasswizards_nofollow_construct');
osc_enqueue_script('jquery-validate');
osclasswizards_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');
ItemForm::location_javascript_new();
?>
<div class="row">
    <div class="col-md-6 col-md-offset-3">
        <div class="wraps">
            <div class="title">
                <h1>
                    <?php 
コード例 #2
0
ファイル: page.php プロジェクト: oanav/closetshare
 *
 *                        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', 'osclasswizards_nofollow_construct');
osclasswizards_add_body_class('page');
osc_current_web_theme_path('header.php');
?>

<div class="title">
  <h1><?php 
echo osc_static_page_title();
?>
</h1>
</div>
<?php 
echo osc_static_page_text();
osc_current_web_theme_path('footer.php');
コード例 #3
0
ファイル: user-login.php プロジェクト: oanav/closetshare
 *       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', 'osclasswizards_nofollow_construct');
osclasswizards_add_body_class('login');
osc_current_web_theme_path('header.php');
?>

<div class="row">
  <div class="col-md-4 col-md-offset-4">
    <div class="wraps">
      <div class="title">
        <h1>
          <?php 
_e('Please Log In', 'osclasswizards');
?>
        </h1>
      </div>
      <form action="<?php 
echo osc_base_url(true);
コード例 #4
0
ファイル: user-custom.php プロジェクト: oanav/closetshare
/*
 *      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', 'osclasswizards_nofollow_construct');
osclasswizards_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');
コード例 #5
0
ファイル: functions.php プロジェクト: syedfiraat4/bikade.com
    }
}
function osclasswizards_delete()
{
    Preference::newInstance()->delete(array('s_section' => OSCLASSWIZARDS_THEME_FOLDER));
}
osc_add_hook('init', 'osclasswizards_redirect_user_dashboard', 2);
osc_add_hook('init_admin', 'theme_osclasswizards_actions_admin');
osc_add_hook('theme_delete_osclasswizards', 'osclasswizards_delete');
osc_admin_menu_appearance(__('OsclassWizards', OSCLASSWIZARDS_THEME_FOLDER), osc_admin_render_theme_url('oc-content/themes/' . OSCLASSWIZARDS_THEME_FOLDER . '/admin/settings.php'), 'settings_osclasswizards');
check_install_osclasswizards_theme();
if (osc_is_home_page()) {
    osc_add_hook('inside-main', 'osclasswizards_draw_categories_list');
}
if (osc_is_home_page() || osc_is_search_page()) {
    osclasswizards_add_body_class('has-searchbox');
}
function osclasswizards_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
ファイル: 404.php プロジェクト: syedfiraat4/bikade.com
 *       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', 'osclasswizards_nofollow_construct');
osclasswizards_add_body_class('error not-found');
osc_current_web_theme_path('header.php');
?>

<div class="page-not-found">
  <div class="flashmessage-404 page_error">
    <div class="title">
      <h1>
        <?php 
_e("Sorry but I can't find the page you're looking for", OSCLASSWIZARDS_THEME_FOLDER);
?>
      </h1>
    </div>
    <h3>
      <?php 
_e("Let us help you, we have got a few tips for you to find it. ", OSCLASSWIZARDS_THEME_FOLDER);
コード例 #7
0
ファイル: search.php プロジェクト: oanav/closetshare
 *
 *     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($_SERVER['REQUEST_URI'], 'search')) {
    osc_add_hook('header', 'osclasswizards_nofollow_construct');
} else {
    osc_add_hook('header', 'osclasswizards_follow_construct');
}
osclasswizards_add_body_class('category');
if (osclasswizards_show_as() == 'gallery') {
    $loop_template = 'loop-search-grid.php';
    $listClass = 'listing-grid';
    $buttonClass = 'active';
} else {
    $loop_template = 'loop-search-list.php';
    $listClass = '';
    $buttonClass = '';
}
osc_add_hook('before-main', 'sidebar');
function sidebar()
{
    osc_current_web_theme_path('search-sidebar.php');
}
osc_add_hook('footer', 'autocompleteCity');
コード例 #8
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', 'osclasswizards_nofollow_construct');
osclasswizards_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', 'osclasswizards');
?>
</h1>
    </div>
    <div class="resp-wrapper">
        <form action="<?php 
echo osc_base_url(true);
?>
" method="post" >
            <input type="hidden" name="page" value="login" />
コード例 #9
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', 'osclasswizards_nofollow_construct');
osc_enqueue_script('jquery-validate');
osclasswizards_add_body_class('user user-usernames');
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 username', OSCLASSWIZARDS_THEME_FOLDER);
}
osc_current_web_theme_path('header.php');
$osc_user = osc_user();
?>
<script type="text/javascript">
$(document).ready(function() {
コード例 #10
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', 'osclasswizards_nofollow_construct');
osclasswizards_add_body_class('user user-passowrd_change');
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', OSCLASSWIZARDS_THEME_FOLDER);
}
osc_current_web_theme_path('header.php');
$osc_user = osc_user();
?>

<div class="row">
コード例 #11
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', 'osclasswizards_nofollow_construct');
osc_enqueue_script('jquery-validate');
osclasswizards_add_body_class('user user-change_email');
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 e-mail', OSCLASSWIZARDS_THEME_FOLDER);
}
osc_current_web_theme_path('header.php');
$osc_user = osc_user();
?>

<div class="row">
コード例 #12
0
ファイル: user-recover.php プロジェクト: bomvendador/soroka_r
 *       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', 'osclasswizards_nofollow_construct');
osclasswizards_add_body_class('recover');
osc_current_web_theme_path('header.php');
?>

<div class="row">
  <div class="col-md-4 col-md-offset-4">
    <div class="wraps">
    <div class="title">
      <h1>
        <?php 
_e('Recover your password', OSCLASSWIZARDS_THEME_FOLDER);
?>
      </h1>
    </div>
    <div class="resp-wrapper">
      <form action="<?php 
コード例 #13
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', 'osclasswizards_nofollow_construct');
osclasswizards_add_body_class('user user-alerts');
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 __('Alerts', OSCLASSWIZARDS_THEME_FOLDER);
}
if (osclasswizards_show_as() == 'gallery') {
    $loop_template = 'loop-user-alerts-grid.php';
} else {
    $loop_template = 'loop-user-alerts-list.php';
}
コード例 #14
0
ファイル: user-items.php プロジェクト: syedfiraat4/bikade.com
 *       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', 'osclasswizards_nofollow_construct');
osclasswizards_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');
if (osclasswizards_show_as() == 'gallery') {
    $loop_template = 'loop-user-grid.php';
    $listClass = 'listing-grid';
    $buttonClass = 'active';
} else {
    $loop_template = 'loop-user-list.php';
    $listClass = '';
    $buttonClass = '';
}
コード例 #15
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', 'osclasswizards_nofollow_construct');
osclasswizards_add_body_class('register');
osc_enqueue_script('jquery-validate');
osc_current_web_theme_path('header.php');
?>

<div class="row">
  <div class="col-md-4 col-md-offset-4">
    <div class="wraps">
    <div class="title">
      <h1>
        <?php 
_e('Register an account for free', OSCLASSWIZARDS_THEME_FOLDER);
?>
      </h1>
    </div>
      <form name="register" action="<?php 
コード例 #16
0
ファイル: contact.php プロジェクト: oanav/closetshare
 *       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', 'osclasswizards_nofollow_construct');
osclasswizards_add_body_class('contact');
osc_enqueue_script('jquery-validate');
osc_current_web_theme_path('header.php');
?>

<div class="row">
  <div class="col-md-4 col-md-offset-4">
    <div class="wraps">
      <div class="title">
        <h1>
          <?php 
_e('Contact us', 'osclasswizards');
?>
        </h1>
      </div>
      <div class="resp-wrapper">
コード例 #17
0
ファイル: item.php プロジェクト: oanav/closetshare
 *        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', 'osclasswizards_nofollow_construct');
} else {
    osc_add_hook('header', 'osclasswizards_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');
osclasswizards_add_body_class('item');
//osc_add_hook('after-main','sidebar');
if (osclasswizards_show_as() == 'gallery') {
    $loop_template = 'loop-search-grid.php';
    $buttonClass = 'active';
} else {
    $loop_template = 'loop-search-list.php';
    $buttonClass = '';
}
function sidebar()
{
    osc_current_web_theme_path('item-sidebar.php');
}
osc_current_web_theme_path('header.php');
?>
<div class="row">
コード例 #18
0
ファイル: main.php プロジェクト: syedfiraat4/bikade.com
 *       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', 'osclasswizards_follow_construct');
osclasswizards_add_body_class('home');
if (osclasswizards_show_as() == 'gallery') {
    $loop_template = 'loop-grid.php';
    $listClass = 'listing-grid';
} else {
    $loop_template = 'loop-list.php';
    $listClass = '';
}
osc_current_web_theme_path('header.php');
osc_get_premiums(osclasswizards_premium_listings_shown_home());
if (osc_count_premiums() > 0) {
    ?>

<h1 class="title">
  <?php 
    _e('Premium Listings', OSCLASSWIZARDS_THEME_FOLDER);
コード例 #19
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', 'osclasswizards_nofollow_construct');
osclasswizards_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 __('Update account', OSCLASSWIZARDS_THEME_FOLDER);
}
osc_current_web_theme_path('header.php');
$osc_user = osc_user();
?>

<div class="row">
コード例 #20
0
ファイル: custom.php プロジェクト: oanav/closetshare
<?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/>.
 */
osclasswizards_add_body_class('custom');
osc_current_web_theme_path('header.php');
osc_render_file();
osc_current_web_theme_path('footer.php');