Skip to content

Commit

Permalink
#2544 logo conditions updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Zabi09 committed Oct 12, 2018
1 parent 83d19d1 commit af9ee85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/logo/logo.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function amp_framework_logo_styles(){
global $redux_builder_amp;
$max_width = '190px';
$width = (integer) ampforwp_default_logo('width');
if ( true == ampforwp_get_setting('ampforwp-custom-logo-dimensions') && true == $redux_builder_amp['ampforwp-custom-logo-dimensions-options'] && isset($redux_builder_amp['ampforwp-custom-logo-dimensions-options']) && 'flexible' == $redux_builder_amp['ampforwp-custom-logo-dimensions-options'] ) {
if ( true == ampforwp_get_setting('ampforwp-custom-logo-dimensions') && true == ampforwp_get_setting('ampforwp-custom-logo-dimensions-options') && 'flexible' == ampforwp_get_setting('ampforwp-custom-logo-dimensions-options') ) {
$max_width = (integer) $redux_builder_amp['ampforwp-custom-logo-dimensions-slider'];
$width = (integer) ampforwp_default_logo('width');
$max_width = ceil(($width*$max_width)/100)."px";
Expand Down

0 comments on commit af9ee85

Please sign in to comment.