Skip to content
Permalink
Browse files

Amp support (#955)

* added amp theme support

* added amp support hooks and filters

* phpcs fixes

* fix: sidebar notice

* remove js support for amp

* remove woocommerce sidebar integration

* replaced paried amp support to native with suport for all templates

* use paired mode for AMP

* replaced native amp support to paired suport

* Rename function astra_amp_support to astra_amp_support

* Fix: search slide not working

* Fix: search icon not aligned correctly

* Remove recurring calls to astra_is_emp_endpoint function

* Fix: Navigation menu missing in the AMP layouts

* Add mobile menu submenu toggle button without JS

* Add AMP attributes to menu toggle button in navigation menu

* Fix: Heder layout 2 not correctly aligned in AMP

* Fix: search box used to get closed on click so seraching was not possible

* phpcs fixes

* Check is amp endpoint exists on action 'wp' as global  must be set when checking if the endpoint exists

* Added media query support for header breakpoint for amp

* phpcs fixes

* Fix: correctly add ast-submenu-expended class to manus in AMP

* added css to show the submenu for amp

* Use ast-amp class prefix for the menu toggle

* Remove prefix ast-amp from dynamic css

* Re-add .ast-amp prefix for the amp css

* Fix: submenu does not open in amp layout

* Correctly escape attributes

* don't make the function overridable

* update browserlist rules to reduce unwanted browser prefixes

* ignore .DS_Store files from git

* Fix: mobile navigation button expanding on clicking in AMP layout

* toggle class  on body tag when navigation menu isopened
  • Loading branch information...
Balachandark authored and Nikschavan committed Mar 7, 2019
1 parent f44fb5b commit 831bc4654c3b0ab8672e83abf2012806df2b301b
Showing with 1,243 additions and 1,663 deletions.
  1. +3 −0 .gitignore
  2. +10 −7 Gruntfile.js
  3. +1 −1 assets/css/minified/compatibility/contact-form-7.min-rtl.css
  4. +1 −1 assets/css/minified/compatibility/contact-form-7.min.css
  5. +1 −1 assets/css/minified/compatibility/edd.min-rtl.css
  6. +1 −1 assets/css/minified/compatibility/edd.min.css
  7. +1 −1 assets/css/minified/compatibility/gravity-forms.min-rtl.css
  8. +1 −1 assets/css/minified/compatibility/gravity-forms.min.css
  9. +1 −1 assets/css/minified/compatibility/learndash.min-rtl.css
  10. +1 −1 assets/css/minified/compatibility/learndash.min.css
  11. +1 −1 assets/css/minified/compatibility/lifterlms.min-rtl.css
  12. +1 −1 assets/css/minified/compatibility/lifterlms.min.css
  13. +1 −1 assets/css/minified/customizer-controls.min.css
  14. +2 −2 assets/css/minified/editor-style.min-rtl.css
  15. +2 −2 assets/css/minified/editor-style.min.css
  16. +1 −1 assets/css/minified/extend-customizer.min.css
  17. +1 −1 assets/css/minified/menu-animation.min.css
  18. +2 −2 assets/css/minified/style.min-rtl.css
  19. +2 −2 assets/css/minified/style.min.css
  20. +0 −8 assets/css/unminified/compatibility/contact-form-7-rtl.css
  21. +0 −8 assets/css/unminified/compatibility/contact-form-7.css
  22. +0 −133 assets/css/unminified/compatibility/edd-rtl.css
  23. +0 −133 assets/css/unminified/compatibility/edd.css
  24. +0 −2 assets/css/unminified/compatibility/gravity-forms-rtl.css
  25. +0 −2 assets/css/unminified/compatibility/gravity-forms.css
  26. +0 −34 assets/css/unminified/compatibility/learndash-rtl.css
  27. +0 −34 assets/css/unminified/compatibility/learndash.css
  28. +0 −34 assets/css/unminified/compatibility/lifterlms-rtl.css
  29. +0 −34 assets/css/unminified/compatibility/lifterlms.css
  30. +0 −15 assets/css/unminified/customizer-controls-rtl.css
  31. +0 −15 assets/css/unminified/customizer-controls.css
  32. +0 −27 assets/css/unminified/editor-style-rtl.css
  33. +0 −27 assets/css/unminified/editor-style.css
  34. +0 −4 assets/css/unminified/extend-customizer-rtl.css
  35. +0 −4 assets/css/unminified/extend-customizer.css
  36. +0 −34 assets/css/unminified/menu-animation-rtl.css
  37. +0 −34 assets/css/unminified/menu-animation.css
  38. +14 −504 assets/css/unminified/style-rtl.css
  39. +14 −504 assets/css/unminified/style.css
  40. +1 −0 functions.php
  41. +8 −0 inc/class-astra-after-setup-theme.php
  42. +1 −1 inc/class-astra-dynamic-css.php
  43. +1,097 −0 inc/compatibility/class-astra-amp.php
  44. +25 −21 inc/core/class-astra-enqueue-scripts.php
  45. +2 −0 inc/core/class-astra-walker-page.php
  46. +10 −1 inc/core/common-functions.php
  47. +7 −3 inc/extras.php
  48. +1 −1 inc/template-parts.php
  49. +3 −3 package.json
  50. +14 −3 sass/site/header/_header-layouts.scss
  51. +7 −7 sass/site/header/_header-main.scss
  52. +1 −1 sidebar.php
  53. +4 −4 template-parts/advanced-footer/layout-4.php
@@ -1,6 +1,9 @@
# ignore PHPStorm extra directories
.idea/

# Ignore OS Specific files.
.DS_Store

# Leave node_modules from git
node_modules/

@@ -144,13 +144,16 @@ module.exports = function (grunt) {
flexibility,
autoprefixer({
browsers: [
'Android >= 2.1',
'Chrome >= 21',
'Edge >= 12',
'Explorer >= 7',
'Firefox >= 17',
'Opera >= 12.1',
'Safari >= 6.0'
'> 1%',
'ie >= 11',
'last 1 Android versions',
'last 1 ChromeAndroid versions',
'last 2 Chrome versions',
'last 2 Firefox versions',
'last 2 Safari versions',
'last 2 iOS versions',
'last 2 Edge versions',
'last 2 Opera versions'
],
cascade: false
})

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 831bc46

Please sign in to comment.
You can’t perform that action at this time.