Skip to content

Commit

Permalink
implementing changes for #31
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrocks committed Jun 25, 2018
1 parent 7aba35a commit 5ba775b
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

get_header(); ?>

<section id="primary" class="medium-<?php echo memberlite_getColumnsRatio(); ?> columns content-area">
<section id="primary" class="medium-<?php echo esc_attr(memberlite_getColumnsRatio() ); ?> columns content-area">
<?php do_action( 'memberlite_before_main' ); ?>
<main id="main" class="site-main" role="main">
<?php do_action( 'memberlite_before_loop' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion components/header/masthead.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<header class="masthead">
<div class="row">
<div class="medium-<?php echo memberlite_getColumnsRatio( 'masthead' ); ?> columns">
<div class="medium-<?php echo esc_attr(memberlite_getColumnsRatio( 'masthead' ) ); ?> columns">

<?php do_action( 'memberlite_before_masthead_inner' ); ?>

Expand Down
2 changes: 1 addition & 1 deletion forums.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<?php
} else {
?>
medium-<?php echo memberlite_getColumnsRatio(); ?><?php } ?> columns content-area">
medium-<?php echo esc_attr( memberlite_getColumnsRatio() ); ?><?php } ?> columns content-area">
<main id="main" class="site-main" role="main">

<?php
Expand Down
4 changes: 2 additions & 2 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
if ( is_page_template( 'templates/interstitial.php' ) || empty( $show_header_right ) ) {
echo 'large-12';
} else {
echo 'medium-' . memberlite_getColumnsRatio( 'header-left' ); }
echo 'medium-' . esc_attr( memberlite_getColumnsRatio( 'header-left' ) ); }
?>
columns site-branding">

Expand All @@ -52,7 +52,7 @@
</div><!-- .column4 -->

<?php if ( ! empty( $show_header_right ) ) { ?>
<div class="medium-<?php echo memberlite_getColumnsRatio( 'header-right' ); ?> columns header-right
<div class="medium-<?php echo esc_attr( memberlite_getColumnsRatio( 'header-right' ) ); ?> columns header-right
<?php
if ( $meta_login == false ) {
?>
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Memberlite
*/
get_header(); ?>
<div id="primary" class="medium-<?php echo memberlite_getColumnsRatio(); ?> columns content-area">
<div id="primary" class="medium-<?php echo esc_attr( memberlite_getColumnsRatio() ); ?> columns content-area">
<?php do_action( 'memberlite_before_main' ); ?>
<main id="main" class="site-main" role="main">
<?php do_action( 'memberlite_before_loop' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion mp_store.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

get_header(); ?>

<div id="primary" class="medium-<?php echo memberlite_getColumnsRatio(); ?> columns content-area">
<div id="primary" class="medium-<?php echo esc_attr( memberlite_getColumnsRatio() ); ?> columns content-area">
<?php do_action( 'memberlite_before_main' ); ?>
<main id="main" class="site-main" role="main">
<?php do_action( 'memberlite_before_loop' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion page.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

get_header(); ?>

<div id="primary" class="medium-<?php echo memberlite_getColumnsRatio(); ?> columns content-area">
<div id="primary" class="medium-<?php echo esc_attr( memberlite_getColumnsRatio() ); ?> columns content-area">
<?php do_action( 'memberlite_before_main' ); ?>
<main id="main" class="site-main" role="main">
<?php do_action( 'memberlite_before_loop' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion search.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Memberlite
*/
get_header(); ?>
<section id="primary" class="medium-<?php echo memberlite_getColumnsRatio(); ?> columns content-area">
<section id="primary" class="medium-<?php echo esc_attr( memberlite_getColumnsRatio() ); ?> columns content-area">
<?php do_action( 'memberlite_before_main' ); ?>
<main id="main" class="site-main" role="main">
<?php do_action( 'memberlite_before_loop' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<?php do_action( 'memberlite_before_sidebar' ); ?>

<div id="secondary" class="medium-<?php echo memberlite_getColumnsRatio( 'sidebar' ); ?> columns widget-area" role="complementary">
<div id="secondary" class="medium-<?php echo esc_attr( memberlite_getColumnsRatio( 'sidebar' ) ); ?> columns widget-area" role="complementary">

<?php do_action( 'memberlite_before_sidebar_widgets' ); ?>

Expand Down
2 changes: 1 addition & 1 deletion single-testimonials-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Memberlite
*/
get_header(); ?>
<div id="primary" class="medium-<?php echo memberlite_getColumnsRatio(); ?> columns content-area">
<div id="primary" class="medium-<?php echo esc_attr( memberlite_getColumnsRatio() ); ?> columns content-area">
<?php do_action( 'memberlite_before_main' ); ?>
<main id="main" class="site-main" role="main">
<?php do_action( 'memberlite_after_loop' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion single.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Memberlite
*/
get_header(); ?>
<div id="primary" class="medium-<?php echo memberlite_getColumnsRatio(); ?> columns content-area">
<div id="primary" class="medium-<?php echo esc_attr( memberlite_getColumnsRatio() ); ?> columns content-area">
<?php do_action( 'memberlite_before_main' ); ?>
<main id="main" class="site-main" role="main">
<?php do_action( 'memberlite_before_loop' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion templates/interstitial.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

get_header(); ?>

<div id="primary" class="medium-<?php echo memberlite_getColumnsRatio(); ?> columns content-area">
<div id="primary" class="medium-<?php echo esc_attr( memberlite_getColumnsRatio() ); ?> columns content-area">
<?php do_action( 'memberlite_before_main' ); ?>
<main id="main" class="site-main" role="main">
<?php do_action( 'memberlite_before_loop' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion templates/landing.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

get_header(); ?>
<div id="primary" class="medium-<?php echo memberlite_getColumnsRatio(); ?> columns content-area">
<div id="primary" class="medium-<?php echo esc_attr( memberlite_getColumnsRatio() ); ?> columns content-area">
<?php do_action( 'memberlite_before_main' ); ?>
<main id="main" class="site-main" role="main">
<?php do_action( 'memberlite_before_loop' ); ?>
Expand Down

0 comments on commit 5ba775b

Please sign in to comment.