<?php
/*
Plugin Name: PageLoader by Bonfire
Plugin URI: http://bonfirethemes.com/
Description: Loading Screen and Progress Bar for WordPress. Customize under Appearance → Customize → PageLoader Plugin.
Version: 4.4
Author: Bonfire Themes
Author URI: http://bonfirethemes.com/
Text Domain: pageloader
Domain Path: /languages
License: GPL2
*/
//
// WORDPRESS LIVE CUSTOMIZER
//
function pageloader_theme_customizer( $wp_customize ) {
//
// ADD "PAGELOADER" PANEL TO LIVE CUSTOMIZER
//
$wp_customize->add_panel('pageloader_panel', array('title' => esc_html__('PageLoader Plugin', 'pageloader'),'priority' => 10,));
//
// ADD "Image" SECTION TO "PAGELOADER" PANEL
//
$wp_customize->add_section('pageloader_image_section',array('title' => esc_html__( 'Image', 'pageloader' ),'panel' => 'pageloader_panel','priority' => 10));
/* custom loading image */
$wp_customize->add_setting('pageloader_custom_loading_image');
$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize,'pageloader_custom_loading_image',
array(
'label' => esc_html__('Image', 'pageloader'),
'section' => 'pageloader_image_section',
'settings' => 'pageloader_custom_loading_image'
)
));
/* loading image from url */
$wp_customize->add_setting('pageloader_custom_loading_image_url',array('sanitize_callback' => 'sanitize_pageloader_custom_loading_image_url',));
function sanitize_pageloader_custom_loading_image_url($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('pageloader_custom_loading_image_url',array(
'type' => 'text',
'label' => esc_html__('Image from URL', 'pageloader'),
'description' => esc_html__('If you need to use an off-site image as your loading image, enter its URL here (will override image selection above).', 'pageloader'),
'section' => 'pageloader_image_section',
));
/* image vertical position */
$wp_customize->add_setting('pageloader_image_vertical_position',array(
'default' => 'middle',
));
$wp_customize->add_control('pageloader_image_vertical_position',array(
'type' => 'select',
'label' => esc_html__('Image vertical position', 'pageloader'),
'section' => 'pageloader_image_section',
'choices' => array(
'top' => 'Top',
'middle' => 'Middle',
'bottom' => 'Bottom',
),
));
/* image vertical fine-tune */
$wp_customize->add_setting('pageloader_image_vertical_position_finetune',array('sanitize_callback' => 'sanitize_pageloader_image_vertical_position_finetune',));
function sanitize_pageloader_image_vertical_position_finetune($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('pageloader_image_vertical_position_finetune',array(
'type' => 'text',
'label' => esc_html__('Fine-tune image vertical position (in pixels)', 'pageloader'),
'description' => esc_html__('Negative values accepted. Example: 50 or -50', 'pageloader'),
'section' => 'pageloader_image_section',
));
/* image horizontal position */
$wp_customize->add_setting('pageloader_image_horizontal_position',array(
'default' => 'center',
));
$wp_customize->add_control('pageloader_image_horizontal_position',array(
'type' => 'select',
'label' => esc_html__('Image horizontal position', 'pageloader'),
'section' => 'pageloader_image_section',
'choices' => array(
'left' => 'Left',
'center' => 'Center',
'right' => 'Right',
),
));
/* image horizontal fine-tune */
$wp_customize->add_setting('pageloader_image_horizontal_position_finetune',array('sanitize_callback' => 'sanitize_pageloader_image_horizontal_position_finetune',));
function sanitize_pageloader_image_horizontal_position_finetune($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('pageloader_image_horizontal_position_finetune',array(
'type' => 'text',
'label' => esc_html__('Fine-tune image horizontal position (in pixels)', 'pageloader'),
'description' => esc_html__('Negative values accepted. Example: 50 or -50', 'pageloader'),
'section' => 'pageloader_image_section',
));
/* loading image size */
$wp_customize->add_setting('pageloader_custom_loading_image_size',array('sanitize_callback' => 'sanitize_pageloader_custom_loading_image_size',));
function sanitize_pageloader_custom_loading_image_size($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('pageloader_custom_loading_image_size',array(
'type' => 'text',
'label' => esc_html__('Image size (in pixels)', 'pageloader'),
'description' => esc_html__('By default, the default size of the image is used (but gets sized down gradually depending on screen size to prevent it from going beyond screen bounds).', 'pageloader'),
'section' => 'pageloader_image_section',
));
/* loading image alt text */
$wp_customize->add_setting('pageloader_custom_loading_image_alt_text',array('sanitize_callback' => 'sanitize_pageloader_custom_loading_image_alt_text',));
function sanitize_pageloader_custom_loading_image_alt_text($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('pageloader_custom_loading_image_alt_text',array(
'type' => 'text',
'label' => esc_html__('Image ALT text', 'pageloader'),
'description' => esc_html__('If you would like ALT text added to the image, add it here.', 'pageloader'),
'section' => 'pageloader_image_section',
));
/* pulsating loading image */
$wp_customize->add_setting('pageloader_custom_loading_image_pulsate',array('sanitize_callback' => 'sanitize_pageloader_custom_loading_image_pulsate',));
function sanitize_pageloader_custom_loading_image_pulsate($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('pageloader_custom_loading_image_pulsate',array(
'type' => 'text',
'label' => esc_html__('Image pulsating speed (in seconds)', 'pageloader'),
'description' => esc_html__('Example: 0.75 or 2.5. If empty, pulsating is disabled.', 'pageloader'),
'section' => 'pageloader_image_section',
));
/* loading image blur effect */
$wp_customize->add_setting('pageloader_image_blur',array('sanitize_callback' => 'sanitize_pageloader_image_blur',));
function sanitize_pageloader_image_blur($input) {return wp_kses_post(force_balance_tags($input));}
$wp_customize->add_control('pageloader_image_blur',array(
'type' => 'text',
'label' => esc_html__('Blur effect (in pixels)', 'pageloader'),
'description' => esc_html__('Adds blur effect to loading image on load start. Note: effect may not yet be perfectly supported by all browsers. Example: 10', 'pageloader'),
'section' => 'pageloader_image_section',
));
/* loading image opacity */
$wp_customize->add_setting('pageloader_image_opacity',array('sanitize_callback' => 'sanitize_pageloader_image_opacity',));
function sanitize_pageloader_image_opacity( $input ) { if ( $input === true ) { return 1; } else { ret
没有合适的资源?快使用搜索试试~ 我知道了~
【WordPress插件】2022年最新版完整功能demo+插件v4.4.zip
共8个文件
php:4个
css:2个
pot:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 114 浏览量
2022-04-14
12:46:46
上传
评论
收藏 26KB ZIP 举报
温馨提示
"【WordPress插件】2022年最新版完整功能demo+插件v4.4 PageLoader: Loading Screen and Progress Bar for WordPress PageLoader:为WordPress加载屏幕和进度条" ---------- 泰森云每天更新发布最新WordPress主题、HTML主题、WordPress插件、shopify主题、opencart主题、PHP项目源码、安卓项目源码、ios项目源码,更有超10000个资源可供选择,如有需要请站内联系。
资源推荐
资源详情
资源评论
收起资源包目录
【WordPress插件】2022年最新版完整功能demo+插件v4.4.zip (8个子文件)
pageloader-by-bonfire
pageloader.js 13KB
pageloader.css 12KB
preload.php 2KB
pageloader.php 92KB
languages
pageloader.pot 13KB
custom_controls.php 1KB
custom_controls.css 423B
include.php 51KB
共 8 条
- 1
资源评论
Lee达森
- 粉丝: 960
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功