* * 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 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 = '';
/** * Get the status of the row. There are five status: * - spam * - blocked * - inactive * - premium * - active * * @since 3.2 * * @return array Array with the class and text of the status of the listing in this row. Example: * array( * 'class' => '', * 'text' => '' * ) */ private function get_row_status() { if( osc_item_is_spam() ) { return array( 'class' => 'status-spam', 'text' => __('Spam') ); } if( !osc_item_is_enabled() ) { return array( 'class' => 'status-blocked', 'text' => __('Blocked') ); } if( !osc_item_is_active() ) { return array( 'class' => 'status-inactive', 'text' => __('Inactive') ); } if( osc_item_is_premium() ) { return array( 'class' => 'status-premium', 'text' => __('Premium') ); } return array( 'class' => 'status-active', 'text' => __('Active') ); }