AMP for WP – Accelerated Mobile Pages - Version 0.9.98.19

Version Description

(25th November 2019) = * Fixed: image transients should clear automatically #3781 * Fixed: CTA button in header could be made no follow #3798 * Fixed: In IOS screen, Menu cross button is not appearing in Swift design #3809 * Fixed: Comment closed opion need to be removed. #3750 * Fixed: In template mode Need to show extension setting panel. #3728 * Fixed: Facebook comment is not changing language when we select another language #3710 * Fixed: Single Sidebar data is visible in Homepage #3636 * Fixed: Need to remove width from inline style on amp images #3741 * Fixed: If permalinks is set as "/index.php/%year%/%monthnum%/%day%/%postname%/" then not working properly with Pagination #3537 * Fixed: Canonical url is changing in cateogry pages when cateogry name start with amp #3694 * Fixed: general fixes and improvements part 2 #3621 * Fixed: Warning: strpos(): Empty needle in /home/statecer/public_html/wp-content/plugins/accelerated-mobile-pages/templates/features.php on line 5788 #3870

Download this release

Release Info

Developer mohammed_kaludi
Plugin Icon 128x128 AMP for WP – Accelerated Mobile Pages
Version 0.9.98.19
Comparing to
See all releases

Code changes from version 0.9.98.18 to 0.9.98.19

Files changed (281) hide show
  1. README.md +14 -1
  2. accelerated-moblie-pages.php +8 -3
  3. changelog.txt +14 -0
  4. classes/ampforwp-fields.php +3 -0
  5. classes/class-ampforwp-embedly-sanitizer.php +3 -0
  6. classes/class-ampforwp-fields.php +3 -0
  7. classes/class-ampforwp-infinite-scroll.php +3 -0
  8. classes/class-ampforwp-instagram-sanitizer.php +3 -0
  9. classes/class-ampforwp-photo-gallery-embed.php +3 -0
  10. classes/class-ampforwp-rev-slider.php +3 -1
  11. classes/class-ampforwp-slide-anything-embed.php +3 -0
  12. components/author-box/author-box.php +3 -0
  13. components/breadcrumb/breadcrumb.php +5 -1
  14. components/categories-tags/categories-tags.php +3 -0
  15. components/comments/comments.php +3 -2
  16. components/components-core.php +3 -0
  17. components/featured-image/featured-image.php +3 -0
  18. components/gdpr/gdpr.php +5 -1
  19. components/logo/logo.php +3 -0
  20. components/loop/loop.php +3 -0
  21. components/menu/menu.php +3 -0
  22. components/post-navigation/post-navigation.php +3 -0
  23. components/post-pagination/post-pagination.php +3 -0
  24. components/related-posts/related-posts.php +3 -0
  25. components/search/search.php +3 -0
  26. components/sidebar/sidebar.php +3 -0
  27. components/social-icons/social-icons.php +3 -1
  28. components/theme-loader.php +3 -0
  29. feeds/instant-article-feed.php +5 -1
  30. includes/ampforwp-fields-array.php +3 -0
  31. includes/features/advertisement/ads-functions.php +3 -0
  32. includes/features/advertisement/ads-options.php +4 -2
  33. includes/features/advertisement/mgid-ads-functions.php +3 -0
  34. includes/features/amp_bridge.php +3 -0
  35. includes/features/analytics/analytics-functions.php +3 -0
  36. includes/features/analytics/analytics-options.php +3 -0
  37. includes/features/contact-form/contact-form-options.php +3 -0
  38. includes/features/functions.php +3 -0
  39. includes/features/notice-bar/notice-bar-functions.php +3 -0
  40. includes/features/notice-bar/notice-bar-options.php +3 -0
  41. includes/features/pagebuilders-support/pagebuilders_support.php +3 -0
  42. includes/features/performance/performance-functions.php +3 -0
  43. includes/features/performance/performance-options.php +3 -0
  44. includes/features/push-notification/push-notification-functions.php +3 -1
  45. includes/features/push-notification/push-notification-options.php +3 -0
  46. includes/features/structure-data/structured-data-functions.php +3 -1
  47. includes/features/structure-data/structured-data-options.php +3 -0
  48. includes/icons/amp-icons.php +3 -0
  49. includes/modules/ampforwp-blurb.php +5 -1
  50. includes/modules/ampforwp-button.php +5 -1
  51. includes/options/admin-config.php +19 -1
  52. includes/options/redux-core/core/panel.php +1 -1
  53. includes/options/redux-core/inc/browser.php +3 -0
  54. includes/options/redux-core/inc/class.p.php +3 -0
  55. includes/options/redux-core/inc/class.redux_instances.php +3 -0
  56. includes/options/redux-core/inc/class.thirdparty.fixes.php +3 -0
  57. includes/options/redux-core/inc/extensions/customizer/inc/customizer_control.php +3 -0
  58. includes/options/redux-core/inc/extensions/customizer/inc/customizer_devs.php +3 -0
  59. includes/options/redux-core/inc/extensions/customizer/inc/customizer_fields.php +3 -1
  60. includes/options/redux-core/inc/extensions/customizer/inc/customizer_panel.php +3 -0
  61. includes/options/redux-core/inc/extensions/customizer/inc/customizer_section.php +3 -1
  62. includes/options/redux-core/inc/fields/raw/parsedown.php +3 -1
  63. includes/options/redux-core/inc/fields/select/elusive-icons.php +3 -0
  64. includes/options/redux-core/inc/fields/upload/field_upload.php +3 -0
  65. includes/options/redux-core/inc/lib.redux_instances.php +3 -0
  66. includes/options/redux-core/inc/themecheck/checks/embedded.php +3 -1
  67. includes/options/redux-core/inc/themecheck/checks/full_package.php +3 -1
  68. includes/options/redux-core/inc/themecheck/class.redux_themecheck.php +3 -0
  69. includes/options/redux-core/inc/tracking.php +3 -0
  70. includes/options/redux-core/inc/validation/color/validation_color.php +3 -1
  71. includes/options/redux-core/inc/validation/color_rgba/validation_color_rgba.php +3 -0
  72. includes/options/redux-core/inc/validation/colorrgba/validation_colorrgba.php +3 -1
  73. includes/options/redux-core/inc/validation/comma_numeric/validation_comma_numeric.php +3 -1
  74. includes/options/redux-core/inc/validation/css/validation_css.php +3 -1
  75. includes/options/redux-core/inc/validation/date/validation_date.php +3 -1
  76. includes/options/redux-core/inc/validation/email/validation_email.php +3 -1
  77. includes/options/redux-core/inc/validation/email_not_empty/validation_email_not_empty.php +3 -1
  78. includes/options/redux-core/inc/validation/html/validation_html.php +3 -1
  79. includes/options/redux-core/inc/validation/html_custom/validation_html_custom.php +3 -1
  80. includes/options/redux-core/inc/validation/js/validation_js.php +3 -1
  81. includes/options/redux-core/inc/validation/no_html/validation_no_html.php +3 -1
  82. includes/options/redux-core/inc/validation/no_special_chars/validation_no_special_chars.php +3 -1
  83. includes/options/redux-core/inc/validation/not_empty/validation_not_empty.php +3 -1
  84. includes/options/redux-core/inc/validation/numeric/validation_numeric.php +3 -1
  85. includes/options/redux-core/inc/validation/numeric_not_empty/validation_numeric_not_empty.php +3 -1
  86. includes/options/redux-core/inc/validation/preg_replace/validation_preg_replace.php +3 -1
  87. includes/options/redux-core/inc/validation/str_replace/validation_str_replace.php +3 -1
  88. includes/options/redux-core/inc/validation/unique_slug/validation_unique_slug.php +3 -1
  89. includes/options/redux-core/inc/validation/url/validation_url.php +3 -1
  90. includes/options/redux-core/inc/welcome/welcome.php +0 -569
  91. includes/options/redux-core/templates/panel/container.tpl.php +3 -0
  92. includes/options/redux-core/templates/panel/content.tpl.php +3 -0
  93. includes/options/redux-core/templates/panel/footer.tpl.php +3 -0
  94. includes/options/redux-core/templates/panel/header.tpl.php +3 -0
  95. includes/options/redux-core/templates/panel/header_stickybar.tpl.php +3 -0
  96. includes/options/redux-core/templates/panel/menu_container.tpl.php +4 -1
  97. includes/options/templates/footer.tpl.php +3 -0
  98. includes/options/templates/header.tpl.php +3 -0
  99. includes/options/templates/header_stickybar.tpl.php +3 -0
  100. includes/vendor/Mobile_Detect.php +3 -0
  101. includes/vendor/amp/amp.php +3 -0
  102. includes/vendor/amp/back-compat/back-compat.php +3 -0
  103. includes/vendor/amp/includes/admin/class-amp-customizer.php +3 -0
  104. includes/vendor/amp/includes/admin/functions.php +3 -0
  105. includes/vendor/amp/includes/amp-frontend-actions.php +3 -0
  106. includes/vendor/amp/includes/amp-helper-functions.php +3 -0
  107. includes/vendor/amp/includes/amp-post-template-actions.php +3 -0
  108. includes/vendor/amp/includes/amp-post-template-functions.php +3 -0
  109. includes/vendor/amp/includes/class-amp-content.php +3 -0
  110. includes/vendor/amp/includes/class-amp-post-template.php +3 -0
  111. includes/vendor/amp/includes/embeds/class-amp-base-embed-handler.php +3 -0
  112. includes/vendor/amp/includes/embeds/class-amp-core-block-handler.php +3 -0
  113. includes/vendor/amp/includes/embeds/class-amp-dailymotion-embed.php +3 -0
  114. includes/vendor/amp/includes/embeds/class-amp-facebook-embed.php +3 -0
  115. includes/vendor/amp/includes/embeds/class-amp-gallery-embed.php +3 -0
  116. includes/vendor/amp/includes/embeds/class-amp-instagram-embed.php +3 -0
  117. includes/vendor/amp/includes/embeds/class-amp-pinterest-embed.php +3 -0
  118. includes/vendor/amp/includes/embeds/class-amp-playlist-embed-handler.php +3 -0
  119. includes/vendor/amp/includes/embeds/class-amp-soundcloud-embed.php +3 -0
  120. includes/vendor/amp/includes/embeds/class-amp-twitter-embed.php +3 -0
  121. includes/vendor/amp/includes/embeds/class-amp-vimeo-embed.php +3 -0
  122. includes/vendor/amp/includes/embeds/class-amp-vine-embed.php +3 -0
  123. includes/vendor/amp/includes/embeds/class-amp-wistia-embed.php +3 -0
  124. includes/vendor/amp/includes/embeds/class-amp-youtube-embed.php +3 -0
  125. includes/vendor/amp/includes/lib/fasterimage/Exception/InvalidImageException.php +3 -1
  126. includes/vendor/amp/includes/lib/fasterimage/ExifParser.php +3 -1
  127. includes/vendor/amp/includes/lib/fasterimage/FasterImage.php +3 -1
  128. includes/vendor/amp/includes/lib/fasterimage/ImageParser.php +3 -1
  129. includes/vendor/amp/includes/lib/fasterimage/amp-fasterimage.php +3 -0
  130. includes/vendor/amp/includes/lib/fastimage/class-fastimage.php +3 -0
  131. includes/vendor/amp/includes/sanitizers/class-amp-allowed-tags-generated.php +3 -0
  132. includes/vendor/amp/includes/sanitizers/class-amp-audio-sanitizer.php +3 -0
  133. includes/vendor/amp/includes/sanitizers/class-amp-base-sanitizer.php +3 -0
  134. includes/vendor/amp/includes/sanitizers/class-amp-blacklist-sanitizer.php +3 -0
  135. includes/vendor/amp/includes/sanitizers/class-amp-block-sanitizer.php +3 -0
  136. includes/vendor/amp/includes/sanitizers/class-amp-gallery-block-sanitizer.php +3 -0
  137. includes/vendor/amp/includes/sanitizers/class-amp-iframe-sanitizer.php +3 -0
  138. includes/vendor/amp/includes/sanitizers/class-amp-img-sanitizer.php +11 -0
  139. includes/vendor/amp/includes/sanitizers/class-amp-playbuzz-sanitizer.php +3 -0
  140. includes/vendor/amp/includes/sanitizers/class-amp-rule-spec.php +3 -0
  141. includes/vendor/amp/includes/sanitizers/class-amp-style-sanitizer.php +3 -0
  142. includes/vendor/amp/includes/sanitizers/class-amp-tag-and-attribute-sanitizer.php +3 -0
  143. includes/vendor/amp/includes/sanitizers/class-amp-tree-base-sanitizer.php +3 -0
  144. includes/vendor/amp/includes/sanitizers/class-amp-tree-style-sanitizer.php +3 -1
  145. includes/vendor/amp/includes/sanitizers/class-amp-video-sanitizer.php +3 -0
  146. includes/vendor/amp/includes/settings/class-amp-customizer-design-settings.php +3 -0
  147. includes/vendor/amp/includes/settings/class-amp-customizer-settings.php +3 -0
  148. includes/vendor/amp/includes/utils/class-amp-dom-utils.php +3 -1
  149. includes/vendor/amp/includes/utils/class-amp-html-utils.php +3 -0
  150. includes/vendor/amp/includes/utils/class-amp-image-dimension-extractor.php +5 -1
  151. includes/vendor/amp/includes/utils/class-amp-string-utils.php +3 -0
  152. includes/vendor/amp/includes/utils/class-amp-wp-utils.php +3 -0
  153. includes/vendor/amp/includes/widgets/class-amp-widget-archives.php +3 -0
  154. includes/vendor/amp/includes/widgets/class-amp-widget-categories.php +3 -0
  155. includes/vendor/amp/includes/widgets/class-amp-widget-media-video.php +3 -1
  156. includes/vendor/amp/includes/widgets/class-amp-widget-recent-comments.php +3 -0
  157. includes/vendor/amp/includes/widgets/class-amp-widget-text.php +3 -1
  158. includes/vendor/amp/jetpack-helper.php +3 -0
  159. includes/vendor/amp/templates/featured-image.php +3 -0
  160. includes/vendor/amp/templates/meta-author.php +5 -1
  161. includes/vendor/amp/templates/meta-comments-link.php +3 -0
  162. includes/vendor/amp/templates/meta-taxonomy.php +5 -1
  163. includes/vendor/css-parser/autoload.php +3 -1
  164. includes/vendor/css-parser/composer/ClassLoader.php +3 -1
  165. includes/vendor/css-parser/composer/autoload_classmap.php +3 -1
  166. includes/vendor/css-parser/composer/autoload_namespaces.php +3 -1
  167. includes/vendor/css-parser/composer/autoload_psr4.php +3 -1
  168. includes/vendor/css-parser/composer/autoload_real.php +3 -1
  169. includes/vendor/css-parser/composer/autoload_static.php +3 -1
  170. includes/vendor/css-parser/parser-helper-function.php +3 -1
  171. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/CSSList/AtRuleBlockList.php +3 -1
  172. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/CSSList/CSSBlockList.php +3 -1
  173. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/CSSList/CSSList.php +3 -1
  174. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/CSSList/Document.php +3 -1
  175. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/CSSList/KeyFrame.php +3 -1
  176. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Comment/Comment.php +3 -1
  177. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Comment/Commentable.php +3 -1
  178. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/OutputFormat.php +3 -1
  179. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parser.php +3 -1
  180. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parsing/OutputException.php +3 -1
  181. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parsing/ParserState.php +3 -1
  182. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parsing/SourceException.php +3 -1
  183. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parsing/UnexpectedTokenException.php +3 -1
  184. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/AtRule.php +3 -1
  185. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/CSSNamespace.php +3 -1
  186. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/Charset.php +3 -1
  187. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/Import.php +3 -1
  188. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/Selector.php +3 -1
  189. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Renderable.php +3 -1
  190. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Rule/Rule.php +3 -1
  191. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/RuleSet/AtRuleSet.php +3 -1
  192. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/RuleSet/DeclarationBlock.php +3 -1
  193. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/RuleSet/RuleSet.php +3 -1
  194. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Settings.php +3 -1
  195. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/CSSFunction.php +3 -1
  196. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/CSSString.php +3 -1
  197. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/CalcFunction.php +3 -1
  198. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/CalcRuleValueList.php +3 -1
  199. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/Color.php +3 -1
  200. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/LineName.php +3 -1
  201. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/PrimitiveValue.php +3 -1
  202. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/RuleValueList.php +3 -1
  203. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/Size.php +3 -1
  204. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/URL.php +3 -1
  205. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/Value.php +3 -1
  206. includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/ValueList.php +3 -1
  207. includes/vendor/vendor-changelog.txt +2 -1
  208. pagebuilder/modules/map-module.php +3 -0
  209. pagebuilder/modules/testimonial-mod-module.php +3 -0
  210. readme.txt +15 -19
  211. templates/design-manager/design-1/404.php +5 -1
  212. templates/design-manager/design-1/archive.php +3 -0
  213. templates/design-manager/design-1/elements/bread-crumbs.php +5 -1
  214. templates/design-manager/design-1/elements/comments.php +5 -3
  215. templates/design-manager/design-1/elements/content.php +5 -1
  216. templates/design-manager/design-1/elements/featured-image.php +5 -1
  217. templates/design-manager/design-1/elements/meta-info.php +5 -1
  218. templates/design-manager/design-1/elements/meta-taxonomy.php +5 -1
  219. templates/design-manager/design-1/elements/related-posts.php +3 -0
  220. templates/design-manager/design-1/elements/simple-comment-button.php +3 -0
  221. templates/design-manager/design-1/elements/social-icons.php +5 -1
  222. templates/design-manager/design-1/elements/title.php +5 -1
  223. templates/design-manager/design-1/footer.php +3 -0
  224. templates/design-manager/design-1/frontpage.php +5 -1
  225. templates/design-manager/design-1/header-bar.php +5 -1
  226. templates/design-manager/design-1/index.php +5 -1
  227. templates/design-manager/design-1/search.php +5 -1
  228. templates/design-manager/design-1/single.php +5 -1
  229. templates/design-manager/design-1/style.php +3 -0
  230. templates/design-manager/design-2/404.php +5 -1
  231. templates/design-manager/design-2/archive.php +5 -1
  232. templates/design-manager/design-2/elements/bread-crumbs.php +5 -1
  233. templates/design-manager/design-2/elements/comments.php +5 -3
  234. templates/design-manager/design-2/elements/featured-image.php +5 -1
  235. templates/design-manager/design-2/elements/meta-info.php +5 -1
  236. templates/design-manager/design-2/elements/meta-taxonomy.php +5 -1
  237. templates/design-manager/design-2/elements/related-posts.php +3 -0
  238. templates/design-manager/design-2/elements/simple-comment-button.php +3 -0
  239. templates/design-manager/design-2/elements/social-icons.php +5 -1
  240. templates/design-manager/design-2/elements/title.php +5 -1
  241. templates/design-manager/design-2/footer.php +5 -1
  242. templates/design-manager/design-2/frontpage.php +5 -1
  243. templates/design-manager/design-2/header-bar.php +5 -1
  244. templates/design-manager/design-2/index.php +5 -1
  245. templates/design-manager/design-2/search.php +5 -1
  246. templates/design-manager/design-2/single.php +5 -1
  247. templates/design-manager/design-2/style.php +3 -0
  248. templates/design-manager/design-3/404.php +5 -1
  249. templates/design-manager/design-3/archive.php +5 -1
  250. templates/design-manager/design-3/elements/bread-crumbs.php +5 -1
  251. templates/design-manager/design-3/elements/comments.php +5 -3
  252. templates/design-manager/design-3/elements/featured-image.php +5 -1
  253. templates/design-manager/design-3/elements/meta-info.php +5 -2
  254. templates/design-manager/design-3/elements/meta-taxonomy.php +5 -1
  255. templates/design-manager/design-3/elements/related-posts.php +3 -0
  256. templates/design-manager/design-3/elements/simple-comment-button.php +3 -0
  257. templates/design-manager/design-3/elements/social-icons.php +5 -1
  258. templates/design-manager/design-3/elements/title.php +5 -1
  259. templates/design-manager/design-3/footer.php +5 -1
  260. templates/design-manager/design-3/frontpage.php +3 -0
  261. templates/design-manager/design-3/header-bar.php +5 -1
  262. templates/design-manager/design-3/index.php +5 -1
  263. templates/design-manager/design-3/search.php +5 -1
  264. templates/design-manager/design-3/single.php +5 -1
  265. templates/design-manager/design-3/style.php +3 -0
  266. templates/design-manager/swift/404.php +5 -1
  267. templates/design-manager/swift/archive.php +5 -1
  268. templates/design-manager/swift/footer.php +5 -1
  269. templates/design-manager/swift/functions.php +3 -0
  270. templates/design-manager/swift/header.php +6 -2
  271. templates/design-manager/swift/index.php +7 -3
  272. templates/design-manager/swift/loop.php +5 -1
  273. templates/design-manager/swift/page.php +5 -1
  274. templates/design-manager/swift/search.php +5 -1
  275. templates/design-manager/swift/single.php +5 -1
  276. templates/design-manager/swift/style.php +19 -4
  277. templates/features.php +19 -4
  278. templates/report-bugs.php +3 -0
  279. templates/template-mode/admin-settings.php +4 -1
  280. templates/template-mode/template-helpers.php +3 -0
  281. templates/template-mode/template-mode.php +3 -0
README.md CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.3
7
- Stable tag: 0.9.98.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -191,6 +191,19 @@ You can contact us from [here](https://ampforwp.com/contact/)
191
 
192
  == Changelog ==
193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
 
195
  = 0.9.98.18 (21th November 2019) =
196
  * Improvement: Show the number of shares with Sassy Social Share #3588
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.3
7
+ Stable tag: 0.9.98.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
191
 
192
  == Changelog ==
193
 
194
+ = 0.9.98.19 (25th November 2019) =
195
+ * Fixed: image transients should clear automatically #3781
196
+ * Fixed: CTA button in header could be made no follow #3798
197
+ * Fixed: In IOS screen, Menu cross button is not appearing in Swift design #3809
198
+ * Fixed: Comment closed opion need to be removed. #3750
199
+ * Fixed: In template mode Need to show extension setting panel. #3728
200
+ * Fixed: Facebook comment is not changing language when we select another language #3710
201
+ * Fixed: Single Sidebar data is visible in Homepage #3636
202
+ * Fixed: Need to remove width from inline style on amp images #3741
203
+ * Fixed: If permalinks is set as "/index.php/%year%/%monthnum%/%day%/%postname%/" then not working properly with Pagination #3537
204
+ * Fixed: Canonical url is changing in cateogry pages when cateogry name start with amp #3694
205
+ * Fixed: general fixes and improvements part 2 #3621
206
+ * Fixed: Warning: strpos(): Empty needle in /home/statecer/public_html/wp-content/plugins/accelerated-mobile-pages/templates/features.php on line 5788 #3870
207
 
208
  = 0.9.98.18 (21th November 2019) =
209
  * Improvement: Show the number of shares with Sassy Social Share #3588
accelerated-moblie-pages.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
5
  Description: AMP for WP - Accelerated Mobile Pages for WordPress
6
- Version: 0.9.98.18
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
@@ -20,7 +20,7 @@ define('AMPFORWP_PLUGIN_DIR_URI', plugin_dir_url(__FILE__));
20
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
21
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
22
  define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
23
- define('AMPFORWP_VERSION','0.9.98.18');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  if(!defined('AMPFROWP_HOST_NAME')){
26
  $urlinfo = get_bloginfo('url');
@@ -101,7 +101,12 @@ function ampforwp_add_custom_rewrite_rules() {
101
  'index.php?amp=1&paged=$matches[1]',
102
  'top'
103
  );
104
-
 
 
 
 
 
105
  // For /Blog page with Pagination
106
  if( ampforwp_name_blog_page() ) {
107
  add_rewrite_rule(
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
5
  Description: AMP for WP - Accelerated Mobile Pages for WordPress
6
+ Version: 0.9.98.19
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
20
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
21
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
22
  define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
23
+ define('AMPFORWP_VERSION','0.9.98.19');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  if(!defined('AMPFROWP_HOST_NAME')){
26
  $urlinfo = get_bloginfo('url');
101
  'index.php?amp=1&paged=$matches[1]',
102
  'top'
103
  );
104
+ // For Pagination with index.php
105
+ add_rewrite_rule(
106
+ 'index.php/amp/'.$wp_rewrite->pagination_base.'/([0-9]{1,})/?$',
107
+ 'index.php?amp=1&paged=$matches[1]',
108
+ 'top'
109
+ );
110
  // For /Blog page with Pagination
111
  if( ampforwp_name_blog_page() ) {
112
  add_rewrite_rule(
changelog.txt CHANGED
@@ -1,5 +1,19 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  = 0.9.98.18 (21th November 2019) =
4
  * Improvement: Show the number of shares with Sassy Social Share #3588
5
  * Fixed: Need to improvment in table code #3664
1
  == Changelog ==
2
 
3
+ = 0.9.98.19 (25th November 2019) =
4
+ * Fixed: image transients should clear automatically #3781
5
+ * Fixed: CTA button in header could be made no follow #3798
6
+ * Fixed: In IOS screen, Menu cross button is not appearing in Swift design #3809
7
+ * Fixed: Comment closed opion need to be removed. #3750
8
+ * Fixed: In template mode Need to show extension setting panel. #3728
9
+ * Fixed: Facebook comment is not changing language when we select another language #3710
10
+ * Fixed: Single Sidebar data is visible in Homepage #3636
11
+ * Fixed: Need to remove width from inline style on amp images #3741
12
+ * Fixed: If permalinks is set as "/index.php/%year%/%monthnum%/%day%/%postname%/" then not working properly with Pagination #3537
13
+ * Fixed: Canonical url is changing in cateogry pages when cateogry name start with amp #3694
14
+ * Fixed: general fixes and improvements part 2 #3621
15
+ * Fixed: Warning: strpos(): Empty needle in /home/statecer/public_html/wp-content/plugins/accelerated-mobile-pages/templates/features.php on line 5788 #3870
16
+
17
  = 0.9.98.18 (21th November 2019) =
18
  * Improvement: Show the number of shares with Sassy Social Share #3588
19
  * Fixed: Need to improvment in table code #3664
classes/ampforwp-fields.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  global $amp_ux_fields;
3
  require_once AMPFORWP_PLUGIN_DIR."classes/class-ampforwp-fields.php";
4
  $ampforwp_fields = new AMPforWP_Fields();
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  global $amp_ux_fields;
6
  require_once AMPFORWP_PLUGIN_DIR."classes/class-ampforwp-fields.php";
7
  $ampforwp_fields = new AMPforWP_Fields();
classes/class-ampforwp-embedly-sanitizer.php CHANGED
@@ -1,6 +1,9 @@
1
  <?php
2
  use AMPforWP\AMPVendor\AMP_Base_Sanitizer;
3
  use AMPforWP\AMPVendor\AMP_DOM_Utils;
 
 
 
4
  /**
5
  * Converts embedly-cards to <amp-embedly-card>
6
  */
1
  <?php
2
  use AMPforWP\AMPVendor\AMP_Base_Sanitizer;
3
  use AMPforWP\AMPVendor\AMP_DOM_Utils;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  /**
8
  * Converts embedly-cards to <amp-embedly-card>
9
  */
classes/class-ampforwp-fields.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  /**
3
  *
4
  */
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  /**
6
  *
7
  */
classes/class-ampforwp-infinite-scroll.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  /**
3
  * Class: To enable Infinite Scroll in AMP
4
  * Note: For performance reasons the component will render a maximum of three documents (total) on screen at one time. This limit may be changed or removed in the future.
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  /**
6
  * Class: To enable Infinite Scroll in AMP
7
  * Note: For performance reasons the component will render a maximum of three documents (total) on screen at one time. This limit may be changed or removed in the future.
classes/class-ampforwp-instagram-sanitizer.php CHANGED
@@ -1,6 +1,9 @@
1
  <?php
2
  use AMPforWP\AMPVendor\AMP_Base_Sanitizer;
3
  use AMPforWP\AMPVendor\AMP_DOM_Utils;
 
 
 
4
  /**
5
  * Converts Instagram embeds to <amp-instagram>
6
  */
1
  <?php
2
  use AMPforWP\AMPVendor\AMP_Base_Sanitizer;
3
  use AMPforWP\AMPVendor\AMP_DOM_Utils;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  /**
8
  * Converts Instagram embeds to <amp-instagram>
9
  */
classes/class-ampforwp-photo-gallery-embed.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  /*
3
  Most of the code is taken from class-amp-gallery-embed.php and Photo Gallery Plugin https://wordpress.org/plugins/photo-gallery/
4
  */
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  /*
6
  Most of the code is taken from class-amp-gallery-embed.php and Photo Gallery Plugin https://wordpress.org/plugins/photo-gallery/
7
  */
classes/class-ampforwp-rev-slider.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  /*
4
  Most of the code is taken from class-amp-gallery-embed.php and Slider Revolution https://revolution.themepunch.com/
5
  */
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  /*
6
  Most of the code is taken from class-amp-gallery-embed.php and Slider Revolution https://revolution.themepunch.com/
7
  */
classes/class-ampforwp-slide-anything-embed.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
3
 
4
  class AMPFORWP_Slide_Anything_Embed_Handler extends AMPforWP\AMPVendor\AMP_Base_Embed_Handler {
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
6
 
7
  class AMPFORWP_Slide_Anything_Embed_Handler extends AMPforWP\AMPVendor\AMP_Base_Embed_Handler {
components/author-box/author-box.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  function ampforwp_framework_get_author_box( $args=array() ) {
3
  // Simple Author Box compatibility #2268
4
  if( class_exists('Simple_Author_Box') && !isset($args['author_info']) ){
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  function ampforwp_framework_get_author_box( $args=array() ) {
6
  // Simple Author Box compatibility #2268
7
  if( class_exists('Simple_Author_Box') && !isset($args['author_info']) ){
components/breadcrumb/breadcrumb.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php function amp_breadcrumb_output(){
 
 
 
 
2
  global $redux_builder_amp;
3
  $home_non_amp = $archive_non_amp = '';
4
  if ( false == $redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ function amp_breadcrumb_output(){
6
  global $redux_builder_amp;
7
  $home_non_amp = $archive_non_amp = '';
8
  if ( false == $redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
components/categories-tags/categories-tags.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  /*
3
  TODO: 1: Connect with options panel(archive support and translational panel)
4
  2: Do we have to change the classes names as well?
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  /*
6
  TODO: 1: Connect with options panel(archive support and translational panel)
7
  2: Do we have to change the classes names as well?
components/comments/comments.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  function ampforwp_framework_get_comments(){
3
  global $redux_builder_amp;
4
  $display_comments_on = "";
@@ -114,8 +117,6 @@ function ampforwp_framework_get_comments(){
114
  <div class="amp-comment-button">
115
  <?php if ( comments_open($postID) ) { ?>
116
  <a href="<?php echo ampforwp_comment_button_url(); ?>" title="<?php echo ampforwp_get_setting('amp-translator-leave-a-comment-text')?>" rel="nofollow"><?php echo esc_html(ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ) ); ?></a> <?php
117
- } else {
118
- echo "<p class='nocomments'>". esc_html( ampforwp_translation( $redux_builder_amp['amp-translator-comments-closed'], 'Comments are closed' ) )." </p>";
119
  }?>
120
  </div> <?php
121
  }?>
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  function ampforwp_framework_get_comments(){
6
  global $redux_builder_amp;
7
  $display_comments_on = "";
117
  <div class="amp-comment-button">
118
  <?php if ( comments_open($postID) ) { ?>
119
  <a href="<?php echo ampforwp_comment_button_url(); ?>" title="<?php echo ampforwp_get_setting('amp-translator-leave-a-comment-text')?>" rel="nofollow"><?php echo esc_html(ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ) ); ?></a> <?php
 
 
120
  }?>
121
  </div> <?php
122
  }?>
components/components-core.php CHANGED
@@ -1,6 +1,9 @@
1
  <?php
2
  use AMPforWP\AMPVendor\AMP_Post_Template;
3
  use AMPforWP\AMPVendor\AMP_HTML_Utils;
 
 
 
4
  global $redux_builder_amp;
5
  $ampforwpTemplate = '';
6
  $loadComponent = array();
1
  <?php
2
  use AMPforWP\AMPVendor\AMP_Post_Template;
3
  use AMPforWP\AMPVendor\AMP_HTML_Utils;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  global $redux_builder_amp;
8
  $ampforwpTemplate = '';
9
  $loadComponent = array();
components/featured-image/featured-image.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  function ampforwp_framework_get_featured_image(){
3
  do_action('ampforwp_before_featured_image_hook');
4
  global $post, $redux_builder_amp;
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  function ampforwp_framework_get_featured_image(){
6
  do_action('ampforwp_before_featured_image_hook');
7
  global $post, $redux_builder_amp;
components/gdpr/gdpr.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php function amp_gdpr_output(){
 
 
 
 
2
  global $redux_builder_amp;
3
  $headline = $accept = $reject = $settings = $user_data = $form_url = '';
4
  $headline = $redux_builder_amp['amp-gdpr-compliance-headline-text'];
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ function amp_gdpr_output(){
6
  global $redux_builder_amp;
7
  $headline = $accept = $reject = $settings = $user_data = $form_url = '';
8
  $headline = $redux_builder_amp['amp-gdpr-compliance-headline-text'];
components/logo/logo.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  function ampforwp_framework_get_logo(){
3
  global $redux_builder_amp;
4
  $title = get_bloginfo();
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  function ampforwp_framework_get_logo(){
6
  global $redux_builder_amp;
7
  $title = get_bloginfo();
components/loop/loop.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  function amp_archive_title(){
3
  global $redux_builder_amp;
4
  if( is_author() ){
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  function amp_archive_title(){
6
  global $redux_builder_amp;
7
  if( is_author() ){
components/menu/menu.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  require_once AMPFORWP_PLUGIN_DIR .'/classes/class-ampforwp-walker-nav-menu.php';
3
 
4
  function amp_menu_html($echo, $menu_args, $type){
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  require_once AMPFORWP_PLUGIN_DIR .'/classes/class-ampforwp-walker-nav-menu.php';
6
 
7
  function amp_menu_html($echo, $menu_args, $type){
components/post-navigation/post-navigation.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  function ampforwp_framework_get_post_navigation(){
3
  global $redux_builder_amp;
4
  if($redux_builder_amp['enable-single-next-prev']) { ?>
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  function ampforwp_framework_get_post_navigation(){
6
  global $redux_builder_amp;
7
  if($redux_builder_amp['enable-single-next-prev']) { ?>
components/post-pagination/post-pagination.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  function ampforwp_framework_get_post_pagination( $args = '' ) {
3
 
4
  wp_reset_postdata();
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  function ampforwp_framework_get_post_pagination( $args = '' ) {
6
 
7
  wp_reset_postdata();
components/related-posts/related-posts.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  /*
3
  @data parameter have options for
4
  show_excerpt
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  /*
6
  @data parameter have options for
7
  show_excerpt
components/search/search.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  //main output function
3
  function ampforwp_framework_get_search_form() {
4
  global $redux_builder_amp;
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  //main output function
6
  function ampforwp_framework_get_search_form() {
7
  global $redux_builder_amp;
components/sidebar/sidebar.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  if(!function_exists('ampforwp_framework_get_sideabr')){
3
  function ampforwp_framework_get_sideabr($data=array()){
4
  if(!isset($data['action'])){
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if(!function_exists('ampforwp_framework_get_sideabr')){
6
  function ampforwp_framework_get_sideabr($data=array()){
7
  if(!isset($data['action'])){
components/social-icons/social-icons.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  function ampforwp_framework_get_social_icons($selected_social_icons){
4
 
5
  /* TODO:
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  function ampforwp_framework_get_social_icons($selected_social_icons){
6
 
7
  /* TODO:
components/theme-loader.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  if ( 4 == $ampforwp_design_selector ) {
3
  define('AMPFORWP_CUSTOM_THEME', AMPFORWP_PLUGIN_DIR . 'templates/design-manager/swift' );
4
  }
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( 4 == $ampforwp_design_selector ) {
6
  define('AMPFORWP_CUSTOM_THEME', AMPFORWP_PLUGIN_DIR . 'templates/design-manager/swift' );
7
  }
feeds/instant-article-feed.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php header('Content-Type: ' . esc_attr(feed_content_type('rss2')) . '; charset=' . esc_attr( get_option('blog_charset') ), true);
 
 
 
 
2
  $more = 1;
3
  echo '<?xml version="1.0" encoding="'. esc_attr( get_option('blog_charset') ).'"?'.'>';
4
  ?>
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ header('Content-Type: ' . esc_attr(feed_content_type('rss2')) . '; charset=' . esc_attr( get_option('blog_charset') ), true);
6
  $more = 1;
7
  echo '<?xml version="1.0" encoding="'. esc_attr( get_option('blog_charset') ).'"?'.'>';
8
  ?>
includes/ampforwp-fields-array.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  global $amp_ux_fields;
3
  $analytics_options = array();
4
  $pages = get_pages();
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  global $amp_ux_fields;
6
  $analytics_options = array();
7
  $pages = get_pages();
includes/features/advertisement/ads-functions.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  // Advertisement code
3
  if( !class_exists('adsforwp_output_functions') ){
4
  add_action('ampforwp_after_header','ampforwp_header_advert');
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  // Advertisement code
6
  if( !class_exists('adsforwp_output_functions') ){
7
  add_action('ampforwp_after_header','ampforwp_header_advert');
includes/features/advertisement/ads-options.php CHANGED
@@ -1,6 +1,8 @@
1
  <?php
2
- use ReduxCore\ReduxFramework\Redux;
3
-
 
 
4
  function ampforwp_admin_advertisement_options($opt_name){
5
  $advertisementdesc = '';
6
  if(!is_plugin_active( 'amp-incontent-ads/amptoolkit-incontent-ads.php' ) && !is_plugin_active( 'ads-for-wp/ads-for-wp.php' ) ){
1
  <?php
2
+ use ReduxCore\ReduxFramework\Redux;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  function ampforwp_admin_advertisement_options($opt_name){
7
  $advertisementdesc = '';
8
  if(!is_plugin_active( 'amp-incontent-ads/amptoolkit-incontent-ads.php' ) && !is_plugin_active( 'ads-for-wp/ads-for-wp.php' ) ){
includes/features/advertisement/mgid-ads-functions.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  // MGID
3
  if( !class_exists('adsforwp_output_functions') ){
4
  add_filter('ampforwp_modify_ad_1','ampforwp_mgid_markup_ad_1',10,1);
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  // MGID
6
  if( !class_exists('adsforwp_output_functions') ){
7
  add_filter('ampforwp_modify_ad_1','ampforwp_mgid_markup_ad_1',10,1);
includes/features/amp_bridge.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  global $ampforwpMainArray;
3
  function amp_basicAlloptions(){
4
  global $ampforwpMainArray;
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  global $ampforwpMainArray;
6
  function amp_basicAlloptions(){
7
  global $ampforwpMainArray;
includes/features/analytics/analytics-functions.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  // Analytics Area
3
  add_action('amp_post_template_footer','ampforwp_analytics',11);
4
  function ampforwp_analytics() {
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  // Analytics Area
6
  add_action('amp_post_template_footer','ampforwp_analytics',11);
7
  function ampforwp_analytics() {
includes/features/analytics/analytics-options.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
 
 
 
3
  function ampforwp_get_default_analytics($param=""){
4
  $default = '';
5
  $default = ampforwp_get_setting('amp-analytics-select-option');
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  function ampforwp_get_default_analytics($param=""){
7
  $default = '';
8
  $default = ampforwp_get_setting('amp-analytics-select-option');
includes/features/contact-form/contact-form-options.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
 
 
 
3
  function ampforwp_admin_contact_form_options($opt_name){
4
  // contact form 7
5
  $forms_support[] = array(
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  function ampforwp_admin_contact_form_options($opt_name){
7
  // contact form 7
8
  $forms_support[] = array(
includes/features/functions.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  add_amp_theme_support('AMP-gdpr');
3
  // Custom AMP Content
4
  require AMPFORWP_PLUGIN_DIR .'templates/custom-amp-content.php';
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  add_amp_theme_support('AMP-gdpr');
6
  // Custom AMP Content
7
  require AMPFORWP_PLUGIN_DIR .'templates/custom-amp-content.php';
includes/features/notice-bar/notice-bar-functions.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  if(is_plugin_active('amp/amp.php')){
3
  add_action('amp_post_template_css' , 'ampforwp_notification_bar_css');
4
  function ampforwp_notification_bar_css(){?>
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if(is_plugin_active('amp/amp.php')){
6
  add_action('amp_post_template_css' , 'ampforwp_notification_bar_css');
7
  function ampforwp_notification_bar_css(){?>
includes/features/notice-bar/notice-bar-options.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
 
 
 
3
  function ampforwp_notice_bar_options($opt_name){
4
  // If CTA is not Activated
5
  $cta_desc = "";
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  function ampforwp_notice_bar_options($opt_name){
7
  // If CTA is not Activated
8
  $cta_desc = "";
includes/features/pagebuilders-support/pagebuilders_support.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
 
 
 
3
  function ampforwp_page_builders_support_options($opt_name){
4
  $divi_pb_for_ampchecker = $elemntr_pb_for_ampchecker = array();
5
  $divi_pb_for_ampchecker = array(
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  function ampforwp_page_builders_support_options($opt_name){
7
  $divi_pb_for_ampchecker = $elemntr_pb_for_ampchecker = array();
8
  $divi_pb_for_ampchecker = array(
includes/features/performance/performance-functions.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  // 86. minify the content of pages
3
  add_filter('ampforwp_the_content_last_filter','ampforwp_minify_html_output');
4
  function ampforwp_minify_html_output($content_buffer){
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  // 86. minify the content of pages
6
  add_filter('ampforwp_the_content_last_filter','ampforwp_minify_html_output');
7
  function ampforwp_minify_html_output($content_buffer){
includes/features/performance/performance-options.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
 
 
 
3
  function ampforwp_admin_performance_options($opt_name){
4
  // Display only If AMP Cache is Not Installed
5
  $cache_desc ="";
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  function ampforwp_admin_performance_options($opt_name){
7
  // Display only If AMP Cache is Not Installed
8
  $cache_desc ="";
includes/features/push-notification/push-notification-functions.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  // 94. OneSignal Push Notifications
4
  add_action( 'ampforwp_body_beginning' , 'ampforwp_onesignal_notifications' , 11 );
5
  if( ! function_exists( ' ampforwp_onesignal_notifications ' ) ){
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  // 94. OneSignal Push Notifications
6
  add_action( 'ampforwp_body_beginning' , 'ampforwp_onesignal_notifications' , 11 );
7
  if( ! function_exists( ' ampforwp_onesignal_notifications ' ) ){
includes/features/push-notification/push-notification-options.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
 
 
 
3
  function ampforwp_push_notification_options($opt_name){
4
  // Push Notifications section
5
  Redux::setSection( $opt_name, array(
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  function ampforwp_push_notification_options($opt_name){
7
  // Push Notifications section
8
  Redux::setSection( $opt_name, array(
includes/features/structure-data/structured-data-functions.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  // 12. Add Logo URL in the structured metadata
4
  add_filter( 'amp_post_template_metadata', 'ampforwp_update_metadata', 10, 2 );
5
  function ampforwp_update_metadata( $metadata, $post ) {
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  // 12. Add Logo URL in the structured metadata
6
  add_filter( 'amp_post_template_metadata', 'ampforwp_update_metadata', 10, 2 );
7
  function ampforwp_update_metadata( $metadata, $post ) {
includes/features/structure-data/structured-data-options.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
 
 
 
3
  //Get options for Structured Data Type
4
  if( !function_exists('ampforwp_get_sd_types') ){
5
  function ampforwp_get_sd_types(){
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  //Get options for Structured Data Type
7
  if( !function_exists('ampforwp_get_sd_types') ){
8
  function ampforwp_get_sd_types(){
includes/icons/amp-icons.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  return array( 'widgets' => '.icon-widgets:before { content: "\e1bd";}',
3
  'search' => '.icon-search:after{ content: "\e8b6"; }',
4
  'shopping-cart' => '.icon-shopping-cart:after {content: "\e8cc";}',
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  return array( 'widgets' => '.icon-widgets:before { content: "\e1bd";}',
6
  'search' => '.icon-search:after{ content: "\e8b6"; }',
7
  'shopping-cart' => '.icon-shopping-cart:after {content: "\e8cc";}',
includes/modules/ampforwp-blurb.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php class AMPFORWP_Blurb_Widget extends WP_Widget {
 
 
 
 
2
  /*--------------------------------------------------*/
3
  /* Constructor
4
  /*--------------------------------------------------*/
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ class AMPFORWP_Blurb_Widget extends WP_Widget {
6
  /*--------------------------------------------------*/
7
  /* Constructor
8
  /*--------------------------------------------------*/
includes/modules/ampforwp-button.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php class AMPFORWP_Button_Widget extends WP_Widget {
 
 
 
 
2
 
3
  /*--------------------------------------------------*/
4
  /* Constructor
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ class AMPFORWP_Button_Widget extends WP_Widget {
6
 
7
  /*--------------------------------------------------*/
8
  /* Constructor
includes/options/admin-config.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
 
 
 
3
  //Admin Panel Options
4
  if ( ! class_exists( 'ReduxCore\ReduxFramework\Redux' ) ) {
5
  return;
@@ -1174,7 +1177,13 @@ $eu_iso_codes = array(
1174
 
1175
  // All the possible arguments for Redux.
1176
  //$amp_redux_header = '<span id="name"><span style="color: #4dbefa;">U</span>ltimate <span style="color: #4dbefa;">W</span>idgets</span>';
1177
- $proDetailsProvide = '<a class="technical_support_btn_txt" href="https://ampforwp.com/support/" target="_blank">'.esc_html__('Technical Support','accelerated-mobile-pages').'</a> <a class="premium_features_btn" href="#" id="ampforwp-prem-upg-to">Upgrade to PRO</a> ';
 
 
 
 
 
 
1178
  if($ampforwp_nameOfUser!=""){
1179
  $proDetailsProvide = "<span class='extension-menu-call'><span class='activated-plugins'>Hello, ".esc_html($ampforwp_nameOfUser)."</span> <a class='' href='".esc_url(admin_url('admin.php?page=amp_options&tabid=opt-go-premium'))."'><i class='dashicons-before dashicons-admin-generic'></i></a></span>";
1180
  }elseif($ampforwp_is_productActivated){
@@ -3965,6 +3974,15 @@ Redux::setSection( $opt_name, array(
3965
  array('signin-button','=',1)
3966
  )
3967
  ),
 
 
 
 
 
 
 
 
 
3968
  array(
3969
  'id' => 'signin-button-style',
3970
  'class' => 'child_opt child_opt_arrow',
1
  <?php
2
  use ReduxCore\ReduxFramework\Redux;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  //Admin Panel Options
7
  if ( ! class_exists( 'ReduxCore\ReduxFramework\Redux' ) ) {
8
  return;
1177
 
1178
  // All the possible arguments for Redux.
1179
  //$amp_redux_header = '<span id="name"><span style="color: #4dbefa;">U</span>ltimate <span style="color: #4dbefa;">W</span>idgets</span>';
1180
+ $upg_to_pro_url = '#';
1181
+ $upg_to_pro_target = '';
1182
+ if(get_theme_support('amp-template-mode')){
1183
+ $upg_to_pro_url = 'https://ampforwp.com/membership/#utm_source=options-panel&utm_medium=view_pro_features_btn&utm_campaign=AMP%20Plugin';
1184
+ $upg_to_pro_target = 'target="_blank"';
1185
+ }
1186
+ $proDetailsProvide = '<a class="technical_support_btn_txt" href="https://ampforwp.com/support/" target="_blank">'.esc_html__('Technical Support','accelerated-mobile-pages').'</a> <a class="premium_features_btn" href="'.$upg_to_pro_url.'" id="ampforwp-prem-upg-to" '.$upg_to_pro_target.'>Upgrade to PRO</a> ';
1187
  if($ampforwp_nameOfUser!=""){
1188
  $proDetailsProvide = "<span class='extension-menu-call'><span class='activated-plugins'>Hello, ".esc_html($ampforwp_nameOfUser)."</span> <a class='' href='".esc_url(admin_url('admin.php?page=amp_options&tabid=opt-go-premium'))."'><i class='dashicons-before dashicons-admin-generic'></i></a></span>";
1189
  }elseif($ampforwp_is_productActivated){
3974
  array('signin-button','=',1)
3975
  )
3976
  ),
3977
+ // CTA No Follow links
3978
+ array(
3979
+ 'id' => 'ampforwp-header-cta-link-nofollow',
3980
+ 'type' => 'switch',
3981
+ 'class' => 'child_opt child_opt_arrow',
3982
+ 'title' => esc_html__('No Follow Link', 'accelerated-mobile-pages'),
3983
+ 'default' => 0,
3984
+ 'required' => array('signin-button', '=', '1')
3985
+ ),
3986
  array(
3987
  'id' => 'signin-button-style',
3988
  'class' => 'child_opt child_opt_arrow',
includes/options/redux-core/core/panel.php CHANGED
@@ -103,7 +103,7 @@ namespace ReduxCore\ReduxFramework;
103
  if ( current_user_can( 'administrator' ) ) {
104
  global $wpdb;
105
  echo "<br /><pre>";
106
- print_r( $wpdb->queries );
107
  echo "</pre>";
108
  }
109
 
103
  if ( current_user_can( 'administrator' ) ) {
104
  global $wpdb;
105
  echo "<br /><pre>";
106
+ print_r( esc_sql($wpdb->queries) );
107
  echo "</pre>";
108
  }
109
 
includes/options/redux-core/inc/browser.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  /**
4
  * File: Browser.php
5
  * Author: Chris Schuld (http://chrisschuld.com/)
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * File: Browser.php
8
  * Author: Chris Schuld (http://chrisschuld.com/)
includes/options/redux-core/inc/class.p.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  class Redux_P {
4
 
5
  public function __construct() {
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  class Redux_P {
7
 
8
  public function __construct() {
includes/options/redux-core/inc/class.redux_instances.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  /**
4
  * Redux Framework Instance Container Class
5
  * Automatically captures and stores all instances
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * Redux Framework Instance Container Class
8
  * Automatically captures and stores all instances
includes/options/redux-core/inc/class.thirdparty.fixes.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  // Fix for the GT3 page builder: http://www.gt3themes.com/wordpress-gt3-page-builder-plugin/
4
  /** @global string $pagenow */
5
  if ( has_action( 'ecpt_field_options_' ) ) {
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  // Fix for the GT3 page builder: http://www.gt3themes.com/wordpress-gt3-page-builder-plugin/
7
  /** @global string $pagenow */
8
  if ( has_action( 'ecpt_field_options_' ) ) {
includes/options/redux-core/inc/extensions/customizer/inc/customizer_control.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  if ( ! class_exists( 'ReduxCore\\ReduxFramework\\Redux_Customizer_Control' ) ) {
4
  class Redux_Customizer_Control extends \WP_Customize_Control {
5
 
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  if ( ! class_exists( 'ReduxCore\\ReduxFramework\\Redux_Customizer_Control' ) ) {
7
  class Redux_Customizer_Control extends \WP_Customize_Control {
8
 
includes/options/redux-core/inc/extensions/customizer/inc/customizer_devs.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  if ( ! class_exists( 'ReduxCore\\ReduxFramework\\Redux_Customizer_Control_rAds' ) && ! class_exists( 'ReduxCore\\ReduxFramework\\Redux_Customizer_section_rAds' ) ) {
4
  /**
5
  * Customizer section representing widget area (sidebar).
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  if ( ! class_exists( 'ReduxCore\\ReduxFramework\\Redux_Customizer_Control_rAds' ) && ! class_exists( 'ReduxCore\\ReduxFramework\\Redux_Customizer_section_rAds' ) ) {
7
  /**
8
  * Customizer section representing widget area (sidebar).
includes/options/redux-core/inc/extensions/customizer/inc/customizer_fields.php CHANGED
@@ -1,6 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
-
 
 
4
  class Redux_Customizer_Control_checkbox extends Redux_Customizer_Control {
5
  public $type = "redux-checkbox";
6
  }
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  class Redux_Customizer_Control_checkbox extends Redux_Customizer_Control {
7
  public $type = "redux-checkbox";
8
  }
includes/options/redux-core/inc/extensions/customizer/inc/customizer_panel.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  /**
4
  * Customizer section representing widget area (sidebar).
5
  *
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * Customizer section representing widget area (sidebar).
8
  *
includes/options/redux-core/inc/extensions/customizer/inc/customizer_section.php CHANGED
@@ -1,6 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
-
 
 
4
  /**
5
  * Customizer section representing widget area (sidebar).
6
  *
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * Customizer section representing widget area (sidebar).
8
  *
includes/options/redux-core/inc/fields/raw/parsedown.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  #
4
  #
5
  # Parsedown
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  #
6
  #
7
  # Parsedown
includes/options/redux-core/inc/fields/select/elusive-icons.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  // Array of Elusive Icons
4
  // Contributed by @WhatJustHappened
5
  // Last updated: 14 Sept. 2013
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  // Array of Elusive Icons
7
  // Contributed by @WhatJustHappened
8
  // Last updated: 14 Sept. 2013
includes/options/redux-core/inc/fields/upload/field_upload.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  class Redux_Options_upload {
4
 
5
  /**
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  class Redux_Options_upload {
7
 
8
  /**
includes/options/redux-core/inc/lib.redux_instances.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  /**
4
  * ReduxFrameworkInstances Functions
5
  *
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * ReduxFrameworkInstances Functions
8
  *
includes/options/redux-core/inc/themecheck/checks/embedded.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  class Redux_Embedded implements themecheck {
4
  protected $error = array();
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  class Redux_Embedded implements themecheck {
6
  protected $error = array();
7
 
includes/options/redux-core/inc/themecheck/checks/full_package.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  class Redux_Full_Package implements themecheck {
4
  protected $error = array();
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  class Redux_Full_Package implements themecheck {
6
  protected $error = array();
7
 
includes/options/redux-core/inc/themecheck/class.redux_themecheck.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  /**
4
  * Redux ThemeCheck
5
  *
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * Redux ThemeCheck
8
  *
includes/options/redux-core/inc/tracking.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  /**
4
  * @package Redux_Tracking
5
  */
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * @package Redux_Tracking
8
  */
includes/options/redux-core/inc/validation/color/validation_color.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_color' ) ) {
4
  class Redux_Validation_color {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_color' ) ) {
6
  class Redux_Validation_color {
7
 
includes/options/redux-core/inc/validation/color_rgba/validation_color_rgba.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  if ( ! class_exists( 'Redux_Validation_color_rgba' ) ) {
3
  class Redux_Validation_color_rgba {
4
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_color_rgba' ) ) {
6
  class Redux_Validation_color_rgba {
7
 
includes/options/redux-core/inc/validation/colorrgba/validation_colorrgba.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_colorrgba' ) ) {
4
  class Redux_Validation_colorrgba {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_colorrgba' ) ) {
6
  class Redux_Validation_colorrgba {
7
 
includes/options/redux-core/inc/validation/comma_numeric/validation_comma_numeric.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_comma_numeric' ) ) {
4
  class Redux_Validation_comma_numeric {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_comma_numeric' ) ) {
6
  class Redux_Validation_comma_numeric {
7
 
includes/options/redux-core/inc/validation/css/validation_css.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_css' ) ) {
4
  class Redux_Validation_css {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_css' ) ) {
6
  class Redux_Validation_css {
7
 
includes/options/redux-core/inc/validation/date/validation_date.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_date' ) ) {
4
  class Redux_Validation_date {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_date' ) ) {
6
  class Redux_Validation_date {
7
 
includes/options/redux-core/inc/validation/email/validation_email.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_email' ) ) {
4
  class Redux_Validation_email {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_email' ) ) {
6
  class Redux_Validation_email {
7
 
includes/options/redux-core/inc/validation/email_not_empty/validation_email_not_empty.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_email_not_empty' ) ) {
4
  class Redux_Validation_email_not_empty {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_email_not_empty' ) ) {
6
  class Redux_Validation_email_not_empty {
7
 
includes/options/redux-core/inc/validation/html/validation_html.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_html' ) ) {
4
  class Redux_Validation_html {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_html' ) ) {
6
  class Redux_Validation_html {
7
 
includes/options/redux-core/inc/validation/html_custom/validation_html_custom.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_html_custom' ) ) {
4
  class Redux_Validation_html_custom {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_html_custom' ) ) {
6
  class Redux_Validation_html_custom {
7
 
includes/options/redux-core/inc/validation/js/validation_js.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_js' ) ) {
4
  class Redux_Validation_js {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_js' ) ) {
6
  class Redux_Validation_js {
7
 
includes/options/redux-core/inc/validation/no_html/validation_no_html.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_no_html' ) ) {
4
  class Redux_Validation_no_html {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_no_html' ) ) {
6
  class Redux_Validation_no_html {
7
 
includes/options/redux-core/inc/validation/no_special_chars/validation_no_special_chars.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_no_special_chars' ) ) {
4
  class Redux_Validation_no_special_chars {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_no_special_chars' ) ) {
6
  class Redux_Validation_no_special_chars {
7
 
includes/options/redux-core/inc/validation/not_empty/validation_not_empty.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_not_empty' ) ) {
4
  class Redux_Validation_not_empty {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_not_empty' ) ) {
6
  class Redux_Validation_not_empty {
7
 
includes/options/redux-core/inc/validation/numeric/validation_numeric.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_numeric' ) ) {
4
  class Redux_Validation_numeric {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_numeric' ) ) {
6
  class Redux_Validation_numeric {
7
 
includes/options/redux-core/inc/validation/numeric_not_empty/validation_numeric_not_empty.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_numeric_not_empty' ) ) {
4
  class Redux_Validation_numeric_not_empty {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_numeric_not_empty' ) ) {
6
  class Redux_Validation_numeric_not_empty {
7
 
includes/options/redux-core/inc/validation/preg_replace/validation_preg_replace.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_preg_replace' ) ) {
4
  class Redux_Validation_preg_replace {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_preg_replace' ) ) {
6
  class Redux_Validation_preg_replace {
7
 
includes/options/redux-core/inc/validation/str_replace/validation_str_replace.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_str_replace' ) ) {
4
  class Redux_Validation_str_replace {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_str_replace' ) ) {
6
  class Redux_Validation_str_replace {
7
 
includes/options/redux-core/inc/validation/unique_slug/validation_unique_slug.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_unique_slug' ) ) {
4
  class Redux_Validation_unique_slug {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_unique_slug' ) ) {
6
  class Redux_Validation_unique_slug {
7
 
includes/options/redux-core/inc/validation/url/validation_url.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( ! class_exists( 'Redux_Validation_url' ) ) {
4
  class Redux_Validation_url {
5
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'Redux_Validation_url' ) ) {
6
  class Redux_Validation_url {
7
 
includes/options/redux-core/inc/welcome/welcome.php CHANGED
@@ -1,569 +0,0 @@
1
- <?php
2
- namespace ReduxCore\ReduxFramework;
3
- if ( ! defined( 'ABSPATH' ) ) {
4
- exit;
5
- }
6
-
7
-
8
- class Redux_Welcome {
9
-
10
- /**
11
- * @var string The capability users should have to view the page
12
- */
13
- public $minimum_capability = 'manage_options';
14
- public $display_version = "";
15
- public $redux_loaded = false;
16
-
17
- /**
18
- * Get things started
19
- *
20
- * @since 1.4
21
- */
22
- public function __construct() {
23
-
24
- add_action( 'redux/loaded', array( $this, 'init' ) );
25
-
26
- add_action( 'wp_ajax_redux_support_hash', array( $this, 'support_hash' ) );
27
-
28
- }
29
-
30
- public function init() {
31
-
32
- if ( $this->redux_loaded ) {
33
- return;
34
- }
35
- $this->redux_loaded = true;
36
- add_action( 'admin_menu', array( $this, 'admin_menus' ) );
37
-
38
- if ( isset( $_GET['page'] ) ) {
39
- if ( substr( $_GET['page'], 0, 6 ) == "redux-" ) {
40
- $version = explode( '.', ReduxFramework::$_version );
41
- $this->display_version = $version[0] . '.' . $version[1];
42
- add_filter( 'admin_footer_text', array( $this, 'change_wp_footer' ) );
43
- add_action( 'admin_head', array( $this, 'admin_head' ) );
44
- } else {
45
- $this->check_version();
46
- }
47
- } else {
48
- $this->check_version();
49
- }
50
- update_option( 'redux_version_upgraded_from', ReduxFramework::$_version );
51
- set_transient( '_redux_activation_redirect', true, 30 );
52
-
53
- }
54
-
55
-
56
- public function check_version() {
57
- global $pagenow;
58
-
59
- if ( $pagenow == "admin-ajax.php" || ( $GLOBALS['pagenow'] == "customize" && isset( $_GET['theme'] ) && ! empty( $_GET['theme'] ) ) ) {
60
- return;
61
- }
62
-
63
- $saveVer = Redux_Helpers::major_version( get_option( 'redux_version_upgraded_from' ) );
64
- $curVer = Redux_Helpers::major_version( ReduxFramework::$_version );
65
- $compare = false;
66
-
67
- if ( Redux_Helpers::isLocalHost() ) {
68
- $compare = true;
69
- } else if ( class_exists( 'ReduxCore\\ReduxFramework\\ReduxFrameworkPlugin' ) ) {
70
- $compare = true;
71
- } else {
72
- $redux = ReduxFrameworkInstances::get_all_instances();
73
-
74
- if ( is_array( $redux ) ) {
75
- foreach ( $redux as $panel ) {
76
- if ( $panel->args['dev_mode'] == 1 ) {
77
- $compare = true;
78
- break;
79
- }
80
- }
81
- }
82
- }
83
-
84
- if ( $compare ) {
85
- $redirect = false;
86
- if ( empty( $saveVer ) ) {
87
- $redirect = true; // First time
88
- }
89
- // Removing redirect except for the first time with the plugin installed. :) Less annoying until we actually use this page.
90
- //else if ( version_compare( $curVer, $saveVer, '>' ) ) {
91
- // $redirect = true; // Previous version
92
- //}
93
- if ( $redirect && ! defined( 'WP_TESTS_DOMAIN' ) && ReduxFramework::$_as_plugin ) {
94
- add_action( 'init', array( $this, 'do_redirect' ) );
95
- }
96
- }
97
- }
98
-
99
- public function do_redirect() {
100
- if ( ! defined( 'WP_CLI' ) ) {
101
- wp_redirect( admin_url( 'tools.php?page=redux-about' ) );
102
- exit();
103
- }
104
- }
105
-
106
- public function change_wp_footer() {
107
- echo __( 'If you like <strong>Redux</strong> please leave us a <a href="https://wordpress.org/support/view/plugin-reviews/redux-framework?filter=5#postform" target="_blank" class="redux-rating-link" data-rated="Thanks :)">&#9733;&#9733;&#9733;&#9733;&#9733;</a> rating. A huge thank you from Redux in advance!', 'redux-framework' );
108
- }
109
-
110
- public function support_hash() {
111
-
112
- if ( ! wp_verify_nonce( $_POST['nonce'], 'redux-support-hash' ) ) {
113
- die();
114
- }
115
-
116
- $data = get_option( 'redux_support_hash' );
117
- $data = wp_parse_args( $data, array( 'check' => '', 'identifier' => '' ) );
118
- $generate_hash = true;
119
- $system_info = Redux_Helpers::compileSystemStatus();
120
- $newHash = md5( json_encode( $system_info ) );
121
- $return = array();
122
- if ( $newHash == $data['check'] ) {
123
- unset( $generate_hash );
124
- }
125
-
126
- $post_data = array(
127
- 'hash' => md5( network_site_url() . '-' . $_SERVER['REMOTE_ADDR'] ),
128
- 'site' => esc_url( home_url( '/' ) ),
129
- 'tracking' => Redux_Helpers::getTrackingObject(),
130
- 'system_status' => $system_info,
131
- );
132
- //$post_data = json_encode( $post_data );
133
- $post_data = serialize( $post_data );
134
-
135
- if ( isset( $generate_hash ) && $generate_hash ) {
136
-
137
- $data['check'] = $newHash;
138
- $data['identifier'] = "";
139
- $response = wp_remote_post( 'http://support.redux.io/v1/', array(
140
- 'method' => 'POST',
141
- 'timeout' => 65,
142
- 'redirection' => 5,
143
- 'httpversion' => '1.0',
144
- 'blocking' => true,
145
- 'compress' => true,
146
- 'headers' => array(),
147
- 'body' => array(
148
- 'data' => $post_data,
149
- 'serialize' => 1
150
- )
151
- )
152
- );
153
-
154
- if ( is_wp_error( $response ) ) {
155
- echo json_encode( array(
156
- 'status' => 'error',
157
- 'message' => $response->get_error_message()
158
- ) );
159
- die( 1 );
160
- } else {
161
- $response_code = wp_remote_retrieve_response_code( $response );
162
- if ( $response_code == 200 ) {
163
- $response = wp_remote_retrieve_body( $response );
164
- $return = json_decode( $response, true );
165
- if ( isset( $return['identifier'] ) ) {
166
- $data['identifier'] = $return['identifier'];
167
- update_option( 'redux_support_hash', $data );
168
- }
169
- } else {
170
- $response = wp_remote_retrieve_body( $response );
171
- echo json_encode( array(
172
- 'status' => 'error',
173
- 'message' => $response
174
- ) );
175
- }
176
- }
177
- }
178
-
179
- if ( ! empty( $data['identifier'] ) ) {
180
- $return['status'] = "success";
181
- $return['identifier'] = $data['identifier'];
182
- } else {
183
- $return['status'] = "error";
184
- $return['message'] = esc_html__( "Support hash could not be generated. Please try again later.", 'redux-framework' );
185
- }
186
-
187
- echo json_encode( $return );
188
-
189
- die( 1 );
190
- }
191
-
192
- /**
193
- * Register the Dashboard Pages which are later hidden but these pages
194
- * are used to render the Welcome and Credits pages.
195
- *
196
- * @access public
197
- * @since 1.4
198
- * @return void
199
- */
200
- public function admin_menus() {
201
-
202
- $page = 'add_management_page';
203
-
204
- // About Page
205
- $page(
206
- esc_html__( 'Welcome to Redux Framework', 'redux-framework' ), esc_html__( 'Redux Framework', 'redux-framework' ), $this->minimum_capability, 'redux-about', array(
207
- $this,
208
- 'about_screen'
209
- )
210
- );
211
-
212
- // Changelog Page
213
- $page(
214
- esc_html__( 'Redux Framework Changelog', 'redux-framework' ), esc_html__( 'Redux Framework Changelog', 'redux-framework' ), $this->minimum_capability, 'redux-changelog', array(
215
- $this,
216
- 'changelog_screen'
217
- )
218
- );
219
-
220
- // Support Page
221
- $page(
222
- esc_html__( 'Get Support', 'redux-framework' ), esc_html__( 'Get Support', 'redux-framework' ), $this->minimum_capability, 'redux-support', array(
223
- $this,
224
- 'get_support'
225
- )
226
- );
227
-
228
- // Support Page
229
- $page(
230
- esc_html__( 'Redux Extensions', 'redux-framework' ), esc_html__( 'Redux Extensions', 'redux-framework' ), $this->minimum_capability, 'redux-extensions', array(
231
- $this,
232
- 'redux_extensions'
233
- )
234
- );
235
-
236
-
237
- // Credits Page
238
- $page(
239
- esc_html__( 'The people that develop Redux Framework', 'redux-framework' ), esc_html__( 'The people that develop Redux Framework', 'redux-framework' ), $this->minimum_capability, 'redux-credits', array(
240
- $this,
241
- 'credits_screen'
242
- )
243
- );
244
-
245
- // Status Page
246
- $page(
247
- esc_html__( 'Redux Framework Status', 'redux-framework' ), esc_html__( 'Redux Framework Status', 'redux-framework' ), $this->minimum_capability, 'redux-status', array(
248
- $this,
249
- 'status_screen'
250
- )
251
- );
252
-
253
- remove_submenu_page( 'tools.php', 'redux-about' );
254
- remove_submenu_page( 'tools.php', 'redux-status' );
255
- remove_submenu_page( 'tools.php', 'redux-changelog' );
256
- remove_submenu_page( 'tools.php', 'redux-getting-started' );
257
- remove_submenu_page( 'tools.php', 'redux-credits' );
258
- remove_submenu_page( 'tools.php', 'redux-support' );
259
- remove_submenu_page( 'tools.php', 'redux-extensions' );
260
-
261
-
262
- }
263
-
264
- /**
265
- * Hide Individual Dashboard Pages
266
- *
267
- * @access public
268
- * @since 1.4
269
- * @return void
270
- */
271
- public function admin_head() {
272
-
273
- // Badge for welcome page
274
- //$badge_url = ReduxFramework::$_url . 'assets/images/redux-badge.png';
275
- ?>
276
-
277
- <script
278
- id="redux-qtip-js"
279
- src='<?php echo esc_url( ReduxFramework::$_url ); ?>assets/js/vendor/qtip/jquery.qtip.js'>
280
- </script>
281
-
282
- <script
283
- id="redux-welcome-admin-js"
284
- src='<?php echo esc_url( ReduxFramework::$_url ) ?>inc/welcome/js/redux-welcome-admin.js'>
285
- </script>
286
-
287
- <?php
288
- if ( isset ( $_GET['page'] ) && $_GET['page'] == "redux-support" ) :
289
- ?>
290
- <script
291
- id="jquery-easing"
292
- src='<?php echo esc_url( ReduxFramework::$_url ); ?>inc/welcome/js/jquery.easing.min.js'>
293
- </script>
294
- <?php endif; ?>
295
-
296
- <link rel='stylesheet' id='redux-qtip-css'
297
- href='<?php echo esc_url( ReduxFramework::$_url ); ?>assets/css/vendor/qtip/jquery.qtip.css'
298
- type='text/css' media='all'/>
299
-
300
- <link rel='stylesheet' id='elusive-icons'
301
- href='<?php echo esc_url( ReduxFramework::$_url ); ?>assets/css/vendor/elusive-icons/elusive-icons.css'
302
- type='text/css' media='all'/>
303
-
304
- <link rel='stylesheet' id='redux-welcome-css'
305
- href='<?php echo esc_url( ReduxFramework::$_url ); ?>inc/welcome/css/redux-welcome.css'
306
- type='text/css' media='all'/>
307
- <style type="text/css">
308
- .redux-badge:before {
309
- <?php echo esc_js(is_rtl() ? 'right' : 'left'); ?> : 0;
310
- }
311
-
312
- .about-wrap .redux-badge {
313
- <?php echo esc_js(is_rtl() ? 'left' : 'right'); ?> : 0;
314
- }
315
-
316
- .about-wrap .feature-rest div {
317
- padding- <?php echo esc_js(is_rtl() ? 'left' : 'right'); ?>: 100px;
318
- }
319
-
320
- .about-wrap .feature-rest div.last-feature {
321
- padding- <?php echo esc_js(is_rtl() ? 'right' : 'left'); ?>: 100px;
322
- padding- <?php echo esc_js(is_rtl() ? 'left' : 'right'); ?>: 0;
323
- }
324
-
325
- .about-wrap .feature-rest div.icon:before {
326
- margin: <?php echo esc_js(is_rtl() ? '0 -100px 0 0' : '0 0 0 -100px'); ?>;
327
- }
328
- </style>
329
- <?php
330
- }
331
-
332
- /**
333
- * Navigation tabs
334
- *
335
- * @access public
336
- * @since 1.9
337
- * @return void
338
- */
339
- public function tabs() {
340
- $selected = isset ( $_GET['page'] ) ? esc_attr( $_GET['page'] ) : 'redux-about';
341
- $nonce = wp_create_nonce( 'redux-support-hash' );
342
- ?>
343
- <input type="hidden" id="redux_support_nonce" value="<?php echo esc_attr( $nonce ); ?>"/>
344
- <h2 class="nav-tab-wrapper">
345
- <a class="nav-tab <?php echo $selected == 'redux-about' ? 'nav-tab-active' : ''; ?>"
346
- href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'redux-about' ), 'tools.php' ) ) ); ?>">
347
- <?php esc_attr_e( "What's New", 'redux-framework' ); ?>
348
- </a> <a class="nav-tab <?php echo $selected == 'redux-extensions' ? 'nav-tab-active' : ''; ?>"
349
- href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'redux-extensions' ), 'tools.php' ) ) ); ?>">
350
- <?php esc_attr_e( 'Extensions', 'redux-framework' ); ?>
351
- </a> <a class="nav-tab <?php echo $selected == 'redux-changelog' ? 'nav-tab-active' : ''; ?>"
352
- href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'redux-changelog' ), 'tools.php' ) ) ); ?>">
353
- <?php esc_attr_e( 'Changelog', 'redux-framework' ); ?>
354
- </a> <a class="nav-tab <?php echo $selected == 'redux-credits' ? 'nav-tab-active' : ''; ?>"
355
- href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'redux-credits' ), 'tools.php' ) ) ); ?>">
356
- <?php _e( 'Credits', 'redux-framework' ); ?>
357
- </a> <a class="nav-tab <?php echo $selected == 'redux-support' ? 'nav-tab-active' : ''; ?>"
358
- href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'redux-support' ), 'tools.php' ) ) ); ?>">
359
- <?php esc_attr_e( 'Support', 'redux-framework' ); ?>
360
- </a> <a class="nav-tab <?php echo $selected == 'redux-status' ? 'nav-tab-active' : ''; ?>"
361
- href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'redux-status' ), 'tools.php' ) ) ); ?>">
362
- <?php esc_attr_e( 'Status', 'redux-framework' ); ?>
363
- </a>
364
- </h2>
365
- <?php
366
- }
367
-
368
- /**
369
- * Render About Screen
370
- *
371
- * @access public
372
- * @since 1.4
373
- * @return void
374
- */
375
- public function about_screen() {
376
- // Stupid hack for Wordpress alerts and warnings
377
- echo '<div class="wrap" style="height:0;overflow:hidden;"><h2></h2></div>';
378
-
379
- require_once 'views/about.php';
380
-
381
- }
382
-
383
- /**
384
- * Render Changelog Screen
385
- *
386
- * @access public
387
- * @since 2.0.3
388
- * @return void
389
- */
390
- public function changelog_screen() {
391
- // Stupid hack for Wordpress alerts and warnings
392
- echo '<div class="wrap" style="height:0;overflow:hidden;"><h2></h2></div>';
393
-
394
- require_once 'views/changelog.php';
395
-
396
- }
397
-
398
- /**
399
- * Render Changelog Screen
400
- *
401
- * @access public
402
- * @since 2.0.3
403
- * @return void
404
- */
405
- public function redux_extensions() {
406
- // Stupid hack for Wordpress alerts and warnings
407
- echo '<div class="wrap" style="height:0;overflow:hidden;"><h2></h2></div>';
408
-
409
- require_once 'views/extensions.php';
410
-
411
- }
412
-
413
-
414
- /**
415
- * Render Get Support Screen
416
- *
417
- * @access public
418
- * @since 1.9
419
- * @return void
420
- */
421
- public function get_support() {
422
- // Stupid hack for Wordpress alerts and warnings
423
- echo '<div class="wrap" style="height:0;overflow:hidden;"><h2></h2></div>';
424
-
425
- require_once 'views/support.php';
426
-
427
- }
428
-
429
- /**
430
- * Render Credits Screen
431
- *
432
- * @access public
433
- * @since 1.4
434
- * @return void
435
- */
436
- public function credits_screen() {
437
- // Stupid hack for Wordpress alerts and warnings
438
- echo '<div class="wrap" style="height:0;overflow:hidden;"><h2></h2></div>';
439
-
440
- require_once 'views/credits.php';
441
-
442
- }
443
-
444
- /**
445
- * Render Status Report Screen
446
- *
447
- * @access public
448
- * @since 1.4
449
- * @return void
450
- */
451
- public function status_screen() {
452
- // Stupid hack for Wordpress alerts and warnings
453
- echo '<div class="wrap" style="height:0;overflow:hidden;"><h2></h2></div>';
454
-
455
- require_once 'views/status_report.php';
456
-
457
- }
458
-
459
- /**
460
- * Parse the Redux readme.txt file
461
- *
462
- * @since 2.0.3
463
- * @return string $readme HTML formatted readme file
464
- */
465
- public function parse_readme() {
466
- if ( file_exists( ReduxFramework::$_dir . 'inc/fields/raw/parsedown.php' ) ) {
467
- require_once ReduxFramework::$_dir . 'inc/fields/raw/parsedown.php';
468
- $Parsedown = new Parsedown();
469
- $data = @wp_remote_get( ReduxFramework::$_url . '../CHANGELOG.md' );
470
- if ( isset( $data ) && ! empty( $data ) ) {
471
- $data = @wp_remote_retrieve_body( $data );
472
- return $Parsedown->text( trim( str_replace( '# Redux Framework Changelog', '', $data ) ) );
473
- }
474
- }
475
-
476
- return '<script src="' . 'http://gist-it.appspot.com/https://github.com/reduxframework/redux-framework/blob/master/CHANGELOG.md?slice=2:0&footer=0">// <![CDATA[// ]]></script>';
477
-
478
- }
479
-
480
- public function actions() {
481
- ?>
482
- <p class="redux-actions">
483
- <a href="http://docs.reduxframework.com/" class="docs button button-primary">Docs</a>
484
- <a href="http://wordpress.org/plugins/redux-framework/" class="review-us button button-primary"
485
- target="_blank">Review Us</a>
486
- <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MMFMHWUPKHKPW"
487
- class="review-us button button-primary" target="_blank">Donate</a>
488
- <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://reduxframework.com"
489
- data-text="Reduce your dev time! Redux is the most powerful option framework for WordPress on the web"
490
- data-via="ReduxFramework" data-size="large" data-hashtags="Redux">Tweet</a>
491
- <script>!function( d, s, id ) {
492
- var js, fjs = d.getElementsByTagName( s )[0], p = /^http:/.test( d.location ) ? 'http' : 'https';
493
- if ( !d.getElementById( id ) ) {
494
- js = d.createElement( s );
495
- js.id = id;
496
- js.src = p + '://platform.twitter.com/widgets.js';
497
- fjs.parentNode.insertBefore( js, fjs );
498
- }
499
- }( document, 'script', 'twitter-wjs' );</script>
500
- </p>
501
- <?php
502
- }
503
-
504
- /**
505
- * Render Contributors List
506
- *
507
- * @since 1.4
508
- * @uses Redux_Welcome::get_contributors()
509
- * @return string $contributor_list HTML formatted list of all the contributors for Redux
510
- */
511
- public function contributors() {
512
- $contributors = $this->get_contributors();
513
-
514
- if ( empty ( $contributors ) ) {
515
- return '';
516
- }
517
-
518
- $contributor_list = '<ul class="wp-people-group">';
519
-
520
- foreach ( $contributors as $contributor ) {
521
- $contributor_list .= '<li class="wp-person">';
522
- $contributor_list .= sprintf( '<a href="%s" title="%s" target="_blank">', esc_url( 'https://github.com/' . $contributor->login ), esc_html( sprintf( __( 'View %s', 'redux-framework' ), esc_html( $contributor->login ) ) )
523
- );
524
- $contributor_list .= sprintf( '<img src="%s" width="64" height="64" class="gravatar" alt="%s" />', esc_url( $contributor->avatar_url ), esc_html( $contributor->login ) );
525
- $contributor_list .= '</a>';
526
- $contributor_list .= sprintf( '<a class="web" href="%s" target="_blank">%s</a>', esc_url( 'https://github.com/' . $contributor->login ), esc_html( $contributor->login ) );
527
- $contributor_list .= '</a>';
528
- $contributor_list .= '</li>';
529
- }
530
-
531
- $contributor_list .= '</ul>';
532
-
533
- return $contributor_list;
534
- }
535
-
536
- /**
537
- * Retreive list of contributors from GitHub.
538
- *
539
- * @access public
540
- * @since 1.4
541
- * @return array $contributors List of contributors
542
- */
543
- public function get_contributors() {
544
- $contributors = get_transient( 'redux_contributors' );
545
-
546
- if ( false !== $contributors ) {
547
- return $contributors;
548
- }
549
-
550
- $response = wp_remote_get( 'https://api.github.com/repos/ReduxFramework/redux-framework/contributors', array( 'sslverify' => false ) );
551
-
552
- if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) {
553
- return array();
554
- }
555
-
556
- $contributors = json_decode( wp_remote_retrieve_body( $response ) );
557
-
558
- if ( ! is_array( $contributors ) ) {
559
- return array();
560
- }
561
-
562
- set_transient( 'redux_contributors', $contributors, 3600 );
563
-
564
- return $contributors;
565
- }
566
- }
567
-
568
- new Redux_Welcome();
569
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/options/redux-core/templates/panel/container.tpl.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  /**
4
  * The template for the main panel container.
5
  * Override this template by specifying the path where it is stored (templates_path) in your Redux config.
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * The template for the main panel container.
8
  * Override this template by specifying the path where it is stored (templates_path) in your Redux config.
includes/options/redux-core/templates/panel/content.tpl.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  /**
4
  * The template for the main content of the panel.
5
  * Override this template by specifying the path where it is stored (templates_path) in your Redux config.
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * The template for the main content of the panel.
8
  * Override this template by specifying the path where it is stored (templates_path) in your Redux config.
includes/options/redux-core/templates/panel/footer.tpl.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  /**
4
  * The template for the panel footer area.
5
  * Override this template by specifying the path where it is stored (templates_path) in your Redux config.
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * The template for the panel footer area.
8
  * Override this template by specifying the path where it is stored (templates_path) in your Redux config.
includes/options/redux-core/templates/panel/header.tpl.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  /**
4
  * The template for the panel header area.
5
  * Override this template by specifying the path where it is stored (templates_path) in your Redux config.
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * The template for the panel header area.
8
  * Override this template by specifying the path where it is stored (templates_path) in your Redux config.
includes/options/redux-core/templates/panel/header_stickybar.tpl.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  /**
4
  * The template for the header sticky bar.
5
  * Override this template by specifying the path where it is stored (templates_path) in your Redux config.
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * The template for the header sticky bar.
8
  * Override this template by specifying the path where it is stored (templates_path) in your Redux config.
includes/options/redux-core/templates/panel/menu_container.tpl.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
 
 
 
3
  /**
4
  * The template for the menu container of the panel.
5
  *
@@ -20,7 +23,7 @@ namespace ReduxCore\ReduxFramework;
20
  if($i==2){
21
  $amp_opt = get_option("ampforwp_option_panel_view_type");
22
  $opt_visible = "";
23
- if($amp_opt==1 || $amp_opt==""){
24
  $opt_visible = 'style=display:none';
25
  }
26
  echo '<div class="amp-full-view-options" '.esc_attr($opt_visible).'>';
1
  <?php
2
  namespace ReduxCore\ReduxFramework;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * The template for the menu container of the panel.
8
  *
23
  if($i==2){
24
  $amp_opt = get_option("ampforwp_option_panel_view_type");
25
  $opt_visible = "";
26
+ if(($amp_opt==1 || $amp_opt=="") && !get_theme_support('amp-template-mode')){
27
  $opt_visible = 'style=display:none';
28
  }
29
  echo '<div class="amp-full-view-options" '.esc_attr($opt_visible).'>';
includes/options/templates/footer.tpl.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  /**
3
  * The template for the panel footer area.
4
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  /**
6
  * The template for the panel footer area.
7
  *
includes/options/templates/header.tpl.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  /**
3
  * The template for the panel header area.
4
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  /**
6
  * The template for the panel header area.
7
  *
includes/options/templates/header_stickybar.tpl.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  /**
3
  * The template for the header sticky bar.
4
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  /**
6
  * The template for the header sticky bar.
7
  *
includes/vendor/Mobile_Detect.php CHANGED
@@ -20,6 +20,9 @@
20
  *
21
  * @version 2.8.33
22
  */
 
 
 
23
  class AMPforWP_Mobile_Detect
24
  {
25
  /**
20
  *
21
  * @version 2.8.33
22
  */
23
+ if ( ! defined( 'ABSPATH' ) ) {
24
+ exit;
25
+ }
26
  class AMPforWP_Mobile_Detect
27
  {
28
  /**
includes/vendor/amp/amp.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  /**
4
  * Plugin Name: AMP
5
  * Description: Add AMP support to your WordPress site.
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * Plugin Name: AMP
8
  * Description: Add AMP support to your WordPress site.
includes/vendor/amp/back-compat/back-compat.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  // If you want to use the template that shipped with v0.3 and earlier, you can use this to force that.
4
  // Note that this may not stick around forever, so use caution and `function_exists`.
5
  function amp_backcompat_use_v03_templates() {
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  // If you want to use the template that shipped with v0.3 and earlier, you can use this to force that.
7
  // Note that this may not stick around forever, so use caution and `function_exists`.
8
  function amp_backcompat_use_v03_templates() {
includes/vendor/amp/includes/admin/class-amp-customizer.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  /**
4
  * AMP class that implements a template style editor in the Customizer.
5
  *
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * AMP class that implements a template style editor in the Customizer.
8
  *
includes/vendor/amp/includes/admin/functions.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  // Callbacks for adding AMP-related things to the admin.
4
 
5
  define( 'AMP_VENDOR_CUSTOMIZER_QUERY_VAR', 'customize_amp' );
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  // Callbacks for adding AMP-related things to the admin.
7
 
8
  define( 'AMP_VENDOR_CUSTOMIZER_QUERY_VAR', 'customize_amp' );
includes/vendor/amp/includes/amp-frontend-actions.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  // Callbacks for adding AMP-related things to the main theme
4
 
5
  add_action( 'wp_head', 'AMPforWP\\AMPVendor\\amp_frontend_add_canonical' );
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  // Callbacks for adding AMP-related things to the main theme
7
 
8
  add_action( 'wp_head', 'AMPforWP\\AMPVendor\\amp_frontend_add_canonical' );
includes/vendor/amp/includes/amp-helper-functions.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  function amp_get_permalink( $post_id ) {
4
  $pre_url = apply_filters( 'amp_pre_get_permalink', false, $post_id );
5
  $amp_url = '';
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  function amp_get_permalink( $post_id ) {
7
  $pre_url = apply_filters( 'amp_pre_get_permalink', false, $post_id );
8
  $amp_url = '';
includes/vendor/amp/includes/amp-post-template-actions.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  // Callbacks for adding content to an AMP template
4
 
5
  add_action( 'amp_post_template_head', 'AMPforWP\\AMPVendor\\amp_post_template_add_title' );
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  // Callbacks for adding content to an AMP template
7
 
8
  add_action( 'amp_post_template_head', 'AMPforWP\\AMPVendor\\amp_post_template_add_title' );
includes/vendor/amp/includes/amp-post-template-functions.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  // Was only available in Customizer > 4.6
4
  if ( ! function_exists( 'sanitize_hex_color' ) ) {
5
  function sanitize_hex_color( $color ) {
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  // Was only available in Customizer > 4.6
7
  if ( ! function_exists( 'sanitize_hex_color' ) ) {
8
  function sanitize_hex_color( $color ) {
includes/vendor/amp/includes/class-amp-content.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/utils/class-amp-dom-utils.php' );
4
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
5
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/utils/class-amp-dom-utils.php' );
7
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
8
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
includes/vendor/amp/includes/class-amp-post-template.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/utils/class-amp-dom-utils.php' );
4
  require_once( AMP__VENDOR__DIR__ . '/includes/utils/class-amp-html-utils.php' );
5
  require_once( AMP__VENDOR__DIR__ . '/includes/utils/class-amp-string-utils.php' );
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/utils/class-amp-dom-utils.php' );
7
  require_once( AMP__VENDOR__DIR__ . '/includes/utils/class-amp-html-utils.php' );
8
  require_once( AMP__VENDOR__DIR__ . '/includes/utils/class-amp-string-utils.php' );
includes/vendor/amp/includes/embeds/class-amp-base-embed-handler.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  // Used by some children
4
  require_once( AMP__VENDOR__DIR__ . '/includes/utils/class-amp-html-utils.php' );
5
 
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  // Used by some children
7
  require_once( AMP__VENDOR__DIR__ . '/includes/utils/class-amp-html-utils.php' );
8
 
includes/vendor/amp/includes/embeds/class-amp-core-block-handler.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  /**
4
  * Class AMP_Core_Block_Handler
5
  *
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * Class AMP_Core_Block_Handler
8
  *
includes/vendor/amp/includes/embeds/class-amp-dailymotion-embed.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
4
 
5
  // Much of this class is borrowed from Jetpack embeds
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
7
 
8
  // Much of this class is borrowed from Jetpack embeds
includes/vendor/amp/includes/embeds/class-amp-facebook-embed.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
4
 
5
  class AMP_Facebook_Embed_Handler extends AMP_Base_Embed_Handler {
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
7
 
8
  class AMP_Facebook_Embed_Handler extends AMP_Base_Embed_Handler {
includes/vendor/amp/includes/embeds/class-amp-gallery-embed.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
4
 
5
  class AMP_Gallery_Embed_Handler extends AMP_Base_Embed_Handler {
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
7
 
8
  class AMP_Gallery_Embed_Handler extends AMP_Base_Embed_Handler {
includes/vendor/amp/includes/embeds/class-amp-instagram-embed.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
4
 
5
  // Much of this class is borrowed from Jetpack embeds
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
7
 
8
  // Much of this class is borrowed from Jetpack embeds
includes/vendor/amp/includes/embeds/class-amp-pinterest-embed.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php');
4
 
5
  class AMP_Pinterest_Embed_Handler extends AMP_Base_Embed_Handler {
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php');
7
 
8
  class AMP_Pinterest_Embed_Handler extends AMP_Base_Embed_Handler {
includes/vendor/amp/includes/embeds/class-amp-playlist-embed-handler.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  /**
4
  * Class AMP_Playlist_Embed_Handler
5
  *
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * Class AMP_Playlist_Embed_Handler
8
  *
includes/vendor/amp/includes/embeds/class-amp-soundcloud-embed.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
4
 
5
  class AMP_SoundCloud_Embed_Handler extends AMP_Base_Embed_Handler {
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
7
 
8
  class AMP_SoundCloud_Embed_Handler extends AMP_Base_Embed_Handler {
includes/vendor/amp/includes/embeds/class-amp-twitter-embed.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
4
 
5
  // Much of this class is borrowed from Jetpack embeds
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
7
 
8
  // Much of this class is borrowed from Jetpack embeds
includes/vendor/amp/includes/embeds/class-amp-vimeo-embed.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
4
 
5
  class AMP_Vimeo_Embed_Handler extends AMP_Base_Embed_Handler {
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
7
 
8
  class AMP_Vimeo_Embed_Handler extends AMP_Base_Embed_Handler {
includes/vendor/amp/includes/embeds/class-amp-vine-embed.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
4
 
5
  class AMP_Vine_Embed_Handler extends AMP_Base_Embed_Handler {
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
7
 
8
  class AMP_Vine_Embed_Handler extends AMP_Base_Embed_Handler {
includes/vendor/amp/includes/embeds/class-amp-wistia-embed.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
4
 
5
  class AMP_Wistia_Embed_Handler extends AMP_Base_Embed_Handler {
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
7
 
8
  class AMP_Wistia_Embed_Handler extends AMP_Base_Embed_Handler {
includes/vendor/amp/includes/embeds/class-amp-youtube-embed.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
4
 
5
  // Much of this class is borrowed from Jetpack embeds
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handler.php' );
7
 
8
  // Much of this class is borrowed from Jetpack embeds
includes/vendor/amp/includes/lib/fasterimage/Exception/InvalidImageException.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php namespace FasterImage\Exception;
2
-
 
 
3
  /**
4
  * Class InvalidImageException
5
  *
1
  <?php namespace FasterImage\Exception;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  /**
6
  * Class InvalidImageException
7
  *
includes/vendor/amp/includes/lib/fasterimage/ExifParser.php CHANGED
@@ -2,7 +2,9 @@
2
 
3
  use FasterImage\Exception\InvalidImageException;
4
  use WillWashburn\Stream\StreamableInterface;
5
-
 
 
6
  /**
7
  * Class ExifParser
8
  *
2
 
3
  use FasterImage\Exception\InvalidImageException;
4
  use WillWashburn\Stream\StreamableInterface;
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit;
7
+ }
8
  /**
9
  * Class ExifParser
10
  *
includes/vendor/amp/includes/lib/fasterimage/FasterImage.php CHANGED
@@ -3,7 +3,9 @@
3
  use FasterImage\Exception\InvalidImageException;
4
  use WillWashburn\Stream\Exception\StreamBufferTooSmallException;
5
  use WillWashburn\Stream\Stream;
6
-
 
 
7
  /**
8
  * FasterImage - Because sometimes you just want the size, and you want them in
9
  * parallel!
3
  use FasterImage\Exception\InvalidImageException;
4
  use WillWashburn\Stream\Exception\StreamBufferTooSmallException;
5
  use WillWashburn\Stream\Stream;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  /**
10
  * FasterImage - Because sometimes you just want the size, and you want them in
11
  * parallel!
includes/vendor/amp/includes/lib/fasterimage/ImageParser.php CHANGED
@@ -3,7 +3,9 @@
3
  use WillWashburn\Stream\Exception\StreamBufferTooSmallException;
4
  use WillWashburn\Stream\Stream;
5
  use WillWashburn\Stream\StreamableInterface;
6
-
 
 
7
  /**
8
  * Parses the stream of the image and determines the size and type of the image
9
  *
3
  use WillWashburn\Stream\Exception\StreamBufferTooSmallException;
4
  use WillWashburn\Stream\Stream;
5
  use WillWashburn\Stream\StreamableInterface;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  /**
10
  * Parses the stream of the image and determines the size and type of the image
11
  *
includes/vendor/amp/includes/lib/fasterimage/amp-fasterimage.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  function amp_load_fasterimage_classes() {
3
  // We're not using composer to pull in FasterImage so we need to load the files manually
4
  $fasterimage__DIR__ = dirname( __FILE__ );
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  function amp_load_fasterimage_classes() {
6
  // We're not using composer to pull in FasterImage so we need to load the files manually
7
  $fasterimage__DIR__ = dirname( __FILE__ );
includes/vendor/amp/includes/lib/fastimage/class-fastimage.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  /**
3
  * FastImage - Because sometimes you just want the size!
4
  * Based on the Ruby Implementation by Steven Sykes (https://github.com/sdsykes/fastimage)
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  /**
6
  * FastImage - Because sometimes you just want the size!
7
  * Based on the Ruby Implementation by Steven Sykes (https://github.com/sdsykes/fastimage)
includes/vendor/amp/includes/sanitizers/class-amp-allowed-tags-generated.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  /**
4
  * Generated by amphtml-update.py - do not edit.
5
  *
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * Generated by amphtml-update.py - do not edit.
8
  *
includes/vendor/amp/includes/sanitizers/class-amp-audio-sanitizer.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
4
 
5
  class AMP_Audio_Sanitizer extends AMP_Base_Sanitizer {
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
7
 
8
  class AMP_Audio_Sanitizer extends AMP_Base_Sanitizer {
includes/vendor/amp/includes/sanitizers/class-amp-base-sanitizer.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  abstract class AMP_Base_Sanitizer {
4
  const FALLBACK_HEIGHT = 400;
5
 
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  abstract class AMP_Base_Sanitizer {
7
  const FALLBACK_HEIGHT = 400;
8
 
includes/vendor/amp/includes/sanitizers/class-amp-blacklist-sanitizer.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
4
 
5
  /**
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
7
 
8
  /**
includes/vendor/amp/includes/sanitizers/class-amp-block-sanitizer.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  /**
4
  * Class AMP_Block_Sanitizer.
5
  *
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * Class AMP_Block_Sanitizer.
8
  *
includes/vendor/amp/includes/sanitizers/class-amp-gallery-block-sanitizer.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
4
  /**
5
  * Class AMP_Gallery_Block_Sanitizer.
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
7
  /**
8
  * Class AMP_Gallery_Block_Sanitizer.
includes/vendor/amp/includes/sanitizers/class-amp-iframe-sanitizer.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
4
 
5
  /**
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
7
 
8
  /**
includes/vendor/amp/includes/sanitizers/class-amp-img-sanitizer.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
4
  require_once( AMP__VENDOR__DIR__ . '/includes/utils/class-amp-image-dimension-extractor.php' );
5
 
@@ -165,6 +168,14 @@ class AMP_Img_Sanitizer extends AMP_Base_Sanitizer {
165
  $old_attributes = apply_filters('amp_img_attributes', $old_attributes);
166
  $new_attributes = $this->filter_attributes( $old_attributes );
167
  $new_attributes = $this->enforce_sizes_attribute( $new_attributes );
 
 
 
 
 
 
 
 
168
  if ( $this->is_gif_url( $new_attributes['src'] ) ) {
169
  $this->did_convert_elements = true;
170
  $new_tag = 'amp-anim';
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
7
  require_once( AMP__VENDOR__DIR__ . '/includes/utils/class-amp-image-dimension-extractor.php' );
8
 
168
  $old_attributes = apply_filters('amp_img_attributes', $old_attributes);
169
  $new_attributes = $this->filter_attributes( $old_attributes );
170
  $new_attributes = $this->enforce_sizes_attribute( $new_attributes );
171
+ // Use responsive images when a theme supports wide and full-bleed images.
172
+ if ( ! empty( $this->args['align_wide_support'] ) && $node->parentNode && 'figure' === $node->parentNode->nodeName && preg_match( '/(^|\s)(alignwide|alignfull)(\s|$)/', $node->parentNode->getAttribute( 'class' ) ) ) {
173
+ $new_attributes['layout'] = 'responsive';
174
+ } else {
175
+ $new_attributes['layout'] = 'intrinsic';
176
+ }
177
+ // Remove sizes attribute since it causes headaches in AMP and because AMP will generate it for us. See <https://github.com/ampproject/amphtml/issues/21371>.
178
+ unset( $new_attributes['sizes'] );
179
  if ( $this->is_gif_url( $new_attributes['src'] ) ) {
180
  $this->did_convert_elements = true;
181
  $new_tag = 'amp-anim';
includes/vendor/amp/includes/sanitizers/class-amp-playbuzz-sanitizer.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php';
4
 
5
  /**
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php';
7
 
8
  /**
includes/vendor/amp/includes/sanitizers/class-amp-rule-spec.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  /**
4
  * Class AMP_Rule_Spec
5
  *
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * Class AMP_Rule_Spec
8
  *
includes/vendor/amp/includes/sanitizers/class-amp-style-sanitizer.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
4
 
5
  /**
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
7
 
8
  /**
includes/vendor/amp/includes/sanitizers/class-amp-tag-and-attribute-sanitizer.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  /**
4
  * Class AMP_Tag_And_Attribute_Sanitizer
5
  *
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * Class AMP_Tag_And_Attribute_Sanitizer
8
  *
includes/vendor/amp/includes/sanitizers/class-amp-tree-base-sanitizer.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  /**
4
  * Class AMP_Base_Sanitizer
5
  *
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * Class AMP_Base_Sanitizer
8
  *
includes/vendor/amp/includes/sanitizers/class-amp-tree-style-sanitizer.php CHANGED
@@ -1,6 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
-
 
 
4
  require_once( AMP__VENDOR__DIR__ . 'includes/sanitizers/class-amp-tree-base-sanitizer.php' );
5
  /**
6
  * Class AMP_Style_Sanitizer
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . 'includes/sanitizers/class-amp-tree-base-sanitizer.php' );
7
  /**
8
  * Class AMP_Style_Sanitizer
includes/vendor/amp/includes/sanitizers/class-amp-video-sanitizer.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
4
 
5
  /**
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  require_once( AMP__VENDOR__DIR__ . '/includes/sanitizers/class-amp-base-sanitizer.php' );
7
 
8
  /**
includes/vendor/amp/includes/settings/class-amp-customizer-design-settings.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  class AMP_Customizer_Design_Settings {
4
  const DEFAULT_HEADER_COLOR = '#fff';
5
  const DEFAULT_HEADER_BACKGROUND_COLOR = '#0a89c0';
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  class AMP_Customizer_Design_Settings {
7
  const DEFAULT_HEADER_COLOR = '#fff';
8
  const DEFAULT_HEADER_BACKGROUND_COLOR = '#0a89c0';
includes/vendor/amp/includes/settings/class-amp-customizer-settings.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  class AMP_Customizer_Settings {
4
  private static function get_stored_options() {
5
  return get_option( 'amp_customizer', array() );
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  class AMP_Customizer_Settings {
7
  private static function get_stored_options() {
8
  return get_option( 'amp_customizer', array() );
includes/vendor/amp/includes/utils/class-amp-dom-utils.php CHANGED
@@ -1,6 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
-
 
 
4
  /**
5
  * Class AMP_DOM_Utils
6
  *
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  /**
7
  * Class AMP_DOM_Utils
8
  *
includes/vendor/amp/includes/utils/class-amp-html-utils.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  class AMP_HTML_Utils {
4
  public static function build_tag( $tag_name, $attributes = array(), $content = '' ) {
5
  $attr_string = self::build_attributes_string( $attributes );
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  class AMP_HTML_Utils {
7
  public static function build_tag( $tag_name, $attributes = array(), $content = '' ) {
8
  $attr_string = self::build_attributes_string( $attributes );
includes/vendor/amp/includes/utils/class-amp-image-dimension-extractor.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  class AMP_Image_Dimension_Extractor {
4
  static $callbacks_registered = false;
5
  const STATUS_FAILED_LAST_ATTEMPT = 'failed';
@@ -82,7 +85,8 @@ class AMP_Image_Dimension_Extractor {
82
  * @return array Dimensions mapped to image urls, or false if they could not be retrieved
83
  */
84
  public static function extract_by_downloading_images( $dimensions, $mode = 'concurrent' ) {
85
- $transient_expiration = 30 * DAY_IN_SECONDS;
 
86
 
87
  $urls_to_fetch = array();
88
  $images = array();
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  class AMP_Image_Dimension_Extractor {
7
  static $callbacks_registered = false;
8
  const STATUS_FAILED_LAST_ATTEMPT = 'failed';
85
  * @return array Dimensions mapped to image urls, or false if they could not be retrieved
86
  */
87
  public static function extract_by_downloading_images( $dimensions, $mode = 'concurrent' ) {
88
+ $transient_expiration = 8 * DAY_IN_SECONDS;
89
+ $transient_expiration = apply_filters('ampforwp_image_expiration_time', $transient_expiration);
90
 
91
  $urls_to_fetch = array();
92
  $images = array();
includes/vendor/amp/includes/utils/class-amp-string-utils.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  class AMP_String_Utils {
4
  public static function endswith( $haystack, $needle ) {
5
  return '' !== $haystack
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  class AMP_String_Utils {
7
  public static function endswith( $haystack, $needle ) {
8
  return '' !== $haystack
includes/vendor/amp/includes/utils/class-amp-wp-utils.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  class AMP_WP_Utils {
4
  /**
5
  * wp_parse_url in < WordPress 4.7 does not respect the component arg, so we're adding this helper so we can use it.
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  class AMP_WP_Utils {
7
  /**
8
  * wp_parse_url in < WordPress 4.7 does not respect the component arg, so we're adding this helper so we can use it.
includes/vendor/amp/includes/widgets/class-amp-widget-archives.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  if ( ! class_exists( 'AMP_Widget_Archives' ) ) {
3
  class AMP_Widget_Archives extends WP_Widget_Archives {
4
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists( 'AMP_Widget_Archives' ) ) {
6
  class AMP_Widget_Archives extends WP_Widget_Archives {
7
 
includes/vendor/amp/includes/widgets/class-amp-widget-categories.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  if ( ! class_exists('AMP_Widget_Categories') ) {
3
  class AMP_Widget_Categories extends WP_Widget_Categories {
4
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists('AMP_Widget_Categories') ) {
6
  class AMP_Widget_Categories extends WP_Widget_Categories {
7
 
includes/vendor/amp/includes/widgets/class-amp-widget-media-video.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( class_exists( 'WP_Widget_Media_Video' ) && ! class_exists('AMP_Widget_Media_Video') ) {
4
  /**
5
  * Class AMP_Widget_Media_Video
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( class_exists( 'WP_Widget_Media_Video' ) && ! class_exists('AMP_Widget_Media_Video') ) {
6
  /**
7
  * Class AMP_Widget_Media_Video
includes/vendor/amp/includes/widgets/class-amp-widget-recent-comments.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  if ( ! class_exists('AMP_Widget_Recent_Comments') ) {
3
  class AMP_Widget_Recent_Comments extends WP_Widget_Recent_Comments {
4
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! class_exists('AMP_Widget_Recent_Comments') ) {
6
  class AMP_Widget_Recent_Comments extends WP_Widget_Recent_Comments {
7
 
includes/vendor/amp/includes/widgets/class-amp-widget-text.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  if ( class_exists( 'WP_Widget_Text' ) && ! class_exists('AMP_Widget_Text') ) {
4
  /**
5
  * Class AMP_Widget_Text
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( class_exists( 'WP_Widget_Text' ) && ! class_exists('AMP_Widget_Text') ) {
6
  /**
7
  * Class AMP_Widget_Text
includes/vendor/amp/jetpack-helper.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
 
 
 
3
  // Jetpack bits.
4
 
5
  add_action( 'pre_amp_render_post', 'AMPforWP\\AMPVendor\\amp_jetpack_mods' );
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  // Jetpack bits.
7
 
8
  add_action( 'pre_amp_render_post', 'AMPforWP\\AMPVendor\\amp_jetpack_mods' );
includes/vendor/amp/templates/featured-image.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  $featured_image = $this->get( 'featured_image' );
3
 
4
  if ( empty( $featured_image ) ) {
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  $featured_image = $this->get( 'featured_image' );
6
 
7
  if ( empty( $featured_image ) ) {
includes/vendor/amp/templates/meta-author.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php $post_author = $this->get( 'post_author' ); ?>
 
 
 
 
2
  <?php if ( $post_author ) : ?>
3
  <?php $author_avatar_url = get_avatar_url( $post_author->user_email, array( 'size' => 24 ) ); ?>
4
  <div class="amp-wp-meta amp-wp-byline">
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ $post_author = $this->get( 'post_author' ); ?>
6
  <?php if ( $post_author ) : ?>
7
  <?php $author_avatar_url = get_avatar_url( $post_author->user_email, array( 'size' => 24 ) ); ?>
8
  <div class="amp-wp-meta amp-wp-byline">
includes/vendor/amp/templates/meta-comments-link.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  $comments_link_url = $this->get( 'comments_link_url' );
3
  ?>
4
  <?php if ( $comments_link_url ) : ?>
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  $comments_link_url = $this->get( 'comments_link_url' );
6
  ?>
7
  <?php if ( $comments_link_url ) : ?>
includes/vendor/amp/templates/meta-taxonomy.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php $categories = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'accelerated-mobile-pages' ), '', $this->ID ); ?>
 
 
 
 
2
  <?php if ( $categories ) : ?>
3
  <div class="amp-wp-meta amp-wp-tax-category">
4
  <?php printf( esc_html__( 'Categories: %s', 'accelerated-mobile-pages' ), $categories ); ?>
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ $categories = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'accelerated-mobile-pages' ), '', $this->ID ); ?>
6
  <?php if ( $categories ) : ?>
7
  <div class="amp-wp-meta amp-wp-tax-category">
8
  <?php printf( esc_html__( 'Categories: %s', 'accelerated-mobile-pages' ), $categories ); ?>
includes/vendor/css-parser/autoload.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  // autoload.php @generated by Composer
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  // autoload.php @generated by Composer
6
 
7
  require_once __DIR__ . '/composer/autoload_real.php';
includes/vendor/css-parser/composer/ClassLoader.php CHANGED
@@ -11,7 +11,9 @@
11
  */
12
 
13
  namespace Composer\Autoload;
14
-
 
 
15
  /**
16
  * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
17
  *
11
  */
12
 
13
  namespace Composer\Autoload;
14
+ if ( ! defined( 'ABSPATH' ) ) {
15
+ exit;
16
+ }
17
  /**
18
  * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
19
  *
includes/vendor/css-parser/composer/autoload_classmap.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  // autoload_classmap.php @generated by Composer
4
 
5
  $vendorDir = dirname(dirname(__FILE__));
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  // autoload_classmap.php @generated by Composer
6
 
7
  $vendorDir = dirname(dirname(__FILE__));
includes/vendor/css-parser/composer/autoload_namespaces.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  // autoload_namespaces.php @generated by Composer
4
 
5
  $vendorDir = dirname(dirname(__FILE__));
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  // autoload_namespaces.php @generated by Composer
6
 
7
  $vendorDir = dirname(dirname(__FILE__));
includes/vendor/css-parser/composer/autoload_psr4.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  // autoload_psr4.php @generated by Composer
4
 
5
  $vendorDir = dirname(dirname(__FILE__));
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  // autoload_psr4.php @generated by Composer
6
 
7
  $vendorDir = dirname(dirname(__FILE__));
includes/vendor/css-parser/composer/autoload_real.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
-
 
 
3
  // autoload_real.php @generated by Composer
4
 
5
  class ComposerAutoloaderInit117444c18d5d7304d751024fddbe3a07
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  // autoload_real.php @generated by Composer
6
 
7
  class ComposerAutoloaderInit117444c18d5d7304d751024fddbe3a07
includes/vendor/css-parser/composer/autoload_static.php CHANGED
@@ -3,7 +3,9 @@
3
  // autoload_static.php @generated by Composer
4
 
5
  namespace Composer\Autoload;
6
-
 
 
7
  class ComposerStaticInit117444c18d5d7304d751024fddbe3a07
8
  {
9
  public static $prefixesPsr0 = array (
3
  // autoload_static.php @generated by Composer
4
 
5
  namespace Composer\Autoload;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  class ComposerStaticInit117444c18d5d7304d751024fddbe3a07
10
  {
11
  public static $prefixesPsr0 = array (
includes/vendor/css-parser/parser-helper-function.php CHANGED
@@ -1,6 +1,8 @@
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
-
 
 
4
  class AMPFORWP_Tree_Shaking_Transient{
5
  public static function ampforwp_get_proper_transient_name($transient){
6
  global $post;
1
  <?php
2
  namespace AMPforWP\AMPVendor;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  class AMPFORWP_Tree_Shaking_Transient{
7
  public static function ampforwp_get_proper_transient_name($transient){
8
  global $post;
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/CSSList/AtRuleBlockList.php CHANGED
@@ -3,7 +3,9 @@
3
  namespace Sabberworm\CSS\CSSList;
4
 
5
  use Sabberworm\CSS\Property\AtRule;
6
-
 
 
7
  /**
8
  * A BlockList constructed by an unknown @-rule. @media rules are rendered into AtRuleBlockList objects.
9
  */
3
  namespace Sabberworm\CSS\CSSList;
4
 
5
  use Sabberworm\CSS\Property\AtRule;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  /**
10
  * A BlockList constructed by an unknown @-rule. @media rules are rendered into AtRuleBlockList objects.
11
  */
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/CSSList/CSSBlockList.php CHANGED
@@ -8,7 +8,9 @@ use Sabberworm\CSS\Property\Selector;
8
  use Sabberworm\CSS\Rule\Rule;
9
  use Sabberworm\CSS\Value\ValueList;
10
  use Sabberworm\CSS\Value\CSSFunction;
11
-
 
 
12
  /**
13
  * A CSSBlockList is a CSSList whose DeclarationBlocks are guaranteed to contain valid declaration blocks or at-rules.
14
  * Most CSSLists conform to this category but some at-rules (such as @keyframes) do not.
8
  use Sabberworm\CSS\Rule\Rule;
9
  use Sabberworm\CSS\Value\ValueList;
10
  use Sabberworm\CSS\Value\CSSFunction;
11
+ if ( ! defined( 'ABSPATH' ) ) {
12
+ exit;
13
+ }
14
  /**
15
  * A CSSBlockList is a CSSList whose DeclarationBlocks are guaranteed to contain valid declaration blocks or at-rules.
16
  * Most CSSLists conform to this category but some at-rules (such as @keyframes) do not.
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/CSSList/CSSList.php CHANGED
@@ -18,7 +18,9 @@ use Sabberworm\CSS\RuleSet\RuleSet;
18
  use Sabberworm\CSS\Value\CSSString;
19
  use Sabberworm\CSS\Value\URL;
20
  use Sabberworm\CSS\Value\Value;
21
-
 
 
22
  /**
23
  * A CSSList is the most generic container available. Its contents include RuleSet as well as other CSSList objects.
24
  * Also, it may contain Import and Charset objects stemming from @-rules.
18
  use Sabberworm\CSS\Value\CSSString;
19
  use Sabberworm\CSS\Value\URL;
20
  use Sabberworm\CSS\Value\Value;
21
+ if ( ! defined( 'ABSPATH' ) ) {
22
+ exit;
23
+ }
24
  /**
25
  * A CSSList is the most generic container available. Its contents include RuleSet as well as other CSSList objects.
26
  * Also, it may contain Import and Charset objects stemming from @-rules.
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/CSSList/Document.php CHANGED
@@ -3,7 +3,9 @@
3
  namespace Sabberworm\CSS\CSSList;
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
-
 
 
7
  /**
8
  * The root CSSList of a parsed file. Contains all top-level css contents, mostly declaration blocks, but also any @-rules encountered.
9
  */
3
  namespace Sabberworm\CSS\CSSList;
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  /**
10
  * The root CSSList of a parsed file. Contains all top-level css contents, mostly declaration blocks, but also any @-rules encountered.
11
  */
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/CSSList/KeyFrame.php CHANGED
@@ -3,7 +3,9 @@
3
  namespace Sabberworm\CSS\CSSList;
4
 
5
  use Sabberworm\CSS\Property\AtRule;
6
-
 
 
7
  class KeyFrame extends CSSList implements AtRule {
8
 
9
  private $vendorKeyFrame;
3
  namespace Sabberworm\CSS\CSSList;
4
 
5
  use Sabberworm\CSS\Property\AtRule;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  class KeyFrame extends CSSList implements AtRule {
10
 
11
  private $vendorKeyFrame;
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Comment/Comment.php CHANGED
@@ -3,7 +3,9 @@
3
  namespace Sabberworm\CSS\Comment;
4
 
5
  use Sabberworm\CSS\Renderable;
6
-
 
 
7
  class Comment implements Renderable {
8
  protected $iLineNo;
9
  protected $sComment;
3
  namespace Sabberworm\CSS\Comment;
4
 
5
  use Sabberworm\CSS\Renderable;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  class Comment implements Renderable {
10
  protected $iLineNo;
11
  protected $sComment;
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Comment/Commentable.php CHANGED
@@ -1,7 +1,9 @@
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Comment;
4
-
 
 
5
  interface Commentable {
6
 
7
  /**
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Comment;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  interface Commentable {
8
 
9
  /**
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/OutputFormat.php CHANGED
@@ -3,7 +3,9 @@
3
  namespace Sabberworm\CSS;
4
 
5
  use Sabberworm\CSS\Parsing\OutputException;
6
-
 
 
7
  /**
8
  * Class OutputFormat
9
  *
3
  namespace Sabberworm\CSS;
4
 
5
  use Sabberworm\CSS\Parsing\OutputException;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  /**
10
  * Class OutputFormat
11
  *
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parser.php CHANGED
@@ -4,7 +4,9 @@ namespace Sabberworm\CSS;
4
 
5
  use Sabberworm\CSS\CSSList\Document;
6
  use Sabberworm\CSS\Parsing\ParserState;
7
-
 
 
8
  /**
9
  * Parser class parses CSS from text into a data structure.
10
  */
4
 
5
  use Sabberworm\CSS\CSSList\Document;
6
  use Sabberworm\CSS\Parsing\ParserState;
7
+ if ( ! defined( 'ABSPATH' ) ) {
8
+ exit;
9
+ }
10
  /**
11
  * Parser class parses CSS from text into a data structure.
12
  */
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parsing/OutputException.php CHANGED
@@ -1,7 +1,9 @@
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Parsing;
4
-
 
 
5
  /**
6
  * Thrown if the CSS parsers attempts to print something invalid
7
  */
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Parsing;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  /**
8
  * Thrown if the CSS parsers attempts to print something invalid
9
  */
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parsing/ParserState.php CHANGED
@@ -4,7 +4,9 @@ namespace Sabberworm\CSS\Parsing;
4
  use Sabberworm\CSS\Comment\Comment;
5
  use Sabberworm\CSS\Parsing\UnexpectedTokenException;
6
  use Sabberworm\CSS\Settings;
7
-
 
 
8
  class ParserState {
9
  private $oParserSettings;
10
 
4
  use Sabberworm\CSS\Comment\Comment;
5
  use Sabberworm\CSS\Parsing\UnexpectedTokenException;
6
  use Sabberworm\CSS\Settings;
7
+ if ( ! defined( 'ABSPATH' ) ) {
8
+ exit;
9
+ }
10
  class ParserState {
11
  private $oParserSettings;
12
 
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parsing/SourceException.php CHANGED
@@ -1,7 +1,9 @@
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Parsing;
4
-
 
 
5
  class SourceException extends \Exception {
6
  private $iLineNo;
7
  public function __construct($sMessage, $iLineNo = 0) {
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Parsing;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  class SourceException extends \Exception {
8
  private $iLineNo;
9
  public function __construct($sMessage, $iLineNo = 0) {
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parsing/UnexpectedTokenException.php CHANGED
@@ -1,7 +1,9 @@
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Parsing;
4
-
 
 
5
  /**
6
  * Thrown if the CSS parsers encounters a token it did not expect
7
  */
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Parsing;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  /**
8
  * Thrown if the CSS parsers encounters a token it did not expect
9
  */
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/AtRule.php CHANGED
@@ -4,7 +4,9 @@ namespace Sabberworm\CSS\Property;
4
 
5
  use Sabberworm\CSS\Renderable;
6
  use Sabberworm\CSS\Comment\Commentable;
7
-
 
 
8
  interface AtRule extends Renderable, Commentable {
9
  // Since there are more set rules than block rules, we’re whitelisting the block rules and have anything else be treated as a set rule.
10
  const BLOCK_RULES = 'media/document/supports/region-style/font-feature-values';
4
 
5
  use Sabberworm\CSS\Renderable;
6
  use Sabberworm\CSS\Comment\Commentable;
7
+ if ( ! defined( 'ABSPATH' ) ) {
8
+ exit;
9
+ }
10
  interface AtRule extends Renderable, Commentable {
11
  // Since there are more set rules than block rules, we’re whitelisting the block rules and have anything else be treated as a set rule.
12
  const BLOCK_RULES = 'media/document/supports/region-style/font-feature-values';
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/CSSNamespace.php CHANGED
@@ -1,7 +1,9 @@
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Property;
4
-
 
 
5
  /**
6
  * CSSNamespace represents an @namespace rule.
7
  */
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Property;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  /**
8
  * CSSNamespace represents an @namespace rule.
9
  */
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/Charset.php CHANGED
@@ -1,7 +1,9 @@
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Property;
4
-
 
 
5
  /**
6
  * Class representing an @charset rule.
7
  * The following restrictions apply:
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Property;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  /**
8
  * Class representing an @charset rule.
9
  * The following restrictions apply:
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/Import.php CHANGED
@@ -3,7 +3,9 @@
3
  namespace Sabberworm\CSS\Property;
4
 
5
  use Sabberworm\CSS\Value\URL;
6
-
 
 
7
  /**
8
  * Class representing an @import rule.
9
  */
3
  namespace Sabberworm\CSS\Property;
4
 
5
  use Sabberworm\CSS\Value\URL;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  /**
10
  * Class representing an @import rule.
11
  */
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/Selector.php CHANGED
@@ -3,7 +3,9 @@
3
  namespace Sabberworm\CSS\Property;
4
 
5
  use Sabberworm\CSS\Parsing\UnexpectedTokenException;
6
-
 
 
7
  /**
8
  * Class representing a single CSS selector. Selectors have to be split by the comma prior to being passed into this class.
9
  */
3
  namespace Sabberworm\CSS\Property;
4
 
5
  use Sabberworm\CSS\Parsing\UnexpectedTokenException;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  /**
10
  * Class representing a single CSS selector. Selectors have to be split by the comma prior to being passed into this class.
11
  */
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Renderable.php CHANGED
@@ -1,7 +1,9 @@
1
  <?php
2
 
3
  namespace Sabberworm\CSS;
4
-
 
 
5
  interface Renderable {
6
  public function __toString();
7
  public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat);
1
  <?php
2
 
3
  namespace Sabberworm\CSS;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  interface Renderable {
8
  public function __toString();
9
  public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat);
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Rule/Rule.php CHANGED
@@ -7,7 +7,9 @@ use Sabberworm\CSS\Parsing\ParserState;
7
  use Sabberworm\CSS\Renderable;
8
  use Sabberworm\CSS\Value\RuleValueList;
9
  use Sabberworm\CSS\Value\Value;
10
-
 
 
11
  /**
12
  * RuleSets contains Rule objects which always have a key and a value.
13
  * In CSS, Rules are expressed as follows: “key: value[0][0] value[0][1], value[1][0] value[1][1];”
7
  use Sabberworm\CSS\Renderable;
8
  use Sabberworm\CSS\Value\RuleValueList;
9
  use Sabberworm\CSS\Value\Value;
10
+ if ( ! defined( 'ABSPATH' ) ) {
11
+ exit;
12
+ }
13
  /**
14
  * RuleSets contains Rule objects which always have a key and a value.
15
  * In CSS, Rules are expressed as follows: “key: value[0][0] value[0][1], value[1][0] value[1][1];”
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/RuleSet/AtRuleSet.php CHANGED
@@ -3,7 +3,9 @@
3
  namespace Sabberworm\CSS\RuleSet;
4
 
5
  use Sabberworm\CSS\Property\AtRule;
6
-
 
 
7
  /**
8
  * A RuleSet constructed by an unknown @-rule. @font-face rules are rendered into AtRuleSet objects.
9
  */
3
  namespace Sabberworm\CSS\RuleSet;
4
 
5
  use Sabberworm\CSS\Property\AtRule;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  /**
10
  * A RuleSet constructed by an unknown @-rule. @font-face rules are rendered into AtRuleSet objects.
11
  */
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/RuleSet/DeclarationBlock.php CHANGED
@@ -12,7 +12,9 @@ use Sabberworm\CSS\Value\Value;
12
  use Sabberworm\CSS\Value\Size;
13
  use Sabberworm\CSS\Value\Color;
14
  use Sabberworm\CSS\Value\URL;
15
-
 
 
16
  /**
17
  * Declaration blocks are the parts of a css file which denote the rules belonging to a selector.
18
  * Declaration blocks usually appear directly inside a Document or another CSSList (mostly a MediaQuery).
12
  use Sabberworm\CSS\Value\Size;
13
  use Sabberworm\CSS\Value\Color;
14
  use Sabberworm\CSS\Value\URL;
15
+ if ( ! defined( 'ABSPATH' ) ) {
16
+ exit;
17
+ }
18
  /**
19
  * Declaration blocks are the parts of a css file which denote the rules belonging to a selector.
20
  * Declaration blocks usually appear directly inside a Document or another CSSList (mostly a MediaQuery).
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/RuleSet/RuleSet.php CHANGED
@@ -7,7 +7,9 @@ use Sabberworm\CSS\Parsing\ParserState;
7
  use Sabberworm\CSS\Parsing\UnexpectedTokenException;
8
  use Sabberworm\CSS\Renderable;
9
  use Sabberworm\CSS\Rule\Rule;
10
-
 
 
11
  /**
12
  * RuleSet is a generic superclass denoting rules. The typical example for rule sets are declaration block.
13
  * However, unknown At-Rules (like @font-face) are also rule sets.
7
  use Sabberworm\CSS\Parsing\UnexpectedTokenException;
8
  use Sabberworm\CSS\Renderable;
9
  use Sabberworm\CSS\Rule\Rule;
10
+ if ( ! defined( 'ABSPATH' ) ) {
11
+ exit;
12
+ }
13
  /**
14
  * RuleSet is a generic superclass denoting rules. The typical example for rule sets are declaration block.
15
  * However, unknown At-Rules (like @font-face) are also rule sets.
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Settings.php CHANGED
@@ -3,7 +3,9 @@
3
  namespace Sabberworm\CSS;
4
 
5
  use Sabberworm\CSS\Rule\Rule;
6
-
 
 
7
  /**
8
  * Parser settings class.
9
  *
3
  namespace Sabberworm\CSS;
4
 
5
  use Sabberworm\CSS\Rule\Rule;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  /**
10
  * Parser settings class.
11
  *
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/CSSFunction.php CHANGED
@@ -1,7 +1,9 @@
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Value;
4
-
 
 
5
  class CSSFunction extends ValueList {
6
 
7
  protected $sName;
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Value;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  class CSSFunction extends ValueList {
8
 
9
  protected $sName;
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/CSSString.php CHANGED
@@ -4,7 +4,9 @@ namespace Sabberworm\CSS\Value;
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
  use Sabberworm\CSS\Parsing\SourceException;
7
-
 
 
8
  class CSSString extends PrimitiveValue {
9
 
10
  private $sString;
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
  use Sabberworm\CSS\Parsing\SourceException;
7
+ if ( ! defined( 'ABSPATH' ) ) {
8
+ exit;
9
+ }
10
  class CSSString extends PrimitiveValue {
11
 
12
  private $sString;
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/CalcFunction.php CHANGED
@@ -4,7 +4,9 @@ namespace Sabberworm\CSS\Value;
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
  use Sabberworm\CSS\Parsing\UnexpectedTokenException;
7
-
 
 
8
  class CalcFunction extends CSSFunction {
9
  const T_OPERAND = 1;
10
  const T_OPERATOR = 2;
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
  use Sabberworm\CSS\Parsing\UnexpectedTokenException;
7
+ if ( ! defined( 'ABSPATH' ) ) {
8
+ exit;
9
+ }
10
  class CalcFunction extends CSSFunction {
11
  const T_OPERAND = 1;
12
  const T_OPERATOR = 2;
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/CalcRuleValueList.php CHANGED
@@ -1,7 +1,9 @@
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Value;
4
-
 
 
5
  class CalcRuleValueList extends RuleValueList {
6
  public function __construct($iLineNo = 0) {
7
  parent::__construct(array(), ',', $iLineNo);
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Value;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  class CalcRuleValueList extends RuleValueList {
8
  public function __construct($iLineNo = 0) {
9
  parent::__construct(array(), ',', $iLineNo);
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/Color.php CHANGED
@@ -3,7 +3,9 @@
3
  namespace Sabberworm\CSS\Value;
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
-
 
 
7
  class Color extends CSSFunction {
8
 
9
  public function __construct($aColor, $iLineNo = 0) {
3
  namespace Sabberworm\CSS\Value;
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  class Color extends CSSFunction {
10
 
11
  public function __construct($aColor, $iLineNo = 0) {
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/LineName.php CHANGED
@@ -4,7 +4,9 @@ namespace Sabberworm\CSS\Value;
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
  use Sabberworm\CSS\Parsing\UnexpectedTokenException;
7
-
 
 
8
  class LineName extends ValueList {
9
  public function __construct($aComponents = array(), $iLineNo = 0) {
10
  parent::__construct($aComponents, ' ', $iLineNo);
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
  use Sabberworm\CSS\Parsing\UnexpectedTokenException;
7
+ if ( ! defined( 'ABSPATH' ) ) {
8
+ exit;
9
+ }
10
  class LineName extends ValueList {
11
  public function __construct($aComponents = array(), $iLineNo = 0) {
12
  parent::__construct($aComponents, ' ', $iLineNo);
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/PrimitiveValue.php CHANGED
@@ -1,7 +1,9 @@
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Value;
4
-
 
 
5
  abstract class PrimitiveValue extends Value {
6
  public function __construct($iLineNo = 0) {
7
  parent::__construct($iLineNo);
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Value;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  abstract class PrimitiveValue extends Value {
8
  public function __construct($iLineNo = 0) {
9
  parent::__construct($iLineNo);
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/RuleValueList.php CHANGED
@@ -1,7 +1,9 @@
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Value;
4
-
 
 
5
  class RuleValueList extends ValueList {
6
  public function __construct($sSeparator = ',', $iLineNo = 0) {
7
  parent::__construct(array(), $sSeparator, $iLineNo);
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Value;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  class RuleValueList extends ValueList {
8
  public function __construct($sSeparator = ',', $iLineNo = 0) {
9
  parent::__construct(array(), $sSeparator, $iLineNo);
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/Size.php CHANGED
@@ -3,7 +3,9 @@
3
  namespace Sabberworm\CSS\Value;
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
-
 
 
7
  class Size extends PrimitiveValue {
8
 
9
  const ABSOLUTE_SIZE_UNITS = 'px/cm/mm/mozmm/in/pt/pc/vh/vw/vm/vmin/vmax/rem'; //vh/vw/vm(ax)/vmin/rem are absolute insofar as they don’t scale to the immediate parent (only the viewport)
3
  namespace Sabberworm\CSS\Value;
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  class Size extends PrimitiveValue {
10
 
11
  const ABSOLUTE_SIZE_UNITS = 'px/cm/mm/mozmm/in/pt/pc/vh/vw/vm/vmin/vmax/rem'; //vh/vw/vm(ax)/vmin/rem are absolute insofar as they don’t scale to the immediate parent (only the viewport)
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/URL.php CHANGED
@@ -3,7 +3,9 @@
3
  namespace Sabberworm\CSS\Value;
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
-
 
 
7
  class URL extends PrimitiveValue {
8
 
9
  private $oURL;
3
  namespace Sabberworm\CSS\Value;
4
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
  class URL extends PrimitiveValue {
10
 
11
  private $oURL;
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/Value.php CHANGED
@@ -5,7 +5,9 @@ namespace Sabberworm\CSS\Value;
5
  use Sabberworm\CSS\Parsing\ParserState;
6
  use Sabberworm\CSS\Parsing\UnexpectedTokenException;
7
  use Sabberworm\CSS\Renderable;
8
-
 
 
9
  abstract class Value implements Renderable {
10
  protected $iLineNo;
11
 
5
  use Sabberworm\CSS\Parsing\ParserState;
6
  use Sabberworm\CSS\Parsing\UnexpectedTokenException;
7
  use Sabberworm\CSS\Renderable;
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit;
10
+ }
11
  abstract class Value implements Renderable {
12
  protected $iLineNo;
13
 
includes/vendor/css-parser/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/ValueList.php CHANGED
@@ -1,7 +1,9 @@
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Value;
4
-
 
 
5
  abstract class ValueList extends Value {
6
 
7
  protected $aComponents;
1
  <?php
2
 
3
  namespace Sabberworm\CSS\Value;
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
  abstract class ValueList extends Value {
8
 
9
  protected $aComponents;
includes/vendor/vendor-changelog.txt CHANGED
@@ -89,4 +89,5 @@ Reason: To extend the functionality of sidebars and Pagebuilder
89
  59. Condition added in Wistia sanitizer to disable scripts when AMP Page Builder is enabled. #3587
90
  60. Added the Filter to modify attributes in HTML Tag #3685
91
  61. Undefined variable amp_url issue fixed #3776
92
- 62. Warnings fixed of util function to get array component #3778
 
89
  59. Condition added in Wistia sanitizer to disable scripts when AMP Page Builder is enabled. #3587
90
  60. Added the Filter to modify attributes in HTML Tag #3685
91
  61. Undefined variable amp_url issue fixed #3776
92
+ 62. Warnings fixed of util function to get array component #3778
93
+ 63. Need to remove width from inline style on amp images #3741
pagebuilder/modules/map-module.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  $output = '
3
  <amp-iframe {{if_id}}id="{{id}}"{{ifend_id}} class="{{user_class}}" width="{{width}}" height="{{height}}"
4
  sandbox="allow-scripts allow-same-origin"
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  $output = '
6
  <amp-iframe {{if_id}}id="{{id}}"{{ifend_id}} class="{{user_class}}" width="{{width}}" height="{{height}}"
7
  sandbox="allow-scripts allow-same-origin"
pagebuilder/modules/testimonial-mod-module.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  $output = '
3
  <div {{if_id}}id="{{id}}"{{ifend_id}} class="ln-fx {{user_class}}">{{repeater}}</div>
4
  ';
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  $output = '
6
  <div {{if_id}}id="{{id}}"{{ifend_id}} class="ln-fx {{user_class}}">{{repeater}}</div>
7
  ';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.3
7
- Stable tag: 0.9.98.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -191,6 +191,20 @@ You can contact us from [here](https://ampforwp.com/contact/)
191
 
192
  == Changelog ==
193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  = 0.9.98.18 (21th November 2019) =
195
  * Improvement: Show the number of shares with Sassy Social Share #3588
196
  * Fixed: Need to improvment in table code #3664
@@ -218,22 +232,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
218
  * Fixed: Add Hyperlink option to Gallery module images. #3850
219
  * Fixed: Need to remove WPBakery Page Builder Support Option #3855
220
 
221
- = 0.9.98.16 (18th November 2019) =
222
- * Improvement: Need to make compatibility of Advance setting options of yoast seo into AMP #3684
223
- * Improvement: Add filter to modify HTML attributes #3685
224
- * Fixed: Jetpack causing errors after update #3849
225
- * Fixed: Facebook like button is not showing correctly after last update in design3 #3742
226
- * Fixed: [URGENT] Vuukle API KEY missing #3792
227
- * Fixed: Admin tool bar css is not loading #3788
228
- * Fixed: Hide button always showing on page #3762
229
- * Fixed: Meta description are not showing properly in genesis #3761
230
- * Fixed: Non-Responsive tables after version 0.9.98.9 #3746
231
- * Fixed: Wrong amphtml when static page is selected in reading settings along with ?amp endpoint #3717
232
- * Fixed: Homepage posts image alignment issue #3691
233
- * Fixed: Lightbox not working for single images #3683
234
- * Fixed: Notice: Undefined index: category #3829
235
- * Fixed: Notice: Undefined variable: category_name #3827
236
- * Fixed: AMP Dev mode when disabled throwing a fatal error in mobile mode for blog. #3824
237
- * Fixed: Warning when trying to save the option #3800
238
-
239
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.3
7
+ Stable tag: 0.9.98.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
191
 
192
  == Changelog ==
193
 
194
+ = 0.9.98.19 (25th November 2019) =
195
+ * Fixed: image transients should clear automatically #3781
196
+ * Fixed: CTA button in header could be made no follow #3798
197
+ * Fixed: In IOS screen, Menu cross button is not appearing in Swift design #3809
198
+ * Fixed: Comment closed opion need to be removed. #3750
199
+ * Fixed: In template mode Need to show extension setting panel. #3728
200
+ * Fixed: Facebook comment is not changing language when we select another language #3710
201
+ * Fixed: Single Sidebar data is visible in Homepage #3636
202
+ * Fixed: Need to remove width from inline style on amp images #3741
203
+ * Fixed: If permalinks is set as "/index.php/%year%/%monthnum%/%day%/%postname%/" then not working properly with Pagination #3537
204
+ * Fixed: Canonical url is changing in cateogry pages when cateogry name start with amp #3694
205
+ * Fixed: general fixes and improvements part 2 #3621
206
+ * Fixed: Warning: strpos(): Empty needle in /home/statecer/public_html/wp-content/plugins/accelerated-mobile-pages/templates/features.php on line 5788 #3870
207
+
208
  = 0.9.98.18 (21th November 2019) =
209
  * Improvement: Show the number of shares with Sassy Social Share #3588
210
  * Fixed: Need to improvment in table code #3664
232
  * Fixed: Add Hyperlink option to Gallery module images. #3850
233
  * Fixed: Need to remove WPBakery Page Builder Support Option #3855
234
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
235
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
templates/design-manager/design-1/404.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <!doctype html>
3
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
4
  <head>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <!doctype html>
7
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
8
  <head>
templates/design-manager/design-1/archive.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
 
 
 
2
  global $redux_builder_amp, $wp; ?>
3
  <!doctype html>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
1
  <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  global $redux_builder_amp, $wp; ?>
6
  <!doctype html>
7
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
templates/design-manager/design-1/elements/bread-crumbs.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  if ( ( (is_single() && 1 == ampforwp_get_setting('ampforwp-bread-crumb')) || (is_page() && ampforwp_get_setting('ampforwp_pages_breadcrumbs')) ) && !checkAMPforPageBuilderStatus(get_the_ID()) ) {
3
  $home_non_amp = $archive_non_amp = '';
4
  if ( false == $redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  if ( ( (is_single() && 1 == ampforwp_get_setting('ampforwp-bread-crumb')) || (is_page() && ampforwp_get_setting('ampforwp_pages_breadcrumbs')) ) && !checkAMPforPageBuilderStatus(get_the_ID()) ) {
7
  $home_non_amp = $archive_non_amp = '';
8
  if ( false == $redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
templates/design-manager/design-1/elements/comments.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php do_action('ampforwp_before_comment_hook',$this);
 
 
 
 
2
  global $redux_builder_amp;
3
  $enable_comments = "";
4
  $display_comments_on = "";
@@ -104,8 +108,6 @@
104
  <div class="comment-button-wrapper">
105
  <?php if ( comments_open() ) { ?>
106
  <a href="<?php echo esc_url(ampforwp_comment_button_url()); ?>" rel="nofollow" title="<?php echo ampforwp_get_setting('amp-translator-leave-a-comment-text') ?>" ><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ); ?></a> <?php
107
- } else {
108
- echo "<p class='nocomments'>".esc_attr(ampforwp_translation( $redux_builder_amp['amp-translator-comments-closed'], 'Comments are closed' )) ." </p>";
109
  }?>
110
  </div> <?php
111
  } ?>
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ do_action('ampforwp_before_comment_hook',$this);
6
  global $redux_builder_amp;
7
  $enable_comments = "";
8
  $display_comments_on = "";
108
  <div class="comment-button-wrapper">
109
  <?php if ( comments_open() ) { ?>
110
  <a href="<?php echo esc_url(ampforwp_comment_button_url()); ?>" rel="nofollow" title="<?php echo ampforwp_get_setting('amp-translator-leave-a-comment-text') ?>" ><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ); ?></a> <?php
 
 
111
  }?>
112
  </div> <?php
113
  } ?>
templates/design-manager/design-1/elements/content.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp; ?>
 
 
 
 
2
  <?php do_action('ampforwp_before_content_hook',$this); ?>
3
 
4
  <div class="amp-wp-article-content">
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp; ?>
6
  <?php do_action('ampforwp_before_content_hook',$this); ?>
7
 
8
  <div class="amp-wp-article-content">
templates/design-manager/design-1/elements/featured-image.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php do_action('ampforwp_before_featured_image_hook',$this);
 
 
 
 
2
  global $redux_builder_amp, $post;
3
  $amp_html = "";
4
  $caption = "";
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ do_action('ampforwp_before_featured_image_hook',$this);
6
  global $redux_builder_amp, $post;
7
  $amp_html = "";
8
  $caption = "";
templates/design-manager/design-1/elements/meta-info.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php do_action('ampforwp_before_meta_info_hook',$this); ?>
 
 
 
 
2
  <?php global $redux_builder_amp;
3
  if ( is_single() || (is_page() && $redux_builder_amp['meta_page']) ) : ?>
4
  <div class="amp-wp-article-header ampforwp-meta-info <?php if( is_page() && ! $redux_builder_amp['meta_page'] ) {?> hide-meta-info <?php }?>">
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ do_action('ampforwp_before_meta_info_hook',$this); ?>
6
  <?php global $redux_builder_amp;
7
  if ( is_single() || (is_page() && $redux_builder_amp['meta_page']) ) : ?>
8
  <div class="amp-wp-article-header ampforwp-meta-info <?php if( is_page() && ! $redux_builder_amp['meta_page'] ) {?> hide-meta-info <?php }?>">
templates/design-manager/design-1/elements/meta-taxonomy.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  if( isset($redux_builder_amp['ampforwp-cats-single']) && $redux_builder_amp['ampforwp-cats-single'] || isset($redux_builder_amp['ampforwp-tags-single']) && $redux_builder_amp['ampforwp-tags-single'] ) { ?>
3
  <div class="amp-wp-article-header amp-wp-article-category ampforwp-meta-taxonomy ">
4
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  if( isset($redux_builder_amp['ampforwp-cats-single']) && $redux_builder_amp['ampforwp-cats-single'] || isset($redux_builder_amp['ampforwp-tags-single']) && $redux_builder_amp['ampforwp-tags-single'] ) { ?>
7
  <div class="amp-wp-article-header amp-wp-article-category ampforwp-meta-taxonomy ">
8
 
templates/design-manager/design-1/elements/related-posts.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  global $post, $redux_builder_amp;
3
  do_action('ampforwp_above_related_post',$this); //Above Related Posts
4
  $string_number_of_related_posts = $redux_builder_amp['ampforwp-number-of-related-posts'];
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  global $post, $redux_builder_amp;
6
  do_action('ampforwp_above_related_post',$this); //Above Related Posts
7
  $string_number_of_related_posts = $redux_builder_amp['ampforwp-number-of-related-posts'];
templates/design-manager/design-1/elements/simple-comment-button.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  global $redux_builder_amp;
3
  if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support']) {
4
  return;
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  global $redux_builder_amp;
6
  if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support']) {
7
  return;
templates/design-manager/design-1/elements/social-icons.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  // Social share in AMP
3
  $amp_permalink = $facebook_app_id = $amp_permalink_fb_messenger = '';
4
  $facebook_app_id = ampforwp_get_setting('amp-facebook-app-id-messenger');
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  // Social share in AMP
7
  $amp_permalink = $facebook_app_id = $amp_permalink_fb_messenger = '';
8
  $facebook_app_id = ampforwp_get_setting('amp-facebook-app-id-messenger');
templates/design-manager/design-1/elements/title.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  do_action('ampforwp_above_the_title',$this); ?>
3
  <header class="amp-wp-article-header ampforwp-title">
4
  <?php
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  do_action('ampforwp_above_the_title',$this); ?>
7
  <header class="amp-wp-article-header ampforwp-title">
8
  <?php
templates/design-manager/design-1/footer.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  global $redux_builder_amp;
3
  wp_reset_postdata(); ?>
4
  <footer class="amp-wp-footer">
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  global $redux_builder_amp;
6
  wp_reset_postdata(); ?>
7
  <footer class="amp-wp-footer">
templates/design-manager/design-1/frontpage.php CHANGED
@@ -1,5 +1,9 @@
1
  <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
2
- <?php use AMPforWP\AMPVendor\AMP_Post_Template;?>
 
 
 
 
3
  <?php global $redux_builder_amp,$wp;
4
  $post_id = '';
5
  $post_id = ampforwp_get_frontpage_id();
1
  <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
2
+ <?php use AMPforWP\AMPVendor\AMP_Post_Template;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ ?>
7
  <?php global $redux_builder_amp,$wp;
8
  $post_id = '';
9
  $post_id = ampforwp_get_frontpage_id();
templates/design-manager/design-1/header-bar.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp; ?>
 
 
 
 
2
  <?php do_action('ampforwp_admin_menu_bar_front'); ?>
3
  <header id="#top" class="amp-wp-header">
4
  <div class="ampforwp-logo-area" >
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp; ?>
6
  <?php do_action('ampforwp_admin_menu_bar_front'); ?>
7
  <header id="#top" class="amp-wp-header">
8
  <div class="ampforwp-logo-area" >
templates/design-manager/design-1/index.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <?php global $redux_builder_amp; ?>
3
  <!doctype html>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <?php global $redux_builder_amp; ?>
7
  <!doctype html>
8
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
templates/design-manager/design-1/search.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <?php global $redux_builder_amp; ?>
3
  <!doctype html>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <?php global $redux_builder_amp; ?>
7
  <!doctype html>
8
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
templates/design-manager/design-1/single.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <!doctype html>
3
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
4
  <head>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <!doctype html>
7
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
8
  <head>
templates/design-manager/design-1/style.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  use AMPforWP\AMPVendor\AMP_Post_Template;
 
 
 
3
  //add_action('amp_post_template_css', 'ampforwp_additional_style_input');
4
  //function ampforwp_additional_style_input( $amp_template ) {
5
  global $redux_builder_amp;
1
  <?php
2
  use AMPforWP\AMPVendor\AMP_Post_Template;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  //add_action('amp_post_template_css', 'ampforwp_additional_style_input');
7
  //function ampforwp_additional_style_input( $amp_template ) {
8
  global $redux_builder_amp;
templates/design-manager/design-2/404.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <?php global $redux_builder_amp;?>
3
  <!doctype html>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <?php global $redux_builder_amp;?>
7
  <!doctype html>
8
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
templates/design-manager/design-2/archive.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <?php global $redux_builder_amp; global $wp; ?>
3
  <!doctype html>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <?php global $redux_builder_amp; global $wp; ?>
7
  <!doctype html>
8
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
templates/design-manager/design-2/elements/bread-crumbs.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  if ( ( (is_single() && 1 == ampforwp_get_setting('ampforwp-bread-crumb')) || (is_page() && ampforwp_get_setting('ampforwp_pages_breadcrumbs')) ) && !checkAMPforPageBuilderStatus(get_the_ID()) ) {
3
  $home_non_amp = $archive_non_amp = '';
4
  if ( false == $redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  if ( ( (is_single() && 1 == ampforwp_get_setting('ampforwp-bread-crumb')) || (is_page() && ampforwp_get_setting('ampforwp_pages_breadcrumbs')) ) && !checkAMPforPageBuilderStatus(get_the_ID()) ) {
7
  $home_non_amp = $archive_non_amp = '';
8
  if ( false == $redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
templates/design-manager/design-2/elements/comments.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php do_action('ampforwp_before_comment_hook',$this);
 
 
 
 
2
  global $redux_builder_amp;
3
  $enable_comments = "";
4
  $display_comments_on = "";
@@ -105,8 +109,6 @@
105
  <?php if ( comments_open() ) { ?>
106
  <a href="<?php echo ampforwp_comment_button_url(); ?>" rel="nofollow" title="<?php echo ampforwp_get_setting('amp-translator-leave-a-comment-text') ?>"><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ); ?></a> <?php
107
 
108
- } else {
109
- echo "<p class='nocomments'>".esc_attr(ampforwp_translation( $redux_builder_amp['amp-translator-comments-closed'], 'Comments are closed' )) ." </p>";
110
  }?>
111
  </div> <?php
112
  } ?>
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ do_action('ampforwp_before_comment_hook',$this);
6
  global $redux_builder_amp;
7
  $enable_comments = "";
8
  $display_comments_on = "";
109
  <?php if ( comments_open() ) { ?>
110
  <a href="<?php echo ampforwp_comment_button_url(); ?>" rel="nofollow" title="<?php echo ampforwp_get_setting('amp-translator-leave-a-comment-text') ?>"><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ); ?></a> <?php
111
 
 
 
112
  }?>
113
  </div> <?php
114
  } ?>
templates/design-manager/design-2/elements/featured-image.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php do_action('ampforwp_before_featured_image_hook',$this);
 
 
 
 
2
  global $redux_builder_amp, $post;
3
  $amp_html = "";
4
  $caption = "";
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ do_action('ampforwp_before_featured_image_hook',$this);
6
  global $redux_builder_amp, $post;
7
  $amp_html = "";
8
  $caption = "";
templates/design-manager/design-2/elements/meta-info.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php do_action('ampforwp_before_meta_info_hook',$this);
 
 
 
 
2
  global $redux_builder_amp;
3
  if ( is_single() || (is_page() && $redux_builder_amp['meta_page']) ) : ?>
4
  <div class="amp-wp-article-header ampforwp-meta-info <?php if( is_page() && ! $redux_builder_amp['meta_page'] ) {?> hide-meta-info <?php }?>">
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ do_action('ampforwp_before_meta_info_hook',$this);
6
  global $redux_builder_amp;
7
  if ( is_single() || (is_page() && $redux_builder_amp['meta_page']) ) : ?>
8
  <div class="amp-wp-article-header ampforwp-meta-info <?php if( is_page() && ! $redux_builder_amp['meta_page'] ) {?> hide-meta-info <?php }?>">
templates/design-manager/design-2/elements/meta-taxonomy.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  if( isset($redux_builder_amp['ampforwp-tags-single']) && $redux_builder_amp['ampforwp-tags-single']) { ?>
3
  <div class="amp-wp-article-header amp-wp-article-category ampforwp-meta-taxonomy ">
4
  <?php $ampforwp_tags= get_the_terms( $this->ID, 'post_tag' );
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  if( isset($redux_builder_amp['ampforwp-tags-single']) && $redux_builder_amp['ampforwp-tags-single']) { ?>
7
  <div class="amp-wp-article-header amp-wp-article-category ampforwp-meta-taxonomy ">
8
  <?php $ampforwp_tags= get_the_terms( $this->ID, 'post_tag' );
templates/design-manager/design-2/elements/related-posts.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  global $post, $redux_builder_amp;
3
  do_action('ampforwp_above_related_post',$this); //Above Related Posts
4
  $string_number_of_related_posts = $redux_builder_amp['ampforwp-number-of-related-posts'];
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  global $post, $redux_builder_amp;
6
  do_action('ampforwp_above_related_post',$this); //Above Related Posts
7
  $string_number_of_related_posts = $redux_builder_amp['ampforwp-number-of-related-posts'];
templates/design-manager/design-2/elements/simple-comment-button.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  global $redux_builder_amp;
3
  if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support'] || $redux_builder_amp['ampforwp-facebook-comments-support']) {
4
  return;
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  global $redux_builder_amp;
6
  if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support'] || $redux_builder_amp['ampforwp-facebook-comments-support']) {
7
  return;
templates/design-manager/design-2/elements/social-icons.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  // Social share in AMP
3
  $amp_permalink = $facebook_app_id = $amp_permalink_fb_messenger = '';
4
  $facebook_app_id = ampforwp_get_setting('amp-facebook-app-id-messenger');
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  // Social share in AMP
7
  $amp_permalink = $facebook_app_id = $amp_permalink_fb_messenger = '';
8
  $facebook_app_id = ampforwp_get_setting('amp-facebook-app-id-messenger');
templates/design-manager/design-2/elements/title.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  do_action('ampforwp_above_the_title',$this); ?>
3
  <header class="amp-wp-article-header ampforwp-title">
4
  <?php
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  do_action('ampforwp_above_the_title',$this); ?>
7
  <header class="amp-wp-article-header ampforwp-title">
8
  <?php
templates/design-manager/design-2/footer.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  wp_reset_postdata();?>
3
  <footer class="container">
4
  <div id="footer">
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  wp_reset_postdata();?>
7
  <footer class="container">
8
  <div id="footer">
templates/design-manager/design-2/frontpage.php CHANGED
@@ -1,5 +1,9 @@
1
  <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
- use AMPforWP\AMPVendor\AMP_Post_Template; ?>
 
 
 
 
3
  <?php global $redux_builder_amp , $wp;
4
  $post_id = '';
5
  $post_id = ampforwp_get_frontpage_id();
1
  <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ use AMPforWP\AMPVendor\AMP_Post_Template;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ ?>
7
  <?php global $redux_builder_amp , $wp;
8
  $post_id = '';
9
  $post_id = ampforwp_get_frontpage_id();
templates/design-manager/design-2/header-bar.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp; ?>
 
 
 
 
2
  <?php do_action('ampforwp_admin_menu_bar_front'); ?>
3
  <header class="container design2-header">
4
  <div id="headerwrap">
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp; ?>
6
  <?php do_action('ampforwp_admin_menu_bar_front'); ?>
7
  <header class="container design2-header">
8
  <div id="headerwrap">
templates/design-manager/design-2/index.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <?php global $redux_builder_amp; ?>
3
  <!doctype html>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <?php global $redux_builder_amp; ?>
7
  <!doctype html>
8
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
templates/design-manager/design-2/search.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <?php global $redux_builder_amp; ?>
3
  <!doctype html>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <?php global $redux_builder_amp; ?>
7
  <!doctype html>
8
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
templates/design-manager/design-2/single.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <?php global $redux_builder_amp;?>
3
  <!doctype html>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <?php global $redux_builder_amp;?>
7
  <!doctype html>
8
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
templates/design-manager/design-2/style.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  use AMPforWP\AMPVendor\AMP_Post_Template;
 
 
 
3
  global $redux_builder_amp;
4
  // add_action( 'amp_post_template_head', function() {
5
  // remove_action( 'amp_post_template_head', 'amp_post_template_add_fonts' );
1
  <?php
2
  use AMPforWP\AMPVendor\AMP_Post_Template;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  global $redux_builder_amp;
7
  // add_action( 'amp_post_template_head', function() {
8
  // remove_action( 'amp_post_template_head', 'amp_post_template_add_fonts' );
templates/design-manager/design-3/404.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <?php global $redux_builder_amp; ?>
3
  <!doctype html>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <?php global $redux_builder_amp; ?>
7
  <!doctype html>
8
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
templates/design-manager/design-3/archive.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <?php global $redux_builder_amp, $wp, $wp_query; ?>
3
  <!doctype html>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <?php global $redux_builder_amp, $wp, $wp_query; ?>
7
  <!doctype html>
8
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
templates/design-manager/design-3/elements/bread-crumbs.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  if ( ( (is_single() && 1 == ampforwp_get_setting('ampforwp-bread-crumb')) || (is_page() && ampforwp_get_setting('ampforwp_pages_breadcrumbs')) ) && !checkAMPforPageBuilderStatus(get_the_ID()) ) {
3
  $home_non_amp = $archive_non_amp = '';
4
  if ( false == $redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  if ( ( (is_single() && 1 == ampforwp_get_setting('ampforwp-bread-crumb')) || (is_page() && ampforwp_get_setting('ampforwp_pages_breadcrumbs')) ) && !checkAMPforPageBuilderStatus(get_the_ID()) ) {
7
  $home_non_amp = $archive_non_amp = '';
8
  if ( false == $redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
templates/design-manager/design-3/elements/comments.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php do_action('ampforwp_before_comment_hook',$this);
 
 
 
 
2
  global $redux_builder_amp;
3
  $enable_comments = "";
4
  $display_comments_on = "";
@@ -104,8 +108,6 @@
104
  <div class="comment-button-wrapper">
105
  <?php if ( comments_open() ) { ?>
106
  <a href="<?php echo esc_url(ampforwp_comment_button_url()); ?>" rel="nofollow" title="<?php echo ampforwp_get_setting('amp-translator-leave-a-comment-text') ?>"><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ); ?></a> <?php
107
- } else {
108
- echo "<p class='nocomments'>".esc_attr(ampforwp_translation( $redux_builder_amp['amp-translator-comments-closed'], 'Comments are closed' )) ." </p>";
109
  }?>
110
  </div> <?php
111
  } ?>
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ do_action('ampforwp_before_comment_hook',$this);
6
  global $redux_builder_amp;
7
  $enable_comments = "";
8
  $display_comments_on = "";
108
  <div class="comment-button-wrapper">
109
  <?php if ( comments_open() ) { ?>
110
  <a href="<?php echo esc_url(ampforwp_comment_button_url()); ?>" rel="nofollow" title="<?php echo ampforwp_get_setting('amp-translator-leave-a-comment-text') ?>"><?php echo ampforwp_translation( $redux_builder_amp['amp-translator-leave-a-comment-text'], 'Leave a Comment' ); ?></a> <?php
 
 
111
  }?>
112
  </div> <?php
113
  } ?>
templates/design-manager/design-3/elements/featured-image.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php do_action('ampforwp_before_featured_image_hook',$this);
 
 
 
 
2
  global $redux_builder_amp, $post;
3
  $featured_image = "";
4
  $amp_html = "";
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ do_action('ampforwp_before_featured_image_hook',$this);
6
  global $redux_builder_amp, $post;
7
  $featured_image = "";
8
  $amp_html = "";
templates/design-manager/design-3/elements/meta-info.php CHANGED
@@ -1,5 +1,8 @@
1
-
2
- <?php do_action('ampforwp_before_meta_info_hook',$this); ?>
 
 
 
3
  <?php global $redux_builder_amp;
4
  if ( is_single() || (is_page() && $redux_builder_amp['meta_page']) ) : ?>
5
  <div class="amp-wp-content amp-wp-article-header ampforwp-meta-info">
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ do_action('ampforwp_before_meta_info_hook',$this); ?>
6
  <?php global $redux_builder_amp;
7
  if ( is_single() || (is_page() && $redux_builder_amp['meta_page']) ) : ?>
8
  <div class="amp-wp-content amp-wp-article-header ampforwp-meta-info">
templates/design-manager/design-3/elements/meta-taxonomy.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  if( isset($redux_builder_amp['ampforwp-tags-single']) && $redux_builder_amp['ampforwp-tags-single']) { ?>
3
  <div class="amp-wp-content amp-wp-article-tags amp-wp-article-category ampforwp-meta-taxonomy ">
4
  <?php
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  if( isset($redux_builder_amp['ampforwp-tags-single']) && $redux_builder_amp['ampforwp-tags-single']) { ?>
7
  <div class="amp-wp-content amp-wp-article-tags amp-wp-article-category ampforwp-meta-taxonomy ">
8
  <?php
templates/design-manager/design-3/elements/related-posts.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  global $post, $redux_builder_amp;
3
  do_action('ampforwp_above_related_post',$this); //Above Related Posts
4
  $string_number_of_related_posts = $redux_builder_amp['ampforwp-number-of-related-posts'];
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  global $post, $redux_builder_amp;
6
  do_action('ampforwp_above_related_post',$this); //Above Related Posts
7
  $string_number_of_related_posts = $redux_builder_amp['ampforwp-number-of-related-posts'];
templates/design-manager/design-3/elements/simple-comment-button.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  global $redux_builder_amp;
3
  if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support'] || $redux_builder_amp['ampforwp-facebook-comments-support']) {
4
  return;
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  global $redux_builder_amp;
6
  if (!comments_open() || $redux_builder_amp['ampforwp-disqus-comments-support'] || $redux_builder_amp['ampforwp-facebook-comments-support']) {
7
  return;
templates/design-manager/design-3/elements/social-icons.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp, $post;
 
 
 
 
2
  // Social share in AMP
3
  $amp_permalink = $facebook_app_id = $amp_permalink_fb_messenger = '';
4
  $facebook_app_id = ampforwp_get_setting('amp-facebook-app-id-messenger');
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp, $post;
6
  // Social share in AMP
7
  $amp_permalink = $facebook_app_id = $amp_permalink_fb_messenger = '';
8
  $facebook_app_id = ampforwp_get_setting('amp-facebook-app-id-messenger');
templates/design-manager/design-3/elements/title.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  do_action('ampforwp_above_the_title',$this); ?>
3
  <header class="amp-wp-content amp-wp-article-header ampforwp-title">
4
  <?php
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  do_action('ampforwp_above_the_title',$this); ?>
7
  <header class="amp-wp-content amp-wp-article-header ampforwp-title">
8
  <?php
templates/design-manager/design-3/footer.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  wp_reset_postdata();?>
3
  <footer class="footer_wrapper container">
4
  <div id="footer">
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  wp_reset_postdata();?>
7
  <footer class="footer_wrapper container">
8
  <div id="footer">
templates/design-manager/design-3/frontpage.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
2
  <?php use AMPforWP\AMPVendor\AMP_Post_Template;
 
 
 
3
  global $redux_builder_amp,$wp;
4
  $post_id = '';
5
  $post_id = ampforwp_get_frontpage_id();
1
  <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
2
  <?php use AMPforWP\AMPVendor\AMP_Post_Template;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  global $redux_builder_amp,$wp;
7
  $post_id = '';
8
  $post_id = ampforwp_get_frontpage_id();
templates/design-manager/design-3/header-bar.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  if(isset($redux_builder_amp['ampforwp-amp-menu']) && $redux_builder_amp['ampforwp-amp-menu']){ ?>
3
  <amp-sidebar id='sidebar'
4
  layout="nodisplay"
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  if(isset($redux_builder_amp['ampforwp-amp-menu']) && $redux_builder_amp['ampforwp-amp-menu']){ ?>
7
  <amp-sidebar id='sidebar'
8
  layout="nodisplay"
templates/design-manager/design-3/index.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <?php global $redux_builder_amp; ?>
3
  <!doctype html>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <?php global $redux_builder_amp; ?>
7
  <!doctype html>
8
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
templates/design-manager/design-3/search.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <?php global $redux_builder_amp; ?>
3
  <!doctype html>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <?php global $redux_builder_amp; ?>
7
  <!doctype html>
8
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
templates/design-manager/design-3/single.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;?>
 
 
 
 
2
  <?php global $redux_builder_amp; ?>
3
  <!doctype html>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
1
+ <?php use AMPforWP\AMPVendor\AMP_HTML_Utils;
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
  <?php global $redux_builder_amp; ?>
7
  <!doctype html>
8
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
templates/design-manager/design-3/style.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
  use AMPforWP\AMPVendor\AMP_Post_Template;
 
 
 
3
  //add_action('amp_post_template_css', 'ampforwp_additional_style_input_3');
4
  //function ampforwp_additional_style_input_3( $amp_template ) {
5
  global $redux_builder_amp;
1
  <?php
2
  use AMPforWP\AMPVendor\AMP_Post_Template;
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
  //add_action('amp_post_template_css', 'ampforwp_additional_style_input_3');
7
  //function ampforwp_additional_style_input_3( $amp_template ) {
8
  global $redux_builder_amp;
templates/design-manager/swift/404.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php amp_header(); ?>
 
 
 
 
2
  <div class="sp">
3
  <div class="cntr menu-btn">
4
  <h2 class="amp-post-title">
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ amp_header(); ?>
6
  <div class="sp">
7
  <div class="cntr menu-btn">
8
  <h2 class="amp-post-title">
templates/design-manager/swift/archive.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  amp_header() ?>
3
  <div class="cntr archive">
4
  <div class="arch-tlt">
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  amp_header() ?>
7
  <div class="cntr archive">
8
  <div class="arch-tlt">
templates/design-manager/swift/footer.php CHANGED
@@ -1,5 +1,9 @@
1
  </div>
2
- <?php global $redux_builder_amp ?>
 
 
 
 
3
 
4
  <?php
5
  do_action( 'levelup_foot');
1
  </div>
2
+ <?php
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ global $redux_builder_amp ?>
7
 
8
  <?php
9
  do_action( 'levelup_foot');
templates/design-manager/swift/functions.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  // Loading the Components
3
  // Big Post Image
4
  add_image_size( 'amp-featured-large', 723, 394, true );
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  // Loading the Components
6
  // Big Post Image
7
  add_image_size( 'amp-featured-large', 723, 394, true );
templates/design-manager/swift/header.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp ?>
 
 
 
 
2
  <?php amp_header_core() ?>
3
  <?php
4
  do_action( 'levelup_head');
@@ -239,7 +243,7 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
239
  <div class="h-2">
240
  <?php if( ampforwp_get_setting('signin-button-text') && ampforwp_get_setting('signin-button-link') ){?>
241
  <div class="h-sing">
242
- <a target="_blank" href="<?php echo ampforwp_get_setting('signin-button-link')?>"><?php echo __(ampforwp_get_setting('signin-button-text'), 'accelerated-mobile-pages'); ?></a>
243
  </div>
244
  <?php } ?>
245
  <?php if( isset( $redux_builder_amp['amp-swift-cart-btn'] ) && true == $redux_builder_amp['amp-swift-cart-btn'] ) { ?>
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp ?>
6
  <?php amp_header_core() ?>
7
  <?php
8
  do_action( 'levelup_head');
243
  <div class="h-2">
244
  <?php if( ampforwp_get_setting('signin-button-text') && ampforwp_get_setting('signin-button-link') ){?>
245
  <div class="h-sing">
246
+ <a target="_blank" <?php ampforwp_nofollow_cta_header_link(); ?> href="<?php echo esc_url(ampforwp_get_setting('signin-button-link'))?>"><?php echo esc_html__(ampforwp_get_setting('signin-button-text'), 'accelerated-mobile-pages'); ?></a>
247
  </div>
248
  <?php } ?>
249
  <?php if( isset( $redux_builder_amp['amp-swift-cart-btn'] ) && true == $redux_builder_amp['amp-swift-cart-btn'] ) { ?>
templates/design-manager/swift/index.php CHANGED
@@ -1,8 +1,12 @@
1
- <?php global $redux_builder_amp; ?>
 
 
 
 
2
  <?php amp_header(); ?>
3
  <div class="cntr b-w">
4
- <?php do_action('ampforwp_home_above_loop') ?>
5
  <div class="hmp">
 
6
  <?php
7
  if (is_home() ){
8
  if (get_query_var( 'paged' ) ) {
@@ -72,6 +76,7 @@
72
  <?php endwhile; amp_loop('end'); ?>
73
  <?php do_action('ampforwp_loop_before_pagination') ?>
74
  <?php amp_pagination(); ?>
 
75
  </div>
76
  <?php if(isset($redux_builder_amp['gbl-sidebar']) && $redux_builder_amp['gbl-sidebar'] == '1'){ ?>
77
  <div class="sdbr-right">
@@ -85,7 +90,6 @@
85
  ?>
86
  </div>
87
  <?php } ?>
88
- <?php do_action('ampforwp_home_below_loop') ?>
89
  </div>
90
  <?php //amp_loop_template(); ?>
91
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp; ?>
6
  <?php amp_header(); ?>
7
  <div class="cntr b-w">
 
8
  <div class="hmp">
9
+ <?php do_action('ampforwp_home_above_loop') ?>
10
  <?php
11
  if (is_home() ){
12
  if (get_query_var( 'paged' ) ) {
76
  <?php endwhile; amp_loop('end'); ?>
77
  <?php do_action('ampforwp_loop_before_pagination') ?>
78
  <?php amp_pagination(); ?>
79
+ <?php do_action('ampforwp_home_below_loop') ?>
80
  </div>
81
  <?php if(isset($redux_builder_amp['gbl-sidebar']) && $redux_builder_amp['gbl-sidebar'] == '1'){ ?>
82
  <div class="sdbr-right">
90
  ?>
91
  </div>
92
  <?php } ?>
 
93
  </div>
94
  <?php //amp_loop_template(); ?>
95
 
templates/design-manager/swift/loop.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp, $search_found;
 
 
 
 
2
  $width = 346;
3
  $height = 188;
4
  if( true == $redux_builder_amp['ampforwp-homepage-posts-image-modify-size'] ){
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp, $search_found;
6
  $width = 346;
7
  $height = 188;
8
  if( true == $redux_builder_amp['ampforwp-homepage-posts-image-modify-size'] ){
templates/design-manager/swift/page.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  amp_header(); ?>
3
  <div <?php if(!checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ ?>class="sp"<?php } ?>>
4
  <div <?php if(!checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ ?>class="cntr"<?php } ?>>
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  amp_header(); ?>
7
  <div <?php if(!checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ ?>class="sp"<?php } ?>>
8
  <div <?php if(!checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ ?>class="cntr"<?php } ?>>
templates/design-manager/swift/search.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp, $search_found;
 
 
 
 
2
  amp_header() ?>
3
  <div class="cntr archive">
4
  <div class="arch-tlt">
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp, $search_found;
6
  amp_header() ?>
7
  <div class="cntr archive">
8
  <div class="arch-tlt">
templates/design-manager/swift/single.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp; ?>
 
 
 
 
2
  <?php amp_header(); ?>
3
  <?php if(ampforwp_get_setting('single-design-type') == '1'){?>
4
  <div class="sp sgl">
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp; ?>
6
  <?php amp_header(); ?>
7
  <?php if(ampforwp_get_setting('single-design-type') == '1'){?>
8
  <div class="sp sgl">
templates/design-manager/swift/style.php CHANGED
@@ -1,4 +1,8 @@
1
- <?php global $redux_builder_amp;
 
 
 
 
2
  $font_content = '';
3
  $font_content = ampforwp_get_setting('amp_font_selector_content_single');
4
  $header_type = ampforwp_get_setting('header-type');
@@ -241,7 +245,13 @@ if($redux_builder_amp['menu-type'] == '1'){?>
241
  .tg:checked + .hamb-mnu > .m-ctr {margin-left: calc(100% - <?php echo esc_html(ampforwp_get_setting('header-overlay-width'))?>);}
242
  .m-ctr{margin-left: 100%;float: right;}
243
  <?php } ?>
244
- .tg:checked + .hamb-mnu > .fsc{display: block;background: rgba(0,0,0,.9);height:-webkit-fill-available;}
 
 
 
 
 
 
245
  .t-btn, .c-btn{cursor: pointer;}
246
  .t-btn:after{
247
  <?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
@@ -500,7 +510,6 @@ if( is_page() || ampforwp_is_front_page() || ampforwp_polylang_front_page() ){?>
500
  #respond p {margin: 12px 0;}
501
  <?php if( !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && ampforwp_get_comments_status() && true == ampforwp_get_setting('wordpress-comments-support') ){ ?>
502
  .amp-comment-button{background-color: <?php echo ampforwp_sanitize_color($swift_cs_color) ?>;font-size: 15px;float: none;margin: 30px auto 0px auto;text-align: center;border-radius: 3px;font-weight: 600;width:250px;}
503
- .amp-comment-button .nocomments{color: #fff;display: block;padding: 7px 0px 8px 0px;}
504
  .cmts{width:100%;display:inline-block;clear:both;margin-top:40px;}
505
  .amp-comment-button{background-color: <?php echo ampforwp_sanitize_color($swift_cs_color) ?>;font-size: 15px;float: none;margin: 30px auto 0px auto;text-align: center;border-radius: 3px;font-weight: 600;width:250px;}
506
  .amp-comment-button a{color: #fff;display: block;padding: 7px 0px 8px 0px;}
@@ -693,6 +702,12 @@ padding-left: 20px;
693
  <?php } ?>
694
  line-height: 1.2;top: 6px;}
695
  .sp-rt p strong, .pg p strong{font-weight: 700;}
 
 
 
 
 
 
696
  .m-ctr {
697
  position: fixed;
698
  overflow: scroll;
@@ -1934,7 +1949,7 @@ if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
1934
  padding-bottom:40px;
1935
  }
1936
  .s_stk{
1937
- z-index:99999;
1938
  }
1939
  .body.single-post .adsforwp-stick-ad, .body.single-post amp-sticky-ad{
1940
  padding-bottom:45px;
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ global $redux_builder_amp;
6
  $font_content = '';
7
  $font_content = ampforwp_get_setting('amp_font_selector_content_single');
8
  $header_type = ampforwp_get_setting('header-type');
245
  .tg:checked + .hamb-mnu > .m-ctr {margin-left: calc(100% - <?php echo esc_html(ampforwp_get_setting('header-overlay-width'))?>);}
246
  .m-ctr{margin-left: 100%;float: right;}
247
  <?php } ?>
248
+ .tg:checked + .hamb-mnu > .fsc{display: block;background: rgba(0,0,0,.9);
249
+ <?php if(ampforwp_get_setting('amp-sticky-header') == '1'){?>
250
+ height:100vh;
251
+ <?php } else { ?>
252
+ height:100%;
253
+ <?php } // sticky condition ends ?>
254
+ }
255
  .t-btn, .c-btn{cursor: pointer;}
256
  .t-btn:after{
257
  <?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
510
  #respond p {margin: 12px 0;}
511
  <?php if( !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && ampforwp_get_comments_status() && true == ampforwp_get_setting('wordpress-comments-support') ){ ?>
512
  .amp-comment-button{background-color: <?php echo ampforwp_sanitize_color($swift_cs_color) ?>;font-size: 15px;float: none;margin: 30px auto 0px auto;text-align: center;border-radius: 3px;font-weight: 600;width:250px;}
 
513
  .cmts{width:100%;display:inline-block;clear:both;margin-top:40px;}
514
  .amp-comment-button{background-color: <?php echo ampforwp_sanitize_color($swift_cs_color) ?>;font-size: 15px;float: none;margin: 30px auto 0px auto;text-align: center;border-radius: 3px;font-weight: 600;width:250px;}
515
  .amp-comment-button a{color: #fff;display: block;padding: 7px 0px 8px 0px;}
702
  <?php } ?>
703
  line-height: 1.2;top: 6px;}
704
  .sp-rt p strong, .pg p strong{font-weight: 700;}
705
+ @supports (-webkit-overflow-scrolling: touch) {
706
+ .m-ctr{overflow:initial;}
707
+ }
708
+ @supports not (-webkit-overflow-scrolling: touch) {
709
+ .m-ctr{overflow:scroll;}
710
+ }
711
  .m-ctr {
712
  position: fixed;
713
  overflow: scroll;
1949
  padding-bottom:40px;
1950
  }
1951
  .s_stk{
1952
+ z-index:99;
1953
  }
1954
  .body.single-post .adsforwp-stick-ad, .body.single-post amp-sticky-ad{
1955
  padding-bottom:45px;
templates/features.php CHANGED
@@ -318,7 +318,10 @@ define('AMPFORWP_COMMENTS_PER_PAGE', ampforwp_define_comments_number() );
318
  // If its custom permalink with /index.php/ #3537
319
  if ( (is_home() || is_archive()) && false !== strpos($wp->matched_rule, 'index.php') && false === strpos( home_url( $wp->request ), 'index.php') ) {
320
  $new_url = home_url( 'index.php' );
321
- $new_url = trailingslashit($new_url);
 
 
 
322
  }
323
  $category_path = $wp->request;
324
  if ( null != $category_path && true != $endpoint_check) {
@@ -4004,8 +4007,13 @@ function ampforwp_rel_canonical_home_archive(){
4004
  if ( is_home() || is_front_page() || (is_archive() && ampforwp_get_setting('ampforwp-archive-support')) ) {
4005
  $current_archive_url = home_url( $wp->request );
4006
  $amp_url = trailingslashit($current_archive_url);
4007
- $remove = '/'. AMPFORWP_AMP_QUERY_VAR;
4008
- $amp_url = str_replace($remove, '', $amp_url);
 
 
 
 
 
4009
  $query_arg_array = $wp->query_vars;
4010
  if( array_key_exists( "page" , $query_arg_array ) ) {
4011
  $page = $wp->query_vars['page'];
@@ -5785,7 +5793,7 @@ function ampforwp_remove_ahref_lightbox_in_amp( $content ) {
5785
  $href_url = end($href_url);
5786
  $href_url = pathinfo($href_url, PATHINFO_FILENAME);
5787
  }
5788
- if($matches[3][$i] == $matches[7][$i] || strpos($matches[7][$i], $href_url) !== false){
5789
  $href = $matches[3][$i];
5790
  $src = $matches[7][$i];
5791
  $href_src = str_replace( '/', '\/', esc_url($href));
@@ -7269,4 +7277,11 @@ if(!function_exists('ampforwp_sassy_icon_style')){
7269
  }
7270
  if(function_exists('heateor_sss_run')){
7271
  add_action('amp_post_template_css', 'ampforwp_sassy_icon_style');
 
 
 
 
 
 
 
7272
  }
318
  // If its custom permalink with /index.php/ #3537
319
  if ( (is_home() || is_archive()) && false !== strpos($wp->matched_rule, 'index.php') && false === strpos( home_url( $wp->request ), 'index.php') ) {
320
  $new_url = home_url( 'index.php' );
321
+ $o_url = home_url();
322
+ $new_url = str_replace($o_url, $new_url, $amp_url);
323
+ $new_url = user_trailingslashit($new_url);
324
+ $amp_url = $new_url;
325
  }
326
  $category_path = $wp->request;
327
  if ( null != $category_path && true != $endpoint_check) {
4007
  if ( is_home() || is_front_page() || (is_archive() && ampforwp_get_setting('ampforwp-archive-support')) ) {
4008
  $current_archive_url = home_url( $wp->request );
4009
  $amp_url = trailingslashit($current_archive_url);
4010
+ $amp_url = explode('/', $amp_url);
4011
+ $amp_url = array_flip($amp_url);
4012
+ if(isset($amp_url['amp'])){
4013
+ unset($amp_url['amp']);
4014
+ }
4015
+ $amp_url = array_flip($amp_url);
4016
+ $amp_url = implode('/', $amp_url);
4017
  $query_arg_array = $wp->query_vars;
4018
  if( array_key_exists( "page" , $query_arg_array ) ) {
4019
  $page = $wp->query_vars['page'];
5793
  $href_url = end($href_url);
5794
  $href_url = pathinfo($href_url, PATHINFO_FILENAME);
5795
  }
5796
+ if($matches[3][$i] == $matches[7][$i] || (!empty($href_url) && strpos($matches[7][$i], $href_url) !== false)){
5797
  $href = $matches[3][$i];
5798
  $src = $matches[7][$i];
5799
  $href_src = str_replace( '/', '\/', esc_url($href));
7277
  }
7278
  if(function_exists('heateor_sss_run')){
7279
  add_action('amp_post_template_css', 'ampforwp_sassy_icon_style');
7280
+ }
7281
+ function ampforwp_nofollow_cta_header_link(){
7282
+ if(true == ampforwp_get_setting('ampforwp-header-cta-link-nofollow')){
7283
+ echo 'rel=nofollow';
7284
+ return;
7285
+ }
7286
+ return false;
7287
  }
templates/report-bugs.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  if ( ! function_exists( 'ampforwp_reporting_bugs' ) ) {
3
  function ampforwp_reporting_bugs($sections){
4
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  if ( ! function_exists( 'ampforwp_reporting_bugs' ) ) {
6
  function ampforwp_reporting_bugs($sections){
7
 
templates/template-mode/admin-settings.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  add_filter('ampforwp_enabled_setting_options', 'add_theme_mode_support');
3
  add_filter("redux/options/redux_builder_amp/sections", 'ampforwp_settings_to_cache');
4
  add_action( 'admin_footer', 'ampforwp_enqueue_template_mode_scripts' );
@@ -9,7 +12,7 @@ function add_theme_mode_support($modesArray){
9
  if ( ! function_exists( 'ampforwp_settings_to_cache' ) ) {
10
  function ampforwp_settings_to_cache($sections){
11
  $seoSection = array();
12
- $unsetArray = array('basic','design', 'opt-structured-data', 'amp-notifications', 'ampforwp-push-notifications', 'disqus-comments', 'fb-instant-article', 'hide-amp-section', 'amp-advance', 'amp-translator', 'amp-theme-settings', 'amp-theme-global-subsection', 'amp-theme-header-settings', 'amp-theme-homepage-settings', 'amp-single', 'amp-theme-footer-settings', 'amp-theme-page-settings', 'amp-social', 'ampforwp-date-section', 'amp-design', 'opt-text-subsection', 'amp-content-builder', 'amp-contact', 'amp-e-commerce', 'opt-go-premium', 'opt-choose', 'opt-plugins-manager','ampforwp-new-ux');
13
  $unsetArray = apply_filters('amp_template_mode_hide_opt_array',$unsetArray);
14
  $backupArray = array( 'amp-ads', 'analytics', 'pwa-for-wp', 'amp-performance', 'amp-seo');
15
  $backupArray = apply_filters('amp_template_mode_show_opt_array',$backupArray);
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  add_filter('ampforwp_enabled_setting_options', 'add_theme_mode_support');
6
  add_filter("redux/options/redux_builder_amp/sections", 'ampforwp_settings_to_cache');
7
  add_action( 'admin_footer', 'ampforwp_enqueue_template_mode_scripts' );
12
  if ( ! function_exists( 'ampforwp_settings_to_cache' ) ) {
13
  function ampforwp_settings_to_cache($sections){
14
  $seoSection = array();
15
+ $unsetArray = array('basic','design', 'opt-structured-data', 'amp-notifications', 'ampforwp-push-notifications', 'disqus-comments', 'fb-instant-article', 'hide-amp-section', 'amp-advance', 'amp-translator', 'amp-theme-settings', 'amp-theme-global-subsection', 'amp-theme-header-settings', 'amp-theme-homepage-settings', 'amp-single', 'amp-theme-footer-settings', 'amp-theme-page-settings', 'amp-social', 'ampforwp-date-section', 'amp-design', 'opt-text-subsection', 'amp-content-builder', 'amp-contact', 'amp-e-commerce', 'opt-choose', 'opt-plugins-manager','ampforwp-new-ux');
16
  $unsetArray = apply_filters('amp_template_mode_hide_opt_array',$unsetArray);
17
  $backupArray = array( 'amp-ads', 'analytics', 'pwa-for-wp', 'amp-performance', 'amp-seo');
18
  $backupArray = apply_filters('amp_template_mode_show_opt_array',$backupArray);
templates/template-mode/template-helpers.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  function ampforwp_head(){
3
  do_action('levelup_head');
4
  do_action('levelup_css');
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  function ampforwp_head(){
6
  do_action('levelup_head');
7
  do_action('levelup_css');
templates/template-mode/template-mode.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  Class AMPforWP_theme_mode{
3
  public function __construct(){
4
  }
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
  Class AMPforWP_theme_mode{
6
  public function __construct(){
7
  }