Plugin Directory

Changeset 2019403


Ignore:
Timestamp:
01/26/2019 12:51:44 AM (7 years ago)
Author:
pixelative
Message:
  • Feature: Added Yoast SEO Meta Description Tag
  • Fix: YouTube video height problem
Location:
amp-wp
Files:
343 added
8 edited

Legend:

Unmodified
Added
Removed
  • amp-wp/trunk/README.txt

    r2014452 r2019403  
    66Tested up to: 5.0.3
    77Requires PHP: 5.6
    8 Stable tag: 1.4.2
     8Stable tag: 1.4.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    172172== Changelog ==
    173173
     174= 1.4.3 - 2019-01-26 =
     175* Feature: Added Yoast SEO Meta Description Tag
     176* Fix: YouTube video height problem
     177
    174178= 1.4.2 - 2019-01-18 =
    175179* Feature: Added Responsive Table CSS
     
    259263== Upgrade Notice ==
    260264
    261 = 1.4.1 =
    262 1.4.1 is an important update to ensure AMP WP works smoothly.
     265= 1.4.3 =
     2661.4.3 is an important update to ensure AMP WP works smoothly.
  • amp-wp/trunk/amp-wp.php

    r2014452 r2019403  
    1616 * Plugin URI:          https://wordpress.org/plugins/amp-wp
    1717 * Description:         Automagically add Google AMP functionality to your site. Tons of Premium Features for FREE. Enable/Disable Post Types, Categories, and Tags.
    18  * Version:             1.4.2
     18 * Version:             1.4.3
    1919 * Author:              Pixelative, Mohsin Rafique
    2020 * Author URI:          https://pixelative.co
     
    4646 * Rename this for your plugin and update it as you release new versions.
    4747 */
    48 define( 'AMP_WP_VERSION', '1.4.2' );
     48define( 'AMP_WP_VERSION', '1.4.3' );
    4949
    5050/**
  • amp-wp/trunk/includes/components/class-amp-wp-iframe-component.php

    r1993056 r2019403  
    7272                if( $video_id = self::extract_youtube_video_id( $url ) ) {
    7373                    $dim = $this->get_iframe_dimension( $html, 'height', 'width', $options );
    74                     return $this->amp_youtube_html( $video_id, $dim[0], $dim[1] );
     74                    // $dim[0] has Height whereas $dim[1] has width;
     75                    return $this->amp_youtube_html( $video_id, '270', '480' );
    7576                }
    7677            break;
     
    157158       
    158159        $width = !empty( $defaults['width'] ) ? $defaults['width'] : 480;
     160       
    159161        if( $width_attr ) {
    160162            if ( $_width = $this->get_html_attr( $string, $width_attr ) ) {
  • amp-wp/trunk/includes/functions/amp-wp-theme-functions.php

    r2014452 r2019403  
    653653     */
    654654    function amp_wp_home_url() {
    655         return esc_url( rtrim( amp_wp_site_url(), '/') . '/' );
     655        //return esc_url( rtrim( amp_wp_site_url(), '/') . '/' );
     656        return esc_url( amp_wp_site_url() );
    656657    }
    657658endif;
     
    666667     */
    667668    function amp_wp_url_trim_end_slash( $url ) {
    668         return rtrim( $url, '/').'/';
     669        return preg_replace('#/+#', '/', $url);
    669670    }
    670671endif;
  • amp-wp/trunk/public/class-amp-wp-public.php

    r2014452 r2019403  
    395395         * @see https://wordpress.org/plugins/wordpress-seo/
    396396         */
    397         if (defined('WPSEO_VERSION')) {
    398             if (class_exists('WPSEO_OpenGraph')) {
     397        if( defined( 'WPSEO_VERSION' ) ) {
     398            if( class_exists( 'WPSEO_OpenGraph' ) ) {
    399399                add_action('amp_wp_template_head', array($this, 'amp_wp_yoast_seo_metatags_compatibility'));
    400400            }
    401401
    402             if (is_home() && !amp_wp_is_static_home_page() && self::amp_wp_get_option('show_on_front') === 'page') {
    403                 add_filter('pre_get_document_title', 'Amp_WP_Public::amp_wp_yoast_seo_homepage_title', 99);
    404             }
    405 
    406             if (is_home()) {
    407                 add_filter('amp_wp_json_ld_website', 'Amp_WP_Public::amp_wp_yoast_seo_homepage_json_ld');
     402            if( is_home() && !amp_wp_is_static_home_page() && self::amp_wp_get_option('show_on_front') === 'page' ) {
     403                add_filter( 'pre_get_document_title', 'Amp_WP_Public::amp_wp_yoast_seo_homepage_title', 99);
     404            }
     405
     406            if( is_home()) {
     407                add_filter( 'amp_wp_json_ld_website', 'Amp_WP_Public::amp_wp_yoast_seo_homepage_json_ld' );
    408408            }
    409409        }
     
    12661266
    12671267        // Remove canonical from in Yoast to generate correct canonical
    1268         amp_wp_remove_class_action('wpseo_head', 'WPSEO_Frontend', 'canonical', 20);
    1269 
     1268        amp_wp_remove_class_action( 'wpseo_head', 'WPSEO_Frontend', 'canonical', 20 );
     1269       
     1270        $wp_seo = WPSEO_Frontend::get_instance();
     1271        $desc = $wp_seo->metadesc( false );
     1272        echo '<meta name="description" content="', esc_attr( wp_strip_all_tags( stripslashes( $desc ) ) ), '"/>', "\n";
     1273       
     1274        $options = WPSEO_Options::get_option( 'wpseo_social' );
     1275        if( $options['twitter'] === true ) {
     1276            WPSEO_Twitter::get_instance();
     1277        }
     1278       
     1279        // Yoast SEO Meta
    12701280        do_action('wpseo_opengraph');
    12711281    }
     
    12821292     * @return string
    12831293     */
    1284     public static function amp_wp_yoast_seo_homepage_title($title) {
    1285         if (( $post_id = self::amp_wp_get_option('page_on_front') ) && is_callable('WPSEO_Frontend::get_instance')) {
     1294    public static function amp_wp_yoast_seo_homepage_title( $title ) {
     1295        if ( ( $post_id = self::amp_wp_get_option('page_on_front') ) && is_callable('WPSEO_Frontend::get_instance')) {
    12861296            $post = get_post($post_id);
    1287             if ($post instanceof WP_Post) {
     1297            if( $post instanceof WP_Post ) {
    12881298                $wp_seo = WPSEO_Frontend::get_instance();
    1289                 if ($new_title = $wp_seo->get_content_title($post)) {
     1299                if( $new_title = $wp_seo->get_content_title( $post ) ) {
    12901300                    return $new_title;
    12911301                }
     
    13051315    public static function amp_wp_yoast_seo_homepage_json_ld($data) {
    13061316        if (is_callable('WPSEO_Options::get_options')) {
    1307             $options = WPSEO_Options::get_options(array('wpseo', 'wpseo_social'));
    1308 
    1309             if (!empty($options['website_name'])) {
     1317            $options = WPSEO_Options::get_options( array( 'wpseo', 'wpseo_social' ) );
     1318
     1319            if( !empty( $options['website_name'] ) ) {
    13101320                $data['name'] = $options['website_name'];
    13111321            }
    1312             if (!empty($options['alternate_website_name'])) {
     1322            if( !empty( $options['alternate_website_name'] ) ) {
    13131323                $data['alternateName'] = $options['alternate_website_name'];
    1314                 unset($data['description']);
     1324                unset( $data['description'] );
    13151325            }
    13161326        }
  • amp-wp/trunk/public/css/style.css

    r2014452 r2019403  
    219219
    220220table {
    221   background: transparent;
    222   display: inline-block;
     221  width: 100%;
     222  background-color: #fff;
     223  border-collapse: collapse;
     224}
     225
     226table th, table td {
     227  font-weight: unset;
     228  padding-right: 10px;
     229}
     230
     231table th {
     232  color: #fff;
     233  line-height: 1.4;
     234  background-color: #333333;
     235}
     236
     237table td {
     238  color: #808080;
     239  line-height: 1.4;
     240}
     241
     242table td i {
     243  margin-right: 5px;
     244}
     245
     246table tbody tr:nth-child(even) {
     247  background-color: #f8f8f8;
     248}
     249
     250.table-responsive {
    223251  overflow-x: auto;
    224   border: none !important;
    225   border-collapse: collapse;
    226   width: 100%;
    227   max-width: 100%;
    228 }
    229 
    230 table th {
    231   padding: 0.75rem;
    232   line-height: 1.5;
    233 }
    234 
    235 table thead th {
    236   border-bottom-width: 0 !important;
    237   vertical-align: middle;
    238 }
    239 
    240 table th, table td {
    241   border: 1px solid #eceeef !important;
     252  padding-bottom: 10px;
     253}
     254
     255.mr-star-full, .mr-star-half, .mr-star-empty {
     256  color: #ffd700;
    242257}
    243258
  • amp-wp/trunk/public/css/style.min.css

    r2014452 r2019403  
    1 .screen-reader-text{clip:rect(1px, 1px, 1px, 1px);position:absolute!important;height:1px;width:1px;overflow:hidden;word-wrap:normal!important}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;-webkit-box-shadow:0 0 2px 2px rgba(0, 0, 0, 0.6);box-shadow:0 0 2px 2px rgba(0, 0, 0, 0.6);clip:auto!important;color:#21759b;display:block;font-size:14px;font-size:0.875rem;font-weight:bold;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}pre{white-space:pre-wrap}.clearfix{zoom:1}.clearfix:after,.clearfix:before{content:"";display:table;clear:both}body.body{background:#ffffff;font-family:"Karla", sans-serif;font-size:16px;font-weight:400;color:#333333;line-height:1.5}button,input,optgroup,select,textarea{font-family:"Karla", sans-serif;font-size:14px}.h1,.h2,.h3,.h4,.h5,.h6,.heading-typo,h1,h2,h3,h4,h5,h6{font-family:"Noto Sans", sans-serif;font-weight:700;line-height:1.5;margin:0 0 15px}.h1,h1{font-size:24px;line-height:1.25}.h2,h2{font-size:20px}.h3,h3{font-size:18px}.h4,h4{font-size:18px}.h5,h5{font-size:16px}.h6,h6{font-size:14px}.amp-wp-container{padding:0 15px;margin:0 auto;max-width:768px}.amp-wp-container img{max-width:100%;height:auto}.amp-wp-page-header{padding:15px 0 22px;background:#ededed;text-align:center}.amp-wp-page-header .pre-title{font-family:"Noto Sans", sans-serif;font-size:24px;color:#333333;text-transform:capitalize;margin-bottom:3px}.amp-wp-page-header .page-title{margin:0;font-family:"Overpass Mono", monospace;font-size:14px;font-weight:400;color:#b6b6b6;text-transform:capitalize;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.amp-wp-page-header .page-title .fa{margin-right:10px;font-size:24px}.amp-image-tag{max-width:100%}.bold,b,strong{font-weight:700}p{margin:0 0 15px}a{-webkit-transition:all .4s ease;-moz-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}amp-video{max-width:100%;height:auto}.strong-label,blockquote{color:#000;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;margin:0 0 15px;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}table{background:transparent;display:inline-block;overflow-x:auto;border:none!important;border-collapse:collapse;width:100%;max-width:100%}table th{padding:0.75rem;line-height:1.5}table thead th{border-bottom-width:0!important;vertical-align:middle}table td,table th{border:1px solid #eceeef!important}.btn{padding:0 18px;background:#e53935;font-size:14px;font-weight:400;color:#ffffff;text-decoration:none;display:inline-block}.button,.comments-pagination a,.pagination a{padding:6px 15px;background:#e53935;font-size:14px;font-weight:400;color:#ffffff;text-decoration:none;display:inline-block}.pagination a{padding:0px 15px}.comments-pagination{margin:10px 0}.comments-pagination a{margin-right:5px;padding:5px 15px}.comments-pagination{color:#adadad;font-size:small}.img-holder{position:relative;width:100%;background:#eee;margin-right:0;margin-bottom:0;background-repeat:no-repeat;background-position:center center;-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%}@media only screen and (max-width:380px){.img-holder:before{padding-top:100%}}.img-holder.image-holder-none:before{padding-top:0}@media only screen and (max-width:380px){.img-holder.image-holder-none:before{padding-top:0}}.img-layer{background:rgba(0, 0, 0, 0.6);position:absolute;display:block;top:0;left:0;bottom:0;right:0}.img-layer.none{background:#3b3b3b;background:-moz-linear-gradient(45deg, #3b3b3b 0%, #666666 100%);background:-webkit-gradient(left bottom, right top, color-stop(0%, #3b3b3b), color-stop(100%, #666666));background:-webkit-linear-gradient(45deg, #3b3b3b 0%, #666666 100%);background:-o-linear-gradient(45deg, #3b3b3b 0%, #666666 100%);background:-ms-linear-gradient(45deg, #3b3b3b 0%, #666666 100%);background:linear-gradient(45deg, #3b3b3b 0%, #666666 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#3b3b3b', endColorstr='#666666', GradientType=1 )}.content-holder{position:absolute;left:0;padding:20px}.content-holder a{color:#ffffff}.content-holder.image-holder-none{position:relative}.post-meta{font-family:"Overpass Mono", monospace;font-size:14px;color:#b6b6b6;text-align:left;background:none;border:none}.post-meta .post-date{line-height:2.2}.post-meta .post-author{font-weight:700}.post-meta a{color:#b6b6b6;text-decoration:underline}.post-terms .term-type,.post-terms a{font-size:14px;text-decoration:none;display:inline-block;padding:3px 15px;margin-right:6px;border:1px solid #e4e4e4;border-radius:50px}.post-terms a{margin:0 4px 10px 0}.post-terms a:active,.post-terms a:focus,.post-terms a:hover{color:#ffffff}.post-terms a:last-child{margin-right:0}.post-terms .post-categories{display:inline;list-style:none;padding:0;margin:0}.post-terms .post-categories li{display:inline}.post-terms .post-categories li a{margin-right:6px;padding:5px 13px;border:none;border-radius:50px;color:#ffffff;text-decoration:none;display:inline-block}.post-terms .post-categories li:last-child a{margin-right:0}.flex-row{-js-display:flex;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-flow:row nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row nowrap;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:justify;-webkit-box-pack:justify;justify-content:space-between;width:100%}.flex-col{max-height:100%}.flex-grow{-ms-flex:1;-webkit-box-flex:1;flex:1;-ms-flex-negative:1;-ms-flex-preferred-size:auto!important}.flex-center{margin:0 auto}.flex-left{margin-right:auto}.flex-right{margin-left:auto}.site-header{position:relative;background:#000000;width:100%;height:52px;margin:0;color:#ffffff}.site-header .flex-row{height:100%}.site-header .logo{line-height:1;margin:0}.site-header .logo a{display:block;margin-left:20px;font-family:"Noto Sans", sans-serif;font-size:24px;font-weight:700;color:#fff;text-align:left;text-decoration:none}.site-header .logo a .amp-image-tag{display:inline-block}.site-header .elements{margin-right:10px}.site-header .header-nav{list-style:none;margin:0;padding:0;width:100%;position:relative;display:inline-block;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.site-header .header-nav>li{display:inline-block;list-style:none;margin:0;padding:0;position:relative;margin:0 7px;-webkit-transition:background-color .3s;-o-transition:background-color .3s;transition:background-color .3s}.site-header .header-nav>li .navbar-toggle,.site-header .header-nav>li>a{display:inline-block;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:transparent;padding:10px 0;border:0;text-decoration:none;-webkit-transition:all .6s ease;-o-transition:all .6s ease;transition:all .6s ease;font-size:18px;color:#fff;text-align:center;cursor:pointer;line-height:1}.site-header .header-nav.left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.site-header .header-nav.right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.site-header .logo-center .logo{-webkit-box-ordinal-group:2;-ms-flex-order:2;order:2;text-align:center;margin:0 30px}.site-header .logo-center .flex-left{-webkit-box-ordinal-group:1;-ms-flex-order:1;order:1;-webkit-box-flex:1;-ms-flex:1 1 0px;flex:1 1 0}.site-header .logo-center .flex-right{-webkit-box-ordinal-group:3;-ms-flex-order:3;order:3;-webkit-box-flex:1;-ms-flex:1 1 0px;flex:1 1 0}.site-header .logo-center .logo img{margin:0 auto}.site-header .logo-center .navbar-toggle{margin-left:15px}.site-header .logo-center .navbar-search{margin-right:15px}.sticky-nav .site-header{position:fixed;left:0;right:0;top:0;z-index:999;display:block}body.sticky-nav{padding-top:52px}.amp-wp-footer{margin:0}.amp-wp-footer.sticky-footer{position:fixed;bottom:0;left:0;right:0}.amp-wp-non-amp-url{background:#e4e4e4;padding:20px 0}.amp-wp-footer-nav{background:#e53935;padding:14px 15px}.amp-wp-copyright{background:#cd2a27;padding:8px 0;text-align:center;color:#ffffff;font-size:14px}.amp-wp-copyright a{color:#ffffff}.footer-navigation{list-style:none;margin:0;padding:0;text-align:center}.footer-navigation ul{display:none}.footer-navigation li{display:inline-block;margin:0 5px 5px}.footer-navigation li:first-child{margin-left:0}.footer-navigation li:last-child{margin-right:0}.footer-navigation a{text-decoration:none;color:#ffffff;font-weight:300;font-size:14px}.footer-navigation li li{display:none}.footer-navigation .fa{margin-right:5px}.amp-wp-main-link{display:block;text-align:center}.amp-wp-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}.carousel .carousel-item:last-child{margin-right:0}.carousel .content-holder{position:relative;bottom:auto;right:auto;top:auto;left:auto;width:100%;float:left;white-space:normal;padding:0}.carousel .content-holder .post-meta{text-align:left}.carousel .content-holder h3{margin:10px 0}.carousel .content-holder h3 a{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;display:-webkit-box;line-height:24px;max-height:50px;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#333333;text-decoration:none}.carousel .amp-carousel-button{cursor:pointer}.related-posts-wrapper{margin-bottom:30px}.related-posts-wrapper .img-holder{display:inline-block;border-radius:4px}.related-posts-wrapper .img-holder:before{padding-top:70%}.amp-wp-comment-list,.amp-wp-comment-list .children{margin:0;padding:0;list-style:none}.amp-wp-comment-list .comment{position:relative;margin-top:14px;padding-top:14px;border-top:1px solid #f3f3f3}.amp-wp-comment-list .comment.comment:after{clear:both;content:' ';display:block}.amp-wp-comment-list .comment .comment-avatar img{border-radius:50%}.amp-wp-comment-list .comment .column-1{float:left;width:55px}.amp-wp-comment-list .comment .column-2{padding-left:75px}.amp-wp-comment-list .comment .comment-author{font-size:14px;font-weight:700;font-style:normal}.amp-wp-comment-list .comment .comment-content{color:#838383;margin-top:8px;line-height:1.57;font-size:14px}.amp-wp-comment-list .comment .comment-content p:last-child{margin-bottom:0}.amp-wp-comment-list .comment .comment-published{margin-left:10px;font-size:12px;color:#a2a2a2;font-style:italic}.amp-wp-comment-list .comment .comment-footer .fa,.amp-wp-comment-list .comment .comment-footer a{font-size:14px;text-decoration:none}.amp-wp-comment-list .comment .comment-footer a+a{margin-left:10px}.amp-wp-comment-list .children{padding:0 0 0 30px}.amp-wp-shortcode{margin:0 0 30px}.amp-wp-shortcode .section-heading{margin:0 0 13px}.amp-wp-shortcode .section-heading .other-link{display:none}.posts-listing{margin-bottom:30px}.listing-item{position:relative}.listing-item .post-title a{color:#363636;text-decoration:none}.listing-item .post-meta{margin-top:20px}.listing-item .post-meta .post-date{line-height:2.2}.listing-item .post-meta .post-date .fa{margin-right:3px}.listing-item .post-meta .post-author{color:#b6b6b6}.listing-item a.amp-btn .fa{margin-left:3px}.listing-item a.amp-btn:active,.listing-item a.amp-btn:focus,.listing-item a.amp-btn:hover{border-color:transparent;color:#fff}.amp-btn,.mks_button{font-family:"Karla", sans-serif;font-size:14px;font-weight:400;color:#ffffff;background:#e53935;border:1px solid #e53935;border-radius:50px;-webkit-box-shadow:none;box-shadow:none;line-height:26px;text-decoration:none;display:inline-block;white-space:nowrap;padding:0 13px;-webkit-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}.amp-btn:active,.amp-btn:focus,.amp-btn:hover,.mks_button:active,.mks_button:focus,.mks_button:hover{color:#ffffff;background:#cd1e1a;border-color:#cd1e1a;text-decoration:none}.amp-btn.dark,.mks_button.dark{padding:5px 13px;border-color:#000;background:#000}.amp-btn i,.mks_button i{margin-right:5px}.amp-wp-bg-danger,.amp-wp-bg-success{padding:15px;margin:0 0 15px 0;border-radius:3px;border:1px solid transparent}.amp-wp-bg-danger p,.amp-wp-bg-success p{margin:0}.amp-wp-bg-success{color:#27b56b;background:#dff0d8;border-color:#27b56b}.amp-wp-bg-danger{color:#f46f6f;background:#feeaea;border-color:#f46f6f}.amp-wp-bg-danger p:before{font-family:'FontAwesome';content:'\f06a';font-size:14px;margin-right:5px}
     1.screen-reader-text{clip:rect(1px, 1px, 1px, 1px);position:absolute!important;height:1px;width:1px;overflow:hidden;word-wrap:normal!important}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;-webkit-box-shadow:0 0 2px 2px rgba(0, 0, 0, 0.6);box-shadow:0 0 2px 2px rgba(0, 0, 0, 0.6);clip:auto!important;color:#21759b;display:block;font-size:14px;font-size:0.875rem;font-weight:bold;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}pre{white-space:pre-wrap}.clearfix{zoom:1}.clearfix:after,.clearfix:before{content:"";display:table;clear:both}body.body{background:#ffffff;font-family:"Karla", sans-serif;font-size:16px;font-weight:400;color:#333333;line-height:1.5}button,input,optgroup,select,textarea{font-family:"Karla", sans-serif;font-size:14px}.h1,.h2,.h3,.h4,.h5,.h6,.heading-typo,h1,h2,h3,h4,h5,h6{font-family:"Noto Sans", sans-serif;font-weight:700;line-height:1.5;margin:0 0 15px}.h1,h1{font-size:24px;line-height:1.25}.h2,h2{font-size:20px}.h3,h3{font-size:18px}.h4,h4{font-size:18px}.h5,h5{font-size:16px}.h6,h6{font-size:14px}.amp-wp-container{padding:0 15px;margin:0 auto;max-width:768px}.amp-wp-container img{max-width:100%;height:auto}.amp-wp-page-header{padding:15px 0 22px;background:#ededed;text-align:center}.amp-wp-page-header .pre-title{font-family:"Noto Sans", sans-serif;font-size:24px;color:#333333;text-transform:capitalize;margin-bottom:3px}.amp-wp-page-header .page-title{margin:0;font-family:"Overpass Mono", monospace;font-size:14px;font-weight:400;color:#b6b6b6;text-transform:capitalize;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.amp-wp-page-header .page-title .fa{margin-right:10px;font-size:24px}.amp-image-tag{max-width:100%}.bold,b,strong{font-weight:700}p{margin:0 0 15px}a{-webkit-transition:all .4s ease;-moz-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}amp-video{max-width:100%;height:auto}.strong-label,blockquote{color:#000;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;margin:0 0 15px;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}table{width:100%;background-color:#fff;border-collapse:collapse}table td,table th{font-weight:unset;padding-right:10px}table th{color:#fff;line-height:1.4;background-color:#333333}table td{color:#808080;line-height:1.4}table td i{margin-right:5px}table tbody tr:nth-child(2n){background-color:#f8f8f8}.table-responsive{overflow-x:auto;padding-bottom:10px}.mr-star-empty,.mr-star-full,.mr-star-half{color:#ffd700}.btn{padding:0 18px;background:#e53935;font-size:14px;font-weight:400;color:#ffffff;text-decoration:none;display:inline-block}.button,.comments-pagination a,.pagination a{padding:6px 15px;background:#e53935;font-size:14px;font-weight:400;color:#ffffff;text-decoration:none;display:inline-block}.pagination a{padding:0px 15px}.comments-pagination{margin:10px 0}.comments-pagination a{margin-right:5px;padding:5px 15px}.comments-pagination{color:#adadad;font-size:small}.img-holder{position:relative;width:100%;background:#eee;margin-right:0;margin-bottom:0;background-repeat:no-repeat;background-position:center center;-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%}@media only screen and (max-width:380px){.img-holder:before{padding-top:100%}}.img-holder.image-holder-none:before{padding-top:0}@media only screen and (max-width:380px){.img-holder.image-holder-none:before{padding-top:0}}.img-layer{background:rgba(0, 0, 0, 0.6);position:absolute;display:block;top:0;left:0;bottom:0;right:0}.img-layer.none{background:#3b3b3b;background:-moz-linear-gradient(45deg, #3b3b3b 0%, #666666 100%);background:-webkit-gradient(left bottom, right top, color-stop(0%, #3b3b3b), color-stop(100%, #666666));background:-webkit-linear-gradient(45deg, #3b3b3b 0%, #666666 100%);background:-o-linear-gradient(45deg, #3b3b3b 0%, #666666 100%);background:-ms-linear-gradient(45deg, #3b3b3b 0%, #666666 100%);background:linear-gradient(45deg, #3b3b3b 0%, #666666 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#3b3b3b', endColorstr='#666666', GradientType=1 )}.content-holder{position:absolute;left:0;padding:20px}.content-holder a{color:#ffffff}.content-holder.image-holder-none{position:relative}.post-meta{font-family:"Overpass Mono", monospace;font-size:14px;color:#b6b6b6;text-align:left;background:none;border:none}.post-meta .post-date{line-height:2.2}.post-meta .post-author{font-weight:700}.post-meta a{color:#b6b6b6;text-decoration:underline}.post-terms .term-type,.post-terms a{font-size:14px;text-decoration:none;display:inline-block;padding:3px 15px;margin-right:6px;border:1px solid #e4e4e4;border-radius:50px}.post-terms a{margin:0 4px 10px 0}.post-terms a:active,.post-terms a:focus,.post-terms a:hover{color:#ffffff}.post-terms a:last-child{margin-right:0}.post-terms .post-categories{display:inline;list-style:none;padding:0;margin:0}.post-terms .post-categories li{display:inline}.post-terms .post-categories li a{margin-right:6px;padding:5px 13px;border:none;border-radius:50px;color:#ffffff;text-decoration:none;display:inline-block}.post-terms .post-categories li:last-child a{margin-right:0}.flex-row{-js-display:flex;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-flow:row nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row nowrap;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:justify;-webkit-box-pack:justify;justify-content:space-between;width:100%}.flex-col{max-height:100%}.flex-grow{-ms-flex:1;-webkit-box-flex:1;flex:1;-ms-flex-negative:1;-ms-flex-preferred-size:auto!important}.flex-center{margin:0 auto}.flex-left{margin-right:auto}.flex-right{margin-left:auto}.site-header{position:relative;background:#000000;width:100%;height:52px;margin:0;color:#ffffff}.site-header .flex-row{height:100%}.site-header .logo{line-height:1;margin:0}.site-header .logo a{display:block;margin-left:20px;font-family:"Noto Sans", sans-serif;font-size:24px;font-weight:700;color:#fff;text-align:left;text-decoration:none}.site-header .logo a .amp-image-tag{display:inline-block}.site-header .elements{margin-right:10px}.site-header .header-nav{list-style:none;margin:0;padding:0;width:100%;position:relative;display:inline-block;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.site-header .header-nav>li{display:inline-block;list-style:none;margin:0;padding:0;position:relative;margin:0 7px;-webkit-transition:background-color .3s;-o-transition:background-color .3s;transition:background-color .3s}.site-header .header-nav>li .navbar-toggle,.site-header .header-nav>li>a{display:inline-block;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:transparent;padding:10px 0;border:0;text-decoration:none;-webkit-transition:all .6s ease;-o-transition:all .6s ease;transition:all .6s ease;font-size:18px;color:#fff;text-align:center;cursor:pointer;line-height:1}.site-header .header-nav.left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.site-header .header-nav.right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.site-header .logo-center .logo{-webkit-box-ordinal-group:2;-ms-flex-order:2;order:2;text-align:center;margin:0 30px}.site-header .logo-center .flex-left{-webkit-box-ordinal-group:1;-ms-flex-order:1;order:1;-webkit-box-flex:1;-ms-flex:1 1 0px;flex:1 1 0}.site-header .logo-center .flex-right{-webkit-box-ordinal-group:3;-ms-flex-order:3;order:3;-webkit-box-flex:1;-ms-flex:1 1 0px;flex:1 1 0}.site-header .logo-center .logo img{margin:0 auto}.site-header .logo-center .navbar-toggle{margin-left:15px}.site-header .logo-center .navbar-search{margin-right:15px}.sticky-nav .site-header{position:fixed;left:0;right:0;top:0;z-index:999;display:block}body.sticky-nav{padding-top:52px}.amp-wp-footer{margin:0}.amp-wp-footer.sticky-footer{position:fixed;bottom:0;left:0;right:0}.amp-wp-non-amp-url{background:#e4e4e4;padding:20px 0}.amp-wp-footer-nav{background:#e53935;padding:14px 15px}.amp-wp-copyright{background:#cd2a27;padding:8px 0;text-align:center;color:#ffffff;font-size:14px}.amp-wp-copyright a{color:#ffffff}.footer-navigation{list-style:none;margin:0;padding:0;text-align:center}.footer-navigation ul{display:none}.footer-navigation li{display:inline-block;margin:0 5px 5px}.footer-navigation li:first-child{margin-left:0}.footer-navigation li:last-child{margin-right:0}.footer-navigation a{text-decoration:none;color:#ffffff;font-weight:300;font-size:14px}.footer-navigation li li{display:none}.footer-navigation .fa{margin-right:5px}.amp-wp-main-link{display:block;text-align:center}.amp-wp-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}.carousel .carousel-item:last-child{margin-right:0}.carousel .content-holder{position:relative;bottom:auto;right:auto;top:auto;left:auto;width:100%;float:left;white-space:normal;padding:0}.carousel .content-holder .post-meta{text-align:left}.carousel .content-holder h3{margin:10px 0}.carousel .content-holder h3 a{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;display:-webkit-box;line-height:24px;max-height:50px;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#333333;text-decoration:none}.carousel .amp-carousel-button{cursor:pointer}.related-posts-wrapper{margin-bottom:30px}.related-posts-wrapper .img-holder{display:inline-block;border-radius:4px}.related-posts-wrapper .img-holder:before{padding-top:70%}.amp-wp-comment-list,.amp-wp-comment-list .children{margin:0;padding:0;list-style:none}.amp-wp-comment-list .comment{position:relative;margin-top:14px;padding-top:14px;border-top:1px solid #f3f3f3}.amp-wp-comment-list .comment.comment:after{clear:both;content:' ';display:block}.amp-wp-comment-list .comment .comment-avatar img{border-radius:50%}.amp-wp-comment-list .comment .column-1{float:left;width:55px}.amp-wp-comment-list .comment .column-2{padding-left:75px}.amp-wp-comment-list .comment .comment-author{font-size:14px;font-weight:700;font-style:normal}.amp-wp-comment-list .comment .comment-content{color:#838383;margin-top:8px;line-height:1.57;font-size:14px}.amp-wp-comment-list .comment .comment-content p:last-child{margin-bottom:0}.amp-wp-comment-list .comment .comment-published{margin-left:10px;font-size:12px;color:#a2a2a2;font-style:italic}.amp-wp-comment-list .comment .comment-footer .fa,.amp-wp-comment-list .comment .comment-footer a{font-size:14px;text-decoration:none}.amp-wp-comment-list .comment .comment-footer a+a{margin-left:10px}.amp-wp-comment-list .children{padding:0 0 0 30px}.amp-wp-shortcode{margin:0 0 30px}.amp-wp-shortcode .section-heading{margin:0 0 13px}.amp-wp-shortcode .section-heading .other-link{display:none}.posts-listing{margin-bottom:30px}.listing-item{position:relative}.listing-item .post-title a{color:#363636;text-decoration:none}.listing-item .post-meta{margin-top:20px}.listing-item .post-meta .post-date{line-height:2.2}.listing-item .post-meta .post-date .fa{margin-right:3px}.listing-item .post-meta .post-author{color:#b6b6b6}.listing-item a.amp-btn .fa{margin-left:3px}.listing-item a.amp-btn:active,.listing-item a.amp-btn:focus,.listing-item a.amp-btn:hover{border-color:transparent;color:#fff}.amp-btn,.mks_button{font-family:"Karla", sans-serif;font-size:14px;font-weight:400;color:#ffffff;background:#e53935;border:1px solid #e53935;border-radius:50px;-webkit-box-shadow:none;box-shadow:none;line-height:26px;text-decoration:none;display:inline-block;white-space:nowrap;padding:0 13px;-webkit-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}.amp-btn:active,.amp-btn:focus,.amp-btn:hover,.mks_button:active,.mks_button:focus,.mks_button:hover{color:#ffffff;background:#cd1e1a;border-color:#cd1e1a;text-decoration:none}.amp-btn.dark,.mks_button.dark{padding:5px 13px;border-color:#000;background:#000}.amp-btn i,.mks_button i{margin-right:5px}.amp-wp-bg-danger,.amp-wp-bg-success{padding:15px;margin:0 0 15px 0;border-radius:3px;border:1px solid transparent}.amp-wp-bg-danger p,.amp-wp-bg-success p{margin:0}.amp-wp-bg-success{color:#27b56b;background:#dff0d8;border-color:#27b56b}.amp-wp-bg-danger{color:#f46f6f;background:#feeaea;border-color:#f46f6f}.amp-wp-bg-danger p:before{font-family:'FontAwesome';content:'\f06a';font-size:14px;margin-right:5px}
  • amp-wp/trunk/public/partials/default/page.php

    r2014452 r2019403  
    2626?>
    2727    <div <?php amp_wp_post_classes( 'single-page clearfix' ); ?>>
     28        <?php if( get_the_title() ) : ?>
    2829        <header class="amp-wp-page-header">
    2930            <h1 class="page-title"><?php the_title(); ?></h1>
    3031        </header>
     32        <?php endif; ?>
    3133       
    3234        <div class="amp-wp-container">
Note: See TracChangeset for help on using the changeset viewer.