Version Description
Download this release
Release Info
| Developer | DvanKooten |
| Plugin | |
| Version | 3.1.21 |
| Comparing to | |
| See all releases | |
Code changes from version 3.1.20 to 3.1.21
- boxzilla.php +2 -2
- readme.txt +8 -1
- src/default-actions.php +23 -0
boxzilla.php
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
Plugin Name: Boxzilla
|
| 4 |
-
Version: 3.1.
|
| 5 |
Plugin URI: https://boxzillaplugin.com/#utm_source=wp-plugin&utm_medium=boxzilla&utm_campaign=plugins-page
|
| 6 |
Description: Call-To-Action Boxes that display after visitors scroll down far enough. Unobtrusive, but highly conversing!
|
| 7 |
Author: ibericode
|
|
@@ -41,7 +41,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 41 |
function _load_boxzilla() {
|
| 42 |
|
| 43 |
define( 'BOXZILLA_FILE', __FILE__ );
|
| 44 |
-
define( 'BOXZILLA_VERSION', '3.1.
|
| 45 |
|
| 46 |
require __DIR__ . '/bootstrap.php';
|
| 47 |
}
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
Plugin Name: Boxzilla
|
| 4 |
+
Version: 3.1.21
|
| 5 |
Plugin URI: https://boxzillaplugin.com/#utm_source=wp-plugin&utm_medium=boxzilla&utm_campaign=plugins-page
|
| 6 |
Description: Call-To-Action Boxes that display after visitors scroll down far enough. Unobtrusive, but highly conversing!
|
| 7 |
Author: ibericode
|
| 41 |
function _load_boxzilla() {
|
| 42 |
|
| 43 |
define( 'BOXZILLA_FILE', __FILE__ );
|
| 44 |
+
define( 'BOXZILLA_VERSION', '3.1.21' );
|
| 45 |
|
| 46 |
require __DIR__ . '/bootstrap.php';
|
| 47 |
}
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://boxzillaplugin.com/#utm_source=wp-plugin-repo&utm_medium=bo
|
|
| 4 |
Tags: scroll triggered box, cta, social, pop-up, newsletter, call to action, mailchimp, contact form 7, social media, mc4wp, ibericode
|
| 5 |
Requires at least: 4.1
|
| 6 |
Tested up to: 4.8.2
|
| 7 |
-
Stable tag: 3.1.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
Requires PHP: 5.3
|
|
@@ -150,6 +150,13 @@ Have a look at the [frequently asked questions](https://wordpress.org/plugins/bo
|
|
| 150 |
== Changelog ==
|
| 151 |
|
| 152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
#### 3.1.20 - October 9, 2017
|
| 154 |
|
| 155 |
**Fixes**
|
| 4 |
Tags: scroll triggered box, cta, social, pop-up, newsletter, call to action, mailchimp, contact form 7, social media, mc4wp, ibericode
|
| 5 |
Requires at least: 4.1
|
| 6 |
Tested up to: 4.8.2
|
| 7 |
+
Stable tag: 3.1.21
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
Requires PHP: 5.3
|
| 150 |
== Changelog ==
|
| 151 |
|
| 152 |
|
| 153 |
+
#### 3.1.21 - October 10, 2017
|
| 154 |
+
|
| 155 |
+
**Fixes**
|
| 156 |
+
|
| 157 |
+
- Ensure that administrators can always edit boxes.
|
| 158 |
+
|
| 159 |
+
|
| 160 |
#### 3.1.20 - October 9, 2017
|
| 161 |
|
| 162 |
**Fixes**
|
src/default-actions.php
CHANGED
|
@@ -28,6 +28,15 @@ add_action( 'init', function() use( $boxzilla ){
|
|
| 28 |
'menu_icon' => $boxzilla->plugin->url( '/assets/img/menu-icon.png' ),
|
| 29 |
'query_var' => false,
|
| 30 |
'capability_type' => 'box',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
);
|
| 32 |
|
| 33 |
register_post_type( 'boxzilla-box', $args );
|
|
@@ -35,6 +44,20 @@ add_action( 'init', function() use( $boxzilla ){
|
|
| 35 |
add_shortcode( 'boxzilla_link', 'boxzilla_get_link_html' );
|
| 36 |
});
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
function boxzilla_get_link_html( $args = array(), $content = '' ) {
|
| 39 |
$valid_actions = array(
|
| 40 |
'show',
|
| 28 |
'menu_icon' => $boxzilla->plugin->url( '/assets/img/menu-icon.png' ),
|
| 29 |
'query_var' => false,
|
| 30 |
'capability_type' => 'box',
|
| 31 |
+
'capabilities' => array(
|
| 32 |
+
'edit_post' => 'edit_box',
|
| 33 |
+
'edit_posts' => 'edit_boxes',
|
| 34 |
+
'edit_others_posts' => 'edit_other_boxes',
|
| 35 |
+
'publish_posts' => 'publish_boxes',
|
| 36 |
+
'read_post' => 'read_box',
|
| 37 |
+
'read_private_posts' => 'read_private_box',
|
| 38 |
+
'delete_post' => 'delete_box',
|
| 39 |
+
),
|
| 40 |
);
|
| 41 |
|
| 42 |
register_post_type( 'boxzilla-box', $args );
|
| 44 |
add_shortcode( 'boxzilla_link', 'boxzilla_get_link_html' );
|
| 45 |
});
|
| 46 |
|
| 47 |
+
add_action( 'admin_init', function() {
|
| 48 |
+
$admins = get_role( 'administrator' );
|
| 49 |
+
|
| 50 |
+
if( ! $admins->has_cap( 'edit_box' ) ) {
|
| 51 |
+
$admins->add_cap('edit_box');
|
| 52 |
+
$admins->add_cap('edit_boxes');
|
| 53 |
+
$admins->add_cap('edit_other_boxes');
|
| 54 |
+
$admins->add_cap('publish_boxes');
|
| 55 |
+
$admins->add_cap('read_box');
|
| 56 |
+
$admins->add_cap('read_private_box');
|
| 57 |
+
$admins->add_cap('delete_box');
|
| 58 |
+
}
|
| 59 |
+
});
|
| 60 |
+
|
| 61 |
function boxzilla_get_link_html( $args = array(), $content = '' ) {
|
| 62 |
$valid_actions = array(
|
| 63 |
'show',
|
