当前位置: 首页>>代码示例>>PHP>>正文


PHP osclasswizards_add_body_class函数代码示例

本文整理汇总了PHP中osclasswizards_add_body_class函数的典型用法代码示例。如果您正苦于以下问题:PHP osclasswizards_add_body_class函数的具体用法?PHP osclasswizards_add_body_class怎么用?PHP osclasswizards_add_body_class使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了osclasswizards_add_body_class函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: osc_add_hook

 *     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 
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:item-post.php

示例2: osc_add_hook

 *
 *                        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');
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:page.php

示例3: osc_add_hook

 *       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);
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:user-login.php

示例4: osc_add_hook

/*
 *      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');
开发者ID:oanav,项目名称:closetshare,代码行数:30,代码来源:user-custom.php

示例5: osclasswizards_delete

    }
}
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;
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:31,代码来源:functions.php

示例6: osc_add_hook

 *       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);
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:31,代码来源:404.php

示例7: osc_add_hook

 *
 *     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');
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:search.php

示例8: osc_add_hook

 *       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" />
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:user-forgot_password.php

示例9: osc_add_hook

 *     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() {
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:31,代码来源:user-change_username.php

示例10: osc_add_hook

 *       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">
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:31,代码来源:user-change_password.php

示例11: osc_add_hook

 *     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">
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:31,代码来源:user-change_email.php

示例12: osc_add_hook

 *       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 
开发者ID:bomvendador,项目名称:soroka_r,代码行数:31,代码来源:user-recover.php

示例13: osc_add_hook

 *       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';
}
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:31,代码来源:user-alerts.php

示例14: osc_add_hook

 *       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 = '';
}
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:31,代码来源:user-items.php

示例15: osc_add_hook

 *       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 
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:31,代码来源:user-register.php


注:本文中的osclasswizards_add_body_class函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。