@@ -108,6 +108,27 @@ public function get_settings() {
108108 'id ' => 'theme_selectors_options '
109109 );
110110
111+ // Provide the theme customizer option if theme is not already supported.
112+ if ( ! is_alnp_supported () ) {
113+ $ query = array (
114+ 'autofocus[panel] ' => 'alnp ' ,
115+ 'autofocus[section] ' => 'auto_load_next_post_theme_selectors ' ,
116+ 'url ' => alnp_get_random_page_permalink (),
117+ 'return ' => add_query_arg ( array ( 'page ' => 'auto-load-next-post ' , 'view ' => 'theme-selectors ' ), admin_url ( 'options-general.php ' ) ),
118+ );
119+ $ customizer_link = add_query_arg ( $ query , admin_url ( 'customize.php ' ) );
120+
121+ $ settings [] = array (
122+ 'title ' => esc_html__ ( 'Theme Customizer ' , 'auto-load-next-post ' ),
123+ 'desc ' => esc_html__ ( 'Use the theme customizer to enter the theme selectors while you inspect the theme. ' , 'auto-load-next-post ' ),
124+ 'id ' => 'auto_load_next_post_customizer ' ,
125+ 'value ' => esc_html__ ( 'Open Theme Customizer ' , 'auto-load-next-post ' ),
126+ 'url ' => $ customizer_link ,
127+ 'type ' => 'button '
128+ );
129+ }
130+
131+ // Defines input field status
111132 $ container_readonly = 'no ' ;
112133 $ post_title_readonly = 'no ' ;
113134 $ post_navigation_readonly = 'no ' ;
0 commit comments