Skip to content

Commit

Permalink
#2544 Added in master
Browse files Browse the repository at this point in the history
  • Loading branch information
pegazee committed Feb 18, 2019
1 parent c791cb7 commit f13b4ec
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 @@ -40,7 +40,7 @@ function amp_framework_logo_styles(){
global $redux_builder_amp;
$max_width = '190px';
$width = (integer) ampforwp_default_logo('width');
if ( 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 f13b4ec

Please sign in to comment.