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


PHP osc_register_script函数代码示例

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


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

示例1: payment_pro_stripe_load_lib

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');
    }
}
开发者ID:michaelxizhou,项目名称:myeden69-original-backup,代码行数:7,代码来源:load.php

示例2: minify_scripts

/**
 * 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;
}
开发者ID:oanav,项目名称:closetshare,代码行数:11,代码来源:index.php

示例3: payment_pro_blockchain_load_lib

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');
    }
}
开发者ID:michaelxizhou,项目名称:myeden69-original-backup,代码行数:7,代码来源:load.php

示例4: anr_load_scripts

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');
}
开发者ID:bomvendador,项目名称:soroka_r,代码行数:10,代码来源:index.php

示例5: payment_load_js

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

示例6: payment_load_lib

/**
 * 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');
        }
    }
}
开发者ID:virsoni,项目名称:plugin-payment,代码行数:21,代码来源:index.php

示例7: osc_esc_js

?>
';
    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();
开发者ID:Ashishr2,项目名称:Kathmandu,代码行数:31,代码来源:head.php

示例8: osc_add_hook

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';
}
开发者ID:rubicstrue,项目名称:rubicstrue.github.io,代码行数:31,代码来源:oc-load.php

示例9: array

 *
 *      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() != '') {
    ?>
开发者ID:michaelxizhou,项目名称:myeden69-original-backup,代码行数:31,代码来源:head.php

示例10: osc_register_script

 *     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 
开发者ID:blairmain,项目名称:theme-realestate,代码行数:31,代码来源:head.php

示例11: osc_register_script

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

示例12: osc_meta_generator

    <?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 */
开发者ID:jmcclenon,项目名称:Osclass,代码行数:31,代码来源:oc-load.php

示例13: define

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

示例14: define

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

示例15: load_admin_script

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');
}
开发者ID:jhalendra,项目名称:classmandu,代码行数:8,代码来源:functions.php


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