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');
    }
}
Exemple #2
0
/**
 * Gets a minify url with all the scripts in the queue
 * @return string Url
 */
function minify_scripts()
{
    $scripts = minify_filter_external_js();
    osc_register_script('minify_scripts', osc_route_url('minify_scripts', array('minify_files' => implode(',', minify_clean_url($scripts)))));
    osc_enqueue_script('minify_scripts');
    return;
}
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');
    }
}
Exemple #4
0
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');
}
Exemple #5
0
/**
 * 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'));
        }
    }
}
Exemple #6
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');
        }
    }
}
Exemple #7
0
?>
';
    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();
osc_add_hook('header', 'osc_load_styles', 9);
osc_add_hook('header', 'osc_load_scripts', 10);
// register scripts
osc_register_script('jquery', osc_assets_url('js/jquery.min.js'));
osc_register_script('jquery-ui', osc_assets_url('js/jquery-ui.min.js'), 'jquery');
osc_register_script('jquery-json', osc_assets_url('js/jquery.json.js'), 'jquery');
osc_register_script('jquery-treeview', osc_assets_url('js/jquery.treeview.js'), 'jquery');
osc_register_script('jquery-nested', osc_assets_url('js/jquery.ui.nestedSortable.js'), 'jquery');
osc_register_script('jquery-validate', osc_assets_url('js/jquery.validate.min.js'), 'jquery');
osc_register_script('tabber', osc_assets_url('js/tabber-minimized.js'), 'jquery');
osc_register_script('tiny_mce', osc_assets_url('js/tiny_mce/tiny_mce.js'));
osc_register_script('colorpicker', osc_assets_url('js/colorpicker/js/colorpicker.js'));
osc_register_script('fancybox', osc_assets_url('js/fancybox/jquery.fancybox.pack.js'), array('jquery'));
osc_register_script('jquery-migrate', osc_assets_url('js/jquery-migrate.min.js'), array('jquery'));
osc_register_script('php-date', osc_assets_url('js/date.js'));
osc_register_script('jquery-fineuploader', osc_assets_url('js/fineuploader/jquery.fineuploader.min.js'), 'jquery');
Plugins::init();
osc_csrfguard_start();
if (OC_ADMIN) {
    // init admin menu
    AdminMenu::newInstance()->init();
    $functions_path = AdminThemes::newInstance()->getCurrentThemePath() . 'functions.php';
    if (file_exists($functions_path)) {
        require_once $functions_path;
    }
} else {
    Rewrite::newInstance()->init();
}
if (!class_exists('PHPMailer')) {
    require_once osc_lib_path() . 'phpmailer/class.phpmailer.php';
}
 *
 *      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() != '') {
    ?>
Exemple #10
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/>.
 */
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 
Exemple #11
0
osc_register_script('ajaxload-js', osc_current_web_theme_js_url('ajax-load.js'));
osc_enqueue_script('ajaxload-js');
osc_register_script('location-js', osc_current_web_theme_js_url('location.js'));
osc_register_script('imagesloaded-js', osc_current_web_theme_js_url('imagesloaded.pkgd.min.js'));
osc_enqueue_script('imagesloaded-js');
osc_register_script('imgLiquid-js', osc_current_web_theme_js_url('imgLiquid-min.js'));
//osc_enqueue_script('imgLiquid-js');
osc_register_script('imagefill-js', osc_current_web_theme_js_url('jquery-imagefill.js'));
osc_enqueue_script('imagefill-js');
osc_register_script('masonry-js', osc_current_web_theme_js_url('masonry.pkgd.min.js'));
osc_enqueue_script('masonry-js');
osc_register_script('materialize-js', osc_current_web_theme_js_url('materialize.min.js'));
osc_enqueue_script('materialize-js');
osc_register_script('sweetalert', osc_current_web_theme_js_url('sweetalert/sweetalert.min.js'));
osc_enqueue_script('sweetalert');
osc_register_script('salvattore-js', osc_current_web_theme_js_url('salvattore.min.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 
Exemple #12
0
    <?php 
    }
}
function osc_meta_generator()
{
    echo '<meta name="generator" content="Osclass ' . OSCLASS_VERSION . '" />';
}
osc_add_hook('header', 'osc_show_maintenance');
osc_add_hook('header', 'osc_show_maintenance_css');
osc_add_hook('header', 'osc_meta_generator');
osc_add_hook('header', 'osc_load_scripts', 10);
osc_add_hook('header', 'osc_load_styles', 10);
// register scripts
osc_register_script('jquery', osc_assets_url('js/jquery.min.js'));
osc_register_script('jquery-ui', osc_assets_url('js/jquery-ui.min.js'), 'jquery');
osc_register_script('jquery-json', osc_assets_url('js/jquery.json.js'), 'jquery');
osc_register_script('jquery-treeview', osc_assets_url('js/jquery.treeview.js'), 'jquery');
osc_register_script('jquery-nested', osc_assets_url('js/jquery.ui.nestedSortable.js'), 'jquery');
osc_register_script('jquery-validate', osc_assets_url('js/jquery.validate.min.js'), 'jquery');
osc_register_script('tabber', osc_assets_url('js/tabber-minimized.js'), 'jquery');
osc_register_script('tiny_mce', osc_assets_url('js/tiny_mce/tiny_mce.js'));
osc_register_script('colorpicker', osc_assets_url('js/colorpicker/js/colorpicker.js'));
Plugins::init();
osc_csrfguard_start();
if (!class_exists('PHPMailer')) {
    require_once osc_lib_path() . 'phpmailer/class.phpmailer.php';
}
if (!class_exists('SMTP')) {
    require_once osc_lib_path() . 'phpmailer/class.smtp.php';
}
/* file end: ./oc-load.php */
Exemple #13
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.
 */
define('ABS_PATH', str_replace('\\', '/', dirname(dirname($_SERVER['SCRIPT_FILENAME'])) . '/'));
define('OC_ADMIN', true);
require_once ABS_PATH . 'oc-load.php';
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;
Exemple #14
0
define('OSCLASSWIZARDS_THEME_VERSION', '1.0.7');
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');
Exemple #15
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');
}
Exemple #16
0
    echo 'var watchlist_url = "' . osc_ajax_plugin_url('watchlist/ajax_watchlist.php') . '";';
    echo '</script>';
    echo '<!-- Watchlist js end -->';
}
function watchlist_delete_item($item)
{
    $conn = getConnection();
    $conn->osc_dbExec("DELETE FROM %st_item_watchlist WHERE fk_i_item_id = '{$item}'", DB_TABLE_PREFIX);
}
function watchlist_help()
{
    osc_admin_render_plugin(osc_plugin_path(dirname(__FILE__)) . '/help.php');
}
// This is needed in order to be able to activate the plugin
osc_register_plugin(osc_plugin_path(__FILE__), 'watchlist_call_after_install');
// This is a hack to show a Uninstall link at plugins table (you could also use some other hook to show a custom option panel)
osc_add_hook(osc_plugin_path(__FILE__) . '_uninstall', 'watchlist_call_after_uninstall');
// This is a hack to show a Configure link at plugins table (you could also use some other hook to show a custom option panel)
osc_add_hook(osc_plugin_path(__FILE__) . '_configure', 'watchlist_help');
// Add link in user menu page
osc_add_hook('user_menu', 'watchlist_user_menu');
// add javascript
if (osc_version() < 311) {
    osc_add_hook('footer', 'watchlist_footer');
} else {
    osc_add_hook('scripts_loaded', 'watchlist_scripts_loaded');
    osc_register_script('watchlist', osc_plugin_url('watchlist/js/watchlist.js') . 'watchlist.js', array('jquery'));
    osc_enqueue_script('watchlist');
}
//Delete item
osc_add_hook('delete_item', 'watchlist_delete_item');
 public function __construct()
 {
     osc_register_script('admin-users-premium-js', DLN_CLF_PLUGIN_DIR . 'assets/js/admin-user-premium.js');
 }
Exemple #18
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');
}
Exemple #19
0
 *                        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_register_script('fancybox', osc_current_web_theme_js_url('fancybox/jquery.fancybox.js'), array('jquery'));
osc_enqueue_script('fancybox');
osc_enqueue_script('jquery-validate');
osc_enqueue_style('fancybox', osc_current_web_theme_js_url('fancybox/jquery.fancybox.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');
?>

        <script type="text/javascript">
    <?php 
osc_register_script('jquery-validate', osc_base_url() . 'oc-content/themes/classified/js/jquery.validate.min.js', 'jquery');
?>
    <?php 
osc_enqueue_script('jquery-validate');
?>

    <script type="text/javascript">
            $(document).ready(function() {
                $('#form-signin').validate({
                     submitHandler : function(form)
                    {
                            $.getJSON(
                                "<?php 
echo osc_base_url(true);
?>
?page=ajax&action=check_username_availability",
                                {"s_username": $("#s_name").val()},
                                function(data){
                                    clearInterval(cInterval);
                                    console.log(data);
                                    if(data.exists==0) {
                                         $('button[type=submit], input[type=submit]').attr('disabled', 'disabled');
                                        form.submit();
                                    } else {
                                        $("#available").text('<?php 
echo osc_esc_js(__("The username is NOT available", "classified"));
?>
');
                                        return false;
                                        
Exemple #21
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');
    }
}
Exemple #22
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/>.
 */
?>

<?php 
$js_lang = array('delete' => __('Delete', 'osclassclsx'), 'cancel' => __('Cancel', 'osclassclsx'));
osc_register_script('jquery', osc_current_web_theme_url('assets/js/jquery.js'));
osc_enqueue_script('jquery');
// osc_enqueue_script('jquery-ui');
osc_register_script('foundation-js', osc_current_web_theme_url('assets/js/foundation.js'));
osc_enqueue_script('foundation-js');
osc_register_script('main-theme-js', osc_current_web_theme_url('assets/js/main.js'), 'jquery');
osc_register_script('delete-user-js', osc_current_web_theme_url('assets/js/delete_user.js'), 'jquery');
osc_enqueue_script('main-theme-js');
?>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title><?php 
echo meta_title();
?>
</title>

<meta name="title" content="<?php 
echo osc_esc_html(meta_title());
?>
" />
Exemple #23
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;';
    }
Exemple #24
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/>.
 */
?>

<?php 
$js_lang = array('delete' => __('Delete', 'bender'), 'cancel' => __('Cancel', 'bender'));
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');
?>
<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() != '') {
    ?>
    osc_set_preference('keyword_placeholder', __('ie. PHP Programmer', 'pop'), 'pop_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('pop-fine-uploader-css', osc_current_web_theme_url('css/ajax-uploader.css'));
}
osc_enqueue_script('jquery-fineuploader');
osc_register_script('jquery-bxslider', osc_current_web_theme_js_url('jquery.bxslider.js'));
osc_register_script('jquery-metadata', osc_current_web_theme_js_url('jquery.metadata.js'));
osc_register_script('bootstrap-js', osc_current_web_theme_js_url('bootstrap.js'));
osc_enqueue_script('bootstrap-js');
osc_add_hook('header', 'pop_custom_styles');
/* FUNCTIONS */
// install options
if (!function_exists('pop_theme_install')) {
    function pop_theme_install()
    {
        osc_set_preference('keyword_placeholder', __('Search ...', 'pop'), 'pop_theme');
        osc_set_preference('version', POP_THEME_VERSION, 'pop_theme');
        osc_set_preference('footer_link', '1', 'pop_theme');
        osc_set_preference('donation', '0', 'pop_theme');
        osc_set_preference('pop_max_premium', '2', 'pop_theme');
        osc_set_preference('logo', '', 'pop_theme');
        osc_reset_preferences();
    }
Exemple #26
0
         $do->doModel();
     }
 }
 osc_add_hook("renderplugin_controller", "mdh_emailmagick_admin_controller");
 osc_add_route(mdh_current_plugin_name(), 'emailmagick/?', 'emailmagick/', mdh_current_plugin_name() . '/views/admin/settings.php');
 osc_add_route(mdh_current_plugin_name() . "_do", 'emailmagick/do/?', 'emailmagick/do/', mdh_current_plugin_name() . '/views/admin/settings.php');
 osc_add_route(mdh_current_plugin_name() . "_init", 'emailmagick/init?', 'emailmagick/init/', mdh_current_plugin_name() . '/views/admin/init.php');
 /*
  * ==========================================================================
  *  REGISTER & ENQUEUE
  * ==========================================================================
  */
 if (OC_ADMIN && preg_match('/^' . mdh_current_plugin_name() . '.*$/', Params::getParam("route"))) {
     osc_register_script("jquery", mdh_current_plugin_url("vendor/bower_components/jquery/dist/jquery.js"));
 }
 osc_register_script(mdh_current_plugin_name() . "_admin", mdh_current_plugin_url("assets/js/min/admin-min.js"));
 madhouse_register_mustache(mdh_current_plugin_name() . "_edit_email", mdh_current_plugin_path("assets/mustache/email-edit.mustache", false));
 madhouse_register_mustache(mdh_current_plugin_name() . "_edit_footer", mdh_current_plugin_path("assets/mustache/edit-footer.mustache", false));
 /*
  * ==========================================================================
  *  USER AND ADMIN MENU
  * ==========================================================================
  */
 /**
  * Adds a submenu to the Madhouse main admin menu.
  * (hook: admin_menu_init)
  */
 function mdh_emailmagick_admin_init()
 {
     osc_add_admin_submenu_divider('madhouse', "EmailMagick", mdh_current_plugin_name(), 'administrator');
     osc_add_admin_submenu_page('madhouse', __('Manage your emails', mdh_current_plugin_name()), mdh_emailmagick_url(), mdh_current_plugin_name(), 'administrator');
Exemple #27
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);
Exemple #28
0
 *        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/>.
 */
$js_lang = array('delete' => __('Delete', OSCLASSWIZARDS_THEME_FOLDER), 'cancel' => __('Cancel', OSCLASSWIZARDS_THEME_FOLDER));
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_enqueue_script('bootstrap-theme-js');
osc_register_script('bootstrap-theme-js', osc_current_web_theme_js_url('bootstrap.min.js'), 'jquery');
osc_enqueue_script('checkbox-theme-js');
osc_register_script('checkbox-theme-js', osc_current_web_theme_js_url('checkbox.js'), 'jquery');
?>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<?php 
osc_run_hook('osclasswizards_head');
if (osc_get_canonical() != '') {
    ?>
<!-- canonical -->
<link rel="canonical" href="<?php 
    echo osc_get_canonical();
    ?>
"/>
<!-- /canonical -->
<?php 
}
?>
Exemple #29
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();
Exemple #30
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