├── .gitignore ├── LICENSE ├── README.md ├── assets └── images │ ├── better-amp-symbol.svg │ └── publisher-ad.jpg ├── better-amp.php ├── bootstrap.php ├── gulpfile.js ├── includes ├── backend │ └── index.php ├── classes │ ├── Fastimage.php │ ├── class-better-amp-backend-util.php │ ├── class-better-amp-component-base.php │ ├── class-better-amp-component.php │ ├── class-better-amp-content-sanitizer.php │ ├── class-better-amp-custom-script.php │ ├── class-better-amp-html-util.php │ ├── class-better-amp-menu-walker.php │ ├── class-better-amp-plugin-compatibility.php │ ├── class-better-amp-redirect-router.php │ ├── class-better-amp-rewrite-rule-generator.php │ ├── class-better-amp-scripts.php │ ├── class-better-amp-styles.php │ ├── index.php │ └── interface-better-amp-component.php ├── components │ ├── class-better-amp-carousel-component.php │ ├── class-better-amp-iframe-component.php │ ├── class-better-amp-img-component.php │ ├── class-better-amp-instagram-component.php │ ├── class-better-amp-playbuzz-component.php │ └── index.php ├── default-filters.php ├── functions │ ├── ad-function.php │ ├── core-functions.php │ ├── index.php │ ├── theme-functions.php │ └── utility-function.php ├── index.php ├── libs │ └── class-bf-json-ld-generator.php ├── panel │ ├── assets │ │ ├── font-awesome.min.css │ │ ├── fonts │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.svg │ │ │ ├── fontawesome-webfont.ttf │ │ │ ├── fontawesome-webfont.woff │ │ │ └── fontawesome-webfont.woff2 │ │ ├── panel-scripts.js │ │ └── panel-styles.css │ ├── class-better-amp-panel-render.php │ ├── class-better-amp-panel.php │ ├── fields │ │ ├── container.php │ │ ├── group_end.php │ │ ├── group_start.php │ │ └── text.php │ └── panel-view.php ├── sanitizer-rules.php └── tags-list.php ├── index.php ├── js ├── mobile_redirect.js └── mobile_redirect.min.js ├── languages └── index.php ├── package.json ├── phpunit.xml ├── readme.txt ├── screenshot-1.png ├── screenshot-2.png ├── screenshot-3.png ├── screenshot-4.png ├── screenshot-5.png ├── template ├── 404.php ├── archive-product.php ├── archive.php ├── attachment.php ├── comment-item.php ├── css │ ├── 404.css │ ├── 404.min.css │ ├── 404.rtl.css │ ├── 404.rtl.min.css │ ├── ads.css │ ├── ads.min.css │ ├── ads.rtl.css │ ├── ads.rtl.min.css │ ├── archive.css │ ├── archive.min.css │ ├── archive.rtl.css │ ├── archive.rtl.min.css │ ├── attachment.css │ ├── attachment.min.css │ ├── attachment.rtl.css │ ├── attachment.rtl.min.css │ ├── block │ │ ├── button.css │ │ ├── button.min.css │ │ ├── button.rtl.css │ │ ├── button.rtl.min.css │ │ ├── columns.css │ │ ├── columns.min.css │ │ ├── columns.rtl.css │ │ ├── columns.rtl.min.css │ │ ├── cover.css │ │ ├── cover.min.css │ │ ├── cover.rtl.css │ │ ├── cover.rtl.min.css │ │ ├── file.css │ │ ├── file.min.css │ │ ├── file.rtl.css │ │ ├── file.rtl.min.css │ │ ├── gallery.css │ │ ├── gallery.min.css │ │ ├── gallery.rtl.css │ │ ├── gallery.rtl.min.css │ │ ├── image.css │ │ ├── image.min.css │ │ ├── image.rtl.css │ │ ├── image.rtl.min.css │ │ ├── latest-comments.css │ │ ├── latest-comments.min.css │ │ ├── latest-comments.rtl.css │ │ ├── latest-comments.rtl.min.css │ │ ├── list.css │ │ ├── list.min.css │ │ ├── list.rtl.css │ │ ├── list.rtl.min.css │ │ ├── quote.css │ │ ├── quote.min.css │ │ ├── quote.rtl.css │ │ ├── quote.rtl.min.css │ │ ├── separator.css │ │ ├── separator.min.css │ │ ├── separator.rtl.css │ │ ├── separator.rtl.min.css │ │ ├── table.css │ │ ├── table.min.css │ │ ├── table.rtl.css │ │ ├── table.rtl.min.css │ │ ├── verse.css │ │ ├── verse.min.css │ │ ├── verse.rtl.css │ │ └── verse.rtl.min.css │ ├── listing-1.css │ ├── listing-1.min.css │ ├── listing-1.rtl.css │ ├── listing-1.rtl.min.css │ ├── listing-2.css │ ├── listing-2.min.css │ ├── listing-2.rtl.css │ ├── listing-2.rtl.min.css │ ├── listing-grid.css │ ├── listing-grid.min.css │ ├── listing-grid.rtl.css │ ├── listing-grid.rtl.min.css │ ├── listing.css │ ├── listing.min.css │ ├── listing.rtl.css │ ├── listing.rtl.min.css │ ├── normalize.css │ ├── normalize.min.css │ ├── normalize.rtl.css │ ├── normalize.rtl.min.css │ ├── page.css │ ├── page.min.css │ ├── page.rtl.css │ ├── page.rtl.min.css │ ├── pagination.css │ ├── pagination.min.css │ ├── pagination.rtl.css │ ├── pagination.rtl.min.css │ ├── post-terms.css │ ├── post-terms.min.css │ ├── post-terms.rtl.css │ ├── post-terms.rtl.min.css │ ├── post.css │ ├── post.min.css │ ├── post.rtl.css │ ├── post.rtl.min.css │ ├── search.css │ ├── search.min.css │ ├── search.rtl.css │ ├── search.rtl.min.css │ ├── sidebar.css │ ├── sidebar.min.css │ ├── sidebar.rtl.css │ ├── sidebar.rtl.min.css │ ├── single.css │ ├── single.min.css │ ├── single.rtl.css │ ├── single.rtl.min.css │ ├── slider.css │ ├── slider.min.css │ ├── slider.rtl.css │ ├── slider.rtl.min.css │ ├── social-list.css │ ├── social-list.min.css │ ├── social-list.rtl.css │ ├── social-list.rtl.min.css │ ├── wc-cart.css │ ├── wc-cart.min.css │ ├── wc-cart.rtl.css │ ├── wc-cart.rtl.min.css │ ├── wc-single.css │ ├── wc-single.min.css │ ├── wc-single.rtl.css │ ├── wc-single.rtl.min.css │ ├── wc.css │ ├── wc.min.css │ ├── wc.rtl.css │ └── wc.rtl.min.css ├── customizer │ ├── class-amp-customize-controls.php │ ├── class-amp-customize-social-sorter-control.php │ ├── css │ │ ├── bs-switch.css │ │ ├── bs-switch.min.css │ │ ├── index.php │ │ ├── sorter-checkbox.css │ │ └── sorter-checkbox.min.css │ ├── customize-preview.js │ ├── customizer.css │ ├── customizer.js │ ├── customizer.min.css │ ├── customizer.php │ ├── index.php │ └── js │ │ ├── bs-switch.js │ │ ├── index.php │ │ └── sorter-checkbox.js ├── footer.php ├── functions.php ├── header.php ├── includes │ └── ads.php ├── index.php ├── page.php ├── register-template.php ├── sass │ ├── 404.scss │ ├── ads.scss │ ├── archive.scss │ ├── attachment.scss │ ├── block │ │ ├── button.scss │ │ ├── columns.scss │ │ ├── cover.scss │ │ ├── file.scss │ │ ├── gallery.scss │ │ ├── image.scss │ │ ├── latest-comments.scss │ │ ├── list.scss │ │ ├── quote.scss │ │ ├── separator.scss │ │ ├── table.scss │ │ └── verse.scss │ ├── listing-1.scss │ ├── listing-2.scss │ ├── listing-grid.scss │ ├── listing.scss │ ├── normalize.scss │ ├── page.scss │ ├── pagination.scss │ ├── post-terms.scss │ ├── post.scss │ ├── search.scss │ ├── sidebar.scss │ ├── single.scss │ ├── slider.scss │ ├── social-list.scss │ ├── style.scss │ ├── wc-cart.scss │ ├── wc-single.scss │ └── wc.scss ├── search.php ├── searchform.php ├── sidebar.php ├── single-product-reviews.php ├── single-product.php ├── single.php ├── style.css ├── style.min.css ├── style.rtl.css ├── style.rtl.min.css ├── taxonomy-product_cat.php ├── taxonomy-product_tag.php ├── views │ ├── archive │ │ ├── pagination.php │ │ └── title.php │ ├── home │ │ └── featured.php │ ├── loop │ │ ├── listing-1.php │ │ └── listing-2.php │ ├── misc │ │ └── social-links.php │ └── post │ │ ├── related.php │ │ └── social-share.php ├── woocommerce.php └── woocommerce │ ├── cart │ └── cart.php │ ├── loop.php │ ├── notices │ └── success.php │ └── single-product │ └── review-rating.php ├── tests ├── bootstrap.php ├── class-amp-testcase.php ├── index.php └── url-transformer │ ├── test-end-point.php │ └── test-start-point.php └── theme-compat ├── index.php ├── no-template.php ├── searchform.php └── shortcodes ├── amp-slider.php ├── gallery.php └── index.php /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea/ 3 | workspace.xml 4 | modules.xml 5 | 6 | /vendor/ 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Better AMP 2 | Full Google AMP support for WordPress with custom themes and customizations - 3 | 4 | More information: https://betterstudio.com/wp-plugins/better-amp/ 5 | 6 | Demo: http://demo.betterstudio.com/publisher/amp-demo/ 7 | -------------------------------------------------------------------------------- /assets/images/better-amp-symbol.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | better-amp-symbol 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /assets/images/publisher-ad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-studio/better-amp/727ee783f88f7dea328161c6a4c11a2d246b2c65/assets/images/publisher-ad.jpg -------------------------------------------------------------------------------- /bootstrap.php: -------------------------------------------------------------------------------- 1 | tag 25 | * scripts list should added in config method 26 | * @see Better_AMP_Component_Interface::config documentation 27 | * 28 | * IF( false ) 29 | * The scripts will not append into theme head 30 | * 31 | * @since 1.0.0 32 | * 33 | * @var bool 34 | */ 35 | public $enable_enqueue_scripts = FALSE; 36 | 37 | 38 | /** 39 | * Retrieve the content of the highest priority amp template file that exists. 40 | * 41 | * @param array|string $template_names 42 | * @param array $props 43 | * @param bool $load If true the template file will be loaded if it is found. 44 | * @param bool $require_once Whether to require_once or require. Default true. Has no effect if $load is 45 | * false. 46 | * 47 | * @since 1.0.0 48 | * 49 | * @return string file content 50 | */ 51 | protected function locate_template( $template_names, $props = array(), $load = TRUE, $require_once = TRUE ) { 52 | 53 | ob_start(); 54 | 55 | better_amp_set_prop( get_class( $this ), $props ); 56 | 57 | better_amp_locate_template( $template_names, $load, $require_once ); 58 | 59 | return ob_get_clean(); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /includes/classes/class-better-amp-scripts.php: -------------------------------------------------------------------------------- 1 | registered[ $handle ] ) ) { 31 | return FALSE; 32 | } 33 | 34 | $this->registered[ $handle ] = new _WP_Dependency( $handle, $src, $deps, '', $args ); 35 | 36 | return TRUE; 37 | } 38 | 39 | 40 | /** 41 | * Determines script dependencies. 42 | * 43 | * @param mixed $handles Item handle and argument (string) or item handles and arguments (array of strings). 44 | * @param bool $recursion Internal flag that function is calling itself. 45 | * @param bool|false|int $group Optional. Group level: (int) level, (false) no groups. Default false. 46 | * 47 | * @since 1.2.1 48 | * @return bool True on success, false on failure. 49 | */ 50 | public function all_deps( $handles, $recursion = FALSE, $group = FALSE ) { 51 | return WP_Dependencies::all_deps( $handles, $recursion, $group ); 52 | } 53 | } 54 | 55 | 56 | add_filter( 'script_loader_tag', 'better_amp_handle_scripts_tag_attrs', 99, 2 ); 57 | 58 | /** 59 | * @param $tag The ` 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /template/header.php: -------------------------------------------------------------------------------- 1 | 2 | amp> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 19 | > 20 | 29 |
30 | 53 | 58 |
59 | -------------------------------------------------------------------------------- /template/index.php: -------------------------------------------------------------------------------- 1 | 11 |
> 12 | 15 |
16 | 11 |
> 12 | 13 |

14 | 15 | 16 |
> 17 | 18 |
19 | 20 | 21 |
22 | 23 |
24 | 31 |
32 | __( 'Default Template', 'better-amp' ), 8 | 'ThemeURI' => 'http://betterstudio.com', 9 | 'Description' => 'Better-AMP default template', 10 | 'Author' => 'BetterStudio', 11 | 'AuthorURI' => 'http://betterstudio.com', 12 | 'Version' => '1.0.0', 13 | 'ScreenShot' => 'screenshot.png', 14 | 'TemplateRoot' => dirname( __FILE__ ), 15 | 'MaxWidth' => 780 16 | ) ); 17 | } 18 | -------------------------------------------------------------------------------- /template/sass/404.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * => Mr 404 3 | */ 4 | .mr-404-suit { 5 | background: red; 6 | padding: 40px 20px; 7 | margin: 15px 0; 8 | background: #fff; 9 | font-family: Roboto; 10 | font-size: 25px; 11 | font-weight: 500; 12 | border: 1px solid #e7e7e7; 13 | position: relative; 14 | text-align: center; 15 | } 16 | .mr-404-suit .mr-404{ 17 | font-size: 70px; 18 | font-family: Arial,"Helvetica Neue",Helvetica,sans-serif; 19 | font-weight: 600; 20 | line-height: 70px; 21 | margin: 0 0 15px; 22 | } 23 | .mr-404-suit .mr-404-bio{ 24 | font-size: 18px; 25 | margin: 0; 26 | } 27 | -------------------------------------------------------------------------------- /template/sass/archive.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * => Archive Pages Header 3 | */ 4 | .archive-page-header{ 5 | padding: 15px 18px 11px; 6 | margin: 0 0 15px; 7 | background: #fff; 8 | font-family: Roboto; 9 | font-size: 25px; 10 | font-weight: 500; 11 | border: 1px solid #dcdcdc; 12 | position: relative; 13 | } 14 | .archive-page-header .pre-title, 15 | .archive-page-header .archive-description{ 16 | font-size: 14px; 17 | margin-bottom: 3px; 18 | font-weight: 400; 19 | color: #868686; 20 | } 21 | .archive-page-header .archive-title{ 22 | margin: 0; 23 | font-size: 26px; 24 | text-transform: capitalize; 25 | } 26 | .archive-page-header .archive-title .fa{ 27 | margin-right: 10px; 28 | } 29 | 30 | .archive-page-header h1 { 31 | font-size: 30px; 32 | } 33 | 34 | .archive-page-header h1 .fa { 35 | margin-right: 8px; 36 | } 37 | -------------------------------------------------------------------------------- /template/sass/attachment.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * => Attachment Page 3 | */ 4 | .single-post.attachment .post-title{ 5 | margin: 15px 0; 6 | } 7 | .single-post.attachment .return-to .button { 8 | margin-bottom: 15px; 9 | padding-left: 35px; 10 | position: relative; 11 | } 12 | .single-post.attachment .return-to .fa{ 13 | display: inline-block; 14 | left: 8px; 15 | top: 50%; 16 | margin-top: -10px; 17 | height: 20px; 18 | line-height: 20px; 19 | width: 20px; 20 | position: absolute; 21 | text-align: center; 22 | } 23 | .single-post.attachment .listing-attachment-siblings { 24 | list-style: none; 25 | padding: 0; 26 | margin: 0; 27 | } 28 | .single-post.attachment .listing-attachment-siblings .listing-item { 29 | float: left; 30 | margin-right: 10px; 31 | } 32 | .single-post.attachment .listing-attachment-siblings .listing-item amp-img{ 33 | -webkit-transition: all .6s ease; 34 | -moz-transition: all .6s ease; 35 | -o-transition: all .6s ease; 36 | transition: all .6s ease; 37 | } 38 | .single-post.attachment .listing-attachment-siblings .listing-item amp-img:hover{ 39 | opacity: 0.8; 40 | -webkit-filter: grayscale(100%); 41 | } 42 | -------------------------------------------------------------------------------- /template/sass/block/button.scss: -------------------------------------------------------------------------------- 1 | 2 | .wp-block-button { 3 | color: #fff; 4 | margin-bottom: 1.5em; 5 | } 6 | 7 | .wp-block-button.aligncenter { 8 | text-align: center; 9 | } 10 | 11 | .wp-block-button.alignright { 12 | text-align: right; 13 | } 14 | 15 | .wp-block-button__link { 16 | background-color: #32373c; 17 | border: none; 18 | border-radius: 28px; 19 | box-shadow: none; 20 | color: inherit; 21 | cursor: pointer; 22 | display: inline-block; 23 | font-size: 18px; 24 | margin: 0; 25 | padding: 12px 24px; 26 | text-align: center; 27 | text-decoration: none; 28 | white-space: normal; 29 | overflow-wrap: break-word; 30 | } 31 | 32 | .wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active { 33 | color: inherit; 34 | } 35 | 36 | .is-style-squared .wp-block-button__link { 37 | border-radius: 0; 38 | } 39 | 40 | .is-style-outline { 41 | color: #32373c; 42 | } 43 | 44 | .is-style-outline .wp-block-button__link { 45 | background: transparent; 46 | border: 2px solid currentcolor; 47 | } -------------------------------------------------------------------------------- /template/sass/block/columns.scss: -------------------------------------------------------------------------------- 1 | .wp-block-columns { 2 | display: flex; 3 | flex-wrap: wrap; 4 | } 5 | 6 | @media (min-width: 782px) { 7 | .wp-block-columns { 8 | flex-wrap: nowrap; 9 | } 10 | } 11 | .wp-block-column { 12 | flex: 1; 13 | margin-bottom: 1em; 14 | flex-basis: 100%; 15 | min-width: 0; 16 | word-break: break-word; 17 | overflow-wrap: break-word; 18 | } 19 | 20 | @media (min-width: 600px) { 21 | .wp-block-column { 22 | flex-basis: 50%; 23 | flex-grow: 0; 24 | } 25 | } 26 | 27 | @media (min-width: 600px) { 28 | .wp-block-column:nth-child(odd) { 29 | margin-right: 32px; 30 | } 31 | 32 | .wp-block-column:nth-child(even) { 33 | margin-left: 32px; 34 | } 35 | 36 | .wp-block-column:not(:first-child) { 37 | margin-left: 32px; 38 | } 39 | 40 | .wp-block-column:not(:last-child) { 41 | margin-right: 32px; 42 | } 43 | } -------------------------------------------------------------------------------- /template/sass/block/file.scss: -------------------------------------------------------------------------------- 1 | 2 | .wp-block-file { 3 | margin-bottom: 1.5em; 4 | } 5 | 6 | .wp-block-file.aligncenter { 7 | text-align: center; 8 | } 9 | 10 | .wp-block-file.alignright { 11 | text-align: right; 12 | } 13 | 14 | .wp-block-file .wp-block-file__button { 15 | background: #32373c; 16 | border-radius: 2em; 17 | color: #fff; 18 | font-size: 13px; 19 | padding: 0.5em 1em; 20 | } 21 | 22 | .wp-block-file a.wp-block-file__button { 23 | text-decoration: none; 24 | } 25 | 26 | .wp-block-file a.wp-block-file__button:hover, .wp-block-file a.wp-block-file__button:visited, .wp-block-file a.wp-block-file__button:focus, .wp-block-file a.wp-block-file__button:active { 27 | box-shadow: none; 28 | color: #fff; 29 | opacity: 0.85; 30 | text-decoration: none; 31 | } 32 | 33 | .wp-block-file * + .wp-block-file__button { 34 | margin-left: 0.75em; 35 | } 36 | -------------------------------------------------------------------------------- /template/sass/block/image.scss: -------------------------------------------------------------------------------- 1 | 2 | .wp-block-image { 3 | max-width: 100%; 4 | margin-bottom: 1em; 5 | margin-left: 0; 6 | margin-right: 0; 7 | } 8 | 9 | .wp-block-image img { 10 | max-width: 100%; 11 | } 12 | 13 | .wp-block-image.aligncenter { 14 | text-align: center; 15 | } 16 | 17 | .wp-block-image.alignfull img, 18 | .wp-block-image.alignwide img { 19 | width: 100%; 20 | } 21 | 22 | .wp-block-image .alignleft, 23 | .wp-block-image .alignright, 24 | .wp-block-image .aligncenter, .wp-block-image.is-resized { 25 | display: table; 26 | margin-left: 0; 27 | margin-right: 0; 28 | } 29 | 30 | .wp-block-image .alignleft > figcaption, 31 | .wp-block-image .alignright > figcaption, 32 | .wp-block-image .aligncenter > figcaption, .wp-block-image.is-resized > figcaption { 33 | display: table-caption; 34 | caption-side: bottom; 35 | } 36 | 37 | .wp-block-image .alignleft { 38 | float: left; 39 | margin-right: 1em; 40 | } 41 | 42 | .wp-block-image .alignright { 43 | float: right; 44 | margin-left: 1em; 45 | } 46 | 47 | .wp-block-image .aligncenter { 48 | margin-left: auto; 49 | margin-right: auto; 50 | } 51 | 52 | .wp-block-image figcaption { 53 | margin-top: 0.5em; 54 | margin-bottom: 1em; 55 | color: #555d66; 56 | text-align: center; 57 | font-size: 13px; 58 | } 59 | -------------------------------------------------------------------------------- /template/sass/block/latest-comments.scss: -------------------------------------------------------------------------------- 1 | .wp-block-latest-comments__comment { 2 | font-size: 15px; 3 | line-height: 1.1; 4 | list-style: none; 5 | margin-bottom: 1em; 6 | } 7 | 8 | .has-avatars .wp-block-latest-comments__comment { 9 | min-height: 36px; 10 | list-style: none; 11 | } 12 | 13 | .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta, 14 | .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt { 15 | margin-left: 52px; 16 | } 17 | 18 | .has-dates .wp-block-latest-comments__comment, 19 | .has-excerpts .wp-block-latest-comments__comment { 20 | line-height: 1.5; 21 | } 22 | 23 | .wp-block-latest-comments__comment-excerpt p { 24 | font-size: 14px; 25 | line-height: 1.8; 26 | margin: 5px 0 20px; 27 | } 28 | 29 | .wp-block-latest-comments__comment-date { 30 | color: #8f98a1; 31 | display: block; 32 | font-size: 12px; 33 | } 34 | 35 | .wp-block-latest-comments .avatar, 36 | .wp-block-latest-comments__comment-avatar { 37 | border-radius: 24px; 38 | display: block; 39 | float: left; 40 | height: 40px; 41 | margin-right: 12px; 42 | width: 40px; 43 | } -------------------------------------------------------------------------------- /template/sass/block/list.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-studio/better-amp/727ee783f88f7dea328161c6a4c11a2d246b2c65/template/sass/block/list.scss -------------------------------------------------------------------------------- /template/sass/block/quote.scss: -------------------------------------------------------------------------------- 1 | 2 | .wp-block-quote.is-style-large, .wp-block-quote.is-large { 3 | margin: 0 0 16px; 4 | padding: 0 1em; 5 | } 6 | 7 | .wp-block-quote.is-style-large p, .wp-block-quote.is-large p { 8 | font-size: 24px; 9 | font-style: italic; 10 | line-height: 1.6; 11 | } 12 | 13 | .wp-block-quote.is-style-large cite, 14 | .wp-block-quote.is-style-large footer, .wp-block-quote.is-large cite, 15 | .wp-block-quote.is-large footer { 16 | font-size: 18px; 17 | text-align: right; 18 | } -------------------------------------------------------------------------------- /template/sass/block/separator.scss: -------------------------------------------------------------------------------- 1 | 2 | .wp-block-separator.is-style-wide { 3 | border-bottom-width: 1px; 4 | } 5 | 6 | .wp-block-separator.is-style-dots { 7 | background: none; 8 | border: none; 9 | text-align: center; 10 | max-width: none; 11 | line-height: 1; 12 | height: auto; 13 | } 14 | 15 | .wp-block-separator.is-style-dots::before { 16 | content: "\00b7 \00b7 \00b7"; 17 | color: #191e23; 18 | font-size: 20px; 19 | letter-spacing: 2em; 20 | padding-left: 2em; 21 | font-family: serif; 22 | } -------------------------------------------------------------------------------- /template/sass/block/table.scss: -------------------------------------------------------------------------------- 1 | .wp-block-table.has-fixed-layout { 2 | table-layout: fixed; 3 | width: 100%; 4 | } 5 | 6 | .wp-block-table.alignleft, .wp-block-table.aligncenter, .wp-block-table.alignright { 7 | display: table; 8 | width: auto; 9 | } 10 | 11 | .wp-block-table.is-style-stripes { 12 | border-spacing: 0; 13 | border-collapse: inherit; 14 | border-bottom: 1px solid #f3f4f5; 15 | } 16 | 17 | .wp-block-table.is-style-stripes tr:nth-child(odd) { 18 | background-color: #f3f4f5; 19 | } 20 | 21 | .wp-block-table.is-style-stripes td { 22 | border-color: transparent; 23 | } 24 | -------------------------------------------------------------------------------- /template/sass/block/verse.scss: -------------------------------------------------------------------------------- 1 | pre.wp-block-verse { 2 | white-space: nowrap; 3 | overflow: auto; 4 | } 5 | -------------------------------------------------------------------------------- /template/sass/listing-1.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * => Listing 1 3 | */ 4 | .listing-1-item{ 5 | padding: 12px 0; 6 | border-bottom: 1px solid #e6e6e6; 7 | min-height: 125px; 8 | } 9 | .listing-1-item:last-child{ 10 | border-bottom: none; 11 | padding-bottom: 0; 12 | } 13 | .listing-1-item .post-thumbnail{ 14 | display: inline-block; 15 | float: right; 16 | margin-left: 15px; 17 | } 18 | .listing-1-item .post-thumbnail .amp-image-tag.amp-image-tag.amp-image-tag{ 19 | width: 100px; 20 | } 21 | .listing-1-item.have-thumbnail a.post-read-more{ 22 | position: absolute; 23 | bottom: 18px; 24 | } 25 | .listing-1-item .post-title { 26 | max-height: 55px; 27 | overflow: hidden; 28 | } 29 | -------------------------------------------------------------------------------- /template/sass/listing-2.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * => Listing 2 3 | */ 4 | .listing-2-item{ 5 | padding: 12px 0; 6 | border-bottom: 1px solid #e6e6e6; 7 | } 8 | .listing-2-item:last-child{ 9 | border-bottom: none; 10 | padding-bottom: 0; 11 | } 12 | .listing-2-item .post-thumbnail{ 13 | margin-bottom: 15px; 14 | } 15 | .listing-2-item .post-thumbnail amp-img { 16 | max-width: 100%; 17 | } 18 | .listing-2-item .post-title { 19 | font-size: 18px; 20 | margin: 0 0 10px; 21 | } 22 | .listing-2-item a.post-read-more { 23 | float: right; 24 | } 25 | -------------------------------------------------------------------------------- /template/sass/listing-grid.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * => Listing Grid 3 | */ 4 | .posts-listing.posts-listing-grid{ 5 | margin-bottom: 0; 6 | } 7 | .listing-grid-item { 8 | position: relative; 9 | float: left; 10 | width: 33.333%; 11 | margin-bottom: 30px; 12 | } 13 | .listing-grid-item-inner{ 14 | position: relative; 15 | } 16 | .listing-grid-item:nth-child( 3n-1 ){ 17 | padding: 0 6px; 18 | } 19 | .listing-grid-item:nth-child( 3n-2 ){ 20 | padding-right: 12px; 21 | clear: left; 22 | } 23 | .listing-grid-item:nth-child( 3n+3 ){ 24 | padding-left: 12px; 25 | } 26 | .listing-grid-item .post-thumbnail { 27 | margin-bottom: 15px; 28 | } 29 | .listing-grid-item .post-thumbnail amp-img{ 30 | max-width: 100%; 31 | } 32 | .listing-grid-item .post-title { 33 | margin-bottom: 5px; 34 | } 35 | .listing-grid-item .woocommerce-product-rating { 36 | margin-bottom: 15px; 37 | } 38 | .listing-grid-item .woocommerce-price { 39 | margin-bottom: 10px; 40 | font-size: 1em; 41 | } 42 | @media only screen and (max-width: 650px) { 43 | .listing-grid-item { 44 | width: 50%; 45 | padding: 0; 46 | } 47 | .listing-grid-item:nth-child( 3n+3 ), 48 | .listing-grid-item:nth-child( 3n-2 ), 49 | .listing-grid-item:nth-child( 3n-1 ){ 50 | padding: 0; 51 | clear: none; 52 | } 53 | .listing-grid-item:nth-child(odd){ 54 | padding-right: 12px; 55 | clear: left; 56 | } 57 | .listing-grid-item:nth-child(even){ 58 | padding-left: 12px; 59 | clear: none; 60 | } 61 | } 62 | @media only screen and (max-width: 380px) { 63 | .listing-grid-item:nth-child(odd), 64 | .listing-grid-item:nth-child(even){ 65 | padding: 0; 66 | clear: none; 67 | } 68 | .listing-grid-item { 69 | width: 100%; 70 | padding: 0; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /template/sass/listing.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * => Base Listings 3 | */ 4 | .posts-listing{ 5 | margin-bottom: 30px; 6 | } 7 | .listing-item{ 8 | position: relative; 9 | } 10 | .listing-item .post-title{ 11 | font-family: 'Roboto', sans-serif; 12 | font-weight: 500; 13 | color: #363636; 14 | font-size: 15px; 15 | line-height: 1.3; 16 | margin: 0 0 10px; 17 | } 18 | .listing-item .post-title a { 19 | color: #363636; 20 | text-decoration: none; 21 | } 22 | .listing-item .post-meta{ 23 | margin-top: 15px; 24 | font-size: 12px; 25 | } 26 | .listing-item .post-meta .post-date .fa{ 27 | margin-right: 3px; 28 | } 29 | .listing-item a.post-read-more{ 30 | font-family: 'Roboto',sans-serif; 31 | font-weight: 500; 32 | font-size: 12px; 33 | color: #363636; 34 | text-decoration: none; 35 | background: #f9f9f9; 36 | border: 1px solid #d8d8d8; 37 | padding: 0 13px; 38 | border-radius: 33px; 39 | display: inline-block; 40 | line-height: 24px; 41 | } 42 | .listing-item a.post-read-more .fa { 43 | margin-left: 3px; 44 | } 45 | .listing-item a.post-read-more:hover { 46 | border-color: transparent; 47 | color: #fff; 48 | background: var(--primary-color); 49 | } 50 | .listing-item .post-excerpt { 51 | color: inherit; 52 | font-family: 'Lato',sans-serif; 53 | font-weight: 200; 54 | font-size: 14px; 55 | line-height: 1.4; 56 | } 57 | .listing-item .post-excerpt p:last-child{ 58 | margin-bottom: 0; 59 | } 60 | -------------------------------------------------------------------------------- /template/sass/normalize.scss: -------------------------------------------------------------------------------- 1 | * { 2 | -webkit-box-sizing: border-box; 3 | -moz-box-sizing: border-box; 4 | box-sizing: border-box; 5 | } 6 | amp-iframe { 7 | max-width: 100%; 8 | height: auto; 9 | } 10 | -------------------------------------------------------------------------------- /template/sass/page.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * => Page single 3 | */ 4 | .single-page{ 5 | margin: 0 0 15px; 6 | } 7 | .single-page .page-thumbnail{ 8 | margin-bottom: 15px; 9 | text-align: center; 10 | } 11 | .single-page .page-thumbnail .amp-image-tag { 12 | display: inline-block; 13 | } 14 | .single-page .page-title { 15 | font-size: 18px; 16 | margin: 0 0 15px; 17 | line-height: 1.3; 18 | } 19 | -------------------------------------------------------------------------------- /template/sass/pagination.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * => Pagination 3 | */ 4 | .pagination{ 5 | line-height: 28px; 6 | margin: 0 0 30px; 7 | height: 30px; 8 | } 9 | .pagination .nav-links { 10 | text-align: center; 11 | padding: 0; 12 | font-family: Roboto; 13 | font-weight: 400; 14 | color: #a2a2a2; 15 | font-size: 14px; 16 | } 17 | .pagination .nav-links .page-numbers, 18 | .pagination h2, 19 | .pagination > .screen-reader-text { 20 | display: none; 21 | } 22 | .pagination .nav-links .page-numbers.prev, 23 | .pagination .nav-links .page-numbers.current, 24 | .pagination .nav-links .page-numbers.next { 25 | display: inline-block; 26 | } 27 | .pagination .nav-links .page-numbers.prev, 28 | .pagination .nav-links .page-numbers.next { 29 | padding: 0 18px; 30 | border: 1px solid #d7d7d7; 31 | color: #494949; 32 | font-family: Roboto; 33 | font-weight: 500; 34 | font-size: 13px; 35 | display: inline-block; 36 | text-decoration: none; 37 | background: #f7f7f7; 38 | border-radius: 33px; 39 | } 40 | .pagination .nav-links .page-numbers.prev { 41 | float: left; 42 | } 43 | .pagination .nav-links .page-numbers.next { 44 | float: right; 45 | } 46 | .pagination .nav-links .page-numbers.prev .fa { 47 | margin-right: 7px; 48 | } 49 | .pagination .nav-links .page-numbers.next .fa { 50 | margin-left: 7px; 51 | } 52 | .pagination .nav-links .page-numbers.current:first-child{ 53 | float: left; 54 | } 55 | .pagination .newer { 56 | float: right; 57 | } 58 | .pagination .older { 59 | float: left; 60 | } 61 | -------------------------------------------------------------------------------- /template/sass/post-terms.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * => Post Terms 3 | */ 4 | .post-terms{ 5 | margin: 0 0 10px; 6 | position: relative; 7 | padding-left: 48px; 8 | clear: both; 9 | } 10 | .post-terms a, 11 | .post-terms .term-type{ 12 | display: inline-block; 13 | line-height: 20px; 14 | padding: 0 11px; 15 | border: 1px solid #dcdcdc; 16 | font-size: 12px; 17 | text-decoration: none; 18 | margin-right: 4px; 19 | border-radius: 33px; 20 | color: #464646; 21 | } 22 | .post-terms .term-type{ 23 | margin-right: 6px; 24 | color: #ffffff; 25 | background: var(--primary-color); 26 | border-color: transparent; 27 | position: absolute; 28 | left: 0; 29 | } 30 | .post-terms.cats .term-type{ 31 | background: var(--primary-color); 32 | } 33 | .post-terms a{ 34 | margin: 0 4px 4px 0; 35 | } 36 | .post-terms a:hover{ 37 | color: #fff; 38 | border-color: transparent; 39 | background: var(--primary-color); 40 | } 41 | .post-terms a:last-child{ 42 | margin-right: 0; 43 | } 44 | .post-terms .post-categories{ 45 | display: inline; 46 | list-style: none; 47 | padding: 0; 48 | margin: 0; 49 | font-size: 0; 50 | } 51 | .post-terms .post-categories li{ 52 | display: inline; 53 | } 54 | .post-terms .post-categories li a{ 55 | margin-right: 4px; 56 | } 57 | .post-terms .post-categories li:last-child a{ 58 | margin-right: 0; 59 | } 60 | -------------------------------------------------------------------------------- /template/sass/post.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * => Post single page 3 | */ 4 | .single-post{ 5 | margin: 0 0 15px; 6 | } 7 | .single-post .post-thumbnail{ 8 | margin-bottom: 15px; 9 | text-align: center; 10 | font-size: 0; 11 | } 12 | .single-post .post-thumbnail amp-img { 13 | max-width: 100%; 14 | } 15 | .single-post .post-title { 16 | font-size: 20px; 17 | margin: 0 0 15px; 18 | line-height: 1.3; 19 | } 20 | .single-post .post-subtitle { 21 | font-size: 16px; 22 | font-weight: 400; 23 | margin: -8px 0 15px; 24 | color: #7b7b7b; 25 | font-style: italic; 26 | } 27 | .single-post .post-meta { 28 | color: #7b7b7b; 29 | font-size: 14px; 30 | border-bottom: 1px solid #eee; 31 | padding-bottom: 12px; 32 | margin-bottom: 10px; 33 | } 34 | .single-post .post-meta amp-img{ 35 | display: inline-block; 36 | vertical-align: middle; 37 | border-radius: 50%; 38 | margin-right: 6px; 39 | } 40 | .single-post .post-meta a { 41 | text-decoration: none; 42 | font-size: 14px; 43 | text-transform: capitalize; 44 | color: var(--primary-color); 45 | } 46 | 47 | 48 | /* 49 | * -> Post comments 50 | */ 51 | .comments-wrapper { 52 | border: 1px solid #e2e2e2; 53 | background: #fff; 54 | margin: 15px 0 20px; 55 | padding: 16px 8px 16px 12px; 56 | position: relative; 57 | line-height: 18px; 58 | } 59 | .comments-wrapper .comments-label { 60 | display: inline-block; 61 | line-height: 32px; 62 | } 63 | .comments-wrapper .counts-label { 64 | color: #929292; 65 | } 66 | .comments-wrapper .button.add-comment { 67 | float: right; 68 | margin-top: 0; 69 | line-height: 30px; 70 | padding: 0 17px; 71 | font-size: 12px; 72 | border-radius: 33px; 73 | } 74 | -------------------------------------------------------------------------------- /template/sass/search.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * => Search 3 | */ 4 | .search-form { 5 | font-family: Roboto; 6 | font-size: 16px; 7 | padding: 0 0 18px; 8 | border-bottom: 1px solid #efefef; 9 | margin: 0 0 6px; 10 | } 11 | body.search-results .search-form.empty { 12 | padding: 35px 0; 13 | border-bottom: none; 14 | } 15 | .search-form label { 16 | display: block; 17 | padding: 0 0 10px; 18 | color: #494949; 19 | } 20 | .search-form .search-input{ 21 | position: relative; 22 | } 23 | .search-form .search-field { 24 | -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); 25 | -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); 26 | box-shadow: inset 0 1px 1px rgba(0,0,0,.075); 27 | background: #f6f6f6; 28 | display: block; 29 | border: 1px solid #d7d7d7; 30 | font-size: 15px; 31 | padding: 0 18px; 32 | line-height: 36px; 33 | width: 100%; 34 | border-radius: 33px; 35 | } 36 | .search-form .search-field:focus, 37 | .search-form .search-field:active { 38 | outline: none; 39 | } 40 | .search-form .search-submit { 41 | position: absolute; 42 | top: 0; 43 | right: 0; 44 | bottom: 0; 45 | width: auto; 46 | color: #fff; 47 | text-transform: uppercase; 48 | border: none; 49 | cursor: pointer; 50 | line-height: 38px; 51 | padding: 0 22px; 52 | border-radius: 0 33px 33px 0; 53 | background: var(--primary-color); 54 | } 55 | -------------------------------------------------------------------------------- /template/sass/slider.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * => Slider 3 | */ 4 | .amp-slider{ 5 | background: #eee; 6 | direction: ltr; 7 | } 8 | .amp-slider a{ 9 | text-decoration: none; 10 | } 11 | .homepage-slider{ 12 | margin: -15px -15px 0; 13 | } 14 | 15 | 16 | /* 17 | * -> Featured Slider 18 | */ 19 | .amp-featured-slider .img-holder{ 20 | width: 100%; 21 | } 22 | .amp-featured-slider .img-holder:before { 23 | padding-top: 70%; 24 | } 25 | .amp-featured-slider .content-holder{ 26 | background: rgba(0,0,0,0.5); 27 | padding: 20px; 28 | border-radius: 8px; 29 | } 30 | .amp-featured-slider .content-holder a{ 31 | color: #fff; 32 | } 33 | .amp-featured-slider .content-holder h3{ 34 | margin: 0; 35 | font-size: 22px; 36 | } 37 | .amp-featured-slider .amp-carousel-button-prev, 38 | .amp-featured-slider .amp-carousel-button-next{ 39 | border-radius: 50%; 40 | } 41 | @media only screen and (max-width : 680px) { 42 | .amp-featured-slider .content-holder h3 { 43 | font-size: 15px; 44 | } 45 | } 46 | @media only screen and (max-width : 380px){ 47 | .amp-featured-slider .img-holder:before { 48 | padding-top: 80%; 49 | } 50 | .amp-featured-slider .content-holder{ 51 | padding: 12px; 52 | } 53 | } 54 | @media only screen and (min-width : 600px){ 55 | .amp-featured-slider .content-holder { 56 | bottom: 26px; 57 | left: 26px; 58 | right: 26px; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /template/sass/wc-cart.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * =>Cart Page 3 | */ 4 | .woocommerce table.shop_table { 5 | border: 1px solid rgba(0, 0, 0, .1); 6 | margin: 0 -1px 24px 0; 7 | text-align: left; 8 | width: 100%; 9 | border-collapse: separate; 10 | border-radius: 5px 11 | } 12 | .woocommerce table.shop_table th { 13 | font-weight: 700; 14 | padding: 9px 12px 15 | } 16 | .woocommerce table.shop_table td { 17 | border-top: 1px solid rgba(0, 0, 0, .1); 18 | padding: 6px 12px; 19 | vertical-align: middle 20 | } 21 | .woocommerce table.shop_table td small { 22 | font-weight: 400 23 | } 24 | .woocommerce table.shop_table tbody:first-child tr:first-child td, 25 | .woocommerce table.shop_table tbody:first-child tr:first-child th { 26 | border-top: 0 27 | } 28 | .woocommerce table.shop_table tbody th, 29 | .woocommerce table.shop_table tfoot td, 30 | .woocommerce table.shop_table tfoot th { 31 | font-weight: 700; 32 | border-top: 1px solid rgba(0, 0, 0, .1) 33 | } 34 | .woocommerce .product-name a { 35 | text-decoration: none; 36 | font-weight: 700; 37 | color: #111; 38 | } 39 | -------------------------------------------------------------------------------- /template/search.php: -------------------------------------------------------------------------------- 1 | " 2 | action=""> 3 | 4 | 7 | 8 |
9 | 12 | 14 |
15 | 16 | 17 | -------------------------------------------------------------------------------- /template/sidebar.php: -------------------------------------------------------------------------------- 1 | 8 | 10 | 87 | 88 | -------------------------------------------------------------------------------- /template/single-product-reviews.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
    4 | 'woocommerce_comments' ) ); 10 | } 11 | 12 | wp_list_comments( $args ); 13 | 14 | ?> 15 |
16 |
17 |
18 |
19 | -------------------------------------------------------------------------------- /template/taxonomy-product_cat.php: -------------------------------------------------------------------------------- 1 | ' . better_amp_translation_get( 'prev' ); 7 | $next = better_amp_translation_get( 'next' ) . ''; 8 | } else { 9 | $prev = '' . better_amp_translation_get( 'prev' ); 10 | $next = better_amp_translation_get( 'next' ) . ''; 11 | } 12 | 13 | the_posts_pagination( array( 14 | 'mid_size' => 0, 15 | 'prev_text' => $prev, 16 | 'next_text' => $next, 17 | 'before_page_number' => '' . better_amp_translation_get( 'page' ) . ' ', 18 | 'after_page_number' => ' ' . sprintf( better_amp_translation_get( 'page_of' ), better_amp_get_query()->max_num_pages ) . ' ', 19 | ) ); 20 | -------------------------------------------------------------------------------- /template/views/archive/title.php: -------------------------------------------------------------------------------- 1 | 18 |
19 | ', $title['pre_title'], '

'; 23 | } 24 | 25 | echo '

', $title['icon'], $title['title'], '

'; 26 | 27 | if ( ! empty( $title['description'] ) ) { 28 | 29 | echo '
', $title['description'], '
'; 30 | } 31 | ?> 32 |
33 | -------------------------------------------------------------------------------- /template/views/home/featured.php: -------------------------------------------------------------------------------- 1 | 'post', 5 | 'posts_per_page' => 3, 6 | 'ignore_sticky_posts' => TRUE, 7 | 'meta_query' => array( // only posts with thumbnail 8 | 'key' => '_thumbnail_id' 9 | ) 10 | ); 11 | 12 | $featured_query = new WP_Query( apply_filters( 'better-amp/home/featured', $featured_args ) ); 13 | better_amp_set_query( $featured_query ); 14 | 15 | // Enqueue AMP carousel script 16 | better_amp_enqueue_script( 'amp-carousel', 'https://cdn.ampproject.org/v0/amp-carousel-0.2.js' ); 17 | 18 | ?> 19 | delay="3500" autoplay> 21 | 34 |
35 |
36 |
37 |

38 |
39 |
40 | 45 |
46 | 7 |
8 | 20 | 42 | 55 |
56 | -------------------------------------------------------------------------------- /template/views/loop/listing-2.php: -------------------------------------------------------------------------------- 1 | 7 |
8 | 19 | 55 | 69 |
70 | -------------------------------------------------------------------------------- /template/views/misc/social-links.php: -------------------------------------------------------------------------------- 1 | 6 |
7 | 42 |
43 | -------------------------------------------------------------------------------- /template/views/post/related.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 42 | 18 | 19 | 34 | 35 | 36 | 73 | -------------------------------------------------------------------------------- /template/woocommerce.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 18 |
> 19 |
20 | is_on_sale() ) { 23 | echo apply_filters( 24 | 'woocommerce_sale_flash', 25 | '' . better_amp_translation_get( 'product-sale' ) . '', 26 | $post, 27 | $product 28 | ); 29 | } 30 | 31 | if ( has_post_thumbnail() ) { ?> 32 |
33 | 34 | 35 | 36 |
37 | 38 | 39 |

40 | 41 | 42 | 43 |

44 | 45 | get_average_rating() ) { ?> 46 |
47 | 54 |
56 |
57 | 58 | 59 |
get_price_html(); ?>
60 | 61 | 64 | 65 | single_add_to_cart_text() ); ?> 68 | 69 |
70 |
71 | 72 |
73 | -------------------------------------------------------------------------------- /template/woocommerce/notices/success.php: -------------------------------------------------------------------------------- 1 | 28 | 29 | 30 |
32 | 33 | -------------------------------------------------------------------------------- /template/woocommerce/single-product/review-rating.php: -------------------------------------------------------------------------------- 1 | comment_ID, 'rating', TRUE ) ); 5 | 6 | if ( $rating && get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) { 7 | 8 | $average = ( esc_attr( $rating ) / 5 ) * 100; 9 | better_amp_add_inline_style( '.comment-' . $comment->comment_ID . '-rating-stars .rating-stars-active{width:' . $average . '%}' ); 10 | 11 | ?> 12 | 13 |
14 | 15 |
16 | 17 | factory()->user->create( array( 'role' => $as ) ); 8 | 9 | wp_set_current_user( $user_id ); 10 | 11 | return $user_id; 12 | } 13 | 14 | function go_to( $url ) { 15 | 16 | $this->set_permalink_structure( '/%postname%/' ); 17 | 18 | return parent::go_to( $url ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/index.php: -------------------------------------------------------------------------------- 1 | " target="_blank"> 2 | 8 | 10 | 11 | -------------------------------------------------------------------------------- /theme-compat/shortcodes/amp-slider.php: -------------------------------------------------------------------------------- 1 | autoplay> 2 | 10 |
11 | 12 | 13 | 14 |
15 | 21 |
22 | -------------------------------------------------------------------------------- /theme-compat/shortcodes/gallery.php: -------------------------------------------------------------------------------- 1 | 15 | autoplay> 16 | print_attachment_image( $attachment ); 20 | } 21 | 22 | ?> 23 | 24 |