Example #1
0
/**
 * 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');
        }
    }
}
Example #2
0
function seo_init_admin()
{
    //scripts
    osc_enqueue_style('seoCSS', osc_plugin_url(SEO_PLUGIN_FOLDER . '/css/style.css') . 'style.css');
    //admin menu pages
    osc_add_admin_menu_page(__('SEO Wiz', SEO_PLUGIN_FOLDER), osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'configure.php'), 'seo_dashboard');
    osc_add_admin_submenu_page('seo_dashboard', __('Configure Plugin', SEO_PLUGIN_FOLDER), osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'configure.php'), 'configure');
    osc_add_admin_submenu_page('seo_dashboard', __('Titles & Metas', SEO_PLUGIN_FOLDER), osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'titles_metas.php'), 'titles_metas');
    //form actions
    switch (Params::getParam('seo_action')) {
        //configure page
        case 'seo_configure':
            $page_title_separator = Params::getParam('page_title_separator', false, false, false);
            osc_set_preference('page_title_separator', $page_title_separator, 'seo_plugin');
            osc_add_flash_ok_message(__('Saved correctly', SEO_PLUGIN_FOLDER), 'admin');
            osc_redirect_to(osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'configure.php'));
            break;
            //titles_metas_home
        //titles_metas_home
        case 'titles_metas_home':
            $seo_titles = Params::getParam('seo_titles');
            if (!empty($seo_titles)) {
                foreach ($seo_titles as $key => $value) {
                    osc_set_preference($key, trim($value), 'seo_plugin');
                }
            }
            osc_add_flash_ok_message(__('Saved correctly', SEO_PLUGIN_FOLDER), 'admin');
            osc_redirect_to(osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'titles_metas.php#home'));
            break;
            //titles_metas_pages
        //titles_metas_pages
        case 'titles_metas_pages':
            $seo_titles = Params::getParam('seo_titles');
            if (!empty($seo_titles)) {
                foreach ($seo_titles as $key => $value) {
                    osc_set_preference($key, trim($value), 'seo_plugin');
                }
            }
            osc_add_flash_ok_message(__('Saved correctly', SEO_PLUGIN_FOLDER), 'admin');
            osc_redirect_to(osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'titles_metas.php#pages'));
            break;
    }
}
Example #3
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/>.
 */
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) {
Example #4
0
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');
}
Example #5
0
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
/**
DEFINES
*/
define('OSCLASSWIZARDS_THEME_VERSION', '2.0.2');
define('OSCLASSWIZARDS_THEME_FOLDER', 'osclasswizards');
if (!osc_get_preference('keyword_placeholder', 'osclasswizards_theme')) {
    osc_set_preference('keyword_placeholder', __('ie. PHP Programmer', OSCLASSWIZARDS_THEME_FOLDER), 'osclasswizards_theme');
}
osc_enqueue_style('font-awesome', osc_current_web_theme_url('css/font-awesome/css/font-awesome.min.css'));
// used for date/dateinterval custom fields
osc_enqueue_script('php-date');
if (!OC_ADMIN) {
    osc_enqueue_style('fine-uploader-css', osc_assets_url('js/fineuploader/fineuploader.css'));
    osc_enqueue_style('osclasswizards-fine-uploader-css', osc_current_web_theme_url('css/ajax-uploader.css'));
}
osc_enqueue_script('jquery-fineuploader');
/**
** DEFAULT VALUES
**/
if (!osc_get_preference('welcome_message', 'osclasswizards_theme')) {
    osc_set_preference('welcome_message', 'Hello Guest, Welcome to OsclassWizards', 'osclasswizards_theme');
}
if (!osc_get_preference('sub_cat_limit', 'osclasswizards_theme')) {
    osc_set_preference('sub_cat_limit', 5, 'osclasswizards_theme');
}
if (!osc_get_preference('popular_regions_limit', 'osclasswizards_theme')) {
    osc_set_preference('popular_regions_limit', 10, 'osclasswizards_theme');
}
if (!osc_get_preference('popular_cities_limit', 'osclasswizards_theme')) {
Example #6
0
<?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_register_script('fancybox', osc_current_admin_theme_js_url('fancybox/jquery.fancybox.js'));
osc_enqueue_script('fancybox');
osc_enqueue_style('fancybox', osc_current_admin_theme_js_url('fancybox/jquery.fancybox.css'));
osc_register_script('market-js', osc_current_admin_theme_js_url('market.js'));
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'), '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 
Example #7
0
"/>
<?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();
Example #8
0
<?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);
Example #9
0
$location = array();
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">
Example #10
0
/**
DEFINES
*/
define('BENDER_THEME_VERSION', '310');
if ((string) osc_get_preference('keyword_placeholder', 'bender') == "") {
    Params::setParam('keyword_placeholder', __('ie. PHP Programmer', 'bender'));
}
osc_register_script('fancybox', osc_current_web_theme_url('js/fancybox/jquery.fancybox.pack.js'), array('jquery'));
osc_enqueue_style('fancybox', osc_current_web_theme_url('js/fancybox/jquery.fancybox.css'));
osc_enqueue_script('fancybox');
osc_enqueue_style('font-awesome', osc_current_web_theme_url('css/font-awesome-4.1.0/css/font-awesome.min.css'));
// used for date/dateinterval custom fields
osc_enqueue_script('php-date');
if (!OC_ADMIN) {
    osc_enqueue_style('fine-uploader-css', osc_assets_url('js/fineuploader/fineuploader.css'));
    osc_enqueue_style('bender-fine-uploader-css', osc_current_web_theme_url('css/ajax-uploader.css'));
}
osc_enqueue_script('jquery-fineuploader');
/**
FUNCTIONS
*/
// install options
if (!function_exists('bender_theme_install')) {
    function bender_theme_install()
    {
        osc_set_preference('keyword_placeholder', Params::getParam('keyword_placeholder'), 'bender');
        osc_set_preference('version', BENDER_THEME_VERSION, 'bender');
        osc_set_preference('footer_link', '1', 'bender');
        osc_set_preference('donation', '0', 'bender');
        osc_set_preference('defaultShowAs@all', 'list', 'bender');
        osc_set_preference('defaultShowAs@search', 'list');
Example #11
0
function init_js()
{
    if (osclass_pm_is_inbox() || osclass_pm_is_outbox() || osclass_pm_is_drafts() || osclass_pm_is_send() || osclass_pm_is_messages() || osclass_pm_is_pmSettings()) {
        osc_register_script('dataTables', osc_base_url() . 'oc-content/plugins/osclass_pm/js/jquery.dataTables.min.js', 'jquery');
        osc_enqueue_script('dataTables');
        osc_enqueue_style('pmTables', osc_base_url() . 'oc-content/plugins/osclass_pm/css/pmTables.css');
    }
}
Example #12
0
/**
 * Admin script and css loading
 */
function minify_admin_header()
{
    osc_enqueue_script('prism');
    osc_enqueue_style('prism', osc_plugin_url('lz_item_code/admin/assets/css') . 'css/prism' . (minify_is_live() ? '.min' : '') . '.css');
}
Example #13
0
/**
*
* Script and CSS for admin pages
*/
function load_admin_script()
{
    osc_register_script('tiny_mce', osc_base_url() . 'oc-includes/osclass/assets/js/tiny_mce/tiny_mce.js');
    osc_enqueue_script('tiny_mce');
    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_enqueue_script('admin');
    osc_register_script('facebook-admin', osc_base_url() . 'oc-content/themes/classified/admin/facebook.js');
    osc_enqueue_script('facebook-admin');
}
Example #14
0
if (file_exists(ABS_PATH . '.maintenance')) {
    define('__OSC_MAINTENANCE__', true);
}
// register admin scripts
osc_register_script('admin-osc', osc_current_admin_theme_js_url('osc.js'), 'jquery');
osc_register_script('admin-ui-osc', osc_current_admin_theme_js_url('ui-osc.js'), 'jquery');
osc_register_script('admin-location', osc_current_admin_theme_js_url('location.js'), 'jquery');
// enqueue scripts
osc_enqueue_script('jquery');
osc_enqueue_script('jquery-ui');
osc_enqueue_script('admin-osc');
osc_enqueue_script('admin-ui-osc');
osc_add_hook('admin_footer', array('FieldForm', 'i18n_datePicker'));
// enqueue css styles
osc_enqueue_style('jquery-ui', osc_assets_url('css/jquery-ui/jquery-ui.css'));
osc_enqueue_style('admin-css', osc_current_admin_theme_styles_url('main.css'));
switch (Params::getParam('page')) {
    case 'items':
        require_once osc_admin_base_path() . 'items.php';
        $do = new CAdminItems();
        $do->doModel();
        break;
    case 'comments':
        require_once osc_admin_base_path() . 'comments.php';
        $do = new CAdminItemComments();
        $do->doModel();
        break;
    case 'media':
        require_once osc_admin_base_path() . 'media.php';
        $do = new CAdminMedia();
        $do->doModel();
Example #15
0
if (!osc_get_preference('keyword_placeholder', 'osclasswizards_theme')) {
    osc_set_preference('keyword_placeholder', __('ie. PHP Programmer', 'osclasswizards'), 'osclasswizards_theme');
}
osc_register_script('fancybox', osc_current_web_theme_url('js/fancybox/jquery.fancybox.pack.js'), array('jquery'));
osc_enqueue_style('fancybox', osc_current_web_theme_url('js/fancybox/jquery.fancybox.css'));
osc_enqueue_script('fancybox');
osc_enqueue_style('font-awesome', osc_current_web_theme_url('css/font-awesome-4.1.0/css/font-awesome.min.css'));
// used for date/dateinterval custom fields
osc_enqueue_script('php-date');
if (!OC_ADMIN) {
    osc_enqueue_style('fine-uploader-css', osc_assets_url('js/fineuploader/fineuploader.css'));
    osc_enqueue_style('osclasswizards-fine-uploader-css', osc_current_web_theme_url('css/ajax-uploader.css'));
}
osc_enqueue_script('jquery-fineuploader');
osc_register_script('sweetalert', osc_current_web_theme_url('js/sweetalert/sweetalert.min.js'));
osc_enqueue_style('sweetalert', osc_current_web_theme_url('js/sweetalert/sweetalert.css'));
osc_enqueue_script('sweetalert');
/**
FUNCTIONS
*/
// install options
if (!function_exists('osclasswizards_theme_install')) {
    function osclasswizards_theme_install()
    {
        osc_set_preference('keyword_placeholder', Params::getParam('keyword_placeholder'), 'osclasswizards_theme');
        osc_set_preference('version', OSCLASSWIZARDS_THEME_VERSION, 'osclasswizards_theme');
        osc_set_preference('footer_link', '1', 'osclasswizards_theme');
        osc_set_preference('donation', '0', 'osclasswizards_theme');
        osc_set_preference('defaultShowAs@all', 'list', 'osclasswizards_theme');
        osc_set_preference('defaultShowAs@search', 'list');
        osc_set_preference('welcome_message', 'Hello Guest, Welcome to OsclassWizards', 'osclasswizards_theme');
Example #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/>.
 */
$locales = __get('locales');
$user = osc_user();
osc_enqueue_style('jquery-ui-custom', osc_current_web_theme_styles_url('jquery-ui/jquery-ui-1.8.20.custom.css'));
?>
<!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 
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'));
    }
}
Example #18
0
 function mdh_emailmagick_admin_controller()
 {
     if (preg_match('/^' . mdh_current_plugin_name() . '.*$/', Params::getParam("route"))) {
         osc_add_hook("admin_header", function () {
             osc_enqueue_script(mdh_current_plugin_name() . "_admin");
             osc_enqueue_style(mdh_current_plugin_name() . "_admin", mdh_current_plugin_url("assets/css/admin.css"));
         });
         $filter = function ($string) {
             return __("Madhouse EmailMagick", mdh_current_plugin_name());
         };
         // Page title (in <head />)
         osc_add_filter("admin_title", $filter);
         // Page title (in <h1 />)
         osc_add_filter("custom_plugin_title", $filter);
         osc_add_filter("admin_body_class", function ($classes) {
             array_push($classes, "madhouse");
             return $classes;
         });
         // Add a .row-offset to wrapping <div /> element.
         osc_add_filter("render-wrapper", function ($string) {
             return "row-offset";
         });
         $do = new Madhouse_EmailMagick_Controllers_Admin();
         $do->doModel();
     }
 }
Example #19
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_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');
Example #20
0
<?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') . '">&raquo; ' . __('Header logo', 'classified') . '</a></li>
                <li><a href="' . osc_admin_render_theme_url('oc-content/themes/classified/admin/settings.php') . '">&raquo; ' . __('Theme settings', 'classified') . '</a></li>
            </ul>';
    }
    osc_add_hook('admin_menu', 'classified_admin_menu');
}
Example #21
0
 *             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();
?>
" />
Example #22
0
 *
 * 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(){
                // Code for form validation
Example #23
0
<?php

// meta tag robots
osc_add_hook('header', 'flatter_nofollow_construct');
osc_enqueue_script('tabber');
osc_enqueue_style('tabs', osc_current_web_theme_url('css/tabs.css'));
flatter_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_enqueue_script('jquery-validate');
osc_current_web_theme_path('header.php');
if (osc_get_preference('location_input', 'flatter_theme') == '1') {
    ItemForm::location_javascript();
} else {
    ItemForm::location_javascript_new();
}
?>
<div class="itempost">
	<div class="container">
    	<div class="row">
        	<div class="col-md-12 col-sm-12 col-xs-12 page-title">
        		<h2><?php 
if ($edit) {
    ?>
 <?php 
    _e('Edit your listing', 'flatter');
    ?>
Example #24
0
function jqToolTip()
{
    osc_enqueue_script('jquery');
    osc_enqueue_script('jquery-ui');
    osc_register_script('jqToolTip', osc_base_url() . 'oc-content/plugins/' . osc_plugin_folder(__FILE__) . 'jqToolTip.js', array('jquery', 'jquery-ui'));
    osc_enqueue_script('jqToolTip');
    //osc_register_script('jqToolTip', osc_base_url().'oc-content/plugins/'.osc_plugin_folder(__FILE__).'jqToolTip.js', array('jquery', 'jquery-ui'));
    //echo '<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>';
    //echo '<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />';
    //echo '<script type="text/javascript" src="'.osc_base_url().'oc-content/plugins/ToolTip/jqToolTip.js"></script>';
    //echo '<link href="'.osc_base_url().'oc-content/plugins/ToolTip/jqToolTip.css" rel="stylesheet" type="text/css" />';
    osc_enqueue_style('custom-jquery-tooltip', osc_base_url() . 'oc-content/plugins/' . osc_plugin_folder(__FILE__) . 'jqToolTip.css');
}