function osc_meta_edit($catId = null, $item_id = null) { osc_enqueue_script('php-date'); echo '<div class="row">'; FieldForm::meta_fields_input($catId, $item_id); echo '</div>'; }
function payment_pro_stripe_load_lib() { if (Params::getParam('page') == 'custom' && Params::getParam('route') == 'payment-pro-checkout') { osc_register_script('payment-pro-stripe', 'https://checkout.stripe.com/v2/checkout.js', array('jquery')); osc_enqueue_script('payment-pro-stripe'); } }
function __construct() { parent::__construct(); // check if is moderator and can enter to this page if ($this->isModerator()) { if (!in_array($this->page, osc_apply_filter('moderator_access', array('items', 'comments', 'media', 'login', 'admins', 'ajax', 'stats', '')))) { osc_add_flash_error_message(_m("You don't have enough permissions"), 'admin'); $this->redirectTo(osc_admin_base_url()); } } osc_run_hook('init_admin'); $config_version = str_replace('.', '', OSCLASS_VERSION); $config_version = preg_replace('|-.*|', '', $config_version); if ($config_version > osc_get_preference('version')) { if (get_class($this) == 'CAdminTools') { } else { if (get_class($this) != 'CAdminUpgrade') { $this->redirectTo(osc_admin_base_url(true) . '?page=upgrade'); } } } // show donation successful if (Params::getParam('donation') == 'successful') { osc_add_flash_ok_message(_m('Thank you very much for your donation'), 'admin'); } // enqueue scripts osc_enqueue_script('jquery'); osc_enqueue_script('jquery-ui'); osc_enqueue_script('admin-osc'); osc_enqueue_script('admin-ui-osc'); }
function payment_pro_blockchain_load_lib() { if (Params::getParam('page') == 'custom' && Params::getParam('route') == 'payment-pro-checkout') { osc_register_script('blockchain', 'https://blockchain.info/Resources/wallet/pay-now-button.js', array('jquery')); osc_enqueue_script('blockchain'); } }
function anr_load_scripts() { $language = anr_get_option('language'); $lang = ""; if ($language) { $lang = "?hl={$language}"; } osc_register_script('anr-google-recaptcha-script', "https://www.google.com/recaptcha/api.js{$lang}"); osc_enqueue_script('anr-google-recaptcha-script'); }
function __construct() { parent::__construct(); // check if is moderator and can enter to this page if( $this->isModerator() ) { if( !in_array($this->page, osc_apply_filter('moderator_access', array('items', 'comments', 'media', 'login', 'admins', 'ajax', 'stats',''))) ) { osc_add_flash_error_message(_m("You don't have enough permissions"), 'admin'); $this->redirectTo(osc_admin_base_url()); } } osc_run_hook( 'init_admin' ); // check if exist a new version each day if( (time() - osc_last_version_check()) > (24 * 3600) ) { $data = osc_file_get_contents('http://osclass.org/latest_version_v1.php?callback=?'); $data = preg_replace('|^\?\((.*?)\);$|', '$01', $data); $json = json_decode($data); if( $json->version > osc_version() ) { osc_set_preference( 'update_core_json', $data ); } else { osc_set_preference( 'update_core_json', '' ); } osc_set_preference( 'last_version_check', time() ); osc_reset_preferences(); } $config_version = str_replace('.', '', OSCLASS_VERSION); $config_version = preg_replace('|-.*|', '', $config_version); if( $config_version > osc_get_preference('version') ) { if(get_class($this) == 'CAdminTools') { } else { if(get_class($this) != 'CAdminUpgrade' ) $this->redirectTo(osc_admin_base_url(true) . '?page=upgrade'); } } // show donation successful if( Params::getParam('donation') == 'successful' ) { osc_add_flash_ok_message(_m('Thank you very much for your donation'), 'admin'); } // enqueue scripts osc_enqueue_script('jquery'); osc_enqueue_script('jquery-ui'); osc_enqueue_script('admin-osc'); osc_enqueue_script('admin-ui-osc'); }
/** * Load payment's js library */ function payment_load_js() { if (Params::getParam('page') == 'custom') { if (osc_get_preference('paypal_enabled', 'payment') == 1) { osc_register_script('paypal', 'https://www.paypalobjects.com/js/external/dg.js', array('jquery')); osc_enqueue_script('paypal'); } if (osc_get_preference('blockchain_enabled', 'payment') == 1) { osc_register_script('blockchain', 'https://blockchain.info/Resources/wallet/pay-now-button.js', array('jquery')); osc_enqueue_script('blockchain'); } if (osc_get_preference('braintree_enabled', 'payment') == 1) { //osc_register_script('braintree', 'https://blockchain.info/Resources/wallet/pay-now-button.js', array('jquery')); } } }
/** * Load payment's js library */ function payment_load_lib() { if (Params::getParam('page') == 'custom') { osc_enqueue_style('payment-plugin', osc_base_url() . 'oc-content/plugins/' . osc_plugin_folder(__FILE__) . 'style.css'); if (osc_get_preference('paypal_enabled', 'payment') == 1) { osc_register_script('paypal', 'https://www.paypalobjects.com/js/external/dg.js', array('jquery')); osc_enqueue_script('paypal'); } if (osc_get_preference('blockchain_enabled', 'payment') == 1) { osc_register_script('blockchain', 'https://blockchain.info/Resources/wallet/pay-now-button.js', array('jquery')); osc_enqueue_script('blockchain'); } if (osc_get_preference('stripe_enabled', 'payment') == 1) { osc_register_script('stripe', 'https://checkout.stripe.com/v2/checkout.js', array('jquery')); osc_enqueue_script('stripe'); } } }
<?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>
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"> <div class="col-sm-12 col-md-5"> <div class="item-photos"> <?php
function pop_admin_enqueue_assets() { if (Params::getParam('file') == 'oc-content/themes/pop/admin/color_settings.php' && Params::getParam('page') == 'appearance' && Params::getParam('action') == 'render') { osc_enqueue_style('pop_admin_css', osc_base_url() . 'oc-content/themes/pop/admin/css/admin.css'); osc_enqueue_script('colorpicker'); osc_enqueue_style('colorpicker', osc_assets_url('js/colorpicker/css/colorpicker.css')); } }
* Copyright 2014 Osclass * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ osc_enqueue_script('jquery-nested'); osc_enqueue_script('tabber'); $categories = __get('categories'); function addHelp() { echo '<p>' . __('Add, edit or delete the categories or subcategories in which users can post listings. Reorder sections by dragging and dropping, or nest a subcategory in an expanded category. <strong>Be careful</strong>: If you delete a category, all listings associated will also be deleted!') . '</p>'; } osc_add_hook('help_box', 'addHelp'); function customPageHeader() { ?> <h1><?php _e('Categories'); ?> <a href="#" class="btn ico ico-32 ico-help float-right"></a> <a href="<?php echo osc_admin_base_url(true);
'; var fileBtnText = '<?php echo osc_esc_js(__('Choose File', 'classified')); ?> '; </script> <?php osc_enqueue_style('style', osc_current_web_theme_url('style.css')); //osc_enqueue_style('tabs', osc_current_web_theme_url('tabs.css')); //osc_enqueue_style('jquery-ui-datepicker', osc_assets_url('css/jquery-ui/jquery-ui.css')); osc_register_script('jquery', osc_current_web_theme_js_url('jquery.js')); osc_enqueue_script('jquery'); osc_enqueue_script('jquery-ui'); osc_register_script('bootstrap-js', osc_base_url() . 'oc-content/themes/classified/bootstrap/bootstrap.min.js', 'jquery'); osc_enqueue_script('bootstrap-js'); osc_enqueue_script('tabber'); osc_enqueue_script('bootstrap-dialog'); osc_run_hook('header'); //FieldForm::i18n_datePicker(); ?> <?php /** * Custom Javascript from Theme Settings * Can be used for Chat or other JavaScript applications */ if (nc_osc_custom_javascript_enabled()) { echo nc_osc_get_custom_javascript(); }
function delete_user_js() { $location = Rewrite::newInstance()->get_location(); $section = Rewrite::newInstance()->get_section(); if ($location === 'user' && in_array($section, array('dashboard', 'profile', 'alerts', 'change_email', 'change_username', 'change_password', 'items')) || Params::getParam('page') === 'custom' && Params::getParam('in_user_menu') == true) { osc_enqueue_script('delete-user-js'); } }
* 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/>. */ osc_register_script('jquery-ad-gallery', osc_current_web_theme_js_url('jquery.ad-gallery.1.2.5.js'), array('jquery')); osc_register_script('tabber', osc_current_web_theme_js_url('tabber-minimized.js'), array('jquery')); osc_register_script('theme-global', osc_current_web_theme_js_url('global.js'), array('jquery')); osc_register_script('theme-ui', osc_current_web_theme_js_url('ui.js'), array('jquery')); osc_enqueue_script('jquery-ui'); osc_enqueue_script('tabber'); osc_enqueue_script('jquery-ad-gallery'); osc_enqueue_script('jquery-validate'); osc_enqueue_script('theme-global'); osc_enqueue_script('theme-ui'); osc_enqueue_style('style', osc_current_web_theme_styles_url('style.css')); ?> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title><?php echo meta_title(); ?> </title> <meta name="title" content="<?php echo meta_title(); ?> " /> <meta name="description" content="<?php echo meta_description(); ?>
<?php if (classified_is_fineuploader()) { if (!OC_ADMIN) { osc_enqueue_style('fine-uploader-css', osc_assets_url('js/fineuploader/fineuploader.css')); } osc_enqueue_script('jquery-fineuploader'); } function classified_is_fineuploader() { return Scripts::newInstance()->registered['jquery-fineuploader'] && method_exists('ItemForm', 'ajax_photos'); } osc_add_hook('init_admin', 'theme_classified_actions_admin'); osc_add_hook('init_admin', 'theme_classified_regions_map_admin'); if (function_exists('osc_admin_menu_appearance')) { osc_admin_menu_appearance(__('Header logo', 'classified'), osc_admin_render_theme_url('oc-content/themes/classified/admin/header.php'), 'header_classified'); osc_admin_menu_appearance(__('Theme settings', 'classified'), osc_admin_render_theme_url('oc-content/themes/classified/admin/settings.php'), 'settings_classified'); } else { function classified_admin_menu() { echo '<h3><a href="#">' . __('Classified theme', 'classified') . '</a></h3> <ul> <li><a href="' . osc_admin_render_theme_url('oc-content/themes/classified/admin/header.php') . '">» ' . __('Header logo', 'classified') . '</a></li> <li><a href="' . osc_admin_render_theme_url('oc-content/themes/classified/admin/settings.php') . '">» ' . __('Theme settings', 'classified') . '</a></li> </ul>'; } osc_add_hook('admin_menu', 'classified_admin_menu'); }
* Copyright 2014 Osclass * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ osc_enqueue_script('jquery-validate'); osc_enqueue_script('colorpicker'); osc_enqueue_style('colorpicker', osc_assets_url('js/colorpicker/css/colorpicker.css')); $maxPHPsize = View::newInstance()->_get('max_size_upload'); $imagickLoaded = extension_loaded('imagick'); $aGD = @gd_info(); $freeType = array_key_exists('FreeType Support', $aGD); //customize Head function customHead() { ?> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo osc_assets_url('js/colorpicker/css/colorpicker.css'); ?> " /> <script type="text/javascript"> $(document).ready(function(){
* Copyright 2014 Osclass * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ osc_enqueue_script('jquery-validate'); osc_enqueue_script('php-date'); // cateogry js $categories = Category::newInstance()->toTree(); $new_item = __get('new_item'); function customText($return = 'title') { $new_item = __get('new_item'); $text = array(); if ($new_item) { $text['title'] = __('Listing'); $text['subtitle'] = __('Add listing'); $text['button'] = __('Add listing'); } else { $text['title'] = __('Listing'); $text['subtitle'] = __('Edit listing'); $text['button'] = __('Update listing');
<?php $map_image = str_replace(osc_uploads_url(), osc_uploads_path(), pop_get_listing_map_image(osc_item_id())); if (!file_exists($map_image)) { pop_listing_location_img(osc_item()); } // 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')); 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="box photos <?php echo $class; ?> "> <div class="photos-slider"> <?php if (osc_count_item_resources() > 0) { ?> <ul class="bxslider">
<?php osc_enqueue_script('jquery-validate'); osc_enqueue_script('jquery-uniform'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="<?php echo str_replace('_', '-', osc_current_user_locale()); ?> "> <head> <?php osc_current_web_theme_path('head.php'); ?> <meta name="robots" content="noindex, nofollow" /> <meta name="googlebot" content="noindex, nofollow" /> </head> <body> <?php osc_current_web_theme_path('header.php'); ?> <section id="item-post-page" class="container"> <div class="row"> <form name="item" action="<?php echo osc_base_url(true); ?> " method="post" enctype="multipart/form-data">
<?php // check requirements if (!is_writable(ABS_PATH . 'oc-content/downloads/')) { osc_add_flash_error_message(sprintf(_m('<code>downloads</code> folder has to be writable, i.e.: <code>chmod a+w %soc-content/downloads/</code>'), ABS_PATH), 'admin'); } // fancybox osc_enqueue_script('fancybox'); osc_enqueue_style('fancybox', osc_assets_url('js/fancybox/jquery.fancybox.css')); osc_register_script('market-js', osc_current_admin_theme_js_url('market.js'), array('jquery', 'jquery-ui')); osc_enqueue_script('market-js'); osc_add_hook('admin_header', 'add_market_jsvariables'); function add_market_jsvariables() { $marketPage = Params::getParam("mPage"); $version_length = strlen(osc_version()); $main_version = substr(osc_version(), 0, $version_length - 2) . "." . substr(osc_version(), $version_length - 2, 1); if ($marketPage >= 1) { $marketPage--; } $action = Params::getParam("action"); $js_lang = array('by' => __('by'), 'ok' => __('Ok'), 'error_item' => __('There was a problem, try again later please'), 'wait_download' => __('Please wait until the download is completed'), 'downloading' => __('Downloading'), 'close' => __('Close'), 'download' => __('Download'), 'update' => __('Update'), 'last_update' => __('Last update'), 'downloads' => __('Downloads'), 'requieres_version' => __('Requires at least'), 'compatible_with' => __('Compatible up to'), 'screenshots' => __('Screenshots'), 'preview_theme' => __('Preview theme'), 'download_manually' => __('Download manually'), 'buy' => __('Buy'), 'proceed_anyway' => sprintf(__('Warning! This package is not compatible with your current version of Osclass (%s)'), $main_version), 'sure' => __('Are you sure?'), 'proceed_anyway_btn' => __('Ok, proceed anyway'), 'not_compatible' => sprintf(__('Warning! This theme is not compatible with your current version of Osclass (%s)'), $main_version), 'themes' => array('download_ok' => __('The theme has been downloaded correctly, proceed to activate or preview it.')), 'plugins' => array('download_ok' => __('The plugin has been downloaded correctly, proceed to install and configure.')), 'languages' => array('download_ok' => __('The language has been downloaded correctly, proceed to activate.'))); ?> <script type="text/javascript"> var theme = window.theme || {}; theme.adminBaseUrl = "<?php echo osc_admin_base_url(true); ?> "; theme.marketAjaxUrl = "<?php echo osc_admin_base_url(true);
<?php osc_enqueue_script('jquery-ui'); ?> <script> $(function() { $( "#main-tab" ).tabs(); }); </script> <style> #main-tab{font-size: 14px;} .ui-widget-header { background:#b9cd6d; border: 1px solid #b9cd6d; color: #FFFFFF; font-weight: bold; } .tabs-left { position: relative; padding-left: 6.5em; } .tabs-left .ui-tabs-nav { position: absolute; left: 0.25em; top: 0.25em; bottom: 0.25em; width: 10em; padding: 0.2em 0 0.2em 0.2em; } .tabs-left .ui-tabs-nav li { right: 1px;
* Osclass – software for creating and publishing online classified advertising platforms * * Copyright (C) 2012 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/>. */ osc_enqueue_script('jquery-treeview'); $fields = __get('fields'); $categories = __get('categories'); $selected = __get('default_selected'); function addHelp() { echo '<p>' . __('Create new fields for users to fill out when they publish a listing. You can require extra information such as the number of bedrooms in real estate listings or fuel type in car listings, for example.') . '</p>'; } osc_add_hook('help_box', 'addHelp'); function customPageHeader() { ?> <h1><?php _e('Listing'); ?> <a href="#" class="btn ico ico-32 ico-help float-right"></a>
* 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 $js_lang = array('delete' => __('Delete', 'pop'), 'cancel' => __('Cancel', 'pop')); osc_enqueue_script('jquery'); osc_enqueue_script('jquery-ui'); osc_register_script('global-theme-js', osc_current_web_theme_js_url('global.js'), 'jquery'); osc_register_script('delete-user-js', osc_current_web_theme_js_url('delete_user.js'), 'jquery-ui'); osc_enqueue_script('global-theme-js'); osc_register_script('imagesloaded-js', osc_current_web_theme_js_url('imagesloaded.pkgd.min.js')); osc_enqueue_script('imagesloaded-js'); osc_register_script('masonry-js', osc_current_web_theme_js_url('masonry.pkgd.min.js')); osc_enqueue_script('masonry-js'); ?> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title><?php echo meta_title(); ?> </title> <meta name="title" content="<?php echo osc_esc_html(meta_title()); ?> " /> <?php if (meta_description() != '') { ?> <meta name="description" content="<?php
"/> <?php } ?> <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Expires" content="Fri, Jan 01 1970 00:00:00 GMT" /> <script type="text/javascript"> var fileDefaultText = '<?php echo osc_esc_js(__('No file selected', 'modern')); ?> '; var fileBtnText = '<?php echo osc_esc_js(__('Choose File', 'modern')); ?> '; </script> <?php osc_enqueue_style('style', osc_current_web_theme_url('style.css')); osc_enqueue_style('tabs', osc_current_web_theme_url('tabs.css')); osc_enqueue_style('jquery-ui-datepicker', osc_assets_url('css/jquery-ui/jquery-ui.css')); osc_register_script('jquery-uniform', osc_current_web_theme_js_url('jquery.uniform.js'), 'jquery'); osc_register_script('global', osc_current_web_theme_js_url('global.js')); osc_enqueue_script('jquery'); osc_enqueue_script('jquery-ui'); osc_enqueue_script('jquery-uniform'); osc_enqueue_script('tabber'); osc_enqueue_script('global'); osc_run_hook('header'); FieldForm::i18n_datePicker();
* 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/>. */ osc_register_script('jquery-cookie', osc_plugin_url(__FILE__) . 'jquery.cookie.js', array('jquery')); osc_register_script('jquery-cookiecuttr', osc_plugin_url(__FILE__) . 'jquery.cookiecuttr.js', array('jquery', 'jquery-cookie')); osc_enqueue_style('cookiecuttr-style', osc_plugin_url(__FILE__) . 'cookiecuttr.css'); osc_enqueue_script('jquery-cookiecuttr'); function cookie_load() { ?> <script type="text/javascript" > $(document).ready(function () { var options = new Object(); <?php if (osc_get_preference('accept', 'cookie') == 1) { echo 'options.cookieAcceptButton = true;'; } if (osc_get_preference('decline', 'cookie') == 1) { echo 'options.cookieDeclineButton = true;'; } if (osc_get_preference('reset', 'cookie') == 1) { echo 'options.cookieResetButton = true;';
/* * Copyright 2014 Osclass * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ osc_enqueue_script('tiny_mce'); function customPageHeader() { ?> <h1><?php _e('Settings'); ?> </h1> <?php } osc_add_hook('admin_page_header', 'customPageHeader'); //customize Head function customHead() { ?> <script type="text/javascript">
* Copyright 2014 Osclass * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ osc_enqueue_script('jquery-validate'); osc_enqueue_script('admin-location'); $aCountries = __get('aCountries'); //customize Head function customHead() { ?> <script type="text/javascript"> $(document).ready(function(){ // dialog delete $("#dialog-location-delete").dialog({ autoOpen: false, modal: true, title: '<?php echo osc_esc_js(__('Delete location')); ?> '
/* * Copyright 2014 Osclass * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ osc_enqueue_script('jquery-validate'); //customize Head function customHead() { ?> <script type="text/javascript"> $(document).ready(function(){ // Code for form validation $("form[name=comments_form]").validate({ rules: { num_moderate_comments: { required: true, digits: true }, comments_per_page: { required: true,
function load_admin_script() { osc_enqueue_style('admin', osc_base_url() . 'oc-content/themes/classified/admin/style.css'); osc_register_script('admin', osc_base_url() . 'oc-content/themes/classified/admin/admin.js'); osc_register_script('facebook-admin', osc_base_url() . 'oc-content/themes/classified/admin/facebook.js'); osc_enqueue_script('admin'); osc_enqueue_script('facebook-admin'); }