Changeset 2006846
- Timestamp:
- 01/05/2019 04:57:51 PM (7 years ago)
- Location:
- better-amp/trunk
- Files:
-
- 5 edited
-
better-amp.php (modified) (2 diffs)
-
includes/classes/class-better-amp-content-sanitizer.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
template/style.css (modified) (1 diff)
-
template/style.min.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
better-amp/trunk/better-amp.php
r2001582 r2006846 5 5 Description: Add FULL AMP support to your WordPress site. 6 6 Author: Better Studio 7 Version: 1.9. 97 Version: 1.9.10 8 8 Author URI: http://betterstudio.com 9 9 */ … … 53 53 * @since 1.0.0 54 54 */ 55 const VERSION = '1.9. 9';55 const VERSION = '1.9.10'; 56 56 57 57 -
better-amp/trunk/includes/classes/class-better-amp-content-sanitizer.php
r1986715 r2006846 449 449 public static function transform_to_none_amp_url( $url, $strict = false ) { 450 450 451 if ( ! better_amp_using_permalink_structure() ) { 452 453 return remove_query_arg( Better_AMP::SLUG, $url ); 454 } 455 456 if ( $strict ) { 457 458 $url = self::remove_end_point_amp( $url, $url ); 459 $url = self::remove_start_point_amp( $url, $url ); 460 461 return $url; 462 } 463 464 if ( better_amp_url_format() === 'end-point' ) { 465 466 if ( $transformed = self::remove_end_point_amp( $url ) ) { 467 468 return $transformed; 469 } 470 471 } else { 472 473 if ( $transformed = self::remove_start_point_amp( $url ) ) { 474 475 return $transformed; 476 } 477 } 478 479 return $url; 451 if ( better_amp_using_permalink_structure() ) { 452 453 if ( $strict ) { 454 455 $url = self::remove_end_point_amp( $url, $url ); 456 $url = self::remove_start_point_amp( $url, $url ); 457 458 } elseif ( better_amp_url_format() === 'end-point' ) { 459 460 $url = self::remove_end_point_amp( $url, $url ); 461 462 } else { 463 464 $url = self::remove_start_point_amp( $url, $url ); 465 } 466 } 467 468 return remove_query_arg( Better_AMP::SLUG, $url ); 480 469 } 481 470 … … 1208 1197 1209 1198 1210 1211 1199 /** 1212 1200 * Replace audio/video tag with amp-audio/video -
better-amp/trunk/readme.txt
r2001582 r2006846 51 51 52 52 == Changelog == 53 54 = 1.9.10 = 5 Jan 2018 55 - Fixed: Always remove AMP query var when transforming URL to non-AMP. 56 - Fixed: Wrap text in a pre tags (BetterAMP) 57 53 58 54 59 = 1.9.9 = 26 Dec 2018 -
better-amp/trunk/template/style.css
r1986715 r2006846 2 2 * => Global 3 3 */ 4 pre { 5 white-space: pre-wrap; 6 } 4 7 .clearfix:before, 5 8 .clearfix:after { -
better-amp/trunk/template/style.min.css
r1986715 r2006846 1 .clearfix:after,.clearfix:before{display:table;content:' ';clear:both}.clearfix{zoom:1}.wrap{padding:15px 15px 0;height:100%}.wrap img{max-width:100%}body.body{background:#f2f2f2;font-family:lato;font-weight:400;color:#363636;line-height:1.44;font-size:15px}.better-amp-wrapper{background:#fff;max-width:780px;margin:0 auto}.amp-image-tag,amp-video{max-width:100%}blockquote,p{margin:0 0 15px}.bold,b,strong{font-weight:700}a{-webkit-transition:all .4s ease;-moz-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}amp-video{height:auto}.strong-label,blockquote{color:#000;font-family:Roboto;font-weight:500;line-height:1.5}blockquote{border:1px solid #e2e2e2;border-width:1px 0;padding:15px 15px 15px 60px;text-align:left;position:relative;clear:both}blockquote p:last-child{margin-bottom:0}blockquote:before{content:"\f10e";font:normal normal normal 14px/1 FontAwesome;color:#d3d3d3;font-size:28px;position:absolute;left:12px;top:17px}.button,.comments-pagination a,.pagination a{padding:6px 15px;border:1px solid #d7d7d7;background:#faf9f9;color:#494949;font-family:Roboto;font-weight:500;font-size:13px;display:inline-block;text-decoration:none;border-radius:33px}.pagination a{padding:0 15px}.comments-pagination{margin:10px 0;color:#adadad;font-size:small}.comments-pagination a{margin-right:5px;padding:5px 15px}.img-holder{position:relative;width:80px;background:center center no-repeat #eee;display:inline-block;float:left;margin-right:15px;margin-bottom:15px;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover}.img-holder:before{display:block;content:" ";width:100%;padding-top:70%}.content-holder{position:absolute;bottom:16px;left:16px;right:16px}.h1,.h2,.h3,.h4,.h5,.h6,.heading-typo,h1,h2,h3,h4,h5,h6{font-family:Roboto;font-weight:500;margin:15px 0 7px}.heading{font-size:16px;font-weight:700;margin:10px 0}.site-header{height:52px;width:100%;position:relative;margin:0;color:#fff}.site-header .branding{display:block;text-align:center;font-size:20px;font-weight:400;text-decoration:none;font-family:Roboto,"Open Sans",sans-serif;color:#fff;position:absolute;top:0;width:100%;padding:10px 55px;z-index:9;height:52px;line-height:32px}.site-header .branding .amp-image-tag{display:inline-block}.sticky-nav .site-header{position:fixed;left:0;right:0;top:0;z-index:999;display:block}body.sticky-nav{padding-top:52px}.site-header .navbar-search,.site-header .navbar-toggle{color:#fff;font-weight:400;font-size:18px;position:absolute;top:0;z-index:99;border:none;background:rgba(0,0,0,.1);height:52px;line-height:50px;margin:0;padding:0;width:52px;text-align:center;outline:0;cursor:pointer;-webkit-transition:all .6s ease;-moz-transition:all .6s ease;-o-transition:all .6s ease;transition:all .6s ease}.site-header .navbar-search:hover,.site-header .navbar-toggle:hover{background:rgba(0,0,0,.1)}.site-header .navbar-search:focus,.site-header .navbar-toggle:focus{background:rgba(0,0,0,.2)}.site-header .navbar-toggle{font-size:21px;left:0}.site-header .navbar-search{font-size:18px;right:0;line-height:48px}.better-amp-footer{margin:0}.better-amp-footer.sticky-footer{position:fixed;bottom:0;left:0;right:0}.better-amp-footer-nav{border-top:1px solid rgba(0,0,0,.1);background:#fff;padding:14px 15px}.better-amp-copyright{padding:17px 10px;text-align:center;font-family:Roboto;font-weight:400;color:#494949;border-top:1px solid rgba(0,0,0,.1);font-size:13px}.footer-navigation{list-style:none;margin:0;padding:0;text-align:center}.footer-navigation li{display:inline-block;margin:0 8px 5px}.footer-navigation li li,.footer-navigation ul{display:none}.footer-navigation a{text-decoration:none;color:#494949;font-family:Roboto;font-weight:300;font-size:14px}.footer-navigation .fa{margin-right:5px}.better-amp-main-link{display:block;text-align:center;font-weight:700;margin:6px 0 12px}.better-amp-main-link a{color:#fff;text-decoration:none;padding:0 15px;display:inline-block;border:1px solid rgba(0,0,0,.08);border-radius:33px;line-height:26px;font-size:12px;font-weight:400}.better-amp-main-link a .fa{margin-right:5px}.carousel{overflow:hidden}.carousel .carousel-item,.carousel .img-holder{width:205px;float:none;margin:0}.carousel .carousel-item{margin-right:20px;margin-bottom:20px;overflow:hidden;line-height:0}.carousel .carousel-item:last-child{margin-right:0}.carousel .content-holder{position:relative;bottom:auto;right:auto;top:auto;left:auto;background:#f8f8f8;border:1px solid #e2e2e2;border-top-width:0;float:left;white-space:normal;padding:15px;height:100px;width:100%}.carousel .content-holder h3{margin:0;height:64px;overflow:hidden;position:relative}.carousel .content-holder a{line-height:20px;font-size:15px;color:#000;text-decoration:none}.comment-header{margin-bottom:14px}.comment .comment-content p:last-child,.comment-header:last-child{margin-bottom:0}.comment-list{margin:0}.comment-list,.comment-list ul{list-style:none;padding:0}.comment-list ul ul{padding:0 0 0 30px}.comment-list .comment{position:relative;margin-top:14px;padding-top:14px;border-top:1px solid #f3f3f3}.comment-list>.comment:first-child{margin-top:0}.comment-list li.comment:after{clear:both;content:' ';display:block}.comment .comment-avatar img{border-radius:50%}.comment .column-1{float:left;width:55px}.comment .column-2{padding-left:75px}.comment .comment-content{color:#838383;margin-top:8px;line-height:1.57;font-size:14px}.comment .comment-author{font-size:14px;font-weight:700;font-style:normal}.comment .comment-published{margin-left:10px;font-size:12px;color:#a2a2a2;font-style:italic}.comment .comment-footer .fa,.comment .comment-footer a{font-size:14px;text-decoration:none}.comment .comment-footer a+a{margin-left:10px}.comments-wrapper .button.add-comment{color:#555}.bs-shortcode{margin:0 0 30px}.bs-shortcode .section-heading{margin:0 0 13px}.bs-shortcode .section-heading .other-link{display:none}.entry-content table{border:1px solid #ddd;margin-bottom:30px;width:100%}1 pre{white-space:pre-wrap}.clearfix:after,.clearfix:before{display:table;content:' ';clear:both}.clearfix{zoom:1}.wrap{padding:15px 15px 0;height:100%}.wrap img{max-width:100%}body.body{background:#f2f2f2;font-family:lato;font-weight:400;color:#363636;line-height:1.44;font-size:15px}.better-amp-wrapper{background:#fff;max-width:780px;margin:0 auto}.amp-image-tag,amp-video{max-width:100%}blockquote,p{margin:0 0 15px}.bold,b,strong{font-weight:700}a{-webkit-transition:all .4s ease;-moz-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}amp-video{height:auto}.strong-label,blockquote{color:#000;font-family:Roboto;font-weight:500;line-height:1.5}blockquote{border:1px solid #e2e2e2;border-width:1px 0;padding:15px 15px 15px 60px;text-align:left;position:relative;clear:both}blockquote p:last-child{margin-bottom:0}blockquote:before{content:"\f10e";font:normal normal normal 14px/1 FontAwesome;color:#d3d3d3;font-size:28px;position:absolute;left:12px;top:17px}.button,.comments-pagination a,.pagination a{padding:6px 15px;border:1px solid #d7d7d7;background:#faf9f9;color:#494949;font-family:Roboto;font-weight:500;font-size:13px;display:inline-block;text-decoration:none;border-radius:33px}.pagination a{padding:0 15px}.comments-pagination{margin:10px 0;color:#adadad;font-size:small}.comments-pagination a{margin-right:5px;padding:5px 15px}.img-holder{position:relative;width:80px;background:center center no-repeat #eee;display:inline-block;float:left;margin-right:15px;margin-bottom:15px;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover}.img-holder:before{display:block;content:" ";width:100%;padding-top:70%}.content-holder{position:absolute;bottom:16px;left:16px;right:16px}.h1,.h2,.h3,.h4,.h5,.h6,.heading-typo,h1,h2,h3,h4,h5,h6{font-family:Roboto;font-weight:500;margin:15px 0 7px}.heading{font-size:16px;font-weight:700;margin:10px 0}.site-header{height:52px;width:100%;position:relative;margin:0;color:#fff}.site-header .branding{display:block;text-align:center;font-size:20px;font-weight:400;text-decoration:none;font-family:Roboto,"Open Sans",sans-serif;color:#fff;position:absolute;top:0;width:100%;padding:10px 55px;z-index:9;height:52px;line-height:32px}.site-header .branding .amp-image-tag{display:inline-block}.sticky-nav .site-header{position:fixed;left:0;right:0;top:0;z-index:999;display:block}body.sticky-nav{padding-top:52px}.site-header .navbar-search,.site-header .navbar-toggle{color:#fff;font-weight:400;font-size:18px;position:absolute;top:0;z-index:99;border:none;background:rgba(0,0,0,.1);height:52px;line-height:50px;margin:0;padding:0;width:52px;text-align:center;outline:0;cursor:pointer;-webkit-transition:all .6s ease;-moz-transition:all .6s ease;-o-transition:all .6s ease;transition:all .6s ease}.site-header .navbar-search:hover,.site-header .navbar-toggle:hover{background:rgba(0,0,0,.1)}.site-header .navbar-search:focus,.site-header .navbar-toggle:focus{background:rgba(0,0,0,.2)}.site-header .navbar-toggle{font-size:21px;left:0}.site-header .navbar-search{font-size:18px;right:0;line-height:48px}.better-amp-footer{margin:0}.better-amp-footer.sticky-footer{position:fixed;bottom:0;left:0;right:0}.better-amp-footer-nav{border-top:1px solid rgba(0,0,0,.1);background:#fff;padding:14px 15px}.better-amp-copyright{padding:17px 10px;text-align:center;font-family:Roboto;font-weight:400;color:#494949;border-top:1px solid rgba(0,0,0,.1);font-size:13px}.footer-navigation{list-style:none;margin:0;padding:0;text-align:center}.footer-navigation li{display:inline-block;margin:0 8px 5px}.footer-navigation li li,.footer-navigation ul{display:none}.footer-navigation a{text-decoration:none;color:#494949;font-family:Roboto;font-weight:300;font-size:14px}.footer-navigation .fa{margin-right:5px}.better-amp-main-link{display:block;text-align:center;font-weight:700;margin:6px 0 12px}.better-amp-main-link a{color:#fff;text-decoration:none;padding:0 15px;display:inline-block;border:1px solid rgba(0,0,0,.08);border-radius:33px;line-height:26px;font-size:12px;font-weight:400}.better-amp-main-link a .fa{margin-right:5px}.carousel{overflow:hidden}.carousel .carousel-item,.carousel .img-holder{width:205px;float:none;margin:0}.carousel .carousel-item{margin-right:20px;margin-bottom:20px;overflow:hidden;line-height:0}.carousel .carousel-item:last-child{margin-right:0}.carousel .content-holder{position:relative;bottom:auto;right:auto;top:auto;left:auto;background:#f8f8f8;border:1px solid #e2e2e2;border-top-width:0;float:left;white-space:normal;padding:15px;height:100px;width:100%}.carousel .content-holder h3{margin:0;height:64px;overflow:hidden;position:relative}.carousel .content-holder a{line-height:20px;font-size:15px;color:#000;text-decoration:none}.comment-header{margin-bottom:14px}.comment .comment-content p:last-child,.comment-header:last-child{margin-bottom:0}.comment-list{margin:0}.comment-list,.comment-list ul{list-style:none;padding:0}.comment-list ul ul{padding:0 0 0 30px}.comment-list .comment{position:relative;margin-top:14px;padding-top:14px;border-top:1px solid #f3f3f3}.comment-list>.comment:first-child{margin-top:0}.comment-list li.comment:after{clear:both;content:' ';display:block}.comment .comment-avatar img{border-radius:50%}.comment .column-1{float:left;width:55px}.comment .column-2{padding-left:75px}.comment .comment-content{color:#838383;margin-top:8px;line-height:1.57;font-size:14px}.comment .comment-author{font-size:14px;font-weight:700;font-style:normal}.comment .comment-published{margin-left:10px;font-size:12px;color:#a2a2a2;font-style:italic}.comment .comment-footer .fa,.comment .comment-footer a{font-size:14px;text-decoration:none}.comment .comment-footer a+a{margin-left:10px}.comments-wrapper .button.add-comment{color:#555}.bs-shortcode{margin:0 0 30px}.bs-shortcode .section-heading{margin:0 0 13px}.bs-shortcode .section-heading .other-link{display:none}.entry-content table{border:1px solid #ddd;margin-bottom:30px;width:100%}
Note: See TracChangeset
for help on using the changeset viewer.