Version Description
- Prevent direct access to php files.
- Prevent direct access to directories.
- i18n: Load plugin translations.
- i18n: Use translation function for text strings.
Download this release
Release Info
Developer | Nikschavan |
Plugin | Fullwidth Templates for Any Theme & Page Builder |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- README.md +10 -4
- class-fullwidth-page-templates.php +10 -4
- fullwidth-page-template.php +16 -5
- index.php +2 -0
- readme.txt +10 -4
- templates/default/index.php +2 -0
- templates/index.php +2 -0
README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
# Fullwidth Templates for Any Theme & Page Builder #
|
2 |
-
**Contributors:** brainstormforce, nikschavan, WPCrafter
|
3 |
**Tags:** full width, fullwidth, template, beaver builder, elementor, genesis, primer, full width template, remove sidebar, page builder
|
4 |
**Donate link:** https://www.brainstormforce.com/payment/
|
5 |
-
**Requires at least:** 4.2
|
6 |
-
**Tested up to:** 4.7
|
7 |
-
**Stable tag:** 1.0.
|
8 |
**License:** GPLv2 or later
|
9 |
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -96,6 +96,12 @@ Check Screenshots for more details.
|
|
96 |
|
97 |
## Changelog ##
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
### 1.0.1 ###
|
100 |
- New: Support for storefront theme.
|
101 |
- New: Support Custom Post types created by plugin Custom Post Type UI.
|
1 |
# Fullwidth Templates for Any Theme & Page Builder #
|
2 |
+
**Contributors:** brainstormforce, nikschavan, WPCrafter, ramiy
|
3 |
**Tags:** full width, fullwidth, template, beaver builder, elementor, genesis, primer, full width template, remove sidebar, page builder
|
4 |
**Donate link:** https://www.brainstormforce.com/payment/
|
5 |
+
**Requires at least:** 4.2
|
6 |
+
**Tested up to:** 4.7
|
7 |
+
**Stable tag:** 1.0.2
|
8 |
**License:** GPLv2 or later
|
9 |
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
96 |
|
97 |
## Changelog ##
|
98 |
|
99 |
+
### 1.0.2 ###
|
100 |
+
- Prevent direct access to php files.
|
101 |
+
- Prevent direct access to directories.
|
102 |
+
- i18n: Load plugin translations.
|
103 |
+
- i18n: Use translation function for text strings.
|
104 |
+
|
105 |
### 1.0.1 ###
|
106 |
- New: Support for storefront theme.
|
107 |
- New: Support Custom Post types created by plugin Custom Post Type UI.
|
class-fullwidth-page-templates.php
CHANGED
@@ -1,9 +1,15 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
/**
|
4 |
*
|
5 |
*/
|
6 |
-
class
|
7 |
|
8 |
private $templates;
|
9 |
|
@@ -12,9 +18,9 @@ class Dynamic_Header_Footer {
|
|
12 |
$this->includes();
|
13 |
|
14 |
$this->templates = array(
|
15 |
-
'template-page-builder-no-sidebar.php' => 'FW No Sidebar',
|
16 |
-
'template-page-builder.php' => 'FW Fullwidth',
|
17 |
-
'template-page-builder-no-header-footer.php' => 'FW Fullwidth No Header Footer'
|
18 |
);
|
19 |
|
20 |
// Add a filter to the attributes metabox to inject template into the cache.
|
1 |
<?php
|
2 |
+
// Exit if accessed directly
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
|
7 |
+
|
8 |
|
9 |
/**
|
10 |
*
|
11 |
*/
|
12 |
+
class Fullwidth_Page_Templates {
|
13 |
|
14 |
private $templates;
|
15 |
|
18 |
$this->includes();
|
19 |
|
20 |
$this->templates = array(
|
21 |
+
'template-page-builder-no-sidebar.php' => esc_html__( 'FW No Sidebar', 'fullwidth-page-template' ),
|
22 |
+
'template-page-builder.php' => esc_html__( 'FW Fullwidth', 'fullwidth-page-template' ),
|
23 |
+
'template-page-builder-no-header-footer.php' => esc_html__( 'FW Fullwidth No Header Footer', 'fullwidth-page-template' ),
|
24 |
);
|
25 |
|
26 |
// Add a filter to the attributes metabox to inject template into the cache.
|
fullwidth-page-template.php
CHANGED
@@ -1,20 +1,25 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Fullwidth Page Templates
|
4 |
-
* Plugin URI: https://www.
|
5 |
* Description: Create Full width landing pages with any theme.
|
6 |
* Author: Brainstorm Force
|
7 |
-
* Author URI: https://www.
|
8 |
* Text Domain: fullwidth-page-template
|
9 |
* Domain Path: /languages
|
10 |
-
* Version: 1.0.
|
11 |
*
|
12 |
* @package Fullwidth_Page_Templates
|
13 |
*/
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
require_once 'class-fullwidth-page-templates.php';
|
16 |
|
17 |
-
define( 'FPT_VER', '1.0.
|
18 |
define( 'FPT_DIR', plugin_dir_path( __FILE__ ) );
|
19 |
define( 'FPT_URL', plugins_url( '/', __FILE__ ) );
|
20 |
define( 'FPT_PATH', plugin_basename( __FILE__ ) );
|
@@ -23,7 +28,13 @@ define( 'FPT_PATH', plugin_basename( __FILE__ ) );
|
|
23 |
* Load the Plugin Class.
|
24 |
*/
|
25 |
function init_fullwidth_template() {
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
add_action( 'plugins_loaded', 'init_fullwidth_template' );
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Fullwidth Page Templates
|
4 |
+
* Plugin URI: https://www.brainstormforce.com
|
5 |
* Description: Create Full width landing pages with any theme.
|
6 |
* Author: Brainstorm Force
|
7 |
+
* Author URI: https://www.brainstormforce.com
|
8 |
* Text Domain: fullwidth-page-template
|
9 |
* Domain Path: /languages
|
10 |
+
* Version: 1.0.2
|
11 |
*
|
12 |
* @package Fullwidth_Page_Templates
|
13 |
*/
|
14 |
|
15 |
+
// Exit if accessed directly
|
16 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
17 |
+
exit;
|
18 |
+
}
|
19 |
+
|
20 |
require_once 'class-fullwidth-page-templates.php';
|
21 |
|
22 |
+
define( 'FPT_VER', '1.0.2' );
|
23 |
define( 'FPT_DIR', plugin_dir_path( __FILE__ ) );
|
24 |
define( 'FPT_URL', plugins_url( '/', __FILE__ ) );
|
25 |
define( 'FPT_PATH', plugin_basename( __FILE__ ) );
|
28 |
* Load the Plugin Class.
|
29 |
*/
|
30 |
function init_fullwidth_template() {
|
31 |
+
|
32 |
+
// Load localization file
|
33 |
+
load_plugin_textdomain( 'fullwidth-page-template' );
|
34 |
+
|
35 |
+
// Init dynamic header footer
|
36 |
+
new Fullwidth_Page_Templates();
|
37 |
+
|
38 |
}
|
39 |
|
40 |
add_action( 'plugins_loaded', 'init_fullwidth_template' );
|
index.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Silence is golden.
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Fullwidth Templates for Any Theme & Page Builder ===
|
2 |
-
Contributors: brainstormforce, nikschavan, WPCrafter
|
3 |
Tags: full width, fullwidth, template, beaver builder, elementor, genesis, primer, full width template, remove sidebar, page builder
|
4 |
Donate link: https://www.brainstormforce.com/payment/
|
5 |
-
Requires at least: 4.2
|
6 |
-
Tested up to: 4.7.
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -86,6 +86,12 @@ Check Screenshots for more details.
|
|
86 |
|
87 |
== Changelog ==
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
= 1.0.1 =
|
90 |
- New: Support for storefront theme.
|
91 |
- New: Support Custom Post types created by plugin Custom Post Type UI.
|
1 |
=== Fullwidth Templates for Any Theme & Page Builder ===
|
2 |
+
Contributors: brainstormforce, nikschavan, WPCrafter, ramiy
|
3 |
Tags: full width, fullwidth, template, beaver builder, elementor, genesis, primer, full width template, remove sidebar, page builder
|
4 |
Donate link: https://www.brainstormforce.com/payment/
|
5 |
+
Requires at least: 4.2
|
6 |
+
Tested up to: 4.7.4
|
7 |
+
Stable tag: 1.0.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
= 1.0.2 =
|
90 |
+
- Prevent direct access to php files.
|
91 |
+
- Prevent direct access to directories.
|
92 |
+
- i18n: Load plugin translations.
|
93 |
+
- i18n: Use translation function for text strings.
|
94 |
+
|
95 |
= 1.0.1 =
|
96 |
- New: Support for storefront theme.
|
97 |
- New: Support Custom Post types created by plugin Custom Post Type UI.
|
templates/default/index.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Silence is golden.
|
templates/index.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Silence is golden.
|