Changeset 2585601
- Timestamp:
- 08/19/2021 05:16:27 PM (5 years ago)
- Location:
- amp-wp
- Files:
-
- 390 added
- 20 edited
-
tags/1.5.13 (added)
-
tags/1.5.13/LICENSE.txt (added)
-
tags/1.5.13/README.txt (added)
-
tags/1.5.13/admin (added)
-
tags/1.5.13/admin/class-amp-wp-admin.php (added)
-
tags/1.5.13/admin/class-amp-wp-meta-box.php (added)
-
tags/1.5.13/admin/css (added)
-
tags/1.5.13/admin/css/amp-wp-accordion.css (added)
-
tags/1.5.13/admin/css/amp-wp-admin.css (added)
-
tags/1.5.13/admin/css/amp-wp-heading.css (added)
-
tags/1.5.13/admin/css/amp-wp-image-radio-button.css (added)
-
tags/1.5.13/admin/css/amp-wp-slider.css (added)
-
tags/1.5.13/admin/css/amp-wp-switch.css (added)
-
tags/1.5.13/admin/css/customizer.css (added)
-
tags/1.5.13/admin/fonts (added)
-
tags/1.5.13/admin/fonts/amp-wp-admin-icons (added)
-
tags/1.5.13/admin/fonts/amp-wp-admin-icons/amp-wp-admin-icons.eot (added)
-
tags/1.5.13/admin/fonts/amp-wp-admin-icons/amp-wp-admin-icons.svg (added)
-
tags/1.5.13/admin/fonts/amp-wp-admin-icons/amp-wp-admin-icons.ttf (added)
-
tags/1.5.13/admin/fonts/amp-wp-admin-icons/amp-wp-admin-icons.woff (added)
-
tags/1.5.13/admin/fonts/amp-wp-admin-icons/ref (added)
-
tags/1.5.13/admin/fonts/amp-wp-admin-icons/ref/fonts (added)
-
tags/1.5.13/admin/fonts/amp-wp-admin-icons/ref/fonts/amp-wp-admin-icons.eot (added)
-
tags/1.5.13/admin/fonts/amp-wp-admin-icons/ref/fonts/amp-wp-admin-icons.svg (added)
-
tags/1.5.13/admin/fonts/amp-wp-admin-icons/ref/fonts/amp-wp-admin-icons.ttf (added)
-
tags/1.5.13/admin/fonts/amp-wp-admin-icons/ref/fonts/amp-wp-admin-icons.woff (added)
-
tags/1.5.13/admin/fonts/amp-wp-admin-icons/ref/icons-reference.html (added)
-
tags/1.5.13/admin/fonts/amp-wp-admin-icons/ref/styles.css (added)
-
tags/1.5.13/admin/images (added)
-
tags/1.5.13/admin/images/about (added)
-
tags/1.5.13/admin/images/about/ampwp-options-panel.svg (added)
-
tags/1.5.13/admin/images/about/analytics.svg (added)
-
tags/1.5.13/admin/images/about/comments.svg (added)
-
tags/1.5.13/admin/images/about/embed-media.svg (added)
-
tags/1.5.13/admin/images/about/footer.svg (added)
-
tags/1.5.13/admin/images/about/gallery-&-lightbox.svg (added)
-
tags/1.5.13/admin/images/about/header-sidebar.svg (added)
-
tags/1.5.13/admin/images/about/icons (added)
-
tags/1.5.13/admin/images/about/icons/100-rtl-compatible.svg (added)
-
tags/1.5.13/admin/images/about/icons/100-valid-amp-contents.svg (added)
-
tags/1.5.13/admin/images/about/icons/100-yoast-seo-compatible.svg (added)
-
tags/1.5.13/admin/images/about/icons/amp-theme-customizer.svg (added)
-
tags/1.5.13/admin/images/about/icons/analytics.svg (added)
-
tags/1.5.13/admin/images/about/icons/auto-ads-for-amp-support.svg (added)
-
tags/1.5.13/admin/images/about/icons/auto-redirect-mobile-users-to-amp.svg (added)
-
tags/1.5.13/admin/images/about/icons/custom-html-css-support.svg (added)
-
tags/1.5.13/admin/images/about/icons/embed-media.svg (added)
-
tags/1.5.13/admin/images/about/icons/enable-disable-amp-on-specific-pages.svg (added)
-
tags/1.5.13/admin/images/about/icons/internal-amp-linking.svg (added)
-
tags/1.5.13/admin/images/about/icons/lightbox-for-images.svg (added)
-
tags/1.5.13/admin/images/about/icons/native-amp-search-functionality.svg (added)
-
tags/1.5.13/admin/images/about/icons/show-hide-components.svg (added)
-
tags/1.5.13/admin/images/about/icons/translations.svg (added)
-
tags/1.5.13/admin/images/about/list-and-classic-view.svg (added)
-
tags/1.5.13/admin/images/about/native-amp-search.svg (added)
-
tags/1.5.13/admin/images/about/notice-bar.svg (added)
-
tags/1.5.13/admin/images/about/related-posts.svg (added)
-
tags/1.5.13/admin/images/about/share-box.svg (added)
-
tags/1.5.13/admin/images/about/slider.svg (added)
-
tags/1.5.13/admin/images/about/welcome-image.svg (added)
-
tags/1.5.13/admin/images/add-ons (added)
-
tags/1.5.13/admin/images/add-ons/contact-form-7-add-on.jpg (added)
-
tags/1.5.13/admin/images/amp-wp-icon.svg (added)
-
tags/1.5.13/admin/images/amp-wp-logo.svg (added)
-
tags/1.5.13/admin/images/blog-list.svg (added)
-
tags/1.5.13/admin/images/blog-normal.svg (added)
-
tags/1.5.13/admin/images/chosen-sprite.png (added)
-
tags/1.5.13/admin/images/chosen-sprite@2x.png (added)
-
tags/1.5.13/admin/images/logo-center-simple.svg (added)
-
tags/1.5.13/admin/images/logo-left-simple.svg (added)
-
tags/1.5.13/admin/images/pixelative.png (added)
-
tags/1.5.13/admin/images/rating-box (added)
-
tags/1.5.13/admin/images/rating-box/heart.png (added)
-
tags/1.5.13/admin/images/rating-box/red-bg-2x.jpg (added)
-
tags/1.5.13/admin/images/rating-box/red-bg.jpg (added)
-
tags/1.5.13/admin/images/rating-box/star.png (added)
-
tags/1.5.13/admin/images/welcome (added)
-
tags/1.5.13/admin/images/welcome/analytics.png (added)
-
tags/1.5.13/admin/images/welcome/configure-layout.png (added)
-
tags/1.5.13/admin/images/welcome/configure-notice-bar.png (added)
-
tags/1.5.13/admin/images/welcome/configure-social-links.png (added)
-
tags/1.5.13/admin/images/welcome/configure-structured-data.png (added)
-
tags/1.5.13/admin/images/welcome/customize.png (added)
-
tags/1.5.13/admin/images/welcome/gdpr.png (added)
-
tags/1.5.13/admin/images/welcome/set-global.png (added)
-
tags/1.5.13/admin/images/welcome/translations.png (added)
-
tags/1.5.13/admin/index.php (added)
-
tags/1.5.13/admin/js (added)
-
tags/1.5.13/admin/js/amp-wp-accordion.js (added)
-
tags/1.5.13/admin/js/amp-wp-admin-ui-kit.js (added)
-
tags/1.5.13/admin/js/amp-wp-admin.js (added)
-
tags/1.5.13/admin/js/amp-wp-slider.js (added)
-
tags/1.5.13/admin/js/amp-wp-switch.js (added)
-
tags/1.5.13/admin/js/chosen.jquery.js (added)
-
tags/1.5.13/admin/js/customize-preview.js (added)
-
tags/1.5.13/admin/js/customizer.js (added)
-
tags/1.5.13/admin/js/select2.js (added)
-
tags/1.5.13/admin/js/tiptip.jquery.min.js (added)
-
tags/1.5.13/admin/partials (added)
-
tags/1.5.13/admin/partials/amp-wp-admin-add-ons.php (added)
-
tags/1.5.13/admin/partials/amp-wp-admin-header.php (added)
-
tags/1.5.13/admin/partials/amp-wp-admin-help.php (added)
-
tags/1.5.13/admin/partials/amp-wp-admin-rating-box.php (added)
-
tags/1.5.13/admin/partials/amp-wp-admin-system-status.php (added)
-
tags/1.5.13/admin/partials/settings (added)
-
tags/1.5.13/admin/partials/settings/amp-wp-admin-analytics.php (added)
-
tags/1.5.13/admin/partials/settings/amp-wp-admin-gdpr.php (added)
-
tags/1.5.13/admin/partials/settings/amp-wp-admin-general.php (added)
-
tags/1.5.13/admin/partials/settings/amp-wp-admin-layout.php (added)
-
tags/1.5.13/admin/partials/settings/amp-wp-admin-notice-bar.php (added)
-
tags/1.5.13/admin/partials/settings/amp-wp-admin-social-links.php (added)
-
tags/1.5.13/admin/partials/settings/amp-wp-admin-structured-data.php (added)
-
tags/1.5.13/admin/partials/settings/amp-wp-admin-third-party-plugins-support.php (added)
-
tags/1.5.13/admin/partials/settings/amp-wp-admin-translation.php (added)
-
tags/1.5.13/admin/partials/welcome (added)
-
tags/1.5.13/admin/partials/welcome/amp-wp-admin-credits.php (added)
-
tags/1.5.13/admin/partials/welcome/amp-wp-admin-features.php (added)
-
tags/1.5.13/admin/partials/welcome/amp-wp-admin-getting-started.php (added)
-
tags/1.5.13/amp-wp.php (added)
-
tags/1.5.13/includes (added)
-
tags/1.5.13/includes/Fastimage.php (added)
-
tags/1.5.13/includes/admin (added)
-
tags/1.5.13/includes/admin/class-amp-wp-add-ons.php (added)
-
tags/1.5.13/includes/admin/class-amp-wp-help.php (added)
-
tags/1.5.13/includes/admin/class-amp-wp-settings.php (added)
-
tags/1.5.13/includes/admin/class-amp-wp-system-status-override-function.php (added)
-
tags/1.5.13/includes/admin/class-amp-wp-system-status.php (added)
-
tags/1.5.13/includes/admin/class-amp-wp-welcome.php (added)
-
tags/1.5.13/includes/admin/settings (added)
-
tags/1.5.13/includes/admin/settings/class-amp-wp-analytics.php (added)
-
tags/1.5.13/includes/admin/settings/class-amp-wp-gdpr.php (added)
-
tags/1.5.13/includes/admin/settings/class-amp-wp-general.php (added)
-
tags/1.5.13/includes/admin/settings/class-amp-wp-layout.php (added)
-
tags/1.5.13/includes/admin/settings/class-amp-wp-notice-bar.php (added)
-
tags/1.5.13/includes/admin/settings/class-amp-wp-social-links.php (added)
-
tags/1.5.13/includes/admin/settings/class-amp-wp-structured-data.php (added)
-
tags/1.5.13/includes/admin/settings/class-amp-wp-third-party-plugins-support.php (added)
-
tags/1.5.13/includes/admin/settings/class-amp-wp-translation.php (added)
-
tags/1.5.13/includes/admin/welcome (added)
-
tags/1.5.13/includes/admin/welcome/class-amp-wp-credits.php (added)
-
tags/1.5.13/includes/admin/welcome/class-amp-wp-features.php (added)
-
tags/1.5.13/includes/admin/welcome/class-amp-wp-getting-started.php (added)
-
tags/1.5.13/includes/class-amp-wp-activator.php (added)
-
tags/1.5.13/includes/class-amp-wp-component-base.php (added)
-
tags/1.5.13/includes/class-amp-wp-component.php (added)
-
tags/1.5.13/includes/class-amp-wp-content-sanitizer.php (added)
-
tags/1.5.13/includes/class-amp-wp-custom-script.php (added)
-
tags/1.5.13/includes/class-amp-wp-deactivator.php (added)
-
tags/1.5.13/includes/class-amp-wp-html-util.php (added)
-
tags/1.5.13/includes/class-amp-wp-i18n.php (added)
-
tags/1.5.13/includes/class-amp-wp-json-ld-generator.php (added)
-
tags/1.5.13/includes/class-amp-wp-loader.php (added)
-
tags/1.5.13/includes/class-amp-wp-menu-walker.php (added)
-
tags/1.5.13/includes/class-amp-wp-plugin-compatibility.php (added)
-
tags/1.5.13/includes/class-amp-wp-redirect-router.php (added)
-
tags/1.5.13/includes/class-amp-wp-rewrite-rules.php (added)
-
tags/1.5.13/includes/class-amp-wp-scripts.php (added)
-
tags/1.5.13/includes/class-amp-wp-styles.php (added)
-
tags/1.5.13/includes/class-amp-wp.php (added)
-
tags/1.5.13/includes/components (added)
-
tags/1.5.13/includes/components/class-amp-wp-carousel-component.php (added)
-
tags/1.5.13/includes/components/class-amp-wp-iframe-component.php (added)
-
tags/1.5.13/includes/components/class-amp-wp-img-component.php (added)
-
tags/1.5.13/includes/components/class-amp-wp-instagram-component.php (added)
-
tags/1.5.13/includes/components/class-amp-wp-playbuzz-component.php (added)
-
tags/1.5.13/includes/customizer (added)
-
tags/1.5.13/includes/customizer/amp-wp-core-customizer.php (added)
-
tags/1.5.13/includes/customizer/class-amp-wp-customize-accordion-control.php (added)
-
tags/1.5.13/includes/customizer/class-amp-wp-customize-divider-control.php (added)
-
tags/1.5.13/includes/customizer/class-amp-wp-customize-heading-control.php (added)
-
tags/1.5.13/includes/customizer/class-amp-wp-customize-image-radio-button-control.php (added)
-
tags/1.5.13/includes/customizer/class-amp-wp-customize-multiple-select-control.php (added)
-
tags/1.5.13/includes/customizer/class-amp-wp-customize-slider-control.php (added)
-
tags/1.5.13/includes/customizer/class-amp-wp-customize-switch-control.php (added)
-
tags/1.5.13/includes/customizer/class-amp-wp-customize.php (added)
-
tags/1.5.13/includes/functions (added)
-
tags/1.5.13/includes/functions/amp-wp-ad-functions.php (added)
-
tags/1.5.13/includes/functions/amp-wp-core-functions.php (added)
-
tags/1.5.13/includes/functions/amp-wp-formatting-functions.php (added)
-
tags/1.5.13/includes/functions/amp-wp-template-functions.php (added)
-
tags/1.5.13/includes/functions/amp-wp-template-hooks.php (added)
-
tags/1.5.13/includes/functions/amp-wp-theme-functions.php (added)
-
tags/1.5.13/includes/functions/amp-wp-third-party-plugins-functions.php (added)
-
tags/1.5.13/includes/functions/amp-wp-utility-functions.php (added)
-
tags/1.5.13/includes/index.php (added)
-
tags/1.5.13/includes/interface-amp-wp-component.php (added)
-
tags/1.5.13/includes/onesignal-integration (added)
-
tags/1.5.13/includes/onesignal-integration/amp-helper-frame.html (added)
-
tags/1.5.13/includes/onesignal-integration/amp-permission-dialog.html (added)
-
tags/1.5.13/includes/sanitizer-rules.php (added)
-
tags/1.5.13/includes/tags-list.php (added)
-
tags/1.5.13/index.php (added)
-
tags/1.5.13/languages (added)
-
tags/1.5.13/languages/amp-wp.pot (added)
-
tags/1.5.13/public (added)
-
tags/1.5.13/public/class-amp-wp-public.php (added)
-
tags/1.5.13/public/css (added)
-
tags/1.5.13/public/css/global (added)
-
tags/1.5.13/public/css/global/global.css (added)
-
tags/1.5.13/public/css/global/global.min.css (added)
-
tags/1.5.13/public/css/global/global.rtl.css (added)
-
tags/1.5.13/public/css/global/global.rtl.min.css (added)
-
tags/1.5.13/public/css/themes (added)
-
tags/1.5.13/public/css/themes/tez (added)
-
tags/1.5.13/public/css/themes/tez/components (added)
-
tags/1.5.13/public/css/themes/tez/components/comments (added)
-
tags/1.5.13/public/css/themes/tez/components/comments/comments.css (added)
-
tags/1.5.13/public/css/themes/tez/components/comments/comments.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/comments/comments.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/components/comments/comments.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/gdpr (added)
-
tags/1.5.13/public/css/themes/tez/components/gdpr/gdpr.css (added)
-
tags/1.5.13/public/css/themes/tez/components/gdpr/gdpr.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/listing (added)
-
tags/1.5.13/public/css/themes/tez/components/listing/listing-1.css (added)
-
tags/1.5.13/public/css/themes/tez/components/listing/listing-1.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/listing/listing-1.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/components/listing/listing-1.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/listing/listing-2.css (added)
-
tags/1.5.13/public/css/themes/tez/components/listing/listing-2.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/listing/listing-2.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/components/listing/listing-2.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/notification (added)
-
tags/1.5.13/public/css/themes/tez/components/notification/notification.css (added)
-
tags/1.5.13/public/css/themes/tez/components/notification/notification.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/pagination (added)
-
tags/1.5.13/public/css/themes/tez/components/pagination/pagination.css (added)
-
tags/1.5.13/public/css/themes/tez/components/pagination/pagination.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/pagination/pagination.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/components/pagination/pagination.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/post (added)
-
tags/1.5.13/public/css/themes/tez/components/post-terms (added)
-
tags/1.5.13/public/css/themes/tez/components/post-terms/post-terms.css (added)
-
tags/1.5.13/public/css/themes/tez/components/post-terms/post-terms.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/post-terms/post-terms.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/components/post-terms/post-terms.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/post/post.css (added)
-
tags/1.5.13/public/css/themes/tez/components/post/post.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/post/post.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/components/post/post.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/sidebar (added)
-
tags/1.5.13/public/css/themes/tez/components/sidebar/sidebar.css (added)
-
tags/1.5.13/public/css/themes/tez/components/sidebar/sidebar.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/sidebar/sidebar.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/components/sidebar/sidebar.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/slider (added)
-
tags/1.5.13/public/css/themes/tez/components/slider/slider.css (added)
-
tags/1.5.13/public/css/themes/tez/components/slider/slider.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/social-list (added)
-
tags/1.5.13/public/css/themes/tez/components/social-list/social-list.css (added)
-
tags/1.5.13/public/css/themes/tez/components/social-list/social-list.min.css (added)
-
tags/1.5.13/public/css/themes/tez/components/social-list/social-list.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/components/social-list/social-list.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/gutenberg (added)
-
tags/1.5.13/public/css/themes/tez/gutenberg/button.css (added)
-
tags/1.5.13/public/css/themes/tez/gutenberg/button.min.css (added)
-
tags/1.5.13/public/css/themes/tez/gutenberg/columns.css (added)
-
tags/1.5.13/public/css/themes/tez/gutenberg/columns.min.css (added)
-
tags/1.5.13/public/css/themes/tez/gutenberg/cover.css (added)
-
tags/1.5.13/public/css/themes/tez/gutenberg/cover.min.css (added)
-
tags/1.5.13/public/css/themes/tez/gutenberg/file.css (added)
-
tags/1.5.13/public/css/themes/tez/gutenberg/file.min.css (added)
-
tags/1.5.13/public/css/themes/tez/pages (added)
-
tags/1.5.13/public/css/themes/tez/pages/404 (added)
-
tags/1.5.13/public/css/themes/tez/pages/404/404.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/404/404.min.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/archive (added)
-
tags/1.5.13/public/css/themes/tez/pages/archive/archive.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/archive/archive.min.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/attachment (added)
-
tags/1.5.13/public/css/themes/tez/pages/attachment/attachment.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/attachment/attachment.min.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/attachment/attachment.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/attachment/attachment.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/page (added)
-
tags/1.5.13/public/css/themes/tez/pages/page/page.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/page/page.min.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/search (added)
-
tags/1.5.13/public/css/themes/tez/pages/search/search.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/search/search.min.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/search/search.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/search/search.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/single (added)
-
tags/1.5.13/public/css/themes/tez/pages/single/single.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/single/single.min.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/single/single.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/pages/single/single.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins (added)
-
tags/1.5.13/public/css/themes/tez/plugins/amp-wp-ads-manager (added)
-
tags/1.5.13/public/css/themes/tez/plugins/amp-wp-ads-manager/ads.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/amp-wp-ads-manager/ads.min.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/amp-wp-ads-manager/ads.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/amp-wp-ads-manager/ads.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/comment-form (added)
-
tags/1.5.13/public/css/themes/tez/plugins/comment-form/comment-form.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/comment-form/comment-form.min.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/gravity-form (added)
-
tags/1.5.13/public/css/themes/tez/plugins/gravity-form/gravity-form.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/gravity-form/gravity-form.min.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/onesignal-free-web-push-notifications (added)
-
tags/1.5.13/public/css/themes/tez/plugins/onesignal-free-web-push-notifications/onesignal-free-web-push-notifications.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/onesignal-free-web-push-notifications/onesignal-free-web-push-notifications.min.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-base (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-base/wc-base.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-base/wc-base.min.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-base/wc-base.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-base/wc-base.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-cart (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-cart/wc-cart.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-cart/wc-cart.min.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-cart/wc-cart.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-cart/wc-cart.rtl.min.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-single (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-single/wc-single.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-single/wc-single.min.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-single/wc-single.rtl.css (added)
-
tags/1.5.13/public/css/themes/tez/plugins/woocommerce/wc-single/wc-single.rtl.min.css (added)
-
tags/1.5.13/public/images (added)
-
tags/1.5.13/public/images/no-image-option-1.jpg (added)
-
tags/1.5.13/public/images/no-image-option-2.jpg (added)
-
tags/1.5.13/public/images/no-image.jpg (added)
-
tags/1.5.13/public/index.php (added)
-
tags/1.5.13/public/js (added)
-
tags/1.5.13/public/js/mobile_redirect.js (added)
-
tags/1.5.13/public/js/mobile_redirect.min.js (added)
-
tags/1.5.13/public/partials (added)
-
tags/1.5.13/public/partials/tez (added)
-
tags/1.5.13/public/partials/tez/404.php (added)
-
tags/1.5.13/public/partials/tez/amp-wp-ads-manager (added)
-
tags/1.5.13/public/partials/tez/amp-wp-ads-manager/ads.php (added)
-
tags/1.5.13/public/partials/tez/archive-product.php (added)
-
tags/1.5.13/public/partials/tez/archive.php (added)
-
tags/1.5.13/public/partials/tez/attachment.php (added)
-
tags/1.5.13/public/partials/tez/comment-item.php (added)
-
tags/1.5.13/public/partials/tez/components (added)
-
tags/1.5.13/public/partials/tez/components/gdpr (added)
-
tags/1.5.13/public/partials/tez/components/gdpr/gdpr.php (added)
-
tags/1.5.13/public/partials/tez/components/notification (added)
-
tags/1.5.13/public/partials/tez/components/notification/notification.php (added)
-
tags/1.5.13/public/partials/tez/components/pagination (added)
-
tags/1.5.13/public/partials/tez/components/pagination/pagination.php (added)
-
tags/1.5.13/public/partials/tez/components/post-terms (added)
-
tags/1.5.13/public/partials/tez/components/post-terms/post-terms-categories.php (added)
-
tags/1.5.13/public/partials/tez/components/slider (added)
-
tags/1.5.13/public/partials/tez/components/slider/slider.php (added)
-
tags/1.5.13/public/partials/tez/components/social-list (added)
-
tags/1.5.13/public/partials/tez/components/social-list/social-links.php (added)
-
tags/1.5.13/public/partials/tez/components/social-list/social-share.php (added)
-
tags/1.5.13/public/partials/tez/footer.php (added)
-
tags/1.5.13/public/partials/tez/header.php (added)
-
tags/1.5.13/public/partials/tez/index.php (added)
-
tags/1.5.13/public/partials/tez/page.php (added)
-
tags/1.5.13/public/partials/tez/search.php (added)
-
tags/1.5.13/public/partials/tez/searchform.php (added)
-
tags/1.5.13/public/partials/tez/shortcodes (added)
-
tags/1.5.13/public/partials/tez/shortcodes/amp-slider.php (added)
-
tags/1.5.13/public/partials/tez/shortcodes/gallery.php (added)
-
tags/1.5.13/public/partials/tez/shortcodes/index.php (added)
-
tags/1.5.13/public/partials/tez/sidebar.php (added)
-
tags/1.5.13/public/partials/tez/single-post (added)
-
tags/1.5.13/public/partials/tez/single-post/comments.php (added)
-
tags/1.5.13/public/partials/tez/single-post/description.php (added)
-
tags/1.5.13/public/partials/tez/single-post/meta.php (added)
-
tags/1.5.13/public/partials/tez/single-post/post-terms.php (added)
-
tags/1.5.13/public/partials/tez/single-post/post-thumbnails.php (added)
-
tags/1.5.13/public/partials/tez/single-post/related.php (added)
-
tags/1.5.13/public/partials/tez/single-post/title.php (added)
-
tags/1.5.13/public/partials/tez/single-product.php (added)
-
tags/1.5.13/public/partials/tez/single.php (added)
-
tags/1.5.13/public/partials/tez/template-parts (added)
-
tags/1.5.13/public/partials/tez/template-parts/archive-post-thumbnails.php (added)
-
tags/1.5.13/public/partials/tez/template-parts/archive-title.php (added)
-
tags/1.5.13/public/partials/tez/template-parts/content.php (added)
-
tags/1.5.13/public/partials/tez/template-parts/listing-1.php (added)
-
tags/1.5.13/public/partials/tez/template-parts/listing-2.php (added)
-
tags/1.5.13/public/partials/tez/template-parts/post-meta-author.php (added)
-
tags/1.5.13/public/partials/tez/template-parts/post-meta-date.php (added)
-
tags/1.5.13/public/partials/tez/template-parts/post-title.php (added)
-
tags/1.5.13/public/partials/tez/woocommerce (added)
-
tags/1.5.13/public/partials/tez/woocommerce.php (added)
-
tags/1.5.13/public/partials/tez/woocommerce/cart (added)
-
tags/1.5.13/public/partials/tez/woocommerce/cart/cart.php (added)
-
tags/1.5.13/public/partials/tez/woocommerce/cart/proceed-to-checkout-button.php (added)
-
tags/1.5.13/public/partials/tez/woocommerce/loop.php (added)
-
tags/1.5.13/public/partials/tez/woocommerce/notices (added)
-
tags/1.5.13/public/partials/tez/woocommerce/notices/success.php (added)
-
tags/1.5.13/public/partials/tez/woocommerce/single-product (added)
-
tags/1.5.13/public/partials/tez/woocommerce/single-product/review-rating.php (added)
-
tags/1.5.13/uninstall.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/partials/amp-wp-admin-system-status.php (modified) (5 diffs)
-
trunk/admin/partials/settings/amp-wp-admin-general.php (modified) (6 diffs)
-
trunk/admin/partials/settings/amp-wp-admin-translation.php (modified) (2 diffs)
-
trunk/amp-wp.php (modified) (2 diffs)
-
trunk/includes/admin/settings/class-amp-wp-general.php (modified) (6 diffs)
-
trunk/includes/class-amp-wp-content-sanitizer.php (modified) (7 diffs)
-
trunk/includes/class-amp-wp-plugin-compatibility.php (modified) (2 diffs)
-
trunk/includes/components/class-amp-wp-iframe-component.php (modified) (2 diffs)
-
trunk/includes/components/class-amp-wp-img-component.php (modified) (3 diffs)
-
trunk/includes/functions/amp-wp-template-functions.php (modified) (4 diffs)
-
trunk/includes/functions/amp-wp-theme-functions.php (modified) (3 diffs)
-
trunk/includes/functions/amp-wp-third-party-plugins-functions.php (modified) (1 diff)
-
trunk/includes/functions/amp-wp-utility-functions.php (modified) (2 diffs)
-
trunk/languages/amp-wp.pot (modified) (35 diffs)
-
trunk/public/class-amp-wp-public.php (modified) (2 diffs)
-
trunk/public/css/themes/tez/pages/archive/archive.css (modified) (1 diff)
-
trunk/public/css/themes/tez/pages/archive/archive.min.css (modified) (1 diff)
-
trunk/public/partials/tez/footer.php (modified) (5 diffs)
-
trunk/public/partials/tez/single-post/comments.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
amp-wp/trunk/README.txt
r2552932 r2585601 4 4 Tags: AMP, AMP For WP, AMP For WordPress, accelerated mobile pages, mobile theme, google amp, plugin, amp wp 5 5 Requires at least: 4.9.6 6 Tested up to: 5. 7.26 Tested up to: 5.8 7 7 Requires PHP: 7.0 8 Stable tag: 1.5.1 28 Stable tag: 1.5.13 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 175 175 == Changelog == 176 176 177 = 1.5.13 - 2021-08-19 = 178 * Note: PHP8 compatibility 179 * Fixed: Undefined variables. 180 177 181 = 1.5.12 - 2021-06-23 = 178 182 * Added: SG Optimizer Plugin Compatibility -
amp-wp/trunk/admin/partials/amp-wp-admin-system-status.php
r2076574 r2585601 11 11 12 12 ?> 13 14 13 <div class="amp-wp-adb"> 15 14 <?php require_once AMP_WP_DIR_PATH . 'admin/partials/amp-wp-admin-header.php'; ?> … … 209 208 ); 210 209 foreach ( $registered_navs as $handle => $registered_nav ) { 211 $ menu= wp_get_nav_menu_object( $registered_nav ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited212 if ( $ menu) {213 $menu_items_count[] = $ menu->count;210 $navigation_menu_object = wp_get_nav_menu_object( $registered_nav ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited 211 if ( $navigation_menu_object ) { 212 $menu_items_count[] = $navigation_menu_object->count; 214 213 } 215 214 } … … 252 251 ); 253 252 foreach ( $registered_navs as $handle => $registered_nav ) { 254 $ menu= wp_get_nav_menu_object( $registered_nav ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited255 if ( $ menu) {256 $menu_items_count[] = $ menu->count;253 $navigation_menu_object = wp_get_nav_menu_object( $registered_nav ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited 254 if ( $navigation_menu_object ) { 255 $menu_items_count[] = $navigation_menu_object->count; 257 256 } 258 257 } … … 284 283 ); 285 284 foreach ( $registered_navs as $handle => $registered_nav ) { 286 $ menu= wp_get_nav_menu_object( $registered_nav ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited287 if ( $ menu) {288 $menu_items_count[] = $ menu->count;285 $navigation_menu_object = wp_get_nav_menu_object( $registered_nav ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited 286 if ( $navigation_menu_object ) { 287 $menu_items_count[] = $navigation_menu_object->count; 289 288 } 290 289 } … … 534 533 <?php 535 534 536 foreach ( $active_plugins as $ plugin ) {537 538 $plugin_data = @get_plugin_data( WP_PLUGIN_DIR . '/' . $ plugin );539 $dirname = dirname( $ plugin );535 foreach ( $active_plugins as $active_plugin ) { 536 537 $plugin_data = @get_plugin_data( WP_PLUGIN_DIR . '/' . $active_plugin ); 538 $dirname = dirname( $active_plugin ); 540 539 $version_string = ''; 541 540 $network_string = ''; -
amp-wp/trunk/admin/partials/settings/amp-wp-admin-general.php
r2200704 r2585601 11 11 * @subpackage Amp_WP/admin/partials/settings 12 12 */ 13 13 14 ?> 14 15 <div id="settings-general" class="amp-wp-vtabs-content"> … … 34 35 <div class="switch"> 35 36 <input type="checkbox" name="amp_wp_general_settings[amp_on_home]" id="amp_on_home" <?php echo ( isset( $amp_on_home ) && ! empty( $amp_on_home ) ) ? 'checked="checked"' : ''; ?> /> 36 <label for="amp_on_home"> <?php esc_html_e( ' ', 'amp-wp' ); ?></label>37 <label for="amp_on_home"> </label> 37 38 </div> 38 39 </td> … … 43 44 <div class="switch"> 44 45 <input type="checkbox" name="amp_wp_general_settings[amp_on_search]" id="amp_on_search" <?php echo ( isset( $amp_on_search ) && ! empty( $amp_on_search ) ) ? 'checked="checked"' : ''; ?> /> 45 <label for="amp_on_search"> <?php esc_html_e( ' ', 'amp-wp' ); ?></label>46 <label for="amp_on_search"> </label> 46 47 </div> 47 48 </td> … … 89 90 <div class="description"> 90 91 <p><?php esc_html_e( 'You can exclude URLs of your site to prevent converting them into AMP URL inside your site.', 'amp-wp' ); ?></p> 91 <p><?php _e( 'You can use <strong>*</strong> in the end of URL to exclude all URLs that start with it. e.g. <span class="pre">//yoursite.com/test/*</span>', 'amp-wp' ); ?></p>92 <p><?php esc_html_e( 'You can use <strong>*</strong> in the end of URL to exclude all URLs that start with it. e.g. <span class="pre">//yoursite.com/test/*</span>', 'amp-wp' ); ?></p> 92 93 </div> 93 94 </td> 94 95 </tr> 95 96 <tr> 96 <th scope="row"><label for="excluded_urls"><?php esc_html_e( 'Exclude AMP by URL:', 'amp-wp'); ?></label></th>97 <th scope="row"><label for="excluded_urls"><?php esc_html_e( 'Exclude AMP by URL:', 'amp-wp' ); ?></label></th> 97 98 <td> 98 99 <textarea id="excluded_urls" name="amp_wp_general_settings[excluded_urls]" rows="5" class="large-text code"><?php echo wp_kses_post( $excluded_urls ); ?></textarea> 99 100 <div class="description"> 100 <p><?php esc_html_e( 'You can disable AMP version of the page. e.g. /product/* will disable all amp pages starting with product in the URL.', 'amp-wp');?></p>101 <p><?php esc_html_e( 'You can disable AMP version of the page. e.g. /product/* will disable all amp pages starting with product in the URL.', 'amp-wp' ); ?></p> 101 102 </div> 102 103 </td> … … 118 119 </select> 119 120 <div class="description"> 120 <p><strong><?php esc_html_e( 'Start Point:', 'amp-wp' ); ?></strong> <span class="pre"> <?php _e( '//yoursite.com/<strong>amp</strong>/post/', 'amp-wp' ); ?></span></p>121 <p><strong><?php esc_html_e( 'End Point:', 'amp-wp' ); ?></strong> <span class="pre"> <?php _e( '//yoursite.com/post/<strong>amp</strong>/', 'amp-wp' ); ?></span></p>121 <p><strong><?php esc_html_e( 'Start Point:', 'amp-wp' ); ?></strong> <span class="pre">//yoursite.com/<strong>amp</strong>/post/</span></p> 122 <p><strong><?php esc_html_e( 'End Point:', 'amp-wp' ); ?></strong> <span class="pre">//yoursite.com/post/<strong>amp</strong>/</span></p> 122 123 </div> 123 124 </td> … … 132 133 <tbody> 133 134 <tr> 134 <th scope="row"><label for="mobile_auto_redirect"><?php _e( 'Automatically Redirect Users to AMP Version:', 'amp-wp' ); ?></label></th>135 <th scope="row"><label for="mobile_auto_redirect"><?php esc_html_e( 'Automatically Redirect Users to AMP Version:', 'amp-wp' ); ?></label></th> 135 136 <td> 136 137 <div class="switch"> 137 <input type="checkbox" 138 name="amp_wp_general_settings[mobile_auto_redirect]" 139 id="mobile_auto_redirect" 140 <?php echo ( $mobile_auto_redirect == '1' ) ? 'checked="checked"' : ''; ?> 141 value="<?php echo ( $mobile_auto_redirect ) ? intval( $mobile_auto_redirect ) : ''; ?>"> 142 <label for="mobile_auto_redirect"><?php esc_html_e( ' ', 'amp-wp' ); ?></label> 138 <input type="checkbox" name="amp_wp_general_settings[mobile_auto_redirect]" id="mobile_auto_redirect" <?php echo ( isset( $mobile_auto_redirect ) && ! empty( $mobile_auto_redirect ) ) ? 'checked="checked"' : ''; ?> /> 139 <label for="mobile_auto_redirect"> </label> 143 140 </div> 144 145 141 <p class="description"><?php esc_html_e( 'This will automatically redirect all mobile users to the AMP version of the site.', 'amp-wp' ); ?></p> 146 142 </td> -
amp-wp/trunk/admin/partials/settings/amp-wp-admin-translation.php
r2200704 r2585601 15 15 <form id="amp_wp_setting_form" name="amp_wp_setting_form" method="post"> 16 16 <div class="amp-wp-vtabs-header"> 17 <div class="amp-wp-vtabs-title">18 <h2><?php _e('Translation', 'amp-wp'); ?></h2>19 </div>20 <div class="amp-wp-vtabs-btn-toolbar">21 <?php submit_button(__('Save Changes'), 'button-primary', 'save', false); ?>22 </div>23 </div>17 <div class="amp-wp-vtabs-title"> 18 <h2><?php esc_html_e( 'Translation', 'amp-wp' ); ?></h2> 19 </div> 20 <div class="amp-wp-vtabs-btn-toolbar"> 21 <?php submit_button( __( 'Save Changes' ), 'button-primary', 'save', false ); ?> 22 </div> 23 </div> 24 24 <div class="amp-wp-vtabs-body"> 25 <!-- Header -->26 <h3 class="amp-wp-form-section-title"><?php_e( 'Header', 'amp-wp' ); ?></h3>27 <table class="form-table amp-wp-form-table">28 <tbody>29 <tr> 30 <th scope="row"><label for="header"><?php _e('Header:', 'amp-wp'); ?></label></th>31 <td><input type="text" id="header" name="amp-wp-translation[header]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['header'] ) ) ? esc_attr( $amp_wp_translation_option['header'] ) : 'Header'; ?>" placeholder="Header" /></td>32 </tr> 33 </tbody>34 </table>35 <!-- /Header -->36 37 <!-- Search -->38 <h3 class="amp-wp-form-section-title"><?php_e( 'Search', 'amp-wp' ); ?></h3>39 <table class="form-table amp-wp-form-table">40 <tbody>41 <tr>42 <th scope="row"><label for="search_on_site"><?php _e('Search on site:', 'amp-wp'); ?></label></th>43 <td><input type="text" id="search_on_site" name="amp-wp-translation[search_on_site]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['search_on_site'] ) ) ? esc_attr( $amp_wp_translation_option['search_on_site'] ) : 'Search on site'; ?>" placeholder="Search on site" /></td>44 </tr> 45 <tr> 46 <th scope="row"><label for="search_input_placeholder"><?php _e('Search input placeholder:', 'amp-wp'); ?></label></th>47 <td><input type="text" id="search_input_placeholder" name="amp-wp-translation[search_input_placeholder]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['search_input_placeholder'] ) ) ? esc_attr( $amp_wp_translation_option['search_input_placeholder'] ) : 'Search …'; ?>" placeholder="Search …" /></td>48 </tr> 49 <tr> 50 <th scope="row"><label for="search_button"><?php _e('Search button:', 'amp-wp'); ?></label></th>51 <td><input type="text" id="search_button" name="amp-wp-translation[search_button]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['search_button'] ) ) ? esc_attr( $amp_wp_translation_option['search_button'] ) : 'Search'; ?>" placeholder="Search" /></td>52 </tr> 53 </tbody>54 </table>55 <!-- /Search -->56 57 <!-- Navigation -->58 <h3 class="amp-wp-form-section-title"><?php_e( 'Navigation', 'amp-wp' ); ?></h3>59 <table class="form-table amp-wp-form-table">60 <tbody> 61 <tr> 62 <th scope="row"><label for="prev"><?php _e('Previous:', 'amp-wp'); ?></label></th>63 <td><input type="text" id="prev" name="amp-wp-translation[prev]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['prev'] ) ) ? esc_attr( $amp_wp_translation_option['prev'] ) : 'Previous'; ?>" placeholder="Previous" /></td>64 </tr> 65 <tr> 66 <th scope="row"><label for="next"><?php _e('Next:', 'amp-wp'); ?></label></th>67 <td><input type="text" id="next" name="amp-wp-translation[next]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['next'] ) ) ? esc_attr( $amp_wp_translation_option['next'] ) : 'Next'; ?>" placeholder="Next" /></td>68 </tr> 69 <tr> 70 <th scope="row"><label for="page"><?php _e('Page:', 'amp-wp'); ?></label></th>71 <td><input type="text" id="page" name="amp-wp-translation[page]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['page'] ) ) ? esc_attr( $amp_wp_translation_option['page'] ) : 'Page'; ?>" placeholder="Page" /></td>72 </tr> 73 <tr> 74 <th scope="row"><label for="page_of"><?php _e('of %d:', 'amp-wp'); ?></label></th>25 <!-- Header --> 26 <h3 class="amp-wp-form-section-title"><?php esc_html_e( 'Header', 'amp-wp' ); ?></h3> 27 <table class="form-table amp-wp-form-table"> 28 <tbody> 29 <tr> 30 <th scope="row"><label for="header"><?php esc_html_e( 'Header:', 'amp-wp' ); ?></label></th> 31 <td><input type="text" id="header" name="amp-wp-translation[header]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['header'] ) ) ? esc_attr( $amp_wp_translation_option['header'] ) : 'Header'; ?>" placeholder="Header" /></td> 32 </tr> 33 </tbody> 34 </table> 35 <!-- /Header --> 36 37 <!-- Search --> 38 <h3 class="amp-wp-form-section-title"><?php esc_html_e( 'Search', 'amp-wp' ); ?></h3> 39 <table class="form-table amp-wp-form-table"> 40 <tbody> 41 <tr> 42 <th scope="row"><label for="search_on_site"><?php esc_html_e( 'Search on site:', 'amp-wp' ); ?></label></th> 43 <td><input type="text" id="search_on_site" name="amp-wp-translation[search_on_site]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['search_on_site'] ) ) ? esc_attr( $amp_wp_translation_option['search_on_site'] ) : 'Search on site'; ?>" placeholder="Search on site" /></td> 44 </tr> 45 <tr> 46 <th scope="row"><label for="search_input_placeholder"><?php esc_html_e( 'Search input placeholder:', 'amp-wp' ); ?></label></th> 47 <td><input type="text" id="search_input_placeholder" name="amp-wp-translation[search_input_placeholder]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['search_input_placeholder'] ) ) ? esc_attr( $amp_wp_translation_option['search_input_placeholder'] ) : 'Search …'; ?>" placeholder="Search …" /></td> 48 </tr> 49 <tr> 50 <th scope="row"><label for="search_button"><?php esc_html_e( 'Search button:', 'amp-wp' ); ?></label></th> 51 <td><input type="text" id="search_button" name="amp-wp-translation[search_button]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['search_button'] ) ) ? esc_attr( $amp_wp_translation_option['search_button'] ) : 'Search'; ?>" placeholder="Search" /></td> 52 </tr> 53 </tbody> 54 </table> 55 <!-- /Search --> 56 57 <!-- Navigation --> 58 <h3 class="amp-wp-form-section-title"><?php esc_html_e( 'Navigation', 'amp-wp' ); ?></h3> 59 <table class="form-table amp-wp-form-table"> 60 <tbody> 61 <tr> 62 <th scope="row"><label for="prev"><?php esc_html_e( 'Previous:', 'amp-wp' ); ?></label></th> 63 <td><input type="text" id="prev" name="amp-wp-translation[prev]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['prev'] ) ) ? esc_attr( $amp_wp_translation_option['prev'] ) : 'Previous'; ?>" placeholder="Previous" /></td> 64 </tr> 65 <tr> 66 <th scope="row"><label for="next"><?php esc_html_e( 'Next:', 'amp-wp' ); ?></label></th> 67 <td><input type="text" id="next" name="amp-wp-translation[next]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['next'] ) ) ? esc_attr( $amp_wp_translation_option['next'] ) : 'Next'; ?>" placeholder="Next" /></td> 68 </tr> 69 <tr> 70 <th scope="row"><label for="page"><?php esc_html_e( 'Page:', 'amp-wp' ); ?></label></th> 71 <td><input type="text" id="page" name="amp-wp-translation[page]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['page'] ) ) ? esc_attr( $amp_wp_translation_option['page'] ) : 'Page'; ?>" placeholder="Page" /></td> 72 </tr> 73 <tr> 74 <th scope="row"><label for="page_of"><?php esc_html_e( 'of %d:', 'amp-wp' ); ?></label></th> 75 75 <td> 76 <input type="text" id="page_of" name="amp-wp-translation[page_of]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['page_of'] ) ) ? esc_attr( $amp_wp_translation_option['page_of'] ) : 'of %d'; ?>" placeholder="of %d" />77 <p class="description"><?php _e( '%d will be replace with page number.', 'amp-wp' ); ?></p>76 <input type="text" id="page_of" name="amp-wp-translation[page_of]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['page_of'] ) ) ? esc_attr( $amp_wp_translation_option['page_of'] ) : 'of %d'; ?>" placeholder="of %d" /> 77 <p class="description"><?php esc_html_e( '%d will be replace with page number.', 'amp-wp' ); ?></p> 78 78 </td> 79 79 </tr> 80 </tbody>81 </table>82 <!-- /Navigation -->83 84 <!-- Archives -->85 <h3 class="amp-wp-form-section-title"><?php_e( 'Archives', 'amp-wp' ); ?></h3>86 <table class="form-table amp-wp-form-table">87 <tbody>88 <tr> 89 <th scope="row"><label for="archive"><?php _e('Archive:', 'amp-wp'); ?></label></th>90 <td><input type="text" id="archive" name="amp-wp-translation[archive]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['archive'] ) ) ? esc_attr( $amp_wp_translation_option['archive'] ) : 'Archive'; ?>" placeholder="Archive" /></td>91 </tr> 92 <tr> 93 <th scope="row"><label for="browsing"><?php _e('Browsing:', 'amp-wp'); ?></label></th>94 <td><input type="text" id="browsing" name="amp-wp-translation[browsing]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing'] ) ) ? esc_attr( $amp_wp_translation_option['browsing'] ) : 'Browsing'; ?>" placeholder="Browsing" /></td>95 </tr> 96 <tr> 97 <th scope="row"><label for="browse_author_articles"><?php _e('Browse Author Articles:', 'amp-wp'); ?></label></th>80 </tbody> 81 </table> 82 <!-- /Navigation --> 83 84 <!-- Archives --> 85 <h3 class="amp-wp-form-section-title"><?php esc_html_e( 'Archives', 'amp-wp' ); ?></h3> 86 <table class="form-table amp-wp-form-table"> 87 <tbody> 88 <tr> 89 <th scope="row"><label for="archive"><?php esc_html_e( 'Archive:', 'amp-wp' ); ?></label></th> 90 <td><input type="text" id="archive" name="amp-wp-translation[archive]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['archive'] ) ) ? esc_attr( $amp_wp_translation_option['archive'] ) : 'Archive'; ?>" placeholder="Archive" /></td> 91 </tr> 92 <tr> 93 <th scope="row"><label for="browsing"><?php esc_html_e( 'Browsing:', 'amp-wp' ); ?></label></th> 94 <td><input type="text" id="browsing" name="amp-wp-translation[browsing]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing'] ) ) ? esc_attr( $amp_wp_translation_option['browsing'] ) : 'Browsing'; ?>" placeholder="Browsing" /></td> 95 </tr> 96 <tr> 97 <th scope="row"><label for="browse_author_articles"><?php esc_html_e( 'Browse Author Articles:', 'amp-wp' ); ?></label></th> 98 98 <td> 99 <input type="text" id="browse_author_articles" name="amp-wp-translation[browse_author_articles]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browse_author_articles'] ) ) ? esc_attr( $amp_wp_translation_option['browse_author_articles'] ) : 'Browse Author Articles'; ?>" placeholder="Browse Author Articles" />100 <p class="description"><?php _e( '%s1 is author name and %s2 is post publish date.', 'amp-wp' ); ?></p>99 <input type="text" id="browse_author_articles" name="amp-wp-translation[browse_author_articles]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browse_author_articles'] ) ) ? esc_attr( $amp_wp_translation_option['browse_author_articles'] ) : 'Browse Author Articles'; ?>" placeholder="Browse Author Articles" /> 100 <p class="description"><?php esc_html_e( '%1$s1 is author name and %2$s2 is post publish date.', 'amp-wp' ); ?></p> 101 101 </td> 102 102 </tr> 103 103 <tr> 104 <th scope="row"><label for="browsing_category"><?php _e('Browsing category:', 'amp-wp'); ?></label></th>105 <td><input type="text" id="browsing_category" name="amp-wp-translation[browsing_category]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_category'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_category'] ) : 'Browsing category'; ?>" placeholder="Browsing category" /></td>106 </tr> 107 <tr> 108 <th scope="row"><label for="browsing_tag"><?php _e('Browsing tag:', 'amp-wp'); ?></label></th>109 <td><input type="text" id="browsing_tag" name="amp-wp-translation[browsing_tag]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_tag'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_tag'] ) : 'Browsing tag'; ?>" placeholder="Browsing tag" /></td>110 </tr> 111 <tr> 112 <th scope="row"><label for="browsing_author"><?php _e('Browsing author:', 'amp-wp'); ?></label></th>113 <td><input type="text" id="browsing_author" name="amp-wp-translation[browsing_author]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_author'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_author'] ) : 'Browsing author'; ?>" placeholder="Browsing author" /></td>114 </tr> 115 <tr> 116 <th scope="row"><label for="browsing_yearly"><?php _e('Browsing yearly archive:', 'amp-wp'); ?></label></th>117 <td><input type="text" id="browsing_yearly" name="amp-wp-translation[browsing_yearly]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_yearly'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_yearly'] ) : 'Browsing yearly archive'; ?>" placeholder="Browsing yearly archive" /></td>118 </tr> 119 <tr> 120 <th scope="row"><label for="browsing_monthly"><?php _e('Browsing monthly archive:', 'amp-wp'); ?></label></th>121 <td><input type="text" id="browsing_monthly" name="amp-wp-translation[browsing_monthly]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_monthly'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_monthly'] ) : 'Browsing monthly archive'; ?>" placeholder="Browsing monthly archive" /></td>122 </tr> 123 <tr> 124 <th scope="row"><label for="browsing_daily"><?php _e('Browsing daily archive:', 'amp-wp'); ?></label></th>125 <td><input type="text" id="browsing_daily" name="amp-wp-translation[browsing_daily]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_daily'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_daily'] ) : 'Browsing daily archive'; ?>" placeholder="Browsing daily archive" /></td>126 </tr> 127 <tr> 128 <th scope="row"><label for="browsing_archive"><?php _e('Browsing archive:', 'amp-wp'); ?></label></th>129 <td><input type="text" id="browsing_archive" name="amp-wp-translation[browsing_archive]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_archive'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_archive'] ) : 'Browsing archive'; ?>" placeholder="Browsing archive" /></td>130 </tr> 131 </tbody>132 </table>133 <!-- /Archives -->134 135 <!-- Posts -->136 <h3 class="amp-wp-form-section-title"><?php_e( 'Posts', 'amp-wp' ); ?></h3>137 <table class="form-table amp-wp-form-table">138 <tbody>139 <tr> 140 <th scope="row"><label for="by_on"><?php _e('By %s1 on %s2:', 'amp-wp'); ?></label></th>104 <th scope="row"><label for="browsing_category"><?php esc_html_e( 'Browsing category:', 'amp-wp' ); ?></label></th> 105 <td><input type="text" id="browsing_category" name="amp-wp-translation[browsing_category]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_category'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_category'] ) : 'Browsing category'; ?>" placeholder="Browsing category" /></td> 106 </tr> 107 <tr> 108 <th scope="row"><label for="browsing_tag"><?php esc_html_e( 'Browsing tag:', 'amp-wp' ); ?></label></th> 109 <td><input type="text" id="browsing_tag" name="amp-wp-translation[browsing_tag]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_tag'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_tag'] ) : 'Browsing tag'; ?>" placeholder="Browsing tag" /></td> 110 </tr> 111 <tr> 112 <th scope="row"><label for="browsing_author"><?php esc_html_e( 'Browsing author:', 'amp-wp' ); ?></label></th> 113 <td><input type="text" id="browsing_author" name="amp-wp-translation[browsing_author]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_author'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_author'] ) : 'Browsing author'; ?>" placeholder="Browsing author" /></td> 114 </tr> 115 <tr> 116 <th scope="row"><label for="browsing_yearly"><?php esc_html_e( 'Browsing yearly archive:', 'amp-wp' ); ?></label></th> 117 <td><input type="text" id="browsing_yearly" name="amp-wp-translation[browsing_yearly]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_yearly'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_yearly'] ) : 'Browsing yearly archive'; ?>" placeholder="Browsing yearly archive" /></td> 118 </tr> 119 <tr> 120 <th scope="row"><label for="browsing_monthly"><?php esc_html_e( 'Browsing monthly archive:', 'amp-wp' ); ?></label></th> 121 <td><input type="text" id="browsing_monthly" name="amp-wp-translation[browsing_monthly]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_monthly'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_monthly'] ) : 'Browsing monthly archive'; ?>" placeholder="Browsing monthly archive" /></td> 122 </tr> 123 <tr> 124 <th scope="row"><label for="browsing_daily"><?php esc_html_e( 'Browsing daily archive:', 'amp-wp' ); ?></label></th> 125 <td><input type="text" id="browsing_daily" name="amp-wp-translation[browsing_daily]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_daily'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_daily'] ) : 'Browsing daily archive'; ?>" placeholder="Browsing daily archive" /></td> 126 </tr> 127 <tr> 128 <th scope="row"><label for="browsing_archive"><?php esc_html_e( 'Browsing archive:', 'amp-wp' ); ?></label></th> 129 <td><input type="text" id="browsing_archive" name="amp-wp-translation[browsing_archive]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['browsing_archive'] ) ) ? esc_attr( $amp_wp_translation_option['browsing_archive'] ) : 'Browsing archive'; ?>" placeholder="Browsing archive" /></td> 130 </tr> 131 </tbody> 132 </table> 133 <!-- /Archives --> 134 135 <!-- Posts --> 136 <h3 class="amp-wp-form-section-title"><?php esc_html_e( 'Posts', 'amp-wp' ); ?></h3> 137 <table class="form-table amp-wp-form-table"> 138 <tbody> 139 <tr> 140 <th scope="row"><label for="by_on"><?php esc_html_e( 'By %1$s1 on %2$s2:', 'amp-wp' ); ?></label></th> 141 141 <td> 142 <input type="text" id="by_on" name="amp-wp-translation[by_on]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['by_on'] ) ) ? esc_attr( $amp_wp_translation_option['by_on'] ) : '%s1 ● %s2'; ?>" placeholder="%s1 ● %s2" />143 <p class="description"><?php _e( '%s1 is author name and %s2 is post publish date.', 'amp-wp' ); ?></p>142 <input type="text" id="by_on" name="amp-wp-translation[by_on]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['by_on'] ) ) ? esc_attr( $amp_wp_translation_option['by_on'] ) : '%s1 ● %s2'; ?>" placeholder="%s1 ● %s2" /> 143 <p class="description"><?php esc_html_e( '%1$s1 is author name and %2$s2 is post publish date.', 'amp-wp' ); ?></p> 144 144 </td> 145 145 </tr> 146 146 <tr> 147 <th scope="row"><label for="share"><?php _e('Share:', 'amp-wp'); ?></label></th>148 <td><input type="text" id="share" name="amp-wp-translation[share]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['share'] ) ) ? esc_attr( $amp_wp_translation_option['share'] ) : 'Share'; ?>" placeholder="Share" /></td>149 </tr> 150 <tr> 151 <th scope="row"><label for="listing_2_date"><?php _e('Large Listing Date Format:', 'amp-wp'); ?></label></th>152 <td><input type="text" id="listing_2_date" name="amp-wp-translation[listing_2_date]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['listing_2_date'] ) ) ? esc_attr( $amp_wp_translation_option['listing_2_date'] ) : 'M d, Y'; ?>" placeholder="M d, Y" /></td>153 </tr> 154 <tr> 155 <th scope="row"><label for="tags"><?php _e('Tags:', 'amp-wp'); ?></label></th>156 <td><input type="text" id="tags" name="amp-wp-translation[tags]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['tags'] ) ) ? esc_attr( $amp_wp_translation_option['tags'] ) : 'Tags'; ?>" placeholder="Tags" /></td>157 </tr> 158 <tr> 159 <th scope="row"><label for="related_posts"><?php _e('Related Posts:', 'amp-wp'); ?></label></th>160 <td><input type="text" id="related_posts" name="amp-wp-translation[related_posts]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['related_posts'] ) ) ? esc_attr( $amp_wp_translation_option['related_posts'] ) : 'Related Posts'; ?>" placeholder="Related Posts" /></td>161 </tr> 162 </tbody>163 </table>164 <!-- /Posts -->165 166 <!-- Post Formats -->167 <h3 class="amp-wp-form-section-title"><?php_e( 'Post Formats', 'amp-wp' ); ?></h3>168 <table class="form-table amp-wp-form-table">169 <tbody>170 <tr> 171 <th scope="row"><label for="asides"><?php _e('Asides:', 'amp-wp'); ?></label></th>172 <td><input type="text" id="asides" name="amp-wp-translation[asides]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['asides'] ) ) ? esc_attr( $amp_wp_translation_option['asides'] ) : 'Asides'; ?>" placeholder="Asides" /></td>173 </tr> 174 <tr> 175 <th scope="row"><label for="galleries"><?php _e('Galleries:', 'amp-wp'); ?></label></th>176 <td><input type="text" id="galleries" name="amp-wp-translation[galleries]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['galleries'] ) ) ? esc_attr( $amp_wp_translation_option['galleries'] ) : 'Galleries'; ?>" placeholder="Galleries" /></td>177 </tr> 178 <tr> 179 <th scope="row"><label for="images"><?php _e('Images:', 'amp-wp'); ?></label></th>180 <td><input type="text" id="images" name="amp-wp-translation[images]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['images'] ) ) ? esc_attr( $amp_wp_translation_option['images'] ) : 'Images'; ?>" placeholder="Images" /></td>181 </tr> 182 <tr> 183 <th scope="row"><label for="videos"><?php _e('Videos:', 'amp-wp'); ?></label></th>184 <td><input type="text" id="videos" name="amp-wp-translation[videos]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['videos'] ) ) ? esc_attr( $amp_wp_translation_option['videos'] ) : 'Videos'; ?>" placeholder="Videos" /></td>185 </tr> 186 <tr> 187 <th scope="row"><label for="quotes"><?php _e('Quotes:', 'amp-wp'); ?></label></th>188 <td><input type="text" id="quotes" name="amp-wp-translation[quotes]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['quotes'] ) ) ? esc_attr( $amp_wp_translation_option['quotes'] ) : 'Quotes'; ?>" placeholder="Quotes" /></td>189 </tr> 190 <tr> 191 <th scope="row"><label for="links"><?php _e('Links:', 'amp-wp'); ?></label></th>192 <td><input type="text" id="links" name="amp-wp-translation[links]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['links'] ) ) ? esc_attr( $amp_wp_translation_option['links'] ) : 'Links'; ?>" placeholder="Links" /></td>193 </tr> 194 <tr> 195 <th scope="row"><label for="statuses"><?php _e('Statuses:', 'amp-wp'); ?></label></th>196 <td><input type="text" id="statuses" name="amp-wp-translation[statuses]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['statuses'] ) ) ? esc_attr( $amp_wp_translation_option['statuses'] ) : 'Statuses'; ?>" placeholder="Statuses" /></td>197 </tr> 198 <tr> 199 <th scope="row"><label for="audio"><?php _e('Audio:', 'amp-wp'); ?></label></th>200 <td><input type="text" id="audio" name="amp-wp-translation[audio]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['audio'] ) ) ? esc_attr( $amp_wp_translation_option['audio'] ) : 'Audio'; ?>" placeholder="Audio" /></td>201 </tr> 202 <tr> 203 <th scope="row"><label for="chats"><?php _e('Chats:', 'amp-wp'); ?></label></th>204 <td><input type="text" id="chats" name="amp-wp-translation[chats]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['chats'] ) ) ? esc_attr( $amp_wp_translation_option['chats'] ) : 'Chats'; ?>" placeholder="Chats" /></td>205 </tr> 206 </tbody>207 </table>208 <!-- /Post Formats -->209 210 <!-- Attachment Texts -->211 <h3 class="amp-wp-form-section-title"><?php_e( 'Attachment Texts', 'amp-wp' ); ?></h3>212 <table class="form-table amp-wp-form-table">213 <tbody>214 <tr> 215 <th scope="row"><label for="attachment-return-to"><?php _e('Return to post:', 'amp-wp'); ?></label></th>216 <td><input type="text" id="attachment-return-to" name="amp-wp-translation[attachment-return-to]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['attachment-return-to'] ) ) ? esc_attr( $amp_wp_translation_option['attachment-return-to'] ) : 'Return to "%s"'; ?>" placeholder='Return to "%s"' /></td>217 </tr> 218 <tr> 219 <th scope="row"><label for="click-here"><?php _e('Click here:', 'amp-wp'); ?></label></th>220 <td><input type="text" id="click-here" name="amp-wp-translation[click-here]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['click-here'] ) ) ? esc_attr( $amp_wp_translation_option['click-here'] ) : 'Click here'; ?>" placeholder="Click here" /></td>221 </tr> 222 <tr> 223 <th scope="row"><label for="attachment-play-video"><?php _e('Play Video:', 'amp-wp'); ?></label></th>224 <td><input type="text" id="attachment-play-video" name="amp-wp-translation[attachment-play-video]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['attachment-play-video'] ) ) ? esc_attr( $amp_wp_translation_option['attachment-play-video'] ) : '%s to play video'; ?>" placeholder="%s to play video" /></td>225 </tr> 226 <tr> 227 <th scope="row"><label for="attachment-play-audio"><?php _e('Play Audio:', 'amp-wp'); ?></label></th>228 <td><input type="text" id="attachment-play-audio" name="amp-wp-translation[attachment-play-audio]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['attachment-play-audio'] ) ) ? esc_attr( $amp_wp_translation_option['attachment-play-audio'] ) : '%s to play audio'; ?>" placeholder="%s to play audio" /></td>229 </tr> 230 <tr> 231 <th scope="row"><label for="attachment-download-file"><?php _e('Download File:', 'amp-wp'); ?></label></th>232 <td><input type="text" id="attachment-download-file" name="amp-wp-translation[attachment-download-file]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['attachment-download-file'] ) ) ? esc_attr( $amp_wp_translation_option['attachment-download-file'] ) : '%s to Download File'; ?>" placeholder="%s to Download File" /></td>233 </tr> 234 <tr> 235 <th scope="row"><label for="attachment-next"><?php _e('Next Attachment:', 'amp-wp'); ?></label></th>236 <td><input type="text" id="attachment-next" name="amp-wp-translation[attachment-next]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['attachment-next'] ) ) ? esc_attr( $amp_wp_translation_option['attachment-next'] ) : 'Next'; ?>" placeholder="Next" /></td>237 </tr> 238 <tr> 239 <th scope="row"><label for="attachment-prev"><?php _e('Previous Attachment:', 'amp-wp'); ?></label></th>240 <td><input type="text" id="attachment-prev" name="amp-wp-translation[attachment-prev]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['attachment-prev'] ) ) ? esc_attr( $amp_wp_translation_option['attachment-prev'] ) : 'Previous'; ?>" placeholder="Previous" /></td>241 </tr> 242 </tbody>243 </table>244 <!-- /Attachment Texts -->245 246 <!-- Comments -->247 <h3 class="amp-wp-form-section-title"><?php_e( 'Comments', 'amp-wp' ); ?></h3>248 <table class="form-table amp-wp-form-table">249 <tbody>250 <?php foreach ( $sections['comments']['fields'] as $field ): ?>147 <th scope="row"><label for="share"><?php esc_html_e( 'Share:', 'amp-wp' ); ?></label></th> 148 <td><input type="text" id="share" name="amp-wp-translation[share]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['share'] ) ) ? esc_attr( $amp_wp_translation_option['share'] ) : 'Share'; ?>" placeholder="Share" /></td> 149 </tr> 150 <tr> 151 <th scope="row"><label for="listing_2_date"><?php esc_html_e( 'Large Listing Date Format:', 'amp-wp' ); ?></label></th> 152 <td><input type="text" id="listing_2_date" name="amp-wp-translation[listing_2_date]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['listing_2_date'] ) ) ? esc_attr( $amp_wp_translation_option['listing_2_date'] ) : 'M d, Y'; ?>" placeholder="M d, Y" /></td> 153 </tr> 154 <tr> 155 <th scope="row"><label for="tags"><?php esc_html_e( 'Tags:', 'amp-wp' ); ?></label></th> 156 <td><input type="text" id="tags" name="amp-wp-translation[tags]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['tags'] ) ) ? esc_attr( $amp_wp_translation_option['tags'] ) : 'Tags'; ?>" placeholder="Tags" /></td> 157 </tr> 158 <tr> 159 <th scope="row"><label for="related_posts"><?php esc_html_e( 'Related Posts:', 'amp-wp' ); ?></label></th> 160 <td><input type="text" id="related_posts" name="amp-wp-translation[related_posts]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['related_posts'] ) ) ? esc_attr( $amp_wp_translation_option['related_posts'] ) : 'Related Posts'; ?>" placeholder="Related Posts" /></td> 161 </tr> 162 </tbody> 163 </table> 164 <!-- /Posts --> 165 166 <!-- Post Formats --> 167 <h3 class="amp-wp-form-section-title"><?php esc_html_e( 'Post Formats', 'amp-wp' ); ?></h3> 168 <table class="form-table amp-wp-form-table"> 169 <tbody> 170 <tr> 171 <th scope="row"><label for="asides"><?php esc_html_e( 'Asides:', 'amp-wp' ); ?></label></th> 172 <td><input type="text" id="asides" name="amp-wp-translation[asides]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['asides'] ) ) ? esc_attr( $amp_wp_translation_option['asides'] ) : 'Asides'; ?>" placeholder="Asides" /></td> 173 </tr> 174 <tr> 175 <th scope="row"><label for="galleries"><?php esc_html_e( 'Galleries:', 'amp-wp' ); ?></label></th> 176 <td><input type="text" id="galleries" name="amp-wp-translation[galleries]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['galleries'] ) ) ? esc_attr( $amp_wp_translation_option['galleries'] ) : 'Galleries'; ?>" placeholder="Galleries" /></td> 177 </tr> 178 <tr> 179 <th scope="row"><label for="images"><?php esc_html_e( 'Images:', 'amp-wp' ); ?></label></th> 180 <td><input type="text" id="images" name="amp-wp-translation[images]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['images'] ) ) ? esc_attr( $amp_wp_translation_option['images'] ) : 'Images'; ?>" placeholder="Images" /></td> 181 </tr> 182 <tr> 183 <th scope="row"><label for="videos"><?php esc_html_e( 'Videos:', 'amp-wp' ); ?></label></th> 184 <td><input type="text" id="videos" name="amp-wp-translation[videos]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['videos'] ) ) ? esc_attr( $amp_wp_translation_option['videos'] ) : 'Videos'; ?>" placeholder="Videos" /></td> 185 </tr> 186 <tr> 187 <th scope="row"><label for="quotes"><?php esc_html_e( 'Quotes:', 'amp-wp' ); ?></label></th> 188 <td><input type="text" id="quotes" name="amp-wp-translation[quotes]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['quotes'] ) ) ? esc_attr( $amp_wp_translation_option['quotes'] ) : 'Quotes'; ?>" placeholder="Quotes" /></td> 189 </tr> 190 <tr> 191 <th scope="row"><label for="links"><?php esc_html_e( 'Links:', 'amp-wp' ); ?></label></th> 192 <td><input type="text" id="links" name="amp-wp-translation[links]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['links'] ) ) ? esc_attr( $amp_wp_translation_option['links'] ) : 'Links'; ?>" placeholder="Links" /></td> 193 </tr> 194 <tr> 195 <th scope="row"><label for="statuses"><?php esc_html_e( 'Statuses:', 'amp-wp' ); ?></label></th> 196 <td><input type="text" id="statuses" name="amp-wp-translation[statuses]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['statuses'] ) ) ? esc_attr( $amp_wp_translation_option['statuses'] ) : 'Statuses'; ?>" placeholder="Statuses" /></td> 197 </tr> 198 <tr> 199 <th scope="row"><label for="audio"><?php esc_html_e( 'Audio:', 'amp-wp' ); ?></label></th> 200 <td><input type="text" id="audio" name="amp-wp-translation[audio]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['audio'] ) ) ? esc_attr( $amp_wp_translation_option['audio'] ) : 'Audio'; ?>" placeholder="Audio" /></td> 201 </tr> 202 <tr> 203 <th scope="row"><label for="chats"><?php esc_html_e( 'Chats:', 'amp-wp' ); ?></label></th> 204 <td><input type="text" id="chats" name="amp-wp-translation[chats]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['chats'] ) ) ? esc_attr( $amp_wp_translation_option['chats'] ) : 'Chats'; ?>" placeholder="Chats" /></td> 205 </tr> 206 </tbody> 207 </table> 208 <!-- /Post Formats --> 209 210 <!-- Attachment Texts --> 211 <h3 class="amp-wp-form-section-title"><?php esc_html_e( 'Attachment Texts', 'amp-wp' ); ?></h3> 212 <table class="form-table amp-wp-form-table"> 213 <tbody> 214 <tr> 215 <th scope="row"><label for="attachment-return-to"><?php esc_html_e( 'Return to post:', 'amp-wp' ); ?></label></th> 216 <td><input type="text" id="attachment-return-to" name="amp-wp-translation[attachment-return-to]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['attachment-return-to'] ) ) ? esc_attr( $amp_wp_translation_option['attachment-return-to'] ) : 'Return to "%s"'; ?>" placeholder='Return to "%s"' /></td> 217 </tr> 218 <tr> 219 <th scope="row"><label for="click-here"><?php esc_html_e( 'Click here:', 'amp-wp' ); ?></label></th> 220 <td><input type="text" id="click-here" name="amp-wp-translation[click-here]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['click-here'] ) ) ? esc_attr( $amp_wp_translation_option['click-here'] ) : 'Click here'; ?>" placeholder="Click here" /></td> 221 </tr> 222 <tr> 223 <th scope="row"><label for="attachment-play-video"><?php esc_html_e( 'Play Video:', 'amp-wp' ); ?></label></th> 224 <td><input type="text" id="attachment-play-video" name="amp-wp-translation[attachment-play-video]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['attachment-play-video'] ) ) ? esc_attr( $amp_wp_translation_option['attachment-play-video'] ) : '%s to play video'; ?>" placeholder="%s to play video" /></td> 225 </tr> 226 <tr> 227 <th scope="row"><label for="attachment-play-audio"><?php esc_html_e( 'Play Audio:', 'amp-wp' ); ?></label></th> 228 <td><input type="text" id="attachment-play-audio" name="amp-wp-translation[attachment-play-audio]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['attachment-play-audio'] ) ) ? esc_attr( $amp_wp_translation_option['attachment-play-audio'] ) : '%s to play audio'; ?>" placeholder="%s to play audio" /></td> 229 </tr> 230 <tr> 231 <th scope="row"><label for="attachment-download-file"><?php esc_html_e( 'Download File:', 'amp-wp' ); ?></label></th> 232 <td><input type="text" id="attachment-download-file" name="amp-wp-translation[attachment-download-file]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['attachment-download-file'] ) ) ? esc_attr( $amp_wp_translation_option['attachment-download-file'] ) : '%s to Download File'; ?>" placeholder="%s to Download File" /></td> 233 </tr> 234 <tr> 235 <th scope="row"><label for="attachment-next"><?php esc_html_e( 'Next Attachment:', 'amp-wp' ); ?></label></th> 236 <td><input type="text" id="attachment-next" name="amp-wp-translation[attachment-next]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['attachment-next'] ) ) ? esc_attr( $amp_wp_translation_option['attachment-next'] ) : 'Next'; ?>" placeholder="Next" /></td> 237 </tr> 238 <tr> 239 <th scope="row"><label for="attachment-prev"><?php esc_html_e( 'Previous Attachment:', 'amp-wp' ); ?></label></th> 240 <td><input type="text" id="attachment-prev" name="amp-wp-translation[attachment-prev]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['attachment-prev'] ) ) ? esc_attr( $amp_wp_translation_option['attachment-prev'] ) : 'Previous'; ?>" placeholder="Previous" /></td> 241 </tr> 242 </tbody> 243 </table> 244 <!-- /Attachment Texts --> 245 246 <!-- Comments --> 247 <h3 class="amp-wp-form-section-title"><?php esc_html_e( 'Comments', 'amp-wp' ); ?></h3> 248 <table class="form-table amp-wp-form-table"> 249 <tbody> 250 <?php foreach ( $sections['comments']['fields'] as $field ) : ?> 251 251 <tr> 252 252 <th scope="row"><label for="<?php echo esc_attr( $field['id'] ); ?>"><?php echo esc_attr( $field['title'] ); ?></label></th> … … 254 254 </tr> 255 255 <?php endforeach; ?> 256 </tbody>257 </table>258 <!-- /Comments -->259 260 <!-- Footer -->261 <h3 class="amp-wp-form-section-title"><?php_e( 'Footer', 'amp-wp' ); ?></h3>262 <table class="form-table amp-wp-form-table">263 <tbody> 264 <tr> 265 <th scope="row"><label for="view_desktop"><?php _e('View Desktop Version:', 'amp-wp'); ?></label></th>266 <td><input type="text" id="view_desktop" name="amp-wp-translation[view_desktop]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['view_desktop'] ) ) ? esc_attr( $amp_wp_translation_option['view_desktop'] ) : 'View Desktop Version'; ?>" placeholder="View Desktop Version" /></td>267 </tr> 268 </tbody> 269 </table> 270 <!-- /Footer -->271 272 <!-- 404 -->273 <h3 class="amp-wp-form-section-title"><?php_e( '404 Page', 'amp-wp' ); ?></h3>274 <table class="form-table amp-wp-form-table">275 <tbody>276 <tr>277 <th scope="row"><label for="404_message"><?php _e('404 Page Message:', 'amp-wp'); ?></label></th>278 <td><input type="text" id="404_message" name="amp-wp-translation[404_message]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['404_message'] ) ) ? esc_attr( $amp_wp_translation_option['404_message'] ) : 'Oops! That page cannot be found.'; ?>" placeholder="Oops! That page cannot be found." /></td>279 </tr> 280 </tbody>281 </table> 282 <!-- 404 -->283 284 <!-- 404 -->285 <h3 class="amp-wp-form-section-title"><?php_e( 'OneSignal – Web Push Notifications', 'amp-wp' ); ?></h3>286 <table class="form-table amp-wp-form-table">287 <tbody>288 <tr>289 <th scope="row"><label for="onesignal_subscribe"><?php _e('Subscribe:', 'amp-wp'); ?></label></th>290 <td><input type="text" id="onesignal_subscribe" name="amp-wp-translation[onesignal_subscribe]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['onesignal_subscribe'] ) ) ? esc_attr( $amp_wp_translation_option['onesignal_subscribe'] ) : 'Subscribe to updates'; ?>" placeholder="Subscribe to updates" /></td>291 </tr> 292 <tr>293 <th scope="row"><label for="onesignal_unsubsribe"><?php _e('Unsubsribe:', 'amp-wp'); ?></label></th>294 <td><input type="text" id="onesignal_unsubsribe" name="amp-wp-translation[onesignal_unsubsribe]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['onesignal_unsubsribe'] ) ) ? esc_attr( $amp_wp_translation_option['onesignal_unsubsribe'] ) : 'Unsubscribe from updates'; ?>" placeholder="Unsubscribe from updates" /></td>295 </tr> 296 </tbody>297 </table> 298 <!-- 404 -->299 300 <?php wp_nonce_field( 'amp_wp_translation_setting', 'amp_wp_translation_nonce'); ?>301 <?php wp_original_referer_field( true, 'previous'); ?>256 </tbody> 257 </table> 258 <!-- /Comments --> 259 260 <!-- Footer --> 261 <h3 class="amp-wp-form-section-title"><?php esc_html_e( 'Footer', 'amp-wp' ); ?></h3> 262 <table class="form-table amp-wp-form-table"> 263 <tbody> 264 <tr> 265 <th scope="row"><label for="view_desktop"><?php esc_html_e( 'View Desktop Version:', 'amp-wp' ); ?></label></th> 266 <td><input type="text" id="view_desktop" name="amp-wp-translation[view_desktop]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['view_desktop'] ) ) ? esc_attr( $amp_wp_translation_option['view_desktop'] ) : 'View Desktop Version'; ?>" placeholder="View Desktop Version" /></td> 267 </tr> 268 </tbody> 269 </table> 270 <!-- /Footer --> 271 272 <!-- 404 --> 273 <h3 class="amp-wp-form-section-title"><?php esc_html_e( '404 Page', 'amp-wp' ); ?></h3> 274 <table class="form-table amp-wp-form-table"> 275 <tbody> 276 <tr> 277 <th scope="row"><label for="404_message"><?php esc_html_e( '404 Page Message:', 'amp-wp' ); ?></label></th> 278 <td><input type="text" id="404_message" name="amp-wp-translation[404_message]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['404_message'] ) ) ? esc_attr( $amp_wp_translation_option['404_message'] ) : 'Oops! That page cannot be found.'; ?>" placeholder="Oops! That page cannot be found." /></td> 279 </tr> 280 </tbody> 281 </table> 282 <!-- 404 --> 283 284 <!-- 404 --> 285 <h3 class="amp-wp-form-section-title"><?php esc_html_e( 'OneSignal – Web Push Notifications', 'amp-wp' ); ?></h3> 286 <table class="form-table amp-wp-form-table"> 287 <tbody> 288 <tr> 289 <th scope="row"><label for="onesignal_subscribe"><?php esc_html_e( 'Subscribe:', 'amp-wp' ); ?></label></th> 290 <td><input type="text" id="onesignal_subscribe" name="amp-wp-translation[onesignal_subscribe]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['onesignal_subscribe'] ) ) ? esc_attr( $amp_wp_translation_option['onesignal_subscribe'] ) : 'Subscribe to updates'; ?>" placeholder="Subscribe to updates" /></td> 291 </tr> 292 <tr> 293 <th scope="row"><label for="onesignal_unsubsribe"><?php esc_html_e( 'Unsubsribe:', 'amp-wp' ); ?></label></th> 294 <td><input type="text" id="onesignal_unsubsribe" name="amp-wp-translation[onesignal_unsubsribe]" size="30" value="<?php echo ( isset( $amp_wp_translation_option ) && ! empty( $amp_wp_translation_option['onesignal_unsubsribe'] ) ) ? esc_attr( $amp_wp_translation_option['onesignal_unsubsribe'] ) : 'Unsubscribe from updates'; ?>" placeholder="Unsubscribe from updates" /></td> 295 </tr> 296 </tbody> 297 </table> 298 <!-- 404 --> 299 300 <?php wp_nonce_field( 'amp_wp_translation_setting', 'amp_wp_translation_nonce' ); ?> 301 <?php wp_original_referer_field( true, 'previous' ); ?> 302 302 <input type="hidden" value="1" name="admin_notices"> 303 303 </div> 304 304 <div class="amp-wp-vtabs-footer"> 305 <div class="amp-wp-vtabs-title">306 <h2><?php _e('Translation', 'amp-wp'); ?></h2>307 </div>308 <div class="amp-wp-vtabs-btn-toolbar">309 <?php submit_button(__('Save Changes'), 'button-primary', 'save', false); ?>310 </div>311 </div>305 <div class="amp-wp-vtabs-title"> 306 <h2><?php esc_html_e( 'Translation', 'amp-wp' ); ?></h2> 307 </div> 308 <div class="amp-wp-vtabs-btn-toolbar"> 309 <?php submit_button( __( 'Save Changes' ), 'button-primary', 'save', false ); ?> 310 </div> 311 </div> 312 312 </form> 313 313 </div> -
amp-wp/trunk/amp-wp.php
r2552932 r2585601 16 16 * Plugin URI: https://wordpress.org/plugins/amp-wp 17 17 * Description: Automagically add Google AMP functionality to your site. Tons of Premium Features for FREE. Enable/Disable Post Types, Categories, and Tags. 18 * Version: 1.5.1 218 * Version: 1.5.13 19 19 * Author: Pixelative, Mohsin Rafique 20 20 * Author URI: https://pixelative.co … … 54 54 * Rename this for your plugin and update it as you release new versions. 55 55 */ 56 define( 'AMP_WP_VERSION', '1.5.1 2' );56 define( 'AMP_WP_VERSION', '1.5.13' ); 57 57 58 58 /** -
amp-wp/trunk/includes/admin/settings/class-amp-wp-general.php
r2125154 r2585601 1 <?php if ( ! defined( 'ABSPATH' ) ) { 2 exit; 3 } // Exit if accessed directly 1 <?php 4 2 /** 5 3 * Amp_WP_General Class … … 14 12 * @author Pixelative <mohsin@pixelative.co> 15 13 */ 14 15 if ( ! defined( 'ABSPATH' ) ) { 16 exit; 17 } // Exit if accessed directly. 18 16 19 class Amp_WP_General { 17 20 /** … … 45 48 ); 46 49 47 // Filter -> Add General Settings Tab 50 // Filter -> Add General Settings Tab. 48 51 add_filter( 'amp_wp_settings_tab_menus', array( $this, 'amp_wp_add_general_tab' ) ); 49 52 50 // Action -> Display General Settings 53 // Action -> Display General Settings. 51 54 add_action( 'amp_wp_settings_tab_section', array( $this, 'amp_wp_add_general_settings' ) ); 52 55 53 // Action -> Save General Settings 56 // Action -> Save General Settings. 54 57 add_action( 'amp_wp_save_setting_sections', array( $this, 'amp_wp_save_general_settings' ) ); 55 58 } … … 58 61 * Add General Settings Tab 59 62 * 60 * @since 1.0.463 * @since 1.0.4 61 64 * 62 * @param array $tabs Settings Tab63 * @return array $tabsMerge array of Settings Tab with General Tab.65 * @param array $tabs Settings Tab. 66 * @return array $tabs Merge array of Settings Tab with General Tab. 64 67 */ 65 68 public function amp_wp_add_general_tab( $tabs ) { 66 67 $tabs['general'] = __( '<i class="amp-wp-admin-icon-settings-1"></i><span>General</span>', 'amp-wp' ); 68 return $tabs; 69 $tabs['general'] = __( '<i class="amp-wp-admin-icon-settings-1"></i><span>General</span>', 'amp-wp' ); 70 return $tabs; 69 71 } 70 72 … … 75 77 * the stored settings. 76 78 * 77 * @since 1.0.479 * @since 1.0.4 78 80 */ 79 81 public function amp_wp_add_general_settings() { 80 82 81 // Get General Settings 83 // Get General Settings. 82 84 $theme_name = ''; 83 85 $amp_on_home = ''; … … 97 99 $amp_on_taxonomies = ( isset( $amp_wp_general_settings['amp_on_taxonomies'] ) && ! empty( $amp_wp_general_settings['amp_on_taxonomies'] ) ) ? $amp_wp_general_settings['amp_on_taxonomies'] : array(); 98 100 $exclude_urls = ( isset( $amp_wp_general_settings['exclude_urls'] ) && ! empty( $amp_wp_general_settings['exclude_urls'] ) ) ? $amp_wp_general_settings['exclude_urls'] : ''; 99 $excluded_urls = ( isset( $amp_wp_general_settings['excluded_urls'] ) && !empty( $amp_wp_general_settings['excluded_urls'] ) ) ? $amp_wp_general_settings['excluded_urls'] : '';101 $excluded_urls = ( isset( $amp_wp_general_settings['excluded_urls'] ) && ! empty( $amp_wp_general_settings['excluded_urls'] ) ) ? $amp_wp_general_settings['excluded_urls'] : ''; 100 102 $url_structure = ( isset( $amp_wp_general_settings ) && ! empty( $amp_wp_general_settings['url_structure'] ) ) ? $amp_wp_general_settings['url_structure'] : 'start-point'; 101 $mobile_auto_redirect = ( isset( $amp_wp_general_settings['mobile_auto_redirect'] ) && ! empty( $amp_wp_general_settings['mobile_auto_redirect'] ) ) ? intval( $amp_wp_general_settings['mobile_auto_redirect'] ): '';103 $mobile_auto_redirect = ( isset( $amp_wp_general_settings['mobile_auto_redirect'] ) && ! empty( $amp_wp_general_settings['mobile_auto_redirect'] ) ) ? $amp_wp_general_settings['mobile_auto_redirect'] : ''; 102 104 $theme_name = ( isset( $amp_wp_general_settings['theme_name'] ) && ! empty( $amp_wp_general_settings['theme_name'] ) ) ? esc_attr( $amp_wp_general_settings['theme_name'] ) : ''; 103 105 } 104 106 105 // Load View 107 // Load View. 106 108 require_once AMP_WP_DIR_PATH . 'admin/partials/settings/amp-wp-admin-general.php'; 107 109 } -
amp-wp/trunk/includes/class-amp-wp-content-sanitizer.php
r2552932 r2585601 333 333 * @since 1.5.0 334 334 */ 335 $tokenize_url = wp_parse_url( $url );335 $tokenize_url = amp_wp_parse_url( $url ); 336 336 if ( $tokenize_url['path'] ) { 337 337 $url_array = explode( '/', $tokenize_url['path'] ); … … 386 386 } 387 387 388 $parsed = wp_parse_url( $url );388 $parsed = amp_wp_parse_url( $url ); 389 389 $path = isset( $parsed['path'] ) ? $parsed['path'] : '/'; 390 390 $query = isset( $parsed['query'] ) ? $parsed['query'] : ''; … … 518 518 } 519 519 520 $parsed = wp_parse_url( $url );520 $parsed = amp_wp_parse_url( $url ); 521 521 if ( empty( $parsed['path'] ) ) { 522 522 return $default; … … 847 847 848 848 $val = isset( $element_atts[ $atts['name'] ] ) ? wp_check_invalid_utf8( $element_atts[ $atts['name'] ] ) : null; 849 $parsed = $val ? parse_url( $val ) : array();849 $parsed = $val ? amp_wp_parse_url( $val ) : array(); 850 850 851 851 // Check empty URL value. … … 983 983 $extra_tags = array( 984 984 'script', 985 'style', 985 986 'svg', 986 987 'canvas', … … 1053 1054 $action_xhr = ''; 1054 1055 if ( $action ) { 1055 $parsed_action = wp_parse_url( $action );1056 $parsed_action = amp_wp_parse_url( $action ); 1056 1057 if ( ! isset( $parsed_action['scheme'] ) && ! empty( $parsed_action['path'] ) ) { 1057 1058 $action_xhr = $parsed_action['path']; … … 1197 1198 static $current_url_parsed; 1198 1199 if ( ! $current_url_parsed ) { 1199 $current_url_parsed = wp_parse_url( site_url() );1200 } 1201 $parsed_url = wp_parse_url( $url );1200 $current_url_parsed = amp_wp_parse_url( site_url() ); 1201 } 1202 $parsed_url = amp_wp_parse_url( $url ); 1202 1203 1203 1204 if ( ! isset( $parsed_url['host'] ) || $parsed_url['host'] === $current_url_parsed['host'] ) { -
amp-wp/trunk/includes/class-amp-wp-plugin-compatibility.php
r2552932 r2585601 847 847 $tz = get_option( 'gmt_offset' ); 848 848 $v = 'ext'; 849 $blog_url = wp_parse_url( site_url() );849 $blog_url = amp_wp_parse_url( site_url() ); 850 850 $srv = $blog_url['host']; 851 851 $j = sprintf( '%s:%s', JETPACK__API_VERSION, JETPACK__VERSION ); … … 903 903 $count = count( $matches[1] ); 904 904 for ( $row = 0; $row < $count; $row++ ) { 905 $new_skip_url_array = wp_parse_url( $matches[1][ "$row" ] );905 $new_skip_url_array = amp_wp_parse_url( $matches[1][ "$row" ] ); 906 906 $args['query-args'] = array( array( 'amp-wp-skip-redirect', true ) ); 907 907 } -
amp-wp/trunk/includes/components/class-amp-wp-iframe-component.php
r2076574 r2585601 331 331 continue; 332 332 } 333 334 $this->sanitize( $element ); 333 335 $attributes = $instance->filter_attributes( $instance->get_node_attributes( $element ) ); 334 336 $attributes = $this->filter_attributes( $attributes ); … … 503 505 return $video_id; 504 506 } 507 508 /** 509 * Sanitize iframe element. 510 * 511 * @param DOMElement $element 512 * 513 * @since 1.5.13 514 */ 515 protected function sanitize( $element ) { 516 // Fix: remove aparat iframe extra tags 517 if ( preg_match( '/aparat/i', $element->parentNode->getAttribute( 'class' ) ) && $element->previousSibling ) { 518 if ( in_array( $element->previousSibling->tagName, array( 'div', 'span' ), true ) ) { 519 $element->parentNode->removeChild( $element->previousSibling ); 520 } 521 } 522 } 505 523 } 506 524 -
amp-wp/trunk/includes/components/class-amp-wp-img-component.php
r2125154 r2585601 324 324 */ 325 325 public function get_image_dimension( $url ) { 326 326 327 327 $hash_key = 'amp_wp_dimension_' . md5( $url ); 328 328 329 329 $dimension = get_transient( $hash_key ); 330 330 if ( $dimension ) { 331 331 return $dimension; 332 332 } 333 333 334 334 if ( $normalize_url = $this->normalize_url( $url ) ) { 335 335 $dimension = $this->fetch_image_dimension( $normalize_url ); 336 336 } elseif ( $this->is_data_url( $url ) ) { 337 337 if ( $size = @getimagesize( $url ) ) { 338 $dimension = [ $size[0], $size[1] ];339 } 340 } 341 338 $dimension = array( $size[0], $size[1] ); 339 } 340 } 341 342 342 if ( $dimension ) { 343 343 set_transient( $hash_key, $dimension, HOUR_IN_SECONDS ); … … 351 351 return $dimension; 352 352 } 353 353 354 354 /** 355 355 * Is this a data-src URL? … … 382 382 return set_url_scheme( $url, 'http' ); } 383 383 384 $parsed = wp_parse_url( $url ); 384 // $parsed = wp_parse_url( $url ); 385 $parsed = amp_wp_parse_url( $url ); 385 386 386 387 if ( ! isset( $parsed['host'] ) ) { -
amp-wp/trunk/includes/functions/amp-wp-template-functions.php
r2552932 r2585601 512 512 $amp_wp_general_settings = get_option( 'amp_wp_general_settings' ); 513 513 if ( isset( $amp_wp_general_settings['mobile_auto_redirect'] ) && ! empty( $amp_wp_general_settings['mobile_auto_redirect'] ) ) { 514 $mobile_auto_redirect = intval( $amp_wp_general_settings['mobile_auto_redirect'] );514 $mobile_auto_redirect = $amp_wp_general_settings['mobile_auto_redirect']; 515 515 } 516 516 } … … 1040 1040 <script type="application/json"> 1041 1041 { 1042 1043 1042 "vars": { 1044 1043 "host": "<?php echo esc_attr( $adobe_host_name ); ?>", … … 1157 1156 $amp_site = ''; 1158 1157 $current_url = wp_get_referer(); 1159 $site_url = wp_parse_url( get_site_url() );1158 $site_url = amp_wp_parse_url( get_site_url() ); 1160 1159 $site_host = $site_url['host']; 1161 1160 $amp_site = $site_url['scheme'] . '://' . $site_url['host']; … … 1203 1202 * Enqueue gutenberg block styles. 1204 1203 * 1205 * @param string $content 1204 * @param string $content Content of the current post. 1206 1205 * 1207 1206 * @since 1.4.0 -
amp-wp/trunk/includes/functions/amp-wp-theme-functions.php
r2552932 r2585601 396 396 */ 397 397 function amp_wp_get_canonical_url() { 398 $parse = parse_url( home_url() );398 $parse = amp_wp_parse_url( home_url() ); 399 399 list( $url ) = explode( '?', $_SERVER['REQUEST_URI'] ); 400 400 $valid_queries = array_intersect_key( … … 2318 2318 * @since 1.0.0 2319 2319 * 2320 * @return int2320 * @return string 2321 2321 */ 2322 2322 function amp_wp_get_comment_link() { … … 2333 2333 * Retrieve the HTML Content for Reply to Comment Link. 2334 2334 * 2335 * @param array $args @see comment_reply_link for documentation2335 * @param array $args @see comment_reply_link for documentation. 2336 2336 * 2337 2337 * @version 1.0.0 -
amp-wp/trunk/includes/functions/amp-wp-third-party-plugins-functions.php
r2552932 r2585601 98 98 99 99 $amp_wp_third_party_plugins_support_settings = get_option( 'amp_wp_third_party_plugins_support_settings' ); 100 if ( 'below_the_content' == $amp_wp_third_party_plugins_support_settings['onesignal_position'] ) {100 if ( isset( $amp_wp_third_party_plugins_support_settings['onesignal_position'] ) && 'below_the_content' == $amp_wp_third_party_plugins_support_settings['onesignal_position'] ) { 101 101 add_action( 'amp_wp_post_content_below', 'amp_wp_onesignal_notifications_widget' ); 102 } elseif ( 'above_the_content' == $amp_wp_third_party_plugins_support_settings['onesignal_position'] ) {102 } elseif ( isset( $amp_wp_third_party_plugins_support_settings['onesignal_position'] ) && 'above_the_content' == $amp_wp_third_party_plugins_support_settings['onesignal_position'] ) { 103 103 add_action( 'amp_wp_post_content_before', 'amp_wp_onesignal_notifications_widget' ); 104 104 } -
amp-wp/trunk/includes/functions/amp-wp-utility-functions.php
r2125154 r2585601 333 333 $amp_url = get_permalink( $post_id ); 334 334 } else { 335 $parsed_url = wp_parse_url( get_permalink( $post_id ) );335 $parsed_url = amp_wp_parse_url( get_permalink( $post_id ) ); 336 336 $structure = get_option( 'permalink_structure' ); 337 337 if ( empty( $structure ) || ! empty( $parsed_url['query'] ) || is_post_type_hierarchical( get_post_type( $post_id ) ) ) { … … 399 399 } 400 400 endif; 401 402 403 if ( ! function_exists( 'amp_wp_parse_url' ) ) { 404 /** 405 * Parse a URL and return its components. 406 * 407 * @param string $url Parsing URL. 408 * @param int $component Components to be parse from the URL. 409 * 410 * @since 1.5.13 411 * @return array|string|false 412 */ 413 function amp_wp_parse_url( $url, $component = -1 ) { 414 $encoded_url = preg_replace_callback( 415 '%[^:/@?&=#]+%usD', 416 function ( $matches ) { 417 return urlencode( $matches[0] ); 418 }, 419 $url 420 ); 421 422 $parts = wp_parse_url( $encoded_url, $component ); 423 if ( false === $parts ) { 424 return array(); 425 } 426 427 if ( ! empty( $parts ) && is_array( $parts ) ) { 428 $parts = array_map( 'urldecode', $parts ); 429 } 430 431 return $parts; 432 } 433 } -
amp-wp/trunk/languages/amp-wp.pot
r2552932 r2585601 4 4 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 5 5 "Project-Id-Version: AMP WP\n" 6 "POT-Creation-Date: 2021-0 6-23 19:27+0500\n"6 "POT-Creation-Date: 2021-08-19 20:47+0500\n" 7 7 "PO-Revision-Date: 2019-11-18 07:46+0500\n" 8 8 "Last-Translator: \n" … … 66 66 67 67 #: admin/partials/amp-wp-admin-header.php:62 68 #: admin/partials/amp-wp-admin-system-status.php:1 969 #: admin/partials/amp-wp-admin-system-status.php:57 168 #: admin/partials/amp-wp-admin-system-status.php:18 69 #: admin/partials/amp-wp-admin-system-status.php:570 70 70 msgid "System Status" 71 71 msgstr "" … … 113 113 msgstr "" 114 114 115 #: admin/partials/amp-wp-admin-system-status.php:2 1116 #: admin/partials/amp-wp-admin-system-status.php:57 3115 #: admin/partials/amp-wp-admin-system-status.php:20 116 #: admin/partials/amp-wp-admin-system-status.php:572 117 117 msgid "Get System Report" 118 118 msgstr "" 119 119 120 #: admin/partials/amp-wp-admin-system-status.php:2 6120 #: admin/partials/amp-wp-admin-system-status.php:25 121 121 msgid "" 122 122 "Click the Get System Report button at the top right to produce a report, " … … 124 124 msgstr "" 125 125 126 #: admin/partials/amp-wp-admin-system-status.php: 30126 #: admin/partials/amp-wp-admin-system-status.php:29 127 127 msgid "Copied!" 128 128 msgstr "" 129 129 130 #: admin/partials/amp-wp-admin-system-status.php: 30130 #: admin/partials/amp-wp-admin-system-status.php:29 131 131 msgid "Copy for Support" 132 132 msgstr "" 133 133 134 #: admin/partials/amp-wp-admin-system-status.php:3 7134 #: admin/partials/amp-wp-admin-system-status.php:36 135 135 msgid "WordPress Environment" 136 136 msgstr "" 137 137 138 #: admin/partials/amp-wp-admin-system-status.php:41 139 msgid "Home URL" 140 msgstr "" 141 138 142 #: admin/partials/amp-wp-admin-system-status.php:42 139 msgid "Home URL"140 msgstr ""141 142 #: admin/partials/amp-wp-admin-system-status.php:43143 143 msgid "The URL of your site's homepage." 144 144 msgstr "" 145 145 146 #: admin/partials/amp-wp-admin-system-status.php:46 147 msgid "Site URL" 148 msgstr "" 149 146 150 #: admin/partials/amp-wp-admin-system-status.php:47 147 msgid "Site URL"148 msgstr ""149 150 #: admin/partials/amp-wp-admin-system-status.php:48151 151 msgid "The root URL of your site." 152 152 msgstr "" 153 153 154 #: admin/partials/amp-wp-admin-system-status.php:51 155 msgid "AMP WP Version" 156 msgstr "" 157 154 158 #: admin/partials/amp-wp-admin-system-status.php:52 155 msgid "AMP WP Version"156 msgstr ""157 158 #: admin/partials/amp-wp-admin-system-status.php:53159 159 msgid "The version of AMP WP installed on your site." 160 160 msgstr "" 161 161 162 #: admin/partials/amp-wp-admin-system-status.php:56 163 msgid "WordPress Version" 164 msgstr "" 165 162 166 #: admin/partials/amp-wp-admin-system-status.php:57 163 msgid "WordPress Version"164 msgstr ""165 166 #: admin/partials/amp-wp-admin-system-status.php:58167 167 msgid "The version of WordPress installed on your site." 168 168 msgstr "" 169 169 170 #: admin/partials/amp-wp-admin-system-status.php:7 7170 #: admin/partials/amp-wp-admin-system-status.php:76 171 171 #, php-format 172 172 msgid "%1$s - There is a newer version of WordPress available (%2$s)" 173 173 msgstr "" 174 174 175 #: admin/partials/amp-wp-admin-system-status.php:84 176 msgid "WordPress Multisite" 177 msgstr "" 178 175 179 #: admin/partials/amp-wp-admin-system-status.php:85 176 msgid "WordPress Multisite"177 msgstr ""178 179 #: admin/partials/amp-wp-admin-system-status.php:86180 180 msgid "Whether or not you have WordPress Multisite enabled." 181 181 msgstr "" 182 182 183 #: admin/partials/amp-wp-admin-system-status.php:89 184 msgid "WordPress Memory Limit" 185 msgstr "" 186 183 187 #: admin/partials/amp-wp-admin-system-status.php:90 184 msgid "WordPress Memory Limit"185 msgstr ""186 187 #: admin/partials/amp-wp-admin-system-status.php:91188 188 msgid "The maximum amount of memory (RAM) that your site can use at one time." 189 189 msgstr "" 190 190 191 #: admin/partials/amp-wp-admin-system-status.php:9 6191 #: admin/partials/amp-wp-admin-system-status.php:95 192 192 #, php-format 193 193 msgid "%1$s - We recommend setting memory to at least 64MB. See: %2$s" 194 194 msgstr "" 195 195 196 #: admin/partials/amp-wp-admin-system-status.php:9 6196 #: admin/partials/amp-wp-admin-system-status.php:95 197 197 msgid "Increasing memory allocated to PHP" 198 198 msgstr "" 199 199 200 #: admin/partials/amp-wp-admin-system-status.php:103 201 msgid "WP Debug Mode" 202 msgstr "" 203 200 204 #: admin/partials/amp-wp-admin-system-status.php:104 201 msgid "WP Debug Mode"202 msgstr ""203 204 #: admin/partials/amp-wp-admin-system-status.php:105205 205 msgid "Displays whether or not WordPress is in Debug Mode." 206 206 msgstr "" 207 207 208 #: admin/partials/amp-wp-admin-system-status.php:114 209 msgid "WordPress Cron" 210 msgstr "" 211 208 212 #: admin/partials/amp-wp-admin-system-status.php:115 209 msgid "WordPress Cron"210 msgstr ""211 212 #: admin/partials/amp-wp-admin-system-status.php:116213 213 msgid "Displays whether or not WP Cron Jobs are enabled." 214 214 msgstr "" 215 215 216 #: admin/partials/amp-wp-admin-system-status.php:125 217 msgid "Language" 218 msgstr "" 219 216 220 #: admin/partials/amp-wp-admin-system-status.php:126 217 msgid "Language"218 msgstr ""219 220 #: admin/partials/amp-wp-admin-system-status.php:127221 221 msgid "The current language used by WordPress. Default = English" 222 222 msgstr "" 223 223 224 #: admin/partials/amp-wp-admin-system-status.php:130 225 msgid "External Object Cache" 226 msgstr "" 227 224 228 #: admin/partials/amp-wp-admin-system-status.php:131 225 msgid "External Object Cache"226 msgstr ""227 228 #: admin/partials/amp-wp-admin-system-status.php:132229 229 msgid "Displays whether or not WordPress is using an external object cache." 230 230 msgstr "" 231 231 232 #: admin/partials/amp-wp-admin-system-status.php:14 9232 #: admin/partials/amp-wp-admin-system-status.php:148 233 233 msgid "Server Environment" 234 234 msgstr "" 235 235 236 #: admin/partials/amp-wp-admin-system-status.php:153 237 msgid "Server Info:" 238 msgstr "" 239 236 240 #: admin/partials/amp-wp-admin-system-status.php:154 237 msgid "Server Info:"238 msgstr ""239 240 #: admin/partials/amp-wp-admin-system-status.php:155241 241 msgid "Information about the web server that is currently hosting your site." 242 242 msgstr "" 243 243 244 #: admin/partials/amp-wp-admin-system-status.php:158 245 msgid "PHP Version:" 246 msgstr "" 247 244 248 #: admin/partials/amp-wp-admin-system-status.php:159 245 msgid "PHP Version:"246 msgstr ""247 248 #: admin/partials/amp-wp-admin-system-status.php:160249 249 msgid "The version of PHP installed on your hosting server." 250 250 msgstr "" 251 251 252 #: admin/partials/amp-wp-admin-system-status.php:16 6252 #: admin/partials/amp-wp-admin-system-status.php:165 253 253 msgid "WordPress Requirements" 254 254 msgstr "" 255 255 256 #: admin/partials/amp-wp-admin-system-status.php:1 70256 #: admin/partials/amp-wp-admin-system-status.php:169 257 257 msgid "" 258 258 "AMP WP will run under this version of PHP, however, it has reached end of " … … 261 261 msgstr "" 262 262 263 #: admin/partials/amp-wp-admin-system-status.php:17 2263 #: admin/partials/amp-wp-admin-system-status.php:171 264 264 msgid "" 265 265 "WordPress recommend PHP version 7.2 or above for greater performance and " … … 267 267 msgstr "" 268 268 269 #: admin/partials/amp-wp-admin-system-status.php:181 270 msgid "PHP Post Max Size:" 271 msgstr "" 272 269 273 #: admin/partials/amp-wp-admin-system-status.php:182 270 msgid "PHP Post Max Size:"271 msgstr ""272 273 #: admin/partials/amp-wp-admin-system-status.php:183274 274 msgid "The largest file size that can be contained in one post." 275 275 msgstr "" 276 276 277 #: admin/partials/amp-wp-admin-system-status.php:186 278 msgid "PHP Time Limit:" 279 msgstr "" 280 277 281 #: admin/partials/amp-wp-admin-system-status.php:187 278 msgid "PHP Time Limit:"279 msgstr ""280 281 #: admin/partials/amp-wp-admin-system-status.php:188282 282 msgid "" 283 283 "The amount of time (in seconds) that your site will spend on a single " … … 286 286 287 287 #. translators: %1$s: Current value. %2$s: URL. 288 #: admin/partials/amp-wp-admin-system-status.php:19 5288 #: admin/partials/amp-wp-admin-system-status.php:194 289 289 #, php-format 290 290 msgid "" … … 294 294 msgstr "" 295 295 296 #: admin/partials/amp-wp-admin-system-status.php:202 297 msgid "PHP Max Input Vars:" 298 msgstr "" 299 296 300 #: admin/partials/amp-wp-admin-system-status.php:203 297 msgid "PHP Max Input Vars:" 298 msgstr "" 299 300 #: admin/partials/amp-wp-admin-system-status.php:204 301 #: admin/partials/amp-wp-admin-system-status.php:247 302 #: admin/partials/amp-wp-admin-system-status.php:279 301 #: admin/partials/amp-wp-admin-system-status.php:246 302 #: admin/partials/amp-wp-admin-system-status.php:278 303 303 msgid "" 304 304 "The maximum number of variables your server can use for a single function to " … … 307 307 308 308 #. translators: %1$s: Current value. $2%s: Recommended value. %3$s: URL. 309 #: admin/partials/amp-wp-admin-system-status.php:22 7310 #: admin/partials/amp-wp-admin-system-status.php:2 70311 #: admin/partials/amp-wp-admin-system-status.php:30 2309 #: admin/partials/amp-wp-admin-system-status.php:226 310 #: admin/partials/amp-wp-admin-system-status.php:269 311 #: admin/partials/amp-wp-admin-system-status.php:301 312 312 #, php-format 313 313 msgid "" … … 317 317 msgstr "" 318 318 319 #: admin/partials/amp-wp-admin-system-status.php:234 320 msgid "cURL version" 321 msgstr "" 322 319 323 #: admin/partials/amp-wp-admin-system-status.php:235 320 msgid "cURL version"321 msgstr ""322 323 #: admin/partials/amp-wp-admin-system-status.php:236324 324 msgid "The version of cURL installed on your server." 325 325 msgstr "" 326 326 327 #: admin/partials/amp-wp-admin-system-status.php:239 328 msgid "SUHOSIN Installed:" 329 msgstr "" 330 327 331 #: admin/partials/amp-wp-admin-system-status.php:240 328 msgid "SUHOSIN Installed:"329 msgstr ""330 331 #: admin/partials/amp-wp-admin-system-status.php:241332 332 msgid "" 333 333 "Suhosin is an advanced protection system for PHP installations. It was " … … 339 339 msgstr "" 340 340 341 #: admin/partials/amp-wp-admin-system-status.php:24 6341 #: admin/partials/amp-wp-admin-system-status.php:245 342 342 msgid "Suhosin Post Max Vars" 343 343 msgstr "" 344 344 345 #: admin/partials/amp-wp-admin-system-status.php:27 8345 #: admin/partials/amp-wp-admin-system-status.php:277 346 346 msgid "Suhosin Request Max Vars:" 347 347 msgstr "" 348 348 349 #: admin/partials/amp-wp-admin-system-status.php:309 350 msgid "Suhosin Post Max Value Length:" 351 msgstr "" 352 349 353 #: admin/partials/amp-wp-admin-system-status.php:310 350 msgid "Suhosin Post Max Value Length:"351 msgstr ""352 353 #: admin/partials/amp-wp-admin-system-status.php:311354 354 msgid "" 355 355 "Defines the maximum length of a variable that is registered through a POST " … … 358 358 359 359 #. translators: %1$s: Current value. $2%s: Recommended value. %3$s: URL. 360 #: admin/partials/amp-wp-admin-system-status.php:31 9360 #: admin/partials/amp-wp-admin-system-status.php:318 361 361 #, php-format 362 362 msgid "" … … 367 367 msgstr "" 368 368 369 #: admin/partials/amp-wp-admin-system-status.php:328 370 msgid "ZipArchive:" 371 msgstr "" 372 369 373 #: admin/partials/amp-wp-admin-system-status.php:329 370 msgid "ZipArchive:"371 msgstr ""372 373 #: admin/partials/amp-wp-admin-system-status.php:330374 374 msgid "" 375 375 "ZipArchive is required for importing AMP WP Option Settings. They are used " … … 377 377 msgstr "" 378 378 379 #: admin/partials/amp-wp-admin-system-status.php:333 380 msgid "MySQL Version:" 381 msgstr "" 382 379 383 #: admin/partials/amp-wp-admin-system-status.php:334 380 msgid "MySQL Version:"381 msgstr ""382 383 #: admin/partials/amp-wp-admin-system-status.php:335384 384 msgid "The version of MySQL installed on your hosting server." 385 385 msgstr "" 386 386 387 #: admin/partials/amp-wp-admin-system-status.php:3 40387 #: admin/partials/amp-wp-admin-system-status.php:339 388 388 #, php-format 389 389 msgid "%1$s - We recommend a minimum MySQL version of 5.6. See: %2$s" 390 390 msgstr "" 391 391 392 #: admin/partials/amp-wp-admin-system-status.php:3 40392 #: admin/partials/amp-wp-admin-system-status.php:339 393 393 msgid "WordPress requirements" 394 394 msgstr "" 395 395 396 #: admin/partials/amp-wp-admin-system-status.php:347 397 msgid "Max Upload Size:" 398 msgstr "" 399 396 400 #: admin/partials/amp-wp-admin-system-status.php:348 397 msgid "Max Upload Size:"398 msgstr ""399 400 #: admin/partials/amp-wp-admin-system-status.php:349401 401 msgid "" 402 402 "The largest file size that can be uploaded to your WordPress installation." 403 403 msgstr "" 404 404 405 #: admin/partials/amp-wp-admin-system-status.php:352 406 msgid "Default timezone is UTC" 407 msgstr "" 408 405 409 #: admin/partials/amp-wp-admin-system-status.php:353 406 msgid "Default timezone is UTC"407 msgstr ""408 409 #: admin/partials/amp-wp-admin-system-status.php:354410 410 msgid "The default timezone for your server." 411 411 msgstr "" 412 412 413 #: admin/partials/amp-wp-admin-system-status.php:35 9413 #: admin/partials/amp-wp-admin-system-status.php:358 414 414 #, php-format 415 415 msgid "Default timezone is %s - it should be UTC" 416 416 msgstr "" 417 417 418 #: admin/partials/amp-wp-admin-system-status.php:366 419 msgid "DOMDocument:" 420 msgstr "" 421 418 422 #: admin/partials/amp-wp-admin-system-status.php:367 419 msgid "DOMDocument:"420 msgstr ""421 422 #: admin/partials/amp-wp-admin-system-status.php:368423 423 msgid "DOMDocument is required for document traversing to properly function." 424 424 msgstr "" 425 425 426 #: admin/partials/amp-wp-admin-system-status.php:37 5426 #: admin/partials/amp-wp-admin-system-status.php:374 427 427 #, php-format 428 428 msgid "" … … 431 431 msgstr "" 432 432 433 #: admin/partials/amp-wp-admin-system-status.php:380 434 msgid "GZip" 435 msgstr "" 436 433 437 #: admin/partials/amp-wp-admin-system-status.php:381 434 msgid "GZip"435 msgstr ""436 437 #: admin/partials/amp-wp-admin-system-status.php:382438 438 msgid "GZip (gzopen) is used to make your site load faster." 439 439 msgstr "" 440 440 441 #: admin/partials/amp-wp-admin-system-status.php:38 9441 #: admin/partials/amp-wp-admin-system-status.php:388 442 442 #, php-format 443 443 msgid "" … … 446 446 msgstr "" 447 447 448 #: admin/partials/amp-wp-admin-system-status.php:394 449 msgid "WP Remote Get:" 450 msgstr "" 451 448 452 #: admin/partials/amp-wp-admin-system-status.php:395 449 msgid "WP Remote Get:" 450 msgstr "" 451 452 #: admin/partials/amp-wp-admin-system-status.php:396 453 #: admin/partials/amp-wp-admin-system-status.php:410 453 #: admin/partials/amp-wp-admin-system-status.php:409 454 454 msgid "" 455 455 "AMP WP uses this method to communicate with different APIs, e.g. Google, " … … 457 457 msgstr "" 458 458 459 #: admin/partials/amp-wp-admin-system-status.php:40 3460 #: admin/partials/amp-wp-admin-system-status.php:41 7459 #: admin/partials/amp-wp-admin-system-status.php:402 460 #: admin/partials/amp-wp-admin-system-status.php:416 461 461 #, php-format 462 462 msgid "%s failed. Contact your hosting provider." 463 463 msgstr "" 464 464 465 #: admin/partials/amp-wp-admin-system-status.php:40 9465 #: admin/partials/amp-wp-admin-system-status.php:408 466 466 msgid "WP Remote Post:" 467 467 msgstr "" 468 468 469 #: admin/partials/amp-wp-admin-system-status.php:422 470 msgid "GD Library:" 471 msgstr "" 472 469 473 #: admin/partials/amp-wp-admin-system-status.php:423 470 msgid "GD Library:"471 msgstr ""472 473 #: admin/partials/amp-wp-admin-system-status.php:424474 474 msgid "" 475 475 "AMP WP uses this library to resize images and speed up your site's loading " … … 477 477 msgstr "" 478 478 479 #: admin/partials/amp-wp-admin-system-status.php:42 7479 #: admin/partials/amp-wp-admin-system-status.php:426 480 480 msgid "Not Installed" 481 481 msgstr "" 482 482 483 #: admin/partials/amp-wp-admin-system-status.php:42 9483 #: admin/partials/amp-wp-admin-system-status.php:428 484 484 msgid "Installed" 485 485 msgstr "" 486 486 487 #: admin/partials/amp-wp-admin-system-status.php:44 6487 #: admin/partials/amp-wp-admin-system-status.php:445 488 488 msgid "Theme" 489 489 msgstr "" 490 490 491 #: admin/partials/amp-wp-admin-system-status.php:45 1491 #: admin/partials/amp-wp-admin-system-status.php:450 492 492 #: includes/admin/settings/class-amp-wp-translation.php:135 493 493 #: includes/admin/settings/class-amp-wp-translation.php:136 … … 496 496 msgstr "" 497 497 498 #: admin/partials/amp-wp-admin-system-status.php:45 2498 #: admin/partials/amp-wp-admin-system-status.php:451 499 499 msgid "The name of the current active theme." 500 500 msgstr "" 501 501 502 #: admin/partials/amp-wp-admin-system-status.php:455 503 msgid "Version" 504 msgstr "" 505 502 506 #: admin/partials/amp-wp-admin-system-status.php:456 503 msgid "Version"504 msgstr ""505 506 #: admin/partials/amp-wp-admin-system-status.php:457507 507 msgid "The installed version of the current active theme." 508 508 msgstr "" … … 510 510 #. translators: %s: theme latest version 511 511 #. translators: %s: parent theme latest version 512 #: admin/partials/amp-wp-admin-system-status.php:46 4513 #: admin/partials/amp-wp-admin-system-status.php:50 5512 #: admin/partials/amp-wp-admin-system-status.php:463 513 #: admin/partials/amp-wp-admin-system-status.php:504 514 514 #, php-format 515 515 msgid "%s is available" 516 516 msgstr "" 517 517 518 #: admin/partials/amp-wp-admin-system-status.php:470 519 msgid "Author URL" 520 msgstr "" 521 518 522 #: admin/partials/amp-wp-admin-system-status.php:471 519 msgid "Author URL"520 msgstr ""521 522 #: admin/partials/amp-wp-admin-system-status.php:472523 523 msgid "The theme developers URL." 524 524 msgstr "" 525 525 526 #: admin/partials/amp-wp-admin-system-status.php:476 527 msgid "Child theme" 528 msgstr "" 529 526 530 #: admin/partials/amp-wp-admin-system-status.php:477 527 msgid "Child theme"528 msgstr ""529 530 #: admin/partials/amp-wp-admin-system-status.php:478531 531 msgid "Displays whether or not the current theme is a child theme." 532 532 msgstr "" 533 533 534 #: admin/partials/amp-wp-admin-system-status.php:48 5534 #: admin/partials/amp-wp-admin-system-status.php:484 535 535 #, php-format 536 536 msgid "" … … 540 540 msgstr "" 541 541 542 #: admin/partials/amp-wp-admin-system-status.php:492 543 msgid "Parent Theme Name" 544 msgstr "" 545 542 546 #: admin/partials/amp-wp-admin-system-status.php:493 543 msgid "Parent Theme Name"544 msgstr ""545 546 #: admin/partials/amp-wp-admin-system-status.php:494547 547 msgid "The name of the parent theme." 548 548 msgstr "" 549 549 550 #: admin/partials/amp-wp-admin-system-status.php:497 551 msgid "Parent Theme Version" 552 msgstr "" 553 550 554 #: admin/partials/amp-wp-admin-system-status.php:498 551 msgid "Parent Theme Version"552 msgstr ""553 554 #: admin/partials/amp-wp-admin-system-status.php:499555 555 msgid "The installed version of the parent theme." 556 556 msgstr "" 557 557 558 #: admin/partials/amp-wp-admin-system-status.php:510 559 msgid "Parent Theme Author URL" 560 msgstr "" 561 558 562 #: admin/partials/amp-wp-admin-system-status.php:511 559 msgid "Parent Theme Author URL"560 msgstr ""561 562 #: admin/partials/amp-wp-admin-system-status.php:512563 563 msgid "The parent theme developers URL." 564 564 msgstr "" 565 565 566 #: admin/partials/amp-wp-admin-system-status.php:5 30566 #: admin/partials/amp-wp-admin-system-status.php:529 567 567 msgid "Active Plugins" 568 568 msgstr "" 569 569 570 #: admin/partials/amp-wp-admin-system-status.php:54 7570 #: admin/partials/amp-wp-admin-system-status.php:546 571 571 msgid "Visit plugin homepage" 572 572 msgstr "" 573 573 574 574 #. translators: plugin author. 575 #: admin/partials/amp-wp-admin-system-status.php:55 7575 #: admin/partials/amp-wp-admin-system-status.php:556 576 576 #, php-format 577 577 msgid "by %s" … … 589 589 #: admin/partials/settings/amp-wp-admin-gdpr.php:19 590 590 #: admin/partials/settings/amp-wp-admin-gdpr.php:90 591 #: admin/partials/settings/amp-wp-admin-general.php:2 2592 #: admin/partials/settings/amp-wp-admin-general.php:18 5591 #: admin/partials/settings/amp-wp-admin-general.php:23 592 #: admin/partials/settings/amp-wp-admin-general.php:181 593 593 #: admin/partials/settings/amp-wp-admin-layout.php:22 594 594 #: admin/partials/settings/amp-wp-admin-layout.php:360 … … 627 627 #: admin/partials/settings/amp-wp-admin-analytics.php:349 628 628 #: admin/partials/settings/amp-wp-admin-gdpr.php:34 629 #: admin/partials/settings/amp-wp-admin-general.php:36630 #: admin/partials/settings/amp-wp-admin-general.php:45631 #: admin/partials/settings/amp-wp-admin-general.php:142632 629 #: admin/partials/settings/amp-wp-admin-layout.php:35 633 630 #: admin/partials/settings/amp-wp-admin-layout.php:44 … … 802 799 msgstr "" 803 800 804 #: admin/partials/settings/amp-wp-admin-general.php: 19805 #: admin/partials/settings/amp-wp-admin-general.php:1 82801 #: admin/partials/settings/amp-wp-admin-general.php:20 802 #: admin/partials/settings/amp-wp-admin-general.php:178 806 803 #: includes/admin/welcome/class-amp-wp-getting-started.php:64 807 804 msgid "General Settings" 808 805 msgstr "" 809 806 810 #: admin/partials/settings/amp-wp-admin-general.php:2 8807 #: admin/partials/settings/amp-wp-admin-general.php:29 811 808 #: admin/partials/welcome/amp-wp-admin-features.php:170 812 809 msgid "Enable/Disable AMP" 813 810 msgstr "" 814 811 815 #: admin/partials/settings/amp-wp-admin-general.php:3 2812 #: admin/partials/settings/amp-wp-admin-general.php:33 816 813 msgid "Enable AMP on Home Page" 817 814 msgstr "" 818 815 819 #: admin/partials/settings/amp-wp-admin-general.php:4 1816 #: admin/partials/settings/amp-wp-admin-general.php:42 820 817 msgid "Enable AMP on Search Page" 821 818 msgstr "" 822 819 823 #: admin/partials/settings/amp-wp-admin-general.php:5 4820 #: admin/partials/settings/amp-wp-admin-general.php:55 824 821 msgid "Disable AMP on Post Types" 825 822 msgstr "" 826 823 827 #: admin/partials/settings/amp-wp-admin-general.php:7 2824 #: admin/partials/settings/amp-wp-admin-general.php:73 828 825 msgid "Disable AMP on Taxonomies" 829 826 msgstr "" 830 827 831 #: admin/partials/settings/amp-wp-admin-general.php:8 6828 #: admin/partials/settings/amp-wp-admin-general.php:87 832 829 msgid "Exclude URLs From Auto Converting:" 833 830 msgstr "" 834 831 835 #: admin/partials/settings/amp-wp-admin-general.php:9 0832 #: admin/partials/settings/amp-wp-admin-general.php:91 836 833 msgid "" 837 834 "You can exclude URLs of your site to prevent converting them into AMP URL " … … 839 836 msgstr "" 840 837 841 #: admin/partials/settings/amp-wp-admin-general.php:9 1838 #: admin/partials/settings/amp-wp-admin-general.php:92 842 839 msgid "" 843 840 "You can use <strong>*</strong> in the end of URL to exclude all URLs that " … … 845 842 msgstr "" 846 843 847 #: admin/partials/settings/amp-wp-admin-general.php:9 6844 #: admin/partials/settings/amp-wp-admin-general.php:97 848 845 msgid "Exclude AMP by URL:" 849 846 msgstr "" 850 847 851 #: admin/partials/settings/amp-wp-admin-general.php:10 0848 #: admin/partials/settings/amp-wp-admin-general.php:101 852 849 msgid "" 853 850 "You can disable AMP version of the page. e.g. /product/* will disable all " … … 855 852 msgstr "" 856 853 857 #: admin/partials/settings/amp-wp-admin-general.php:1 09854 #: admin/partials/settings/amp-wp-admin-general.php:110 858 855 msgid "AMP Permalink" 859 856 msgstr "" 860 857 861 #: admin/partials/settings/amp-wp-admin-general.php:11 3858 #: admin/partials/settings/amp-wp-admin-general.php:114 862 859 msgid "AMP URL Format" 863 860 msgstr "" 864 861 865 #: admin/partials/settings/amp-wp-admin-general.php:11 6862 #: admin/partials/settings/amp-wp-admin-general.php:117 866 863 msgid "Start Point - At the beginning of the URL" 867 864 msgstr "" 868 865 869 #: admin/partials/settings/amp-wp-admin-general.php:11 7866 #: admin/partials/settings/amp-wp-admin-general.php:118 870 867 msgid "End Point - At the end of the URL" 871 868 msgstr "" 872 869 873 #: admin/partials/settings/amp-wp-admin-general.php:12 0870 #: admin/partials/settings/amp-wp-admin-general.php:121 874 871 msgid "Start Point:" 875 872 msgstr "" 876 873 877 #: admin/partials/settings/amp-wp-admin-general.php:120 878 msgid "//yoursite.com/<strong>amp</strong>/post/" 879 msgstr "" 880 881 #: admin/partials/settings/amp-wp-admin-general.php:121 874 #: admin/partials/settings/amp-wp-admin-general.php:122 882 875 msgid "End Point:" 883 876 msgstr "" 884 877 885 #: admin/partials/settings/amp-wp-admin-general.php:121 886 msgid "//yoursite.com/post/<strong>amp</strong>/" 887 msgstr "" 888 889 #: admin/partials/settings/amp-wp-admin-general.php:130 878 #: admin/partials/settings/amp-wp-admin-general.php:131 890 879 msgid "Mobile Redirect" 891 880 msgstr "" 892 881 893 #: admin/partials/settings/amp-wp-admin-general.php:13 4882 #: admin/partials/settings/amp-wp-admin-general.php:135 894 883 msgid "Automatically Redirect Users to AMP Version:" 895 884 msgstr "" 896 885 897 #: admin/partials/settings/amp-wp-admin-general.php:14 5886 #: admin/partials/settings/amp-wp-admin-general.php:141 898 887 msgid "" 899 888 "This will automatically redirect all mobile users to the AMP version of the " … … 901 890 msgstr "" 902 891 903 #: admin/partials/settings/amp-wp-admin-general.php:1 53892 #: admin/partials/settings/amp-wp-admin-general.php:149 904 893 msgid "Theme Settings" 905 894 msgstr "" 906 895 907 #: admin/partials/settings/amp-wp-admin-general.php:1 72896 #: admin/partials/settings/amp-wp-admin-general.php:168 908 897 msgid "More themes coming soon." 909 898 msgstr "" … … 1315 1304 #: admin/partials/settings/amp-wp-admin-translation.php:143 1316 1305 #, php-format 1317 msgid "% s1 is author name and %s2 is post publish date."1306 msgid "%1$s1 is author name and %2$s2 is post publish date." 1318 1307 msgstr "" 1319 1308 … … 1352 1341 #: admin/partials/settings/amp-wp-admin-translation.php:140 1353 1342 #, php-format 1354 msgid "By % s1 on %s2:"1343 msgid "By %1$s1 on %2$s2:" 1355 1344 msgstr "" 1356 1345 … … 1772 1761 msgstr "" 1773 1762 1774 #: includes/admin/settings/class-amp-wp-general.php:3 51763 #: includes/admin/settings/class-amp-wp-general.php:38 1775 1764 msgid "Global theme" 1776 1765 msgstr "" 1777 1766 1778 #: includes/admin/settings/class-amp-wp-general.php:3 61767 #: includes/admin/settings/class-amp-wp-general.php:39 1779 1768 msgid "" 1780 1769 "Select design for your AMP pages, from the list of AMP WP theme plugins " … … 1784 1773 msgstr "" 1785 1774 1786 #: includes/admin/settings/class-amp-wp-general.php:4 21775 #: includes/admin/settings/class-amp-wp-general.php:45 1787 1776 msgid "tez" 1788 1777 msgstr "" 1789 1778 1790 #: includes/admin/settings/class-amp-wp-general.php:6 71779 #: includes/admin/settings/class-amp-wp-general.php:69 1791 1780 msgid "<i class=\"amp-wp-admin-icon-settings-1\"></i><span>General</span>" 1792 1781 msgstr "" … … 2238 2227 2239 2228 #: includes/functions/amp-wp-template-functions.php:326 2240 #: includes/functions/amp-wp-template-functions.php:107 92229 #: includes/functions/amp-wp-template-functions.php:1078 2241 2230 msgid "This website uses cookies." 2242 2231 msgstr "" … … 2244 2233 #: includes/functions/amp-wp-template-functions.php:327 2245 2234 #: includes/functions/amp-wp-template-functions.php:332 2246 #: includes/functions/amp-wp-template-functions.php:10 802247 #: includes/functions/amp-wp-template-functions.php:111 62235 #: includes/functions/amp-wp-template-functions.php:1079 2236 #: includes/functions/amp-wp-template-functions.php:1115 2248 2237 msgid "Accept" 2249 2238 msgstr "" … … 2262 2251 2263 2252 #: includes/functions/amp-wp-template-functions.php:333 2264 #: includes/functions/amp-wp-template-functions.php:111 72253 #: includes/functions/amp-wp-template-functions.php:1116 2265 2254 msgid "Reject" 2266 2255 msgstr "" -
amp-wp/trunk/public/class-amp-wp-public.php
r2552932 r2585601 900 900 901 901 /** 902 * Redirect Users to AMP Version of the Page Automatically902 * Redirect users to AMP version of the page automatically. 903 903 * 904 904 * @access public … … 982 982 return; 983 983 } 984 // Global $wp_filesystem. 984 985 985 $script = amp_wp_file_get_contents( amp_wp_min_suffix( AMP_WP_DIR_PATH . 'public/js/mobile_redirect', '.js' ) ); 986 986 $script = str_replace( '%%amp_permalink%%', $amp_permalink, $script ); -
amp-wp/trunk/public/css/themes/tez/pages/archive/archive.css
r2552932 r2585601 17 17 color: #ffffff; 18 18 } 19 .archive-wrapper a { 20 color: #ffffff; 21 } 22 .archive-wrapper a:hover { 23 text-decoration: none; 24 } -
amp-wp/trunk/public/css/themes/tez/pages/archive/archive.min.css
r2552932 r2585601 1 .archive-wrapper{padding:30px;margin-top:30px;background:#e53935;border-radius:4px;color:#ffffff} 1 .archive-wrapper{padding:30px;margin-top:30px;background:#e53935;border-radius:4px;color:#ffffff}.archive-wrapper a{color:#ffffff}.archive-wrapper a:hover{text-decoration:none} -
amp-wp/trunk/public/partials/tez/footer.php
r2057758 r2585601 1 </div> <!-- /wrapper -->1 </div> <!-- /wrapper --> 2 2 <?php 3 $amp_wp_general_settings = get_option( 'amp_wp_general_settings');4 $amp_wp_layout_settings = get_option('amp_wp_layout_settings');5 $non_amp_version = ( isset( $amp_wp_layout_settings['non_amp_version'] ) && !empty( $amp_wp_layout_settings['non_amp_version'] ) ) ? $amp_wp_layout_settings['non_amp_version'] : '';3 $amp_wp_general_settings = get_option( 'amp_wp_general_settings' ); 4 $amp_wp_layout_settings = get_option( 'amp_wp_layout_settings' ); 5 $non_amp_version = ( isset( $amp_wp_layout_settings['non_amp_version'] ) && ! empty( $amp_wp_layout_settings['non_amp_version'] ) ) ? $amp_wp_layout_settings['non_amp_version'] : ''; 6 6 ?> 7 7 <footer class="amp-wp-footer <?php echo amp_wp_get_global( 'footer-custom-class', '' ); ?>"> 8 <?php if ( "1"== $non_amp_version ) : ?>8 <?php if ( 1 === $non_amp_version ) : ?> 9 9 <div class="amp-wp-non-amp-url"> 10 10 <?php 11 11 $args = array(); 12 12 13 // Disable Auto Redirect for This Link 13 // Disable Auto Redirect for This Link. 14 14 $mobile_auto_redirect = ''; 15 if ( isset( $amp_wp_general_settings['mobile_auto_redirect'] ) && !empty( $amp_wp_general_settings['mobile_auto_redirect'] ) ) {16 $mobile_auto_redirect = intval( $amp_wp_general_settings['mobile_auto_redirect'] );15 if ( isset( $amp_wp_general_settings['mobile_auto_redirect'] ) && ! empty( $amp_wp_general_settings['mobile_auto_redirect'] ) ) { 16 $mobile_auto_redirect = $amp_wp_general_settings['mobile_auto_redirect']; 17 17 } 18 18 19 if ( $mobile_auto_redirect ) {19 if ( $mobile_auto_redirect ) { 20 20 $args['query-args'] = array( array( 'amp-wp-skip-redirect', true ) ); 21 21 } … … 30 30 31 31 <?php 32 if( has_nav_menu('amp-wp-footer') ) { 33 wp_nav_menu( array( 34 'theme_location' => 'amp-wp-footer', 35 'menu_class' => 'footer-navigation', 36 'container_class' => 'amp-wp-footer-nav' 37 )); 32 if ( has_nav_menu( 'amp-wp-footer' ) ) { 33 wp_nav_menu( 34 array( 35 'theme_location' => 'amp-wp-footer', 36 'menu_class' => 'footer-navigation', 37 'container_class' => 'amp-wp-footer-nav', 38 ) 39 ); 38 40 } 41 39 42 ?> 40 43 41 44 <?php 42 $footer_copyright_text = ( isset( $amp_wp_layout_settings['footer_copyright_text'] ) && ! empty( $amp_wp_layout_settings['footer_copyright_text'] ) ) ? $amp_wp_layout_settings['footer_copyright_text'] : '';43 if ( $footer_copyright_text ) :44 ?>45 $footer_copyright_text = ( isset( $amp_wp_layout_settings['footer_copyright_text'] ) && ! empty( $amp_wp_layout_settings['footer_copyright_text'] ) ) ? $amp_wp_layout_settings['footer_copyright_text'] : ''; 46 if ( $footer_copyright_text ) : 47 ?> 45 48 <div class="amp-wp-copyright"><?php echo wp_kses_post( $footer_copyright_text ); ?></div> 46 49 <?php endif; ?> 47 50 48 51 <?php 49 52 /** … … 71 74 do_action( 'amp_wp_analytics_adobe' ); 72 75 ?> 73 76 74 77 <?php 75 78 /** … … 78 81 do_action( 'amp_wp_notifications_bar' ); 79 82 ?> 80 83 81 84 <?php 82 85 /** … … 86 89 ?> 87 90 </footer> 88 <?php amp_wp_footer(); ?>89 </body>91 <?php amp_wp_footer(); ?> 92 </body> 90 93 </html> -
amp-wp/trunk/public/partials/tez/single-post/comments.php
r2057758 r2585601 20 20 $show_comments = ( isset( $amp_wp_layout_settings['show_comments'] ) && ! empty( $amp_wp_layout_settings['show_comments'] ) ) ? $amp_wp_layout_settings['show_comments'] : ''; 21 21 22 if ( ( '1' != $show_comments ) || ! comments_open() || !get_comments_number() ) :22 if ( ( '1' != $show_comments ) || ! comments_open() || ! get_comments_number() ) : 23 23 return; 24 24 endif; 25 25 26 26 // Enqueue CSS 27 amp_wp_enqueue_block_style( 'comments', AMP_WP_TEMPLATE_DIR_CSS . 'themes/' .AMP_WP_THEME_NAME.'/components/comments/comments' );27 amp_wp_enqueue_block_style( 'comments', AMP_WP_TEMPLATE_DIR_CSS . 'themes/' . AMP_WP_THEME_NAME . '/components/comments/comments' ); 28 28 29 29 ?> … … 43 43 $amp_wp_general_settings = get_option( 'amp_wp_general_settings' ); 44 44 if ( isset( $amp_wp_general_settings['mobile_auto_redirect'] ) && ! empty( $amp_wp_general_settings['mobile_auto_redirect'] ) ) { 45 $mobile_auto_redirect = intval( $amp_wp_general_settings['mobile_auto_redirect'] );45 $mobile_auto_redirect = $amp_wp_general_settings['mobile_auto_redirect']; 46 46 } 47 47 }
Note: See TracChangeset
for help on using the changeset viewer.