| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/full-width-page-templates.tar |
README.md 0000666 00000014770 15113710327 0006040 0 ustar 00 # Full-Width Templates
-------------
A composer library which injects, in WordPress Dashboard, a Full-Width option in the Page Template selector.
[](https://www.codacy.com/app/andrei.lupu/full-width-page-templates?utm_source=github.com&utm_medium=referral&utm_content=Codeinwp/full-width-page-templates&utm_campaign=Badge_Grade)
#### Supported Builders:
* A plain simple WordPress page
* Elementor
### Compatible themes?
At this moment this library ensures compatibility with the follwing WordPress themes(and more to come):
* [Hestia](https://wordpress.org/themes/hestia/) - by ThemeIsle
* [Hestia Pro](https://themeisle.com/themes/hestia-pro/) - by ThemeIsle
* [Zerif Lite](https://themeisle.com/themes/zerif-lite) - by ThemeIsle
* [ShopIsle](https://wordpress.org/themes/shop-isle/) - by ThemeIsle
* [Orfeo](https://themeisle.com/themes/orfeo) - by ThemeIsle
* [Edge](https://wordpress.org/themes/edge/) - By themefreesia
* [Experon](https://wordpress.org/themes/experon/) - ThinkUpThemes
* [Genesis](http://my.studiopress.com/themes/genesis/) - By StudioPress
* [GeneratePress](https://wordpress.org/themes/generatepress/) - By Tom Usborne
* [Storefront](https://wordpress.org/themes/storefront/) - by WooThemes/Automattic
* [TwentyTwelve](https://wordpress.org/themes/twentytwelve/) - by WordPress.org
* [TwentyThirteen](https://wordpress.org/themes/twentythirteen/) - by WordPress.org
* [TwentyFourteen](https://wordpress.org/themes/twentyfourteen/) - by WordPress.org
* [TwentyFifteen](https://wordpress.org/themes/twentyfifteen/) - by WordPress.org
* [TwentySixteen](https://wordpress.org/themes/twentysixteen/) - by WordPress.org
* [TwentySeventeen](https://wordpress.org/themes/twentyseventeen/) - by WordPress.org
* [Vantage](https://wordpress.org/themes/vantage/) - by Greg Priday
* [Virtue](https://wordpress.org/themes/virtue/) - by Kadence Themes
* [Enlightenment](https://wordpress.org/themes/enlightenment/) - by Daniel Tara
* [Actions](https://wordpress.org/themes/actions/) - by WPDevHQ
* [ActionsPro](https://wpdevhq.com/themes/actions-pro/) - by WPDevHQ
* [Kale](https://wordpress.org/themes/kale/) - by lyrathemes
* [InVogue](https://wordpress.org/themes/invogue) - by Kaira
* [Universal-Store](https://wordpress.org/themes/universal-store/) - by Themes4WP
* [Editorial](https://wordpress.org/themes/editorial/) - by Mystery Themes
* [Renden Business](https://wordpress.org/themes/renden-business/) - by ThinkUpThemes
* [Spacious](https://wordpress.org/themes/spacious/) - by ThemeGrill
* [Flash](https://wordpress.org/themes/spacious/) - by ThemeGrill
* [Writee](https://wordpress.org/themes/writee/) - by Scissor Themes
* [VT Blogging](https://wordpress.org/themes/vt-blogging/) - by VolThemes
* [One Page Express](https://wordpress.org/themes/one-page-express/) - by horearadu
* [Primer](https://wordpress.org/themes/primer/) - by GoDaddy
* [Vantage](https://wordpress.org/themes/vantage/) - by SiteOrigin
* [Customizr](https://wordpress.org/themes/customizr/) - by Nicolas Guillaume
* [Nikko Portfolio](https://wordpress.org/themes/nikko-portfolio/) - by Colormelon
* [Poseidon](https://wordpress.org/themes/poseidon/) - by ThemeZee
* [Envo Business](https://wordpress.org/themes/envo-business/) - by EnvoThemes
* [Hueman](https://wordpress.org/themes/hueman/) - by Nicolas Guillaume
* [News Portal](https://wordpress.org/themes/news-portal/) - by Mystery Themes
* [Illdy](https://wordpress.org/themes/illdy/) - by Silkalns
* [Envy Blog](https://wordpress.org/themes/envy-blog/) - by Precise Themes
* [Avant](https://wordpress.org/themes/avant/) - by Kaira
* [OceanWP](https://wordpress.org/themes/oceanwp/) - by oceanwp
* [Astra](https://wordpress.org/themes/astra/) - by Brainstorm Force
* [Mesmerize](https://wordpress.org/themes/mesmerize/) - by horearadu
* [Sydney](https://wordpress.org/themes/sydney/) - by athemes
* [Ashe](https://wordpress.org/themes/ashe/) - by Royal Flush
* [Lodestar](https://wordpress.org/themes/lodestar/) - by Automattic
* [Total](https://wordpress.org/themes/total/) - by Hash Themes
* [Consulting](https://wordpress.org/themes/consulting/) - by ThinkUpThemes
* [ColorMag](https://wordpress.org/themes/colormag/) - by ThemeGrill
* [OnePress](https://wordpress.org/themes/onepress/) - by FameThemes
* [Shapely](https://wordpress.org/themes/shapely/) - by Silkalns
* [HitMag](https://wordpress.org/themes/hitmag/) - by ThemezHut
* [Divi](https://www.elegantthemes.com/gallery/divi) - by Elegant Themes
### How to use it?
Well, this is a Composer library so you will need to add this it as a dependency on your project( either plugin or a theme ) like this:
```
"require": {
"codeinwp/full-width-page-templates": "master"
}
```
And run a via the terminal a `composer install` and hope that you have Composer installed globally.
The last step is the initialization. Call this wherever you like:
```
if ( class_exists( '\ThemeIsle\FullWidthTemplates' ) ) {
\ThemeIsle\FullWidthTemplates::instance();
}
```
### Work with this repository?
To work directly with this repository, I use and recommend the following way.
Clone this repository inside the [mu-plugins](https://codex.wordpress.org/Must_Use_Plugins) WordPress directory. This way, we can be sure that the cloned version of this
library will have priority before the one loaded from Composer.
After cloning you need to create a php file, like `load-fwt-lib.php`(I'm so bad at naming) and inside you will need to require the loader like this:
```
<?php
require_once( dirname( __FILE__ ) . '/full-width-page-templates/load.php' );
```
### How to make a theme compatible with the full-width template?
To add a new theme to the compatibility list, clone this repository(as we talked above) create a new directory with the
theme's name in the `themes` directory.
This theme directory supports two files:
* `inline-style.php` - A file loaded at the right moment to add an inline style
* `functions.php` - An optional file to add actions and filters.
Our goal here is to add a CSS snippet which will make sure that the page container width full.
So make use of the `inline-style.php` and add a snipet like this:
```
<?php
/* Support for the {Theme Name} theme */
$style = '.page-template-builder-fullwidth-std .site-content {
width: 100%;
padding: 0;
margin:0;
}';
wp_add_inline_style( '{theme-style}', $style );
```
Where `{theme-style}` must be an enqueued style.(For example, Twenty Seventeen has 'twentyseventeen-style')
Don't forget to add the new theme to this README.md ;)
load.php 0000666 00000000512 15113710327 0006176 0 ustar 00 <?php
/**
* Loader for the ThemeIsle\FullWidthTemplates
*
* @package ThemeIsle\FullWidthTemplates
* @copyright Copyright (c) 2017, Andrei Lupu
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.0.0
*/
require_once( dirname( __FILE__ ) . '/class-full-width-templates.php' ); builders/class-elementor-full-width-templates.php 0000666 00000006250 15113710327 0016243 0 ustar 00 <?php
/**
* Class ThemeIsle\FullWidthTemplates\Elementor
*
* @package ThemeIsle\FullWidthTemplates\Elementor
* @copyright Copyright (c) 2017, Andrei Lupu
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.0.0
*/
namespace ThemeIsle\FullWidthTemplates;
class Elementor {
/**
* @var Elementor
*/
public static $instance = null;
protected function init(){
// for the blank template
add_action( 'fwpt_blank_before_content', array( $this, 'render_blank_before_content' ) );
add_action( 'fwpt_blank_content', array( $this, 'render_content' ) );
add_action( 'fwpt_blank_after_content', array( $this, 'render_blank_after_content' ) );
// for the standard template
add_action( 'fwpt_std_content', array( $this, 'render_content' ) );
add_action( 'fwpt_std_before_content', array( $this, 'render_std_before_content' ) );
add_action( 'fwpt_std_after_content', array( $this, 'render_std_after_content' ) );
// @TODO We should move this into a function to keep compat?
add_action( 'elementor_page_elements', array( $this, 'elementor_page_content' ), 20 );
}
/**
* Display the WordPress loop
*/
public function render_content() {
while ( have_posts() ) : the_post();
do_action( 'elementor_page_elements' ); // Give your elements priorities so that they hook in the right place.
endwhile;
}
/**
* Display the header of the Blank template
*/
public function render_blank_before_content() {
do_action( 'elementor_content_body_before' );
do_action( 'elementor_before_content_wrapper' );
}
/**
* Display the footer of the blank template
*/
public function render_blank_after_content() {
do_action( 'elementor_after_content_wrapper' );
do_action( 'elementor_content_body_after' );
}
/**
* Display the header of the standard template
*/
public function render_std_before_content() {
get_header();
do_action( 'elementor_before_content_wrapper' );
}
/**
* Display the footer of the standard template
*/
public function render_std_after_content() {
do_action( 'elementor_after_content_wrapper' );
get_footer();
}
// @TODO We should move this into a function to keep compat?
function elementor_page_content() {
the_content();
}
/**
* @static
* @since 1.0.0
* @access public
* @return Elementor
*/
public static function instance() {
if ( is_null( self::$instance ) ) {
self::$instance = new self();
self::$instance->init();
}
return self::$instance;
}
/**
* Throw error on object clone
*
* The whole idea of the singleton design pattern is that there is a single
* object therefore, we don't want the object to be cloned.
*
* @access public
* @since 1.0.0
* @return void
*/
public function __clone() {
// Cloning instances of the class is forbidden.
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'themeisle-companion' ), '1.0.0' );
}
/**
* Disable unserializing of the class
*
* @access public
* @since 1.0.0
* @return void
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'themeisle-companion' ), '1.0.0' );
}
} builders/class-none-full-width-templates.php 0000666 00000004031 15113710327 0015203 0 ustar 00 <?php
/**
* Class ThemeIsle\FullWidthTemplates\Elementor
*
* @package ThemeIsle\FullWidthTemplates\Elementor
* @copyright Copyright (c) 2017, Andrei Lupu
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.0.0
*/
namespace ThemeIsle\FullWidthTemplates;
class None {
/**
* @var Elementor
*/
public static $instance = null;
protected function init(){
// for the standard template
add_action( 'fwpt_std_content', array( $this, 'render_content' ) );
add_action( 'fwpt_std_before_content', array( $this, 'render_std_before_content' ) );
add_action( 'fwpt_std_after_content', array( $this, 'render_std_after_content' ) );
}
/**
* Display the WordPress loop
*/
public function render_content() {
while ( have_posts() ) : the_post();
the_content();
endwhile;
}
/**
* Display the header of the standard template
*/
public function render_std_before_content() {
get_header();
}
/**
* Display the footer of the standard template
*/
public function render_std_after_content() {
get_footer();
}
/**
* @static
* @since 1.0.0
* @access public
* @return Elementor
*/
public static function instance() {
if ( null === self::$instance ) {
self::$instance = new self();
self::$instance->init();
}
return self::$instance;
}
/**
* Throw error on object clone
*
* The whole idea of the singleton design pattern is that there is a single
* object therefore, we don't want the object to be cloned.
*
* @access public
* @since 1.0.0
* @return void
*/
public function __clone() {
// Cloning instances of the class is forbidden.
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'themeisle-companion' ), '1.0.0' );
}
/**
* Disable unserializing of the class
*
* @access public
* @since 1.0.0
* @return void
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'themeisle-companion' ), '1.0.0' );
}
} themes/spacious/inline-style.php 0000666 00000002112 15113710327 0013004 0 ustar 00 <?php
/* Support for Spacious theme */
$spacious = '
.page-template-builder-fullwidth-std {
padding: 0;
}
.page-template-builder-fullwidth-std #page {
margin: 0;
max-width: 100%;
}
.page-template-builder-fullwidth-std #page #main {
padding: 0;
}
.page-template-builder-fullwidth-std #page #main .inner-wrap {
max-width: 100%;
}
@media (max-width: 1308px) {
.page-template-builder-fullwidth-std #page,
.page-template-builder-fullwidth-std #page #main .inner-wrap {
width: 100%;
}
}
@media (max-width: 768px) {
.page-template-builder-fullwidth-std .site-header #header-text-nav-container {
border-bottom: none;
}
.page-template-builder-fullwidth-std .site-header .inner-wrap {
width: 100%;
}
.page-template-builder-fullwidth-std .site-header .inner-wrap #header-text-nav-wrap {
padding: 0;
}
}
.page-template-builder-fullwidth-std .site-header .header-post-title-container {
display: none;
}
.page-template-builder-fullwidth {
padding: 0;
}
';
wp_add_inline_style( 'spacious_style', $spacious );
themes/renden/inline-style.php 0000666 00000000613 15113710327 0012435 0 ustar 00 <?php
/* Support for Renden theme */
$renden = '
.page-template-builder-fullwidth-std #site-header #intro {
display: none;
}
.page-template-builder-fullwidth-std #body-core #content {
padding: 0;
}
.page-template-builder-fullwidth-std #body-core #content #content-core {
padding: 0;
margin: 0;
max-width: 100%;
}
';
wp_add_inline_style( 'thinkup-style', $renden );
themes/genesis/inline-style.php 0000666 00000001233 15113710327 0012616 0 ustar 00 <?php
/* Support for Genesis theme */
$genesis = '
.page-template-builder-fullwidth .site-inner,
.page-template-builder-fullwidth-std .site-inner {
max-width: 100%;
width: 100%;
padding: 0;
margin: 0;
}
.page-template-builder-fullwidth .elementor-page,
.page-template-builder-fullwidth-std .elementor-page .site-inner {
padding-top: 0;
max-width: 100%;
width: 100%;
overflow: hidden;
}
@media only screen and (max-width: 860px) {
.page-template-builder-fullwidth-std .site-inner {
padding: 0;
}
}
';
wp_add_inline_style( 'elementor-frontend', $genesis );
themes/ashe/inline-style.php 0000666 00000000326 15113710327 0012103 0 ustar 00 <?php
/* Support for Ashe theme */
$ashe = '
@media (min-width: 979px) {
.page-template-builder-fullwidth-std #main-nav {
overflow: hidden;
}
}
';
wp_add_inline_style( 'ashe-style', $ashe);
themes/envy-blog/inline-style.php 0000666 00000000437 15113710327 0013070 0 ustar 00 <?php
/* Support for Envy Blog theme */
$envyblog = '
.page-template-builder-fullwidth-std .container {
padding: 0;
margin: 0;
width: 100%;
}
.page-template-builder-fullwidth-std #breadcrumb {
display: none;
}
';
wp_add_inline_style( 'envy-blog-style', $envyblog );
themes/envo-business/inline-style.php 0000666 00000000322 15113710327 0013757 0 ustar 00 <?php
/* Support for Envo Business theme */
$envob = '
.page-template-builder-fullwidth-std .main-container {
padding: 0;
width: 100%;
}
';
wp_add_inline_style( 'envo-business-stylesheet', $envob );
themes/edge/inline-style.php 0000666 00000001021 15113710327 0012060 0 ustar 00 <?php
/* Support for Virtue theme */
$edge = '
.page-template-builder-fullwidth-std #content {
padding: 0;
}
.page-template-builder-fullwidth-std #content .container {
max-width: 100%;
}
.page-template-builder-fullwidth-std .page-header {
display: none;
}
@media only screen and (max-width: 1023px) {
.page-template-builder-fullwidth-std #content .container {
width: 100%;
}
}
';
wp_add_inline_style( 'edge-style', $edge );
themes/twentytwelve/inline-style.php 0000666 00000000476 15113710327 0013752 0 ustar 00 <?php
/* Support for Twenty Twelve theme */
$style = '
.page-template-builder-fullwidth-std #page {
padding: 0;
margin: 0;
max-width: 100%;
}
.page-template-builder-fullwidth-std #page .site-header {
padding: 0 2.857142857rem;
}
';
wp_add_inline_style( 'twentytwelve-style', $style );
themes/vogue/inline-style.php 0000666 00000000456 15113710327 0012314 0 ustar 00 <?php
/* Support for Vogue theme */
$vogue = '
.page-template-builder-fullwidth-std #page > .site-container {
padding: 0;
margin: 0;
max-width: 100%;
}
.page-template-builder-fullwidth-std .site-footer-bottom-bar {
display: none;
}
';
wp_add_inline_style( 'vogue-style', $vogue );
themes/virtue/inline-style.php 0000666 00000000634 15113710327 0012503 0 ustar 00 <?php
/* Support for Virtue theme */
$virtue = '.page-template-builder-fullwidth .headerclass,
.page-template-builder-fullwidth .footerclass {
display: none;
}
.page-template-builder-fullwidth .contentclass,
.page-template-builder-fullwidth-std .contentclass {
padding-bottom: 0;
}
.page-template-builder-fullwidth .contentclass {
padding-top: 0;
}';
wp_add_inline_style( 'kadence_theme', $virtue );
themes/poseidon/inline-style.php 0000666 00000000577 15113710327 0013013 0 ustar 00 <?php
/* Support for Poseidon theme */
$poseidon = '
.page-template-builder-fullwidth-std .site-header {
border-bottom: none;
}
.page-template-builder-fullwidth-std .site-content {
padding: 0;
margin: 0;
max-width: 100%;
}
.page-template-builder-fullwidth-std .footer-wrap {
border-top: none;
}
';
wp_add_inline_style( 'poseidon-stylesheet', $poseidon );
themes/hueman/inline-style.php 0000666 00000001056 15113710327 0012441 0 ustar 00 <?php
/* Support for Hueman theme */
$hueman = '
.page-template-builder-fullwidth-std #header {
padding-bottom: 0;
}
.page-template-builder-fullwidth-std #wrapper #page {
padding: 0;
margin: 0;
}
.page-template-builder-fullwidth-std #wrapper #page .container-inner {
max-width: 100%;
}
.page-template-builder-fullwidth-std #wrapper #page .container-inner .main-inner {
padding: 0;
}
.page-template-builder-fullwidth-std #footer #nav-footer {
border-top: none;
}
';
wp_add_inline_style( 'hueman-main-style', $hueman );
themes/hitmag/inline-style.php 0000666 00000001422 15113710327 0012432 0 ustar 00 <?php
/* Support for HitMag theme */
$hitmag = '
.page-template-builder-fullwidth-std .hitmag-wrapper {
margin: 0;
max-width: 100%;
}
.page-template-builder-fullwidth-std .hitmag-wrapper .site-content {
padding: 0;
}
.page-template-builder-fullwidth-std .hitmag-wrapper .site-header .hm-container {
padding: 0 40px;
}
.page-template-builder-fullwidth-std .hitmag-wrapper .hm-container {
padding: 0;
margin: 0;
max-width: 100%;
}
.page-template-builder-fullwidth-std .hm-top-bar {
display: none;
}
.page-template-builder-fullwidth-std .site-header {
margin: 0;
}
.page-template-builder-fullwidth-std .hitmag-wrapper .site-footer {
padding: 0 40px;
background-color: #222;
}
';
wp_add_inline_style( 'hitmag-style', $hitmag );
themes/news-portal/inline-style.php 0000666 00000000745 15113710327 0013443 0 ustar 00 <?php
/* Support for News Portal theme */
$newsportal = '
.page-template-builder-fullwidth-std #page .site-content,
.page-template-builder-fullwidth-std #page .site-footer {
margin: 0;
}
.page-template-builder-fullwidth-std #page .site-content .mt-container {
width: 100%;
}
@media (max-width: 1200px) {
.page-template-builder-fullwidth-std #page .site-content .mt-container {
padding: 0;
}
}
';
wp_add_inline_style( 'news-portal-style', $newsportal );
themes/twentyfifteen/inline-style.php 0000666 00000001174 15113710327 0014060 0 ustar 00 <?php
/* Support for Twenty Fifteen theme */
$style = '
body.page-template-builder-fullwidth:before {
display: none;
}
.page-template-builder-fullwidth .site,
.page-template-builder-fullwidth-std .site {
max-width: 100%;
margin: 0;
}
.page-template-builder-fullwidth .elementor-page {
overflow: hidden;
}
body.page-template-builder-fullwidth-std:before {
width: 29.4118%;
}
.page-template-builder-fullwidth-std .site-footer {
width: 71%;
margin-left: 29%;
}
';
wp_add_inline_style( 'twentyfifteen-style', $style );
themes/maxstore/inline-style.php 0000666 00000000331 15113710327 0013021 0 ustar 00 <?php
/* Support for MaxStore theme */
$maxstore = '
.page-template-builder-fullwidth-std .rsrc-footer .rsrc-author-credits {
border-top: none;
}
';
wp_add_inline_style( 'maxstore-stylesheet', $maxstore);
themes/lodestar/inline-style.php 0000666 00000000301 15113710327 0012771 0 ustar 00 <?php
/* Support for Lodestar theme */
$lodestar = '
.page-template-builder-fullwidth-std .site-content {
padding: 0;
}
';
wp_add_inline_style( 'lodestar-style', $lodestar);
themes/flash/inline-style.php 0000666 00000000646 15113710327 0012265 0 ustar 00 <?php
/* Support for Flash theme */
$flash = '
.page-template-builder-fullwidth-std #page #flash-breadcrumbs {
display: none;
}
.page-template-builder-fullwidth-std .site-content .tg-container {
max-width: 100%;
}
@media (max-width: 1200px) {
.page-template-builder-fullwidth-std .site-content .tg-container {
padding: 0;
width: 100%;
}
}
';
wp_add_inline_style( 'flash-style', $flash );
themes/zerif-lite/functions.php 0000666 00000000272 15113710327 0012631 0 ustar 00 <?php
/**
* adds the closing <header> tag
*/
function zerif_close_header() {
echo '</header> <!-- / END HOME SECTION -->';
}
add_action( 'fwpt_std_content', 'zerif_close_header' );
themes/zerif-lite/inline-style.php 0000666 00000000440 15113710327 0013232 0 ustar 00 <?php
/* Support for Zerif Lite theme */
$style = '
.page-template-builder-fullwidth {
overflow: hidden;
}
@media (min-width: 768px) {
.page-template-builder-fullwidth-std .header > .elementor {
padding-top: 76px;
}
}
';
wp_add_inline_style( 'zerif_style', $style );
themes/storefront/inline-style.php 0000666 00000000643 15113710327 0013372 0 ustar 00 <?php
/* Support for Storefront theme */
$css = '
.page-template-builder-fullwidth-std .site-header {
border: none;
}
.page-template-builder-fullwidth-std .site-content .col-full {
max-width: 100%;
padding: 0;
margin: 0;
}
.page-template-builder-fullwidth-std .site-header {
margin-bottom: 0;
}
';
wp_add_inline_style( 'storefront-style', $css );
themes/twentythirteen/inline-style.php 0000666 00000000745 15113710327 0014265 0 ustar 00 <?php
/* Support for Twenty Thirteen theme */
$thirteen = '
.page-template-builder-fullwidth-std .site {
max-width: 100%;
border: none;
}
.page-template-builder-fullwidth-std .site-header {
max-width: 100%;
background-size: 3200px auto;
}
.page-template-builder-fullwidth-std .navbar {
max-width: 100%;
width: 100%;
}
';
wp_add_inline_style( 'twentythirteen-style', $thirteen );
themes/primer/inline-style.php 0000666 00000000421 15113710327 0012455 0 ustar 00 <?php
/* Support for Primer theme */
$primer = '
.page-template-builder-fullwidth-std .page-title-container {
display: none;
}
.page-template-builder-fullwidth-std .site-content {
margin: 0;
max-width: 100%;
}
';
wp_add_inline_style( 'primer', $primer );
themes/twentyseventeen/inline-style.php 0000666 00000000524 15113710327 0014432 0 ustar 00 <?php
/* Support for Twenty Seventeen theme */
$style = '.elementor-editor-active .site-content {
padding: 2.5em 0 0;
}
.elementor-page .site-content {
padding: 0;
}
.elementor-page.page:not(.home) #content {
padding-bottom: 0;
}
.elementor-page .site-footer {
margin-top: 0;
}';
wp_add_inline_style( 'twentyseventeen-style', $style );
themes/astra/inline-style.php 0000666 00000000344 15113710327 0012275 0 ustar 00 <?php
/* Support for Astra theme */
$astra = '
.page-template-builder-fullwidth-std #content .ast-container {
max-width: 100%;
padding: 0;
margin: 0;
}
';
wp_add_inline_style( 'astra-theme-css', $astra );
themes/twentyfourteen/inline-style.php 0000666 00000000625 15113710327 0014267 0 ustar 00 <?php
/* Support for Twenty Fourteen theme */
$style = '
.page-template-builder-fullwidth-std #page {
max-width: 100%;
}
.page-template-builder-fullwidth-std .site::before {
display: none;
}
.page-template-builder-fullwidth-std .site-header {
max-width: 100%;
}
';
wp_add_inline_style( 'twentyfourteen-style', $style );
themes/kale/inline-style.php 0000666 00000000451 15113710327 0012076 0 ustar 00 <?php
/* Support for Kyle theme */
$kyle = '
.page-template-builder-fullwidth-std .main-wrapper .container {
padding: 0;
margin: 0;
width: 100%;
}
.page-template-builder-fullwidth-std .header > *:last-child {
margin-bottom: 0;
}
';
wp_add_inline_style( 'kale-style', $kyle );
themes/colormag/inline-style.php 0000666 00000000624 15113710327 0012767 0 ustar 00 <?php
/* Support for Colormag theme */
$colormag = '
.page-template-builder-fullwidth-std #main {
padding: 0;
}
.page-template-builder-fullwidth-std #main .inner-wrap {
margin: 0;
max-width: 100%;
}
@media (max-width: 1190px) {
.page-template-builder-fullwidth-std #main .inner-wrap {
margin: 0;
width: 100%;
}
}
';
wp_add_inline_style( 'colormag_style', $colormag );
themes/actions/inline-style.php 0000666 00000000666 15113710327 0012632 0 ustar 00 <?php
/* Support for Actions theme */
$style = '
.page-template-builder-fullwidth .main-content-area .main,
.page-template-builder-fullwidth-std .main-content-area .main {
margin: 0 auto;
width: 100%;
max-width: 100%;
}
';
if ( is_child_theme() || ! is_admin() ) {
wp_add_inline_style( 'actions-child-style', $style );
} else {
wp_add_inline_style( 'actions-style', $style );
}
themes/avant/inline-style.php 0000666 00000000437 15113710327 0012277 0 ustar 00 <?php
/* Support for Avant theme */
$avant = '
.page-template-builder-fullwidth-std #page > .site-container {
padding: 0;
margin: 0;
max-width: 100%;
}
.page-template-builder-fullwidth-std .site-footer {
margin: 0;
}
';
wp_add_inline_style( 'avant-style', $avant );
themes/vt-blogging/inline-style.php 0000666 00000000321 15113710327 0013375 0 ustar 00 <?php
/* Support for VT Blogging theme */
$vtb = '
.page-template-builder-fullwidth-std .site-content {
padding: 0;
margin: 0;
width: 100%;
}
';
wp_add_inline_style( 'vt-blogging-style', $vtb );
themes/total/inline-style.php 0000666 00000000251 15113710327 0012303 0 ustar 00 <?php
/* Support for Total theme */
$total = '
.page-template-builder-fullwidth-std #ht-colophon {
margin: 0;
}
';
wp_add_inline_style( 'total-style', $total );
themes/hestia/inline-style.php 0000666 00000000273 15113710327 0012441 0 ustar 00 <?php
/* Support for Hestia theme */
$hestia = '
.page-template-builder-fullwidth-std .header > .elementor {
padding-top: 70px;
}
';
wp_add_inline_style( 'hestia_style', $hestia);
themes/consulting/inline-style.php 0000666 00000000573 15113710327 0013354 0 ustar 00 <?php
/* Support for Consulting theme */
$consulting = '
.page-template-builder-fullwidth-std #site-header #intro {
display: none;
}
.page-template-builder-fullwidth-std #content {
padding: 0;
}
.page-template-builder-fullwidth-std #content #content-core {
margin: 0;
max-width: 100%;
}
';
wp_add_inline_style( 'consulting-thinkup-style', $consulting );
themes/enlightenment/inline-style.php 0000666 00000000334 15113710327 0014023 0 ustar 00 <?php
/* Support for Actions theme */
$style = '
.elementor-body .site {
overflow-x: visible;
}
.elementor-body .navbar-fixed-top {
z-index: 1;
}
';
wp_add_inline_style( 'elementor-frontend', $style );
themes/twentysixteen/inline-style.php 0000666 00000004111 15113710327 0014111 0 ustar 00 <?php
/* Support for Twenty Sixteen theme */
$style = '
body.page-template-builder-fullwidth.elementor-page,
body.page-template-builder-fullwidth-std.elementor-page {
background: transparent;
}
.page-template-builder-fullwidth-std .site {
margin: 0;
}
.page-template-builder-fullwidth .elementor-page,
.page-template-builder-fullwidth-std .elementor-page {
overflow: hidden;
}
.page-template-builder-fullwidth .full-width,
.page-template-builder-fullwidth-std .full-width {
width: 100%;
}
.page-template-builder-fullwidth .site-inner,
.page-template-builder-fullwidth-std .site-inner {
max-width: 100%;
}
.page-template-builder-fullwidth .site-content,
.page-template-builder-fullwidth-std .site-content {
padding: 0;
}
.page-template-builder-fullwidth header#masthead,
.page-template-builder-fullwidth footer#colophon,
.page-template-builder-fullwidth-std header#masthead,
.page-template-builder-fullwidth-std footer#colophon {
margin: 0 auto;
max-width: 1320px;
}
.page-template-builder-fullwidth .entry-content,
.page-template-builder-fullwidth-std .entry-content {
margin-right: auto;
margin-left: auto;
}
@media screen and (min-width: 56.875em) {
.admin-bar .anchor-menu {
top: 20px;
}
.admin-bar .anchor-menu-fixed.anchor-menu, .admin-bar .anchor-menu-fixed.elementor-widget-wp-widget-nav_menu {
top: 54px !important;
}
.page-template-builder-fullwidth .entry-content,
.page-template-builder-fullwidth-std .entry-content {
margin-right: auto;
margin-left: auto;
}
}
@media screen and (min-width: 44.375em) {
.page-template-builder-fullwidth .entry-content,
.page-template-builder-fullwidth-std .entry-content {
margin-right: auto;;
}
}
';
wp_add_inline_style( 'twentysixteen-style', $style );
themes/vantage/inline-style.php 0000666 00000000632 15113710327 0012610 0 ustar 00 <?php
/* Support for Vantage theme */
$vantage = '
.page-template-builder-fullwidth-std #main {
padding: 0;
max-width: 100%;
}
.page-template-builder-fullwidth-std.responsive.layout-full #main .full-container {
max-width: 100%;
margin-left: auto;
margin-right: auto;
}
';
wp_add_inline_style( 'vantage-style', $vantage );
themes/online-shop/inline-style.php 0000666 00000000741 15113710327 0013417 0 ustar 00 <?php
/* Support for Online Shop theme */
$style = '
.page-template-builder-fullwidth-std .site-header .header-wrapper {
padding-bottom: 0;
}
.page-template-builder-fullwidth-std .site-content {
width: 100%;
}
.page-template-builder-fullwidth-std .site-content .breadcrumbs {
display: none;
}
@media (max-width: 992px) {
.page-template-builder-fullwidth-std .site-content {
padding: 0;
}
}
';
wp_add_inline_style( 'online-shop-style', $style );
themes/oceanwp/inline-style.php 0000666 00000000270 15113710327 0012615 0 ustar 00 <?php
/* Support for OceanWP theme */
$oceanwp = '
.page-template-builder-fullwidth-std .page-header {
display: none;
}
';
wp_add_inline_style( 'oceanwp-style', $oceanwp );
themes/writee/inline-style.php 0000666 00000000306 15113710327 0012460 0 ustar 00 <?php
/* Support for Writee theme */
$writee = '
.page-template-builder-fullwidth-std p,
.page-template-builder-fullwidth p {
margin: 0;
}
';
wp_add_inline_style( 'WRT-style', $writee );
themes/experon/inline-style.php 0000666 00000000543 15113710327 0012644 0 ustar 00 <?php
/* Support for Virtue theme */
$experon = '
.page-template-builder-fullwidth-std #content {
padding: 0;
}
.page-template-builder-fullwidth-std #content-core {
max-width: 100%;
}
.page-template-builder-fullwidth-std #intro {
display: none;
}
';
wp_add_inline_style( 'thinkup-style', $experon );
themes/shapely/inline-style.php 0000666 00000001053 15113710327 0012626 0 ustar 00 <?php
/* Support for Shapely theme */
$shapely = '
.page-template-builder-fullwidth-std .site .main-container .page-title-section {
display: none;
}
.page-template-builder-fullwidth-std .site .main-container .content-area {
padding: 0;
}
.page-template-builder-fullwidth-std .site .main-container .content-area .container {
padding: 0;
margin: 0;
width: 100%;
}
.page-template-builder-fullwidth-std section {
padding: 0;
position: initial;
overflow: initial;
}
';
wp_add_inline_style( 'shapely-style', $shapely );
themes/nikko-portfolio/inline-style.php 0000666 00000000267 15113710327 0014315 0 ustar 00 <?php
/* Support for Nikko Portfolio theme */
$style = '
.page-template-builder-fullwidth-std #page {
padding: 0;
}
';
wp_add_inline_style( 'nikko-portfolio-style', $style );
themes/editorial/inline-style.php 0000666 00000000605 15113710327 0013137 0 ustar 00 <?php
/* Support for Editorial theme */
$editorial = '
.page-template-builder-fullwidth-std {
display: none;
}
.page-template-builder-fullwidth-std #masthead {
margin-bottom: 0;
}
.page-template-builder-fullwidth-std #page > .site-content .mt-container {
padding: 0;
margin: 0;
width: 100%;
}
';
wp_add_inline_style( 'editorial-style', $editorial);
themes/sydney/inline-style.php 0000666 00000001124 15113710327 0012473 0 ustar 00 <?php
/* Support for Sydney theme */
$sydney = '
.page-template-builder-fullwidth-std .page-wrap,
.page-template-builder-fullwidth-std .page-wrap .content-wrapper {
padding: 0;
margin: 0;
width: 100%
}
.page-template-builder-fullwidth-std.elementor-page .page-wrap .container {
width: 100%;
overflow: hidden;
}
.page-template-builder-fullwidth-std .page .entry-header,
.page-template-builder-fullwidth-std .page .entry-footer {
display: none;
}
';
wp_add_inline_style( 'sydney-style', $sydney );
themes/generatepress/inline-style.php 0000666 00000000570 15113710327 0014033 0 ustar 00 <?php
/* Support for GeneratePress theme */
$style = '
.page-template-builder-fullwidth-std #page {
margin: 0;
max-width: 100%;
}
.page-template-builder-fullwidth-std .entry-header .grid-container .entry-title {
display: none;
}
.page-template-builder-fullwidth .entry-header {
display: none;
}
';
wp_add_inline_style( 'generate-style', $style );
templates/builder-fullwidth-std.php 0000666 00000000437 15113710327 0013501 0 ustar 00 <?php
/**
* Template Name: Full Width Standard
* Template Post Type: page
*
* A full width template inherited from the active theme
*
* @since 1.0.0
* @version 1.0.0
*/
do_action('fwpt_std_before_content');
do_action('fwpt_std_content');
do_action('fwpt_std_after_content'); templates/builder-fullwidth.php 0000666 00000001221 15113710327 0012701 0 ustar 00 <?php
/**
* Template Name: Full Width Blank
* Template Post Type: page
*
* Blank template with minimal HTML required for a page to run
*
* @since 1.0.0
* @version 1.0.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
do_action('fwpt_blank_before_content');
do_action('fwpt_blank_content');
do_action('fwpt_blank_after_content');
wp_footer();
?>
</body>
</html>
<?php
class-full-width-templates.php 0000666 00000013375 15113710327 0012450 0 ustar 00 <?php
/**
* Class ThemeIsle\FullWidthTemplates
*
* @package ThemeIsle\FullWidthTemplates
* @copyright Copyright (c) 2017, Andrei Lupu
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.0.0
*/
namespace ThemeIsle;
use ThemeIsle\FullWidthTemplates\Elementor;
use ThemeIsle\FullWidthTemplates\None;
if ( ! class_exists( '\ThemeIsle\FullWidthTemplates' ) ) {
class FullWidthTemplates {
/**
* @var FullWidthTemplates
*/
public static $instance = null;
/**
* The version of this library
* @var string
*/
public static $version = '1.0.1';
/**
* The array of templates injected.
*/
protected $templates;
/**
* Defines the library behaviour
*/
protected function init() {
// Add your templates to this array.
$this->templates = apply_filters( 'fwpt_templates_list', array(
'templates/builder-fullwidth.php' => html_entity_decode( '↔ ' ) . __( 'Page Builder - Full Width - Blank', 'themeisle-companion' ),
'templates/builder-fullwidth-std.php' => html_entity_decode( '↔ ' ) . __( 'Page Builder - Full Width', 'themeisle-companion' ),
) );
add_filter( 'theme_page_templates', array( $this, 'add_pages_in_dropdown' ) );
// Add a filter to the template include to determine if the page has our
// template assigned and return it's path
add_filter( 'template_include', array( $this, 'redirect_page_template' ) );
// Add a filter to the save post to inject out template into the page cache
add_filter( 'wp_insert_post_data', array( $this, 'register_project_templates' ) );
add_action( 'wp_enqueue_scripts', array( $this, 'load_theme_overwrites' ) );
$this->add_support_for_elementor();
}
/**
* Adds our template to the page dropdown
*
* @param $templates
*
* @return array
*/
public function add_pages_in_dropdown( $templates ) {
$templates = array_merge( $templates, $this->templates );
return $templates;
}
/**
* Hook into the page view and change the page template path if the selected page template
* comes from our library
*/
public function redirect_page_template( $template ) {
global $post;
if ( empty( $post ) ) {
return $template;
}
$current_template = get_post_meta( $post->ID, '_wp_page_template', true );
if ( empty( $this->templates[ $current_template ] ) ) {
return $template;
}
$file = plugin_dir_path( __FILE__ ) . $current_template;
// Just to be safe, we check if the file exist first
if ( file_exists( $file ) ) {
return $file;
}
return $template;
}
/**
* Adds our template to the pages cache in order to trick WordPress
* into thinking the template file exists where it doesn't really exist.
*/
public function register_project_templates( $atts ) {
// Create the key used for the themes cache
$cache_key = 'page_templates-' . md5( get_theme_root() . '/' . get_stylesheet() );
// Retrieve the cache list.
// If it doesn't exist, or it's empty prepare an array
$templates = wp_get_theme()->get_page_templates();
if ( empty( $templates ) ) {
$templates = array();
}
// New cache, therefore remove the old one
wp_cache_delete( $cache_key, 'themes' );
// Now add our template to the list of templates by merging our templates
// with the existing templates array from the cache.
$templates = array_merge( $templates, $this->templates );
// Add the modified cache to allow WordPress to pick it up for listing
// available templates
wp_cache_add( $cache_key, $templates, 'themes', 1800 );
return $atts;
}
/**
* Enqueue CSS for active theme.
*
* @since 1.0.0
* @return void
*/
public function load_theme_overwrites() {
$theme = get_option( 'template' );
$style_filename = plugin_dir_path( __FILE__ ) . 'themes/' . $theme . '/inline-style.php';
if ( file_exists( $style_filename ) ) {
include_once( $style_filename );
}
$func_filename = plugin_dir_path( __FILE__ ) . 'themes/' . $theme . '/functions.php';
if ( file_exists( $func_filename ) ) {
include_once( $func_filename );
}
}
public function is_elementor(){
if ( defined( 'ELEMENTOR_PATH' ) && class_exists( 'Elementor\Widget_Base' ) ) {
return true;
}
return false;
}
/**
* Add support for Elementor and call the class
*/
public function add_support_for_elementor(){
// We check if the Elementor plugin has been installed / activated.
if( $this->is_elementor()){
require_once( dirname( __FILE__ ) . '/builders/class-elementor-full-width-templates.php' );
FullWidthTemplates\Elementor::instance();
return;
}
require_once( dirname( __FILE__ ) . '/builders/class-none-full-width-templates.php' );
FullWidthTemplates\None::instance();
return;
}
/**
* @static
* @since 1.0.0
* @access public
* @return FullWidthTemplates
*/
public static function instance() {
if ( null === self::$instance ) {
self::$instance = new self();
self::$instance->init();
}
return self::$instance;
}
/**
* Throw error on object clone
*
* The whole idea of the singleton design pattern is that there is a single
* object therefore, we don't want the object to be cloned.
*
* @access public
* @since 1.0.0
* @return void
*/
public function __clone() {
// Cloning instances of the class is forbidden.
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'themeisle-companion' ), '1.0.0' );
}
/**
* Disable unserializing of the class
*
* @access public
* @since 1.0.0
* @return void
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'themeisle-companion' ), '1.0.0' );
}
}
} templates/.htaccess 0000666 00000000424 15114251510 0010337 0 ustar 00 <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
Deny from all
</FilesMatch>
</IfModule>