Fullwidth Templates for Any Theme & Page Builder - Version 1.0.3

Version Description

  • Make the plugin translation compatible.
Download this release

Release Info

Developer Nikschavan
Plugin Icon 128x128 Fullwidth Templates for Any Theme & Page Builder
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

Gruntfile.js DELETED
@@ -1,53 +0,0 @@
1
- module.exports = function( grunt ) {
2
-
3
- 'use strict';
4
- var banner = '/**\n * <%= pkg.homepage %>\n * Copyright (c) <%= grunt.template.today("yyyy") %>\n * This file is generated automatically. Do not edit.\n */\n';
5
- // Project configuration
6
- grunt.initConfig( {
7
-
8
- pkg: grunt.file.readJSON( 'package.json' ),
9
-
10
- addtextdomain: {
11
- options: {
12
- textdomain: 'bb-header-footer',
13
- },
14
- target: {
15
- files: {
16
- src: [ '*.php', '**/*.php', '!node_modules/**', '!php-tests/**', '!bin/**' ]
17
- }
18
- }
19
- },
20
-
21
- wp_readme_to_markdown: {
22
- your_target: {
23
- files: {
24
- 'README.md': 'readme.txt'
25
- }
26
- },
27
- },
28
-
29
- makepot: {
30
- target: {
31
- options: {
32
- domainPath: '/languages',
33
- mainFile: 'bb-header-footer.php',
34
- potFilename: 'bb-header-footer.pot',
35
- potHeaders: {
36
- poedit: true,
37
- 'x-poedit-keywordslist': true
38
- },
39
- type: 'wp-plugin',
40
- updateTimestamp: true
41
- }
42
- }
43
- },
44
- } );
45
-
46
- grunt.loadNpmTasks( 'grunt-wp-i18n' );
47
- grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' );
48
- grunt.registerTask( 'i18n', ['addtextdomain', 'makepot'] );
49
- grunt.registerTask( 'readme', ['wp_readme_to_markdown'] );
50
-
51
- grunt.util.linefeed = '\n';
52
-
53
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,110 +0,0 @@
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
-
11
- When using a Page Builder, things like page title, boxed layout usually limit your creativity. This plugin helps you go fullwidth on any* theme.
12
-
13
- ## Description ##
14
- **Full Width Page Templates For Your Website**
15
-
16
- Does your theme offer full width page templates? Need freedom to design beautiful full width layouts with page builder like Beaver Builder, Elementor? Need a complete blank template without header or footer for your landing pages?
17
-
18
- This plugin adds Fullwidth Page Templates to overcome these limitations.
19
-
20
- ### Here is a quick video explaining how this plugin works ###
21
-
22
- [youtube https://www.youtube.com/watch?v=LsIrXPHC0xM]
23
-
24
- **Blank Template**
25
-
26
- * Removes header, footer, sidebar, comments, title and leaves you with a plain canvas
27
- * Awesome for landing pages where you need complete control over your layout
28
-
29
- **Full Width Template**
30
-
31
- * Removes Sidebar, page title, comments and stretches the layout to full width
32
- * Ideal if you're using a Page Builder
33
-
34
- **Bonus - No Sidebar Template**
35
-
36
- * Just Removes Sidebar
37
- * Perfect if your theme does not have No Sidebar option.
38
- * Rest of the layout & styling will remain intact.
39
-
40
-
41
- **Made to work with Page Builders**
42
- When you're using a Page Builder, things like the default page title, boxed layout, extra margin and padding usually get in your way. This plugin puts you in absolute control and removes all unnecessary elements from your layout.
43
-
44
- **Dead Simple**
45
- It adds three simple options for your pages & posts. Just choose the one and you should be all set.
46
-
47
- **Potable & No Lock-in**
48
- If you're anything like us, you care what happens when you switch your themes. Generally changing theme means, you will need to edit all your pages and change templates. But if you're using a plugin like this - you won't have to worry about it.
49
-
50
- **Supported & Actively Developed**
51
- Need help with something? Have an issue to report? [Get in touch][1] with us on GitHub.
52
-
53
- **Some of the popular themes**
54
-
55
- * Genesis Framework by StudioPress
56
- * Primer Theme by GoDaddy
57
- * Twenty Sixteen
58
-
59
- <blockquote>
60
- ### Disclaimer - ###
61
-
62
- This option works on most of the themes; but it might not work on few depending on it's layout structure.
63
- Please open up an issue on GitHub or send us a pull request for adding compatibility with your theme.
64
- <p></p>
65
- </blockquote>
66
-
67
- Project by [Brainstorm Force][3].
68
- [1]: https://github.com/brainstormforce/fullwidth-templates/
69
- [2]: https://github.com/brainstormforce/fullwidth-templates/
70
- [3]: https://www.brainstormforce.com/
71
-
72
- ## Installation ##
73
-
74
- 1. Install Fullwidth Templates either via the WordPress plugin directory or by uploading the files to your server at wp-content/plugins.
75
- 2. Activate the plugin through the 'Plugins' menu in WordPress
76
- 3. When creating or editing pages you will see options to select the fullwidth templates in the template selection dropdown, select any of the three templates and update the page.
77
-
78
- Check Screenshots for more details.
79
-
80
- ## Screenshots ##
81
- ### 1. Extra Template Selection Options for Pages & Posts ###
82
- ![Extra Template Selection Options for Pages & Posts](http://ps.w.org/fullwidth-templates-for-any-theme-&-page-builder/assets/screenshot-1.png)
83
-
84
- ### 2. Default View on Primer Parent Theme ###
85
- ![Default View on Primer Parent Theme](http://ps.w.org/fullwidth-templates-for-any-theme-&-page-builder/assets/screenshot-2.png)
86
-
87
- ### 3. No Sidebar Template ###
88
- ![No Sidebar Template](http://ps.w.org/fullwidth-templates-for-any-theme-&-page-builder/assets/screenshot-3.png)
89
-
90
- ### 4. Fullwidth Template ###
91
- ![Fullwidth Template](http://ps.w.org/fullwidth-templates-for-any-theme-&-page-builder/assets/screenshot-4.png)
92
-
93
- ### 5. Blank - No Header / Footer Template ###
94
- ![Blank - No Header / Footer Template](http://ps.w.org/fullwidth-templates-for-any-theme-&-page-builder/assets/screenshot-5.png)
95
-
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.
108
-
109
- ### 1.0.0 ###
110
- - Initial Release
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/fullwidth-template-no-header-footer.css ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ .page-template-template-page-builder-no-header-footer {
2
+ background: white;
3
+ }
class-fullwidth-page-templates.php CHANGED
@@ -18,9 +18,9 @@ class Fullwidth_Page_Templates {
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.
@@ -86,6 +86,11 @@ class Fullwidth_Page_Templates {
86
  wp_register_style( 'fullwidth-template-no-sidebar', plugins_url( 'assets/css/fullwidth-template-no-sidebar.css', __FILE__ ) );
87
  wp_enqueue_style( 'fullwidth-template-no-sidebar' );
88
  }
 
 
 
 
 
89
  }
90
 
91
  private function includes() {
18
  $this->includes();
19
 
20
  $this->templates = array(
21
+ 'template-page-builder-no-sidebar.php' => esc_html__( 'FW No Sidebar', 'fullwidth-templates' ),
22
+ 'template-page-builder.php' => esc_html__( 'FW Fullwidth', 'fullwidth-templates' ),
23
+ 'template-page-builder-no-header-footer.php' => esc_html__( 'FW Fullwidth No Header Footer', 'fullwidth-templates' ),
24
  );
25
 
26
  // Add a filter to the attributes metabox to inject template into the cache.
86
  wp_register_style( 'fullwidth-template-no-sidebar', plugins_url( 'assets/css/fullwidth-template-no-sidebar.css', __FILE__ ) );
87
  wp_enqueue_style( 'fullwidth-template-no-sidebar' );
88
  }
89
+
90
+ if( is_page_template( 'template-page-builder-no-header-footer.php' ) ) {
91
+ wp_register_style( 'fullwidth-template-no-header-footer', plugins_url( 'assets/css/fullwidth-template-no-header-footer.css', __FILE__ ) );
92
+ wp_enqueue_style( 'fullwidth-template-no-header-footer' );
93
+ }
94
  }
95
 
96
  private function includes() {
fullwidth-page-template.php CHANGED
@@ -5,9 +5,9 @@
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
  */
@@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
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__ ) );
@@ -30,7 +30,7 @@ define( 'FPT_PATH', plugin_basename( __FILE__ ) );
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();
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-templates
9
  * Domain Path: /languages
10
+ * Version: 1.0.3
11
  *
12
  * @package Fullwidth_Page_Templates
13
  */
19
 
20
  require_once 'class-fullwidth-page-templates.php';
21
 
22
+ define( 'FPT_VER', '1.0.3' );
23
  define( 'FPT_DIR', plugin_dir_path( __FILE__ ) );
24
  define( 'FPT_URL', plugins_url( '/', __FILE__ ) );
25
  define( 'FPT_PATH', plugin_basename( __FILE__ ) );
30
  function init_fullwidth_template() {
31
 
32
  // Load localization file
33
+ load_plugin_textdomain( 'fullwidth-templates' );
34
 
35
  // Init dynamic header footer
36
  new Fullwidth_Page_Templates();
languages/fullwidth-templates.pot ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2018 Brainstorm Force
2
+ # This file is distributed under the same license as the Fullwidth Page Templates package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Fullwidth Page Templates 1.0.2\n"
6
+ "Report-Msgid-Bugs-To: "
7
+ "https://wordpress.org/support/plugin/fullwidth-page-template\n"
8
+ "POT-Creation-Date: 2018-05-10 11:18:00+00:00\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=utf-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "Language: en\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "X-Poedit-Country: United States\n"
18
+ "X-Poedit-SourceCharset: UTF-8\n"
19
+ "X-Poedit-KeywordsList: "
20
+ "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
21
+ "attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
22
+ "X-Poedit-Basepath: ../\n"
23
+ "X-Poedit-SearchPath-0: .\n"
24
+ "X-Poedit-Bookmarks: \n"
25
+ "X-Textdomain-Support: yes\n"
26
+ "X-Generator: grunt-wp-i18n1.0.2\n"
27
+
28
+ #: class-fullwidth-page-templates.php:21
29
+ msgid "FW No Sidebar"
30
+ msgstr ""
31
+
32
+ #: class-fullwidth-page-templates.php:22
33
+ msgid "FW Fullwidth"
34
+ msgstr ""
35
+
36
+ #: class-fullwidth-page-templates.php:23
37
+ msgid "FW Fullwidth No Header Footer"
38
+ msgstr ""
39
+
40
+ #. Plugin Name of the plugin/theme
41
+ msgid "Fullwidth Page Templates"
42
+ msgstr ""
43
+
44
+ #. Author URI of the plugin/theme
45
+ msgid "https://www.brainstormforce.com"
46
+ msgstr ""
47
+
48
+ #. Description of the plugin/theme
49
+ msgid "Create Full width landing pages with any theme."
50
+ msgstr ""
51
+
52
+ #. Author of the plugin/theme
53
+ msgid "Brainstorm Force"
54
+ msgstr ""
package.json DELETED
@@ -1,12 +0,0 @@
1
-
2
- {
3
- "name": "bb-header-footer",
4
- "version": "0.1.0",
5
- "main": "Gruntfile.js",
6
- "author": "YOUR NAME HERE",
7
- "devDependencies": {
8
- "grunt": "~0.4.5",
9
- "grunt-wp-i18n": "~0.5.0",
10
- "grunt-wp-readme-to-markdown": "~1.0.0"
11
- }
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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,6 +86,9 @@ Check Screenshots for more details.
86
 
87
  == Changelog ==
88
 
 
 
 
89
  = 1.0.2 =
90
  - Prevent direct access to php files.
91
  - Prevent direct access to directories.
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.9.5
7
+ Stable tag: 1.0.3
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.3 =
90
+ - Make the plugin translation compatible.
91
+
92
  = 1.0.2 =
93
  - Prevent direct access to php files.
94
  - Prevent direct access to directories.