accelerated-mobile-pages
accelerated-mobile-pages copied to clipboard
Need to create an option for Dark Mode.
Need to create an option for Dark Mode. Ref : https://secure.helpscout.net/conversation/744607898/48084?folderId=2322652
@ahmedkaludi As per our Discussion, I added the Dark Mode option only for the Swift in condition, In future we will implement this option for all Designs 1,2 and 3...
The button in the frontend - https://prnt.sc/mte1n2 is not connected with the AMP panel option - https://prnt.sc/mte1qj
Little bit of crafting work is pending, Need to work with @ahmedkaludi https://monosnap.com/file/2wplf9NsrGnyI9xeZ0M5q1dgp9163O
I think we need to give the tooltip for the dark mode option. screenshot: https://take.ms/mxKLV
Discuss this with @ahmedkaludi
-
[x] Widgets are not connected with dark mode. https://take.ms/nBvGy
-
[x] When changing the switch of Dark mode, the page reloads and it is taking to the homepage. It should reload on the same page. Steps to Recreate: Change the Darkmode switch in the single.
Use wp_get_referer
instead of $_SERVER['HTTP_REFERER']
https://github.com/ahmedkaludi/accelerated-mobile-pages/commit/9097709059a1a493e4a90ecf06dc849220eaf044#diff-6aa5512f7dd8d5ce60fc97b0f340912cR7530
https://codex.wordpress.org/Function_Reference/wp_get_referer
- Do not use
$_SERVER
use alternative WordPress method. - Escaping missing on lot of places.
- Conditioning needs to be improved.
https://github.com/ahmedkaludi/accelerated-mobile-pages/commit/a3149d82c625e9ee266fc25de41bce0480d8a741#diff-6aa5512f7dd8d5ce60fc97b0f340912cR7098
After Discussion with @MohammedKaludi sir, The above 3 things need to fix, when it is merging in to master
add priority of 12 while merging. https://github.com/ahmedkaludi/accelerated-mobile-pages/commit/a3149d82c625e9ee266fc25de41bce0480d8a741#diff-6aa5512f7dd8d5ce60fc97b0f340912cR7088
One user also requesting the same feature ( Dark Mode ) at high priority - https://secure.helpscout.net/conversation/1794200841/227991?folderId=4459751
A user is requesting for the same feature: https://magazine3.in/conversation/218651?folder_id=27