Skip to content

Commit

Permalink
#2531 Responsive Ad unit option improved and added in master
Browse files Browse the repository at this point in the history
  • Loading branch information
Zabi09 committed Jan 4, 2019
1 parent 480ab90 commit f1c0bf9
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 3 deletions.
38 changes: 37 additions & 1 deletion templates/design-manager/design-1/style.php
Expand Up @@ -223,4 +223,40 @@
.ampforwp_post_pagination{width:100%;text-align:center;display:inline-block;}
<?php }
echo $redux_builder_amp['css_editor'];
//} ?>
//} ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-1')){?>
.amp-ad-1 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-2')){?>
.amp-ad-2 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-3')){?>
.amp-ad-3 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-4')){?>
.amp-ad-4 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-5')){?>
.amp-ad-5 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-6')){?>
.amp-ad-6 {
max-width: 1000px;
}
<?php } ?>
36 changes: 36 additions & 0 deletions templates/design-manager/design-2/style.php
Expand Up @@ -361,3 +361,39 @@
<?php }
echo $redux_builder_amp['css_editor'];
//} ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-1')){?>
.amp-ad-1 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-2')){?>
.amp-ad-2 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-3')){?>
.amp-ad-3 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-4')){?>
.amp-ad-4 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-5')){?>
.amp-ad-5 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-6')){?>
.amp-ad-6 {
max-width: 1000px;
}
<?php } ?>
38 changes: 37 additions & 1 deletion templates/design-manager/design-3/style.php
Expand Up @@ -521,4 +521,40 @@
.ampforwp_post_pagination{width:100%;text-align:center;display:inline-block;}
<?php }
echo $redux_builder_amp['css_editor'];
//} ?>
//} ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-1')){?>
.amp-ad-1 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-2')){?>
.amp-ad-2 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-3')){?>
.amp-ad-3 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-4')){?>
.amp-ad-4 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-5')){?>
.amp-ad-5 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-6')){?>
.amp-ad-6 {
max-width: 1000px;
}
<?php } ?>
38 changes: 37 additions & 1 deletion templates/design-manager/swift/style.php
Expand Up @@ -1452,4 +1452,40 @@
left:0;
}
.amp-ad-wrapper{direction:ltr;}
<?php } //RTL End ?>
<?php } //RTL End ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-1')){?>
.amp-ad-1 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-2')){?>
.amp-ad-2 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-3')){?>
.amp-ad-3 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-4')){?>
.amp-ad-4 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-5')){?>
.amp-ad-5 {
max-width: 1000px;
}
<?php } ?>
<?php
if (ampforwp_get_setting('enable-amp-ads-resp-6')){?>
.amp-ad-6 {
max-width: 1000px;
}
<?php } ?>

0 comments on commit f1c0bf9

Please sign in to comment.