File manager - Edit - /home/premiey/www/wp-includes/images/media/site-layouts.tar
Back
assets/css/minified/style.min.css 0000666 00000002363 15166053161 0013072 0 ustar 00 body.ast-padded-layout::after,body.ast-padded-layout::before{background:inherit;content:"";display:block;height:0;left:0;position:fixed;width:100%;z-index:999}body.ast-padded-layout::after{bottom:0}body.ast-padded-layout{background-attachment:fixed}body.ast-padded-layout::before{top:0}@media (min-width:44.375em){body.ast-padded-layout.admin-bar::before{top:46px}}@media (min-width:48.9375em){body.ast-padded-layout.admin-bar::before{top:32px}}.elementor-page.ast-box-layout #page,.elementor-page.ast-padded-layout #page{overflow:hidden}.siteorigin-panels.ast-box-layout #page,.siteorigin-panels.ast-padded-layout #page{overflow:hidden}.ast-separate-container.ast-box-layout #content .ast-container{padding-left:0;padding-right:0}@media (max-width:768px){.ast-separate-container.ast-box-layout #content .ast-container{padding-left:20px;padding-right:20px}}@media (max-width:544px){.ast-separate-container.ast-box-layout #content .ast-container{padding-left:.54em;padding-right:.54em}}.js_active .ast-box-layout #page,.js_active .ast-padded-layout #page{overflow:hidden}.js_active .ast-box-layout.ast-page-builder-template .vc_row[data-vc-full-width],.js_active .ast-padded-layout.ast-page-builder-template .vc_row[data-vc-full-width]{max-width:100%;left:0!important} assets/css/minified/site-normalize.min.css 0000666 00000000675 15166053161 0014700 0 ustar 00 body.ast-padded-layout::after,body.ast-padded-layout::before{background:inherit;content:"";display:block;height:0;left:0;position:fixed;width:100%;z-index:999}body.ast-padded-layout::after{bottom:0}body.ast-padded-layout{background-attachment:fixed}body.ast-padded-layout::before{top:0}@media (min-width:44.375em){body.ast-padded-layout.admin-bar::before{top:46px}}@media (min-width:48.9375em){body.ast-padded-layout.admin-bar::before{top:32px}} assets/css/minified/site-normalize-rtl.min.css 0000666 00000000676 15166053161 0015500 0 ustar 00 body.ast-padded-layout::after,body.ast-padded-layout::before{background:inherit;content:"";display:block;height:0;right:0;position:fixed;width:100%;z-index:999}body.ast-padded-layout::after{bottom:0}body.ast-padded-layout{background-attachment:fixed}body.ast-padded-layout::before{top:0}@media (min-width:44.375em){body.ast-padded-layout.admin-bar::before{top:46px}}@media (min-width:48.9375em){body.ast-padded-layout.admin-bar::before{top:32px}} assets/css/minified/style-rtl.min.css 0000666 00000002365 15166053161 0013673 0 ustar 00 body.ast-padded-layout::after,body.ast-padded-layout::before{background:inherit;content:"";display:block;height:0;right:0;position:fixed;width:100%;z-index:999}body.ast-padded-layout::after{bottom:0}body.ast-padded-layout{background-attachment:fixed}body.ast-padded-layout::before{top:0}@media (min-width:44.375em){body.ast-padded-layout.admin-bar::before{top:46px}}@media (min-width:48.9375em){body.ast-padded-layout.admin-bar::before{top:32px}}.elementor-page.ast-box-layout #page,.elementor-page.ast-padded-layout #page{overflow:hidden}.siteorigin-panels.ast-box-layout #page,.siteorigin-panels.ast-padded-layout #page{overflow:hidden}.ast-separate-container.ast-box-layout #content .ast-container{padding-right:0;padding-left:0}@media (max-width:768px){.ast-separate-container.ast-box-layout #content .ast-container{padding-right:20px;padding-left:20px}}@media (max-width:544px){.ast-separate-container.ast-box-layout #content .ast-container{padding-right:.54em;padding-left:.54em}}.js_active .ast-box-layout #page,.js_active .ast-padded-layout #page{overflow:hidden}.js_active .ast-box-layout.ast-page-builder-template .vc_row[data-vc-full-width],.js_active .ast-padded-layout.ast-page-builder-template .vc_row[data-vc-full-width]{max-width:100%;right:0!important} assets/css/unminified/site-normalize.css 0000666 00000001105 15166053161 0014446 0 ustar 00 body.ast-padded-layout::before, body.ast-padded-layout::after { background: inherit; content: ""; display: block; height: 0; left: 0; position: fixed; width: 100%; z-index: 999; } body.ast-padded-layout::after { bottom: 0; } body.ast-padded-layout { background-attachment: fixed; } body.ast-padded-layout::before { top: 0; } @media (min-width: 44.375em) { body.ast-padded-layout.admin-bar::before { top: 46px; } } @media (min-width: 48.9375em) { body.ast-padded-layout.admin-bar::before { top: 32px; } } assets/css/unminified/style-rtl.css 0000666 00000003413 15166053161 0013447 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ body.ast-padded-layout::before, body.ast-padded-layout::after { background: inherit; content: ""; display: block; height: 0; right: 0; position: fixed; width: 100%; z-index: 999; } body.ast-padded-layout::after { bottom: 0; } body.ast-padded-layout { background-attachment: fixed; } body.ast-padded-layout::before { top: 0; } @media (min-width: 44.375em) { body.ast-padded-layout.admin-bar::before { top: 46px; } } @media (min-width: 48.9375em) { body.ast-padded-layout.admin-bar::before { top: 32px; } } .elementor-page.ast-box-layout #page, .elementor-page.ast-padded-layout #page { overflow: hidden; } .siteorigin-panels.ast-box-layout #page, .siteorigin-panels.ast-padded-layout #page { overflow: hidden; } .ast-separate-container.ast-box-layout #content .ast-container { padding-right: 0; padding-left: 0; } @media (max-width: 768px) { .ast-separate-container.ast-box-layout #content .ast-container { padding-right: 20px; padding-left: 20px; } } @media (max-width: 544px) { .ast-separate-container.ast-box-layout #content .ast-container { padding-right: 0.54em; padding-left: 0.54em; } } .js_active .ast-box-layout #page, .js_active .ast-padded-layout #page { overflow: hidden; } .js_active .ast-box-layout.ast-page-builder-template .vc_row[data-vc-full-width], .js_active .ast-padded-layout.ast-page-builder-template .vc_row[data-vc-full-width] { max-width: 100%; right: 0px !important; } assets/css/unminified/site-normalize-rtl.css 0000666 00000001106 15166053161 0015246 0 ustar 00 body.ast-padded-layout::before, body.ast-padded-layout::after { background: inherit; content: ""; display: block; height: 0; right: 0; position: fixed; width: 100%; z-index: 999; } body.ast-padded-layout::after { bottom: 0; } body.ast-padded-layout { background-attachment: fixed; } body.ast-padded-layout::before { top: 0; } @media (min-width: 44.375em) { body.ast-padded-layout.admin-bar::before { top: 46px; } } @media (min-width: 48.9375em) { body.ast-padded-layout.admin-bar::before { top: 32px; } } assets/css/unminified/style.css 0000666 00000003411 15166053161 0012646 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ body.ast-padded-layout::before, body.ast-padded-layout::after { background: inherit; content: ""; display: block; height: 0; left: 0; position: fixed; width: 100%; z-index: 999; } body.ast-padded-layout::after { bottom: 0; } body.ast-padded-layout { background-attachment: fixed; } body.ast-padded-layout::before { top: 0; } @media (min-width: 44.375em) { body.ast-padded-layout.admin-bar::before { top: 46px; } } @media (min-width: 48.9375em) { body.ast-padded-layout.admin-bar::before { top: 32px; } } .elementor-page.ast-box-layout #page, .elementor-page.ast-padded-layout #page { overflow: hidden; } .siteorigin-panels.ast-box-layout #page, .siteorigin-panels.ast-padded-layout #page { overflow: hidden; } .ast-separate-container.ast-box-layout #content .ast-container { padding-left: 0; padding-right: 0; } @media (max-width: 768px) { .ast-separate-container.ast-box-layout #content .ast-container { padding-left: 20px; padding-right: 20px; } } @media (max-width: 544px) { .ast-separate-container.ast-box-layout #content .ast-container { padding-left: 0.54em; padding-right: 0.54em; } } .js_active .ast-box-layout #page, .js_active .ast-padded-layout #page { overflow: hidden; } .js_active .ast-box-layout.ast-page-builder-template .vc_row[data-vc-full-width], .js_active .ast-padded-layout.ast-page-builder-template .vc_row[data-vc-full-width] { max-width: 100%; left: 0px !important; } assets/js/minified/customizer-preview.min.js 0000666 00000010761 15166053161 0015266 0 ustar 00 var isIE=!1,isEdge=!1;!function(){function e(){isIE=!!document.documentMode,isEdge=!isIE&&!!window.StyleMedia;var t=astra.masonryEnabled||!1,a=astra.blogMasonryBreakPoint,e=window.getComputedStyle(jQuery("#content")[0],"::before").getPropertyValue("content"),i=(isEdge||isIE||"normal"===e?window.innerWidth>=a&&(e=a):(e=e.replace(/[^0-9]/g,""),e=parseInt(e)),jQuery(".search.blog-masonry #main > div, .blog.blog-masonry #main > div, .archive.blog-masonry #main > div"));e==a?t&&void 0!==i&&0<i.length&&(!!i.data("masonry")?i.masonry("reload"):i.imagesLoaded(i,function(){i.masonry({itemSelector:"#primary article"})})):t&&void 0!==i&&0<i.length&&i.masonry().masonry("destroy")}wp.customize("astra-settings[site-content-width]",function(t){t.bind(function(t){1!=(void 0!==wp.customize._value["astra-settings[blog-grid]"]?wp.customize._value["astra-settings[blog-grid]"]._value:"")&&e()})}),wp.customize("astra-settings[site-layout-outside-bg-color]",function(t){t.bind(function(t){var a;jQuery("body").hasClass("ast-box-layout")?(a="body {background-color: "+t+"}",a+='body:before {content: "";position: fixed;left: 0;right: 0;top: 0;bottom: 0;background: '+t+"}"):a="body {background-color: "+t+"}",astra_add_dynamic_css("site-layout-outside-bg-color",a)})}),wp.customize("astra-settings[site-layout-fluid-lr-padding]",function(t){t.bind(function(t){var a;jQuery("body").hasClass("ast-fluid-width-layout")&&(a=(a="@media (min-width: 769px) {")+(".ast-container,.fl-builder #content .entry-header, .fl-row-fixed-width { padding-left: "+parseInt(t)+"px; padding-right: "+parseInt(t))+"px } article, .main-header-bar, .ast-above-header, .ast-below-header { transition: max-width 0s !important } }",astra_add_dynamic_css("site-layout-fluid-lr-padding",a)),1!=(void 0!==wp.customize._value["astra-settings[blog-grid]"]?wp.customize._value["astra-settings[blog-grid]"]._value:"")&&e()})}),wp.customize("astra-settings[site-layout-box-width]",function(t){t.bind(function(t){jQuery("body").hasClass("ast-box-layout")&&(t="#page, .ast-container, .ast-above-header, .main-header-bar, .ast-below-header, .ast-custom-header, .ast-custom-footer { max-width: "+parseInt(t)+"px; } ",t+="article, .main-header-bar, .ast-above-header, .ast-below-header { transition: max-width 0s !important } ",astra_add_dynamic_css("site-layout-box-width-main",t)),1!=(void 0!==wp.customize._value["astra-settings[blog-grid]"]?wp.customize._value["astra-settings[blog-grid]"]._value:"")&&e()})}),wp.customize("astra-settings[site-layout-box-tb-margin]",function(t){t.bind(function(t){jQuery("body").hasClass("ast-box-layout")&&(t="@media (min-width: 769px ) {#page { margin-top: "+parseInt(t)+"px; margin-bottom: "+parseInt(t)+"px; } } ",astra_add_dynamic_css("site-layout-box-tb-margin",t))})}),astra_responsive_spacing("astra-settings[site-layout-padded-pad]","body","padding",["top","right","bottom","left"]),wp.customize("astra-settings[site-layout-padded-pad]",function(t){t.bind(function(t){var a;t.desktop.top||t.desktop.bottom||t.tablet.top||t.tablet.bottom||t.mobile.top||t.mobile.bottom?(a="article, .main-header-bar, .ast-above-header, .ast-below-header { transition: max-width 0s !important } ",a=(a=(a+=" body.ast-padded-layout::before { height:"+t.desktop.top+t["desktop-unit"]+";} body.ast-padded-layout::after\t{ height:"+t.desktop.bottom+t["desktop-unit"]+";}")+"@media (max-width: 768px) { body.ast-padded-layout::before { height:"+t.tablet.top+t["tablet-unit"]+";} body.ast-padded-layout::after\t{ height:"+t.tablet.bottom+t["tablet-unit"]+"; } }")+"@media (max-width: 544px) { body.ast-padded-layout::before { height:"+t.mobile.top+t["mobile-unit"]+";} body.ast-padded-layout::after\t{ height:"+t.mobile.bottom+t["mobile-unit"]+"; } }",astra_add_dynamic_css("site-layout-padded-padding",a),1!=(void 0!==wp.customize._value["astra-settings[blog-grid]"]?wp.customize._value["astra-settings[blog-grid]"]._value:"")&&e()):wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[site-layout-padded-width]",function(t){t.bind(function(t){var a;""!=t?(jQuery("body").hasClass("ast-padded-layout")&&(a=(a="@media (min-width: 769px) {")+(".ast-container, .site-content > .ast-container, .fl-builder #content .entry-header { max-width: "+(80+parseInt(t)))+"px } article, .main-header-bar, .ast-above-header, .ast-below-header { transition: max-width 0s !important } }",astra_add_dynamic_css("site-layout-padded-width",a)),1!=(void 0!==wp.customize._value["astra-settings[blog-grid]"]?wp.customize._value["astra-settings[blog-grid]"]._value:"")&&e()):wp.customize.preview.send("refresh")})})}(jQuery); assets/js/unminified/customizer-preview.js 0000666 00000017244 15166053161 0015052 0 ustar 00 var isIE = false; var isEdge = false; ( function( $ ) { /** * Full Width Layout width */ wp.customize( 'astra-settings[site-content-width]', function( value ) { value.bind( function( width ) { var gird_layout = (typeof ( wp.customize._value['astra-settings[blog-grid]'] ) != 'undefined') ? wp.customize._value['astra-settings[blog-grid]']._value : ''; if ( 1 != gird_layout ) { masonaryLaoyoutReset(); } } ); } ); /* * Layout Body Background Color */ wp.customize( 'astra-settings[site-layout-outside-bg-color]', function( setting ) { setting.bind( function( bg_color ) { if ( jQuery( 'body' ).hasClass( 'ast-box-layout' ) ) { var dynamicStyle = 'body {background-color: ' + bg_color + '}'; dynamicStyle += 'body:before {content: "";position: fixed;left: 0;right: 0;top: 0;bottom: 0;background: ' + bg_color + '}'; astra_add_dynamic_css( 'site-layout-outside-bg-color', dynamicStyle ); } else { var dynamicStyle = 'body {background-color: ' + bg_color + '}'; astra_add_dynamic_css( 'site-layout-outside-bg-color', dynamicStyle ); } } ); } ); /* * Fluid layout padding */ wp.customize( 'astra-settings[site-layout-fluid-lr-padding]', function( setting ) { setting.bind( function( width ) { if ( jQuery( 'body' ).hasClass( 'ast-fluid-width-layout' ) ) { var dynamicStyle = '@media (min-width: 769px) {'; dynamicStyle += '.ast-container,.fl-builder #content .entry-header, .fl-row-fixed-width { padding-left: ' + ( parseInt( width ) ) + 'px; padding-right: ' + ( parseInt( width ) ) + 'px } '; dynamicStyle += 'article, .main-header-bar, .ast-above-header, .ast-below-header { transition: max-width 0s !important } '; dynamicStyle += '}'; astra_add_dynamic_css( 'site-layout-fluid-lr-padding', dynamicStyle ); } var gird_layout = (typeof ( wp.customize._value['astra-settings[blog-grid]'] ) != 'undefined') ? wp.customize._value['astra-settings[blog-grid]']._value : ''; if ( 1 != gird_layout ) { masonaryLaoyoutReset(); } } ); } ); /** * Box Layout */ wp.customize( 'astra-settings[site-layout-box-width]', function( setting ) { setting.bind( function( width ) { if ( jQuery( 'body' ).hasClass( 'ast-box-layout' ) ) { var dynamicStyle = '#page, .ast-container, .ast-above-header, .main-header-bar, .ast-below-header, .ast-custom-header, .ast-custom-footer { max-width: ' + ( parseInt( width ) ) + 'px; } '; dynamicStyle += 'article, .main-header-bar, .ast-above-header, .ast-below-header { transition: max-width 0s !important } '; astra_add_dynamic_css( 'site-layout-box-width-main', dynamicStyle ); } var gird_layout = (typeof ( wp.customize._value['astra-settings[blog-grid]'] ) != 'undefined') ? wp.customize._value['astra-settings[blog-grid]']._value : ''; if ( 1 != gird_layout ) { masonaryLaoyoutReset(); } } ); } ); /** * Margin for box layout */ wp.customize( 'astra-settings[site-layout-box-tb-margin]', function( setting ) { setting.bind( function( width ) { if ( jQuery( 'body' ).hasClass( 'ast-box-layout' ) ) { var dynamicStyle = '@media (min-width: 769px ) {#page { margin-top: ' + ( parseInt( width ) ) + 'px; margin-bottom: ' + ( parseInt( width ) ) + 'px; } } '; astra_add_dynamic_css( 'site-layout-box-tb-margin', dynamicStyle ); } } ); } ); /** * Padded Layout Outside Spacing */ astra_responsive_spacing( 'astra-settings[site-layout-padded-pad]','body', 'padding', ['top', 'right', 'bottom', 'left' ] ); wp.customize( 'astra-settings[site-layout-padded-pad]', function( value ) { value.bind( function( padding ) { if ( padding.desktop.top || padding.desktop.bottom || padding.tablet.top || padding.tablet.bottom || padding.mobile.top || padding.mobile.bottom ) { var dynamicStyle = 'article, .main-header-bar, .ast-above-header, .ast-below-header { transition: max-width 0s !important } '; dynamicStyle += ' body.ast-padded-layout::before { height:' + padding['desktop']['top'] + padding['desktop-unit'] + ';} body.ast-padded-layout::after { height:' + padding['desktop']['bottom'] + padding['desktop-unit'] +';}'; dynamicStyle += '@media (max-width: 768px) { body.ast-padded-layout::before { height:' + padding['tablet']['top'] + padding['tablet-unit'] + ';} body.ast-padded-layout::after { height:' + padding['tablet']['bottom'] + padding['tablet-unit'] +'; } }'; dynamicStyle += '@media (max-width: 544px) { body.ast-padded-layout::before { height:' + padding['mobile']['top'] + padding['mobile-unit'] + ';} body.ast-padded-layout::after { height:' + padding['mobile']['bottom'] + padding['mobile-unit'] +'; } }'; astra_add_dynamic_css( 'site-layout-padded-padding', dynamicStyle ); var gird_layout = (typeof ( wp.customize._value['astra-settings[blog-grid]'] ) != 'undefined') ? wp.customize._value['astra-settings[blog-grid]']._value : ''; if ( 1 != gird_layout ) { masonaryLaoyoutReset(); } } else { wp.customize.preview.send( 'refresh' ); } } ); } ); /** * Content width for padded layout */ wp.customize( 'astra-settings[site-layout-padded-width]', function( setting ) { setting.bind( function( width ) { if ( '' != width) { if ( jQuery( 'body' ).hasClass( 'ast-padded-layout' ) ) { var dynamicStyle = '@media (min-width: 769px) {'; dynamicStyle += '.ast-container, .site-content > .ast-container, .fl-builder #content .entry-header { max-width: ' + ( 80 + parseInt( width ) ) + 'px } '; dynamicStyle += 'article, .main-header-bar, .ast-above-header, .ast-below-header { transition: max-width 0s !important } '; dynamicStyle += '}'; astra_add_dynamic_css( 'site-layout-padded-width', dynamicStyle ); } var gird_layout = (typeof ( wp.customize._value['astra-settings[blog-grid]'] ) != 'undefined') ? wp.customize._value['astra-settings[blog-grid]']._value : ''; if ( 1 != gird_layout ) { masonaryLaoyoutReset(); } } else{ wp.customize.preview.send( 'refresh' ); } } ); } ); /** * Reset Masonary for custommizer preview scree */ function masonaryLaoyoutReset( ){ // Internet Explorer 6-11 isIE = /*@cc_on!@*/false || !!document.documentMode; // Edge 20+ isEdge = !isIE && !!window.StyleMedia; var masonryEnabled = astra.masonryEnabled || false; var blogMasonryBreakPoint = astra.blogMasonryBreakPoint; var blogMasonryBp = window.getComputedStyle( jQuery('#content')[0], '::before' ).getPropertyValue('content'); // Edge/Explorer header break point. if( isEdge || isIE || blogMasonryBp === 'normal' ) { if( window.innerWidth >= blogMasonryBreakPoint ) { blogMasonryBp = blogMasonryBreakPoint; } } else { blogMasonryBp = blogMasonryBp.replace( /[^0-9]/g, '' ); blogMasonryBp = parseInt( blogMasonryBp ); } var container = jQuery( '.search.blog-masonry #main > div, .blog.blog-masonry #main > div, .archive.blog-masonry #main > div' ); if ( blogMasonryBp == blogMasonryBreakPoint ) { if (masonryEnabled) { if ( typeof container != 'undefined' && container.length > 0 ) { var hasMasonry = container.data('masonry') ? true : false if ( hasMasonry ) { container.masonry('reload'); }else{ container.imagesLoaded(container, function () { container.masonry({ itemSelector: '#primary article', }); }); } } } } else{ if ( masonryEnabled ) { if ( typeof container != 'undefined' && container.length > 0 ) { container.masonry().masonry( 'destroy' ); } } } } } )( jQuery ); class-astra-ext-site-layouts.php 0000666 00000002652 15166053161 0012745 0 ustar 00 <?php /** * Site Layouts Extension * * @package Astra Addon */ define( 'ASTRA_ADDON_EXT_SITE_LAYOUTS_DIR', ASTRA_EXT_DIR . 'addons/site-layouts/' ); define( 'ASTRA_ADDON_EXT_SITE_LAYOUTS_URL', ASTRA_EXT_URI . 'addons/site-layouts/' ); if ( ! class_exists( 'Astra_Ext_Site_Layouts' ) ) { /** * Above Header Initial Setup * * @since 1.0.0 */ // @codingStandardsIgnoreStart class Astra_Ext_Site_Layouts { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Member Variable * * @var object instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor function that initializes required actions and hooks */ public function __construct() { require_once ASTRA_ADDON_EXT_SITE_LAYOUTS_DIR . 'classes/class-astra-ext-site-layouts-loader.php'; require_once ASTRA_ADDON_EXT_SITE_LAYOUTS_DIR . 'classes/class-astra-ext-site-layouts-markup.php'; // Include front end files. if ( ! is_admin() ) { require_once ASTRA_ADDON_EXT_SITE_LAYOUTS_DIR . 'classes/dynamic.css.php'; } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Site_Layouts::get_instance(); } classes/dynamic.css.php 0000666 00000033421 15166053161 0011140 0 ustar 00 <?php /** * Site Layouts - Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_ext_site_layouts_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_ext_site_layouts_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { /** * - Variable Declaration */ $page_width = '100%'; $parse_css = ''; $layout = astra_get_option( 'site-layout', 'ast-full-width-layout' ); $single_post_max = astra_get_option( 'blog-single-width' ); $single_post_max_width = astra_get_option( 'blog-single-max-width' ); $blog_width = astra_get_option( 'blog-width' ); $blog_max_width = astra_get_option( 'blog-max-width' ); $woo_shop_archive_width = astra_get_option( 'shop-archive-width' ); // set page width depending on site layout. if ( 'ast-box-layout' == $layout ) { $page_width = astra_get_option( 'site-layout-box-width' ) . 'px'; } elseif ( 'ast-full-width-layout' == $layout ) { $page_width = ASTRA_THEME_CONTAINER_PADDING_TWICE + astra_get_option( 'site-content-width' ) . 'px'; } elseif ( 'ast-padded-layout' == $layout ) { if ( '' != astra_get_option( 'site-layout-padded-width' ) ) { $page_width = ASTRA_THEME_CONTAINER_BOX_PADDED_PADDING_TWICE + astra_get_option( 'site-layout-padded-width' ) . 'px'; } } // Fluid layout padding. $fluid_layout_padding = astra_get_option( 'site-layout-fluid-lr-padding' ); // Box Layout - Top & Bottom Margin. $box_topbottom_margin = astra_get_option( 'site-layout-box-tb-margin' ); // Box Layout - Background Color / Image. $box_bg_color = astra_get_option( 'site-layout-outside-bg-color' ); // Padded Layout - Padding. $padded_layout_padding = astra_get_option( 'site-layout-padded-pad' ); $body_font_weight = astra_get_option( 'body-font-weight' ); if ( 'ast-box-layout' == $layout || 'ast-padded-layout' == $layout ) { $blog_max_width = absint( $blog_max_width ) + ASTRA_THEME_CONTAINER_BOX_PADDED_PADDING_TWICE; $single_post_max_width = absint( $single_post_max_width ) + ASTRA_THEME_CONTAINER_BOX_PADDED_PADDING_TWICE; } else { $blog_max_width = absint( $blog_max_width ) + ASTRA_THEME_CONTAINER_PADDING_TWICE; $single_post_max_width = absint( $single_post_max_width ) + ASTRA_THEME_CONTAINER_PADDING_TWICE; } /* Global Responsive */ $global_responsive_media = array( '.ast-container' => array( 'max-width' => esc_attr( $page_width ), ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( $global_responsive_media, astra_addon_get_tablet_breakpoint( '', 1 ) ); $parse_css .= astra_parse_css( $global_responsive_media, '993' ); $parse_css .= astra_parse_css( $global_responsive_media, '1201' ); if ( 'default' == $woo_shop_archive_width ) { if ( 'page-builder' !== astra_get_content_layout() ) { /* Global Responsive for default woocommerce shop archive page */ $woo_shop_archive_responsive_media = array( '.ast-woo-shop-archive .site-content > .ast-container' => array( 'max-width' => esc_attr( $page_width ), ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( $woo_shop_archive_responsive_media, astra_addon_get_tablet_breakpoint( '', 1 ) ); $parse_css .= astra_parse_css( $woo_shop_archive_responsive_media, '993' ); $parse_css .= astra_parse_css( $woo_shop_archive_responsive_media, '1201' ); } } /* Fluid Width Layout CSS */ if ( 'ast-fluid-width-layout' == $layout ) : $fw_layout = '@media (min-width: ' . astra_addon_get_tablet_breakpoint( '', 1 ) . 'px) {'; $fw_layout .= '.ast-container {'; $fw_layout .= 'padding-left:' . esc_attr( $fluid_layout_padding ) . 'px;'; $fw_layout .= 'padding-right:' . esc_attr( $fluid_layout_padding ) . 'px;'; $fw_layout .= '}'; $fw_layout .= '}'; $parse_css .= $fw_layout; if ( 'default' === $woo_shop_archive_width ) : $woo_shop_archive_padding_css = '@media (min-width:921px) {'; $woo_shop_archive_padding_css .= 'body.ast-woo-shop-archive .site-content > .ast-container{'; $woo_shop_archive_padding_css .= 'padding-left:' . esc_attr( $fluid_layout_padding ) . 'px;'; $woo_shop_archive_padding_css .= 'padding-right:' . esc_attr( $fluid_layout_padding ) . 'px;'; $woo_shop_archive_padding_css .= '}'; $woo_shop_archive_padding_css .= '}'; $parse_css .= $woo_shop_archive_padding_css; endif; endif; /* Box Layout CSS */ if ( 'ast-box-layout' == $layout ) : $box_layout = array( '#page' => array( 'max-width' => $page_width, 'margin-left' => 'auto', 'margin-right' => 'auto', ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( $box_layout ); $bx_layout = '@media (min-width:' . astra_addon_get_tablet_breakpoint( '', 1 ) . 'px) {'; $bx_layout .= '#page{'; $bx_layout .= 'margin-top:' . esc_attr( $box_topbottom_margin ) . 'px;'; $bx_layout .= 'margin-bottom:' . esc_attr( $box_topbottom_margin ) . 'px;'; $bx_layout .= '}'; $bx_layout .= ' .ast-container{'; $bx_layout .= 'padding-left: ' . ASTRA_THEME_CONTAINER_BOX_PADDED_PADDING . 'px;'; $bx_layout .= 'padding-right: ' . ASTRA_THEME_CONTAINER_BOX_PADDED_PADDING . 'px;'; $bx_layout .= '}'; $bx_layout .= '}'; $parse_css .= $bx_layout; endif; /* Padded Layout CSS */ if ( 'ast-padded-layout' == $layout ) : $padded_layout = array( 'body' => array( 'background' => $box_bg_color, ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( $padded_layout ); /** * Padded layout Desktop Spacing */ $padded_layout_spacing = array( 'body' => array( 'padding-top' => astra_responsive_spacing( $padded_layout_padding, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $padded_layout_padding, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $padded_layout_padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $padded_layout_padding, 'left', 'desktop' ), ), 'body.ast-padded-layout::before' => array( 'padding-top' => astra_responsive_spacing( $padded_layout_padding, 'top', 'desktop' ), ), 'body.ast-padded-layout::after' => array( 'padding-bottom' => astra_responsive_spacing( $padded_layout_padding, 'bottom', 'desktop' ), ), ); $parse_css .= astra_parse_css( $padded_layout_spacing ); /** * Padded layout Tablet Spacing */ $tablet_padded_layout_spacing = array( 'body' => array( 'padding-top' => astra_responsive_spacing( $padded_layout_padding, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $padded_layout_padding, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $padded_layout_padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $padded_layout_padding, 'left', 'tablet' ), ), 'body.ast-padded-layout::before' => array( 'padding-top' => astra_responsive_spacing( $padded_layout_padding, 'top', 'tablet' ), ), 'body.ast-padded-layout::after' => array( 'padding-bottom' => astra_responsive_spacing( $padded_layout_padding, 'bottom', 'tablet' ), ), ); /** * Padded layout Mobile Spacing */ $mobile_padded_layout_spacing = array( 'body' => array( 'padding-top' => astra_responsive_spacing( $padded_layout_padding, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $padded_layout_padding, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $padded_layout_padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $padded_layout_padding, 'left', 'mobile' ), ), 'body.ast-padded-layout::before' => array( 'padding-top' => astra_responsive_spacing( $padded_layout_padding, 'top', 'mobile' ), ), 'body.ast-padded-layout::after' => array( 'padding-bottom' => astra_responsive_spacing( $padded_layout_padding, 'bottom', 'mobile' ), ), ); /** * Padded layout Container Spacing */ $padded_width = astra_get_option( 'site-layout-padded-width' ); if ( ! empty( $padded_width ) ) { $padded_layout_spacing_container = array( '.ast-container' => array( 'padding-left' => ASTRA_THEME_CONTAINER_BOX_PADDED_PADDING . 'px', 'padding-right' => ASTRA_THEME_CONTAINER_BOX_PADDED_PADDING . 'px', ), ); } else { $padded_layout_spacing_container = array( '.site-content > .ast-container' => array( 'padding-left' => 0, 'padding-right' => 0, ), ); } // Add Container padding only for desktop devices. $parse_css .= astra_parse_css( $padded_layout_spacing_container, astra_addon_get_tablet_breakpoint( '', 1 ) ); $parse_css .= astra_parse_css( $padded_layout_spacing ); $parse_css .= astra_parse_css( $tablet_padded_layout_spacing, '', astra_addon_get_tablet_breakpoint() ); $parse_css .= astra_parse_css( $mobile_padded_layout_spacing, '', astra_addon_get_mobile_breakpoint() ); endif; /* Blog */ if ( 'ast-fluid-width-layout' == $layout ) : if ( 'custom' === $blog_width ) : $blog_css = '@media (min-width:921px) {'; $blog_css .= '.blog .site-content > .ast-container, .archive .site-content > .ast-container, .search .site-content > .ast-container{'; $blog_css .= 'padding-left:' . ASTRA_THEME_CONTAINER_PADDING . 'px;'; $blog_css .= 'padding-right:' . ASTRA_THEME_CONTAINER_PADDING . 'px;'; $blog_css .= '}'; $blog_css .= '}'; $parse_css .= $blog_css; endif; if ( 'custom' === $woo_shop_archive_width ) : $woo_shop_archive_css = '@media (min-width:921px) {'; $woo_shop_archive_css .= '.ast-woo-shop-archive .site-content > .ast-container{'; $woo_shop_archive_css .= 'padding-left:' . ASTRA_THEME_CONTAINER_PADDING . 'px;'; $woo_shop_archive_css .= 'padding-right:' . ASTRA_THEME_CONTAINER_PADDING . 'px;'; $woo_shop_archive_css .= '}'; $woo_shop_archive_css .= '}'; $parse_css .= $woo_shop_archive_css; endif; endif; /* Single Blog */ if ( 'ast-fluid-width-layout' == $layout ) : if ( 'custom' === $single_post_max ) : $single_blog_css = '@media (min-width:921px) {'; $single_blog_css .= '.single .site-content > .ast-container{'; $single_blog_css .= 'padding-left:' . ASTRA_THEME_CONTAINER_PADDING . 'px;'; $single_blog_css .= 'padding-right:' . ASTRA_THEME_CONTAINER_PADDING . 'px;'; $single_blog_css .= '}'; $single_blog_css .= '}'; $parse_css .= $single_blog_css; endif; endif; /** Scroll to top compatibility with padded layout. */ if ( 'ast-padded-layout' === $layout && true === astra_get_option( 'scroll-to-top-enable', true ) ) : $scroll_to_top_icon_alignment = astra_get_option( 'scroll-to-top-icon-position' ); $scroll_to_top_padded_padding = apply_filters( 'astra_scroll_top_padded_padding', 30 ); $padded_layout_padding = astra_get_option( 'site-layout-padded-pad' ); if ( 'em' === $padded_layout_padding['desktop-unit'] || 'em' === $padded_layout_padding['tablet-unit'] || 'em' === $padded_layout_padding['mobile-unit'] ) { $scroll_to_top_padded_padding = apply_filters( 'astra_scroll_top_padded_padding', 2 ); } if ( '%' === $padded_layout_padding['desktop-unit'] || '%' === $padded_layout_padding['tablet-unit'] || '%' === $padded_layout_padding['mobile-unit'] ) { $scroll_to_top_padded_padding = apply_filters( 'astra_scroll_top_padded_padding', 4 ); } $padded_spacing = array( /** * Add spacing based on padded layout spacing */ '.ast-padded-layout .ast-scroll-to-top-' . $scroll_to_top_icon_alignment => array( $scroll_to_top_icon_alignment => astra_get_css_value( intval( $padded_layout_padding['desktop'][ $scroll_to_top_icon_alignment ] ) + $scroll_to_top_padded_padding, $padded_layout_padding['desktop-unit'] ), 'bottom' => astra_get_css_value( intval( $padded_layout_padding['desktop']['bottom'] ) + $scroll_to_top_padded_padding, $padded_layout_padding['desktop-unit'] ), ), ); $tablet_padded_spacing = array( /** * Add spacing based on padded layout spacing */ '.ast-padded-layout .ast-scroll-to-top-' . $scroll_to_top_icon_alignment => array( $scroll_to_top_icon_alignment => astra_get_css_value( intval( $padded_layout_padding['tablet'][ $scroll_to_top_icon_alignment ] ) + $scroll_to_top_padded_padding, $padded_layout_padding['tablet-unit'] ), 'bottom' => astra_get_css_value( intval( $padded_layout_padding['tablet']['bottom'] ) + $scroll_to_top_padded_padding, $padded_layout_padding['tablet-unit'] ), ), ); $mobile_padded_spacing = array( /** * Add spacing based on padded layout spacing */ '.ast-padded-layout .ast-scroll-to-top-' . $scroll_to_top_icon_alignment => array( $scroll_to_top_icon_alignment => astra_get_css_value( intval( $padded_layout_padding['mobile'][ $scroll_to_top_icon_alignment ] ) + $scroll_to_top_padded_padding, $padded_layout_padding['mobile-unit'] ), 'bottom' => astra_get_css_value( intval( $padded_layout_padding['mobile']['bottom'] ) + $scroll_to_top_padded_padding, $padded_layout_padding['mobile-unit'] ), ), ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $padded_spacing ); $parse_css .= astra_parse_css( $tablet_padded_spacing, '', astra_addon_get_tablet_breakpoint() ); $parse_css .= astra_parse_css( $mobile_padded_spacing, '', astra_addon_get_mobile_breakpoint() ); endif; return $dynamic_css . $parse_css; } classes/index.php 0000666 00000000170 15166053161 0010027 0 ustar 00 <?php /** * Index file * * @package Astra * @since Astra 1.0.0 */ /* Silence is golden, and we agree. */ classes/class-astra-ext-site-layouts-markup.php 0000666 00000004257 15166053161 0015702 0 ustar 00 <?php /** * Site Layouts Manager Markup * * @package Astra Addon */ if ( ! class_exists( 'Astra_Ext_Site_Layouts_Markup' ) ) { /** * Sidebar Manager Markup Initial Setup * * @since 1.0.0 */ // @codingStandardsIgnoreStart class Astra_Ext_Site_Layouts_Markup { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Member Variable * * @var object instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { add_filter( 'body_class', array( $this, 'body_classes' ), 10, 1 ); add_action( 'astra_addon_get_css_files', array( $this, 'add_styles' ) ); } /** * Add Body Class * * @param array $classes Body Classes. * @return array */ public function body_classes( $classes ) { // Apply layout class to the body. $classes[] = esc_attr( astra_get_option( 'site-layout', 'ast-full-width-layout' ) ); return $classes; } /** * Add Styles */ public function add_styles() { /*** Start Path Logic */ /* Define Variables */ $uri = ASTRA_ADDON_EXT_SITE_LAYOUTS_URL . 'assets/css/'; $path = ASTRA_ADDON_EXT_SITE_LAYOUTS_DIR . 'assets/css/'; $rtl = ''; if ( is_rtl() ) { $rtl = '-rtl'; } /* Directory and Extension */ $file_prefix = $rtl . '.min'; $dir_name = 'minified'; if ( SCRIPT_DEBUG ) { $file_prefix = $rtl; $dir_name = 'unminified'; } $css_uri = $uri . $dir_name . '/'; $css_dir = $path . $dir_name . '/'; if ( defined( 'ASTRA_THEME_HTTP2' ) && ASTRA_THEME_HTTP2 ) { $gen_path = $css_uri; } else { $gen_path = $css_dir; } /*** End Path Logic */ /* Add style.css */ Astra_Minify::add_css( $gen_path . 'style' . $file_prefix . '.css' ); } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Site_Layouts_Markup::get_instance(); classes/class-astra-ext-site-layouts-loader.php 0000666 00000006142 15166053161 0015644 0 ustar 00 <?php /** * Site Layouts - Customizer. * * @package Astra Addon * @since 1.0.0 */ if ( ! class_exists( 'Astra_Ext_Site_Layouts_Loader' ) ) { /** * Customizer Initialization * * @since 1.0.0 */ // @codingStandardsIgnoreStart class Astra_Ext_Site_Layouts_Loader { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Member Variable * * @var instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { add_filter( 'astra_theme_defaults', array( $this, 'theme_defaults' ) ); add_action( 'customize_register', array( $this, 'customize_register' ), 2 ); add_action( 'customize_preview_init', array( $this, 'preview_scripts' ) ); } /** * Set Options Default Values * * @param array $defaults Astra options default value array. * @return array */ public function theme_defaults( $defaults ) { $defaults['site-layout-padded-width'] = 1200; $defaults['site-layout-padded-pad'] = array( 'desktop' => array( 'top' => 25, 'right' => 50, 'bottom' => 25, 'left' => 50, ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['site-layout-fluid-lr-padding'] = 25; $defaults['site-layout-box-width'] = 1200; $defaults['site-layout-box-tb-margin'] = 0; $defaults['site-layout-box-bg-img'] = ''; return $defaults; } /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function customize_register( $wp_customize ) { /** * Sections */ require_once ASTRA_ADDON_EXT_SITE_LAYOUTS_DIR . 'classes/sections/class-astra-site-layout-configuration.php'; } /** * Customizer Preview */ public function preview_scripts() { if ( SCRIPT_DEBUG ) { wp_enqueue_script( 'astra-ext-site-layouts-customize-preview-js', ASTRA_ADDON_EXT_SITE_LAYOUTS_URL . 'assets/js/unminified/customizer-preview.js', array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_EXT_VER, true ); } else { wp_enqueue_script( 'astra-ext-site-layouts-customize-preview-js', ASTRA_ADDON_EXT_SITE_LAYOUTS_URL . 'assets/js/minified/customizer-preview.min.js', array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_EXT_VER, true ); } } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Site_Layouts_Loader::get_instance(); classes/sections/index.php 0000666 00000000170 15166053161 0011656 0 ustar 00 <?php /** * Index file * * @package Astra * @since Astra 1.0.0 */ /* Silence is golden, and we agree. */ classes/sections/class-astra-site-layout-configuration.php 0000666 00000017673 15166053161 0020126 0 ustar 00 <?php /** * Styling Options for Astra Theme. * * @package Astra * @link https://wpastra.com/ * @since 1.4.3 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Site_Layout_Configuration' ) ) { /** * Register Site Layout Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Site_Layout_Configuration extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Site Layout Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Site Layout */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => 'section-container-layout', 'default' => astra_get_option( 'site-layout' ), 'priority' => 5, 'title' => __( 'Site Layout', 'astra-addon' ), 'choices' => array( 'ast-full-width-layout' => array( 'label' => __( 'Full Width', 'astra-addon' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-full-width', false ) : '', ), 'ast-box-layout' => array( 'label' => __( 'Max Width', 'astra-addon' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-max-width', false ) : '', ), 'ast-padded-layout' => array( 'label' => __( 'Padded', 'astra-addon' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-padded', false ) : '', ), 'ast-fluid-width-layout' => array( 'label' => __( 'Fluid', 'astra-addon' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-fluid', false ) : '', ), ), 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-section-divider' ), ), /** * Option: Padded Layout Custom Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-layout-padded-width]', 'default' => astra_get_option( 'site-layout-padded-width' ), 'type' => 'control', 'control' => 'ast-slider', 'transport' => 'postMessage', 'section' => 'section-container-layout', 'priority' => 15, 'title' => __( 'Width', 'astra-addon' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[site-layout]', 'operator' => '==', 'value' => 'ast-padded-layout', ), ), ), /** * Option: Box Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-layout-box-width]', 'default' => astra_get_option( 'site-layout-box-width' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-slider', 'section' => 'section-container-layout', 'priority' => 25, 'title' => __( 'Max Width', 'astra-addon' ), 'suffix' => 'px', 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[site-layout]', 'operator' => '==', 'value' => 'ast-box-layout', ), ), 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), ), /** * Option: Padded Layout Custom Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-layout-padded-pad]', 'default' => astra_get_option( 'site-layout-padded-pad' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-container-layout', 'priority' => 20, 'title' => __( 'Space Outside Body', 'astra-addon' ), 'divider' => array( 'ast_class' => 'ast-bottom-divider ast-top-divider' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[site-layout]', 'operator' => '==', 'value' => 'ast-padded-layout', ), ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option: Box Top & Bottom Margin */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-layout-box-tb-margin]', 'default' => astra_get_option( 'site-layout-box-tb-margin' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-slider', 'section' => 'section-container-layout', 'priority' => 30, 'divider' => array( 'ast_class' => 'ast-bottom-divider ast-top-divider' ), 'title' => __( 'Top & Bottom Margin', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[site-layout]', 'operator' => '==', 'value' => 'ast-box-layout', ), ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 600, ), ), /** * Layout: Fluid layout */ /** * Option: Page Left & Right Padding */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-layout-fluid-lr-padding]', 'default' => astra_get_option( 'site-layout-fluid-lr-padding' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-slider', 'section' => 'section-container-layout', 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), 'priority' => 35, 'title' => __( 'Left & Right Padding', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[site-layout]', 'operator' => '==', 'value' => 'ast-fluid-width-layout', ), ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 200, ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Site_Layout_Configuration(); index.php 0000666 00000000170 15166053161 0006372 0 ustar 00 <?php /** * Index file * * @package Astra * @since Astra 1.0.0 */ /* Silence is golden, and we agree. */
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings