@@ -1,12 +1,12 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * GeoDirectory Installation related functions. |
|
| 4 | - * |
|
| 5 | - * Plugin install script which adds default pages, taxonomies, and database tables. |
|
| 6 | - * |
|
| 7 | - * @since 1.0.0 |
|
| 8 | - * @package GeoDirectory |
|
| 9 | - */ |
|
| 3 | + * GeoDirectory Installation related functions. |
|
| 4 | + * |
|
| 5 | + * Plugin install script which adds default pages, taxonomies, and database tables. |
|
| 6 | + * |
|
| 7 | + * @since 1.0.0 |
|
| 8 | + * @package GeoDirectory |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * Include custom database table related functions. |
@@ -24,8 +24,8 @@ discard block |
||
| 24 | 24 | function geodir_activation() |
| 25 | 25 | {
|
| 26 | 26 | |
| 27 | - geodir_install(); |
|
| 28 | - add_action('wp_loaded', 'geodir_flush_activation');
|
|
| 27 | + geodir_install(); |
|
| 28 | + add_action('wp_loaded', 'geodir_flush_activation');
|
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -36,9 +36,9 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | function geodir_flush_activation() |
| 38 | 38 | {
|
| 39 | - // Remove rewrite rules and then recreate rewrite rules. |
|
| 40 | - // flush late so everything is loaded |
|
| 41 | - flush_rewrite_rules(); |
|
| 39 | + // Remove rewrite rules and then recreate rewrite rules. |
|
| 40 | + // flush late so everything is loaded |
|
| 41 | + flush_rewrite_rules(); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
@@ -50,44 +50,44 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | function geodir_install() |
| 52 | 52 | {
|
| 53 | - global $geodir_settings; |
|
| 54 | - |
|
| 55 | - /** |
|
| 56 | - * Called before the GD installation scripts have run. |
|
| 57 | - * |
|
| 58 | - * @since 1.0.0 |
|
| 59 | - * @see 'geodir_installation_end' |
|
| 60 | - */ |
|
| 61 | - do_action('geodir_installation_start');
|
|
| 62 | - |
|
| 63 | - // Do install |
|
| 64 | - if (!get_option('geodir_default_data_installed')) {
|
|
| 65 | - geodir_create_tables(); // in admin db install.php |
|
| 66 | - geodir_register_defaults(); // geodir_functions/ taxonomy_functions.php |
|
| 67 | - geodir_create_default_fields(); |
|
| 68 | - //geodir_default_taxonomies(); |
|
| 69 | - geodir_set_default_options(); |
|
| 70 | - geodir_create_pages(); |
|
| 71 | - geodir_set_default_widgets(); |
|
| 72 | - gd_install_theme_compat(); |
|
| 73 | - |
|
| 74 | - update_option('geodir_default_data_installed', 1);
|
|
| 75 | - |
|
| 76 | - } |
|
| 77 | - |
|
| 78 | - if (!get_option('geodir_default_data_installed_1.2.8')) {
|
|
| 79 | - //geodir_create_tables(); // in admin db install.php |
|
| 80 | - update_option('geodir_default_data_installed_1.2.8', 1);
|
|
| 81 | - } |
|
| 82 | - |
|
| 83 | - geodir_installation_end(); |
|
| 84 | - /** |
|
| 85 | - * Called after the GD installation scripts have run. |
|
| 86 | - * |
|
| 87 | - * @since 1.0.0 |
|
| 88 | - * @see 'geodir_installation_start' |
|
| 89 | - */ |
|
| 90 | - do_action('geodir_installation_end');
|
|
| 53 | + global $geodir_settings; |
|
| 54 | + |
|
| 55 | + /** |
|
| 56 | + * Called before the GD installation scripts have run. |
|
| 57 | + * |
|
| 58 | + * @since 1.0.0 |
|
| 59 | + * @see 'geodir_installation_end' |
|
| 60 | + */ |
|
| 61 | + do_action('geodir_installation_start');
|
|
| 62 | + |
|
| 63 | + // Do install |
|
| 64 | + if (!get_option('geodir_default_data_installed')) {
|
|
| 65 | + geodir_create_tables(); // in admin db install.php |
|
| 66 | + geodir_register_defaults(); // geodir_functions/ taxonomy_functions.php |
|
| 67 | + geodir_create_default_fields(); |
|
| 68 | + //geodir_default_taxonomies(); |
|
| 69 | + geodir_set_default_options(); |
|
| 70 | + geodir_create_pages(); |
|
| 71 | + geodir_set_default_widgets(); |
|
| 72 | + gd_install_theme_compat(); |
|
| 73 | + |
|
| 74 | + update_option('geodir_default_data_installed', 1);
|
|
| 75 | + |
|
| 76 | + } |
|
| 77 | + |
|
| 78 | + if (!get_option('geodir_default_data_installed_1.2.8')) {
|
|
| 79 | + //geodir_create_tables(); // in admin db install.php |
|
| 80 | + update_option('geodir_default_data_installed_1.2.8', 1);
|
|
| 81 | + } |
|
| 82 | + |
|
| 83 | + geodir_installation_end(); |
|
| 84 | + /** |
|
| 85 | + * Called after the GD installation scripts have run. |
|
| 86 | + * |
|
| 87 | + * @since 1.0.0 |
|
| 88 | + * @see 'geodir_installation_start' |
|
| 89 | + */ |
|
| 90 | + do_action('geodir_installation_end');
|
|
| 91 | 91 | |
| 92 | 92 | |
| 93 | 93 | } |
@@ -104,16 +104,16 @@ discard block |
||
| 104 | 104 | function geodir_create_pages() |
| 105 | 105 | {
|
| 106 | 106 | |
| 107 | - //geodir_create_page( esc_sql( _x('home-map', 'page_slug', 'geodirectory') ), 'geodir_home_map_page', __('Home Map', 'geodirectory'), '',0,'publish' );
|
|
| 108 | - geodir_create_page(esc_sql(_x('gd-home', 'page_slug', 'geodirectory')), 'geodir_home_page', __('GD Home page', 'geodirectory'), '');
|
|
| 109 | - geodir_create_page(esc_sql(_x('add-listing', 'page_slug', 'geodirectory')), 'geodir_add_listing_page', __('Add Listing', 'geodirectory'), '');
|
|
| 110 | - geodir_create_page(esc_sql(_x('listing-preview', 'page_slug', 'geodirectory')), 'geodir_preview_page', __('Listing Preview', 'geodirectory'), '');
|
|
| 111 | - geodir_create_page(esc_sql(_x('listing-success', 'page_slug', 'geodirectory')), 'geodir_success_page', __('Listing Success', 'geodirectory'), '');
|
|
| 112 | - geodir_create_page(esc_sql(_x('location', 'page_slug', 'geodirectory')), 'geodir_location_page', __('Location', 'geodirectory'), '');
|
|
| 107 | + //geodir_create_page( esc_sql( _x('home-map', 'page_slug', 'geodirectory') ), 'geodir_home_map_page', __('Home Map', 'geodirectory'), '',0,'publish' );
|
|
| 108 | + geodir_create_page(esc_sql(_x('gd-home', 'page_slug', 'geodirectory')), 'geodir_home_page', __('GD Home page', 'geodirectory'), '');
|
|
| 109 | + geodir_create_page(esc_sql(_x('add-listing', 'page_slug', 'geodirectory')), 'geodir_add_listing_page', __('Add Listing', 'geodirectory'), '');
|
|
| 110 | + geodir_create_page(esc_sql(_x('listing-preview', 'page_slug', 'geodirectory')), 'geodir_preview_page', __('Listing Preview', 'geodirectory'), '');
|
|
| 111 | + geodir_create_page(esc_sql(_x('listing-success', 'page_slug', 'geodirectory')), 'geodir_success_page', __('Listing Success', 'geodirectory'), '');
|
|
| 112 | + geodir_create_page(esc_sql(_x('location', 'page_slug', 'geodirectory')), 'geodir_location_page', __('Location', 'geodirectory'), '');
|
|
| 113 | 113 | |
| 114 | - //New since 1.5.3 |
|
| 115 | - geodir_create_page(esc_sql(_x('gd-info', 'page_slug', 'geodirectory')), 'geodir_info_page', __('Info', 'geodirectory'), '');
|
|
| 116 | - geodir_create_page(esc_sql(_x('gd-login', 'page_slug', 'geodirectory')), 'geodir_login_page', __('Login', 'geodirectory'), '');
|
|
| 114 | + //New since 1.5.3 |
|
| 115 | + geodir_create_page(esc_sql(_x('gd-info', 'page_slug', 'geodirectory')), 'geodir_info_page', __('Info', 'geodirectory'), '');
|
|
| 116 | + geodir_create_page(esc_sql(_x('gd-login', 'page_slug', 'geodirectory')), 'geodir_login_page', __('Login', 'geodirectory'), '');
|
|
| 117 | 117 | |
| 118 | 118 | |
| 119 | 119 | } |
@@ -129,11 +129,11 @@ discard block |
||
| 129 | 129 | */ |
| 130 | 130 | function geodir_installation_end() |
| 131 | 131 | {
|
| 132 | - //update_option( "geodir_db_version", GEODIRECTORY_VERSION ); |
|
| 132 | + //update_option( "geodir_db_version", GEODIRECTORY_VERSION ); |
|
| 133 | 133 | |
| 134 | - update_option("geodir_installed", 1);
|
|
| 135 | - update_option("geodir_installation_redirect", 1);
|
|
| 136 | - update_option('skip_install_geodir_pages', 0);
|
|
| 134 | + update_option("geodir_installed", 1);
|
|
| 135 | + update_option("geodir_installation_redirect", 1);
|
|
| 136 | + update_option('skip_install_geodir_pages', 0);
|
|
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | /** |
@@ -147,45 +147,45 @@ discard block |
||
| 147 | 147 | */ |
| 148 | 148 | function geodir_set_default_options() |
| 149 | 149 | {
|
| 150 | - global $geodir_settings; |
|
| 151 | - /** |
|
| 152 | - * Contains settings array for general tab. |
|
| 153 | - * |
|
| 154 | - * @since 1.0.0 |
|
| 155 | - * @package GeoDirectory |
|
| 156 | - */ |
|
| 157 | - include_once("option-pages/general_settings_array.php");
|
|
| 158 | - /** |
|
| 159 | - * Contains settings array for design tab. |
|
| 160 | - * |
|
| 161 | - * @since 1.0.0 |
|
| 162 | - * @package GeoDirectory |
|
| 163 | - */ |
|
| 164 | - include_once("option-pages/design_settings_array.php");
|
|
| 165 | - /** |
|
| 166 | - * Contains settings array for notifications tab. |
|
| 167 | - * |
|
| 168 | - * @since 1.0.0 |
|
| 169 | - * @package GeoDirectory |
|
| 170 | - */ |
|
| 171 | - include_once("option-pages/notifications_settings_array.php");
|
|
| 172 | - /** |
|
| 173 | - * Contains settings array for permalink tab. |
|
| 174 | - * |
|
| 175 | - * @since 1.0.0 |
|
| 176 | - * @package GeoDirectory |
|
| 177 | - */ |
|
| 178 | - include_once("option-pages/permalink_settings_array.php");
|
|
| 179 | - /** |
|
| 180 | - * Contains settings array for title / meta tab. |
|
| 181 | - * |
|
| 182 | - * @since 1.5.4 |
|
| 183 | - * @package GeoDirectory |
|
| 184 | - */ |
|
| 185 | - include_once("option-pages/title_meta_settings_array.php");
|
|
| 186 | - foreach ($geodir_settings as $value) {
|
|
| 187 | - geodir_update_options($value, true); |
|
| 188 | - } |
|
| 150 | + global $geodir_settings; |
|
| 151 | + /** |
|
| 152 | + * Contains settings array for general tab. |
|
| 153 | + * |
|
| 154 | + * @since 1.0.0 |
|
| 155 | + * @package GeoDirectory |
|
| 156 | + */ |
|
| 157 | + include_once("option-pages/general_settings_array.php");
|
|
| 158 | + /** |
|
| 159 | + * Contains settings array for design tab. |
|
| 160 | + * |
|
| 161 | + * @since 1.0.0 |
|
| 162 | + * @package GeoDirectory |
|
| 163 | + */ |
|
| 164 | + include_once("option-pages/design_settings_array.php");
|
|
| 165 | + /** |
|
| 166 | + * Contains settings array for notifications tab. |
|
| 167 | + * |
|
| 168 | + * @since 1.0.0 |
|
| 169 | + * @package GeoDirectory |
|
| 170 | + */ |
|
| 171 | + include_once("option-pages/notifications_settings_array.php");
|
|
| 172 | + /** |
|
| 173 | + * Contains settings array for permalink tab. |
|
| 174 | + * |
|
| 175 | + * @since 1.0.0 |
|
| 176 | + * @package GeoDirectory |
|
| 177 | + */ |
|
| 178 | + include_once("option-pages/permalink_settings_array.php");
|
|
| 179 | + /** |
|
| 180 | + * Contains settings array for title / meta tab. |
|
| 181 | + * |
|
| 182 | + * @since 1.5.4 |
|
| 183 | + * @package GeoDirectory |
|
| 184 | + */ |
|
| 185 | + include_once("option-pages/title_meta_settings_array.php");
|
|
| 186 | + foreach ($geodir_settings as $value) {
|
|
| 187 | + geodir_update_options($value, true); |
|
| 188 | + } |
|
| 189 | 189 | |
| 190 | 190 | } |
| 191 | 191 | |
@@ -199,103 +199,103 @@ discard block |
||
| 199 | 199 | function geodir_set_default_widgets() |
| 200 | 200 | {
|
| 201 | 201 | |
| 202 | - $widget_option_list = array(); |
|
| 203 | - $widgetinfo = array(); |
|
| 204 | - $sidebarvalue_array = array(); |
|
| 205 | - $sidebars_widgets = array(); |
|
| 202 | + $widget_option_list = array(); |
|
| 203 | + $widgetinfo = array(); |
|
| 204 | + $sidebarvalue_array = array(); |
|
| 205 | + $sidebars_widgets = array(); |
|
| 206 | 206 | |
| 207 | - /*===========================*/ |
|
| 208 | - /* Widgets ON HOME PAGE */ |
|
| 209 | - /*===========================*/ |
|
| 207 | + /*===========================*/ |
|
| 208 | + /* Widgets ON HOME PAGE */ |
|
| 209 | + /*===========================*/ |
|
| 210 | 210 | |
| 211 | - $widget_option_list['geodir_home_top'] = |
|
| 212 | - array('popular_post_category' => array("title" => __('Popular Categories', 'geodirectory')),
|
|
| 213 | - 'geodir_map_v3_home_map' => array("autozoom" => 1, "width" => '100%', "heigh" => '425'),
|
|
| 214 | - 'geodir_advance_search' => array()); |
|
| 211 | + $widget_option_list['geodir_home_top'] = |
|
| 212 | + array('popular_post_category' => array("title" => __('Popular Categories', 'geodirectory')),
|
|
| 213 | + 'geodir_map_v3_home_map' => array("autozoom" => 1, "width" => '100%', "heigh" => '425'),
|
|
| 214 | + 'geodir_advance_search' => array()); |
|
| 215 | 215 | |
| 216 | - $widget_option_list['geodir_home_content'] = |
|
| 217 | - array('popular_post_view' => array("title" => __('Popular Places', 'geodirectory'), "layout" => 'list', "add_location_filter" => '1'));
|
|
| 216 | + $widget_option_list['geodir_home_content'] = |
|
| 217 | + array('popular_post_view' => array("title" => __('Popular Places', 'geodirectory'), "layout" => 'list', "add_location_filter" => '1'));
|
|
| 218 | 218 | |
| 219 | - $widget_option_list['geodir_home_right'] = |
|
| 220 | - array('geodir_loginbox' => array("title" => __('My Dashboard', 'geodirectory')),
|
|
| 221 | - 'popular_post_view' => array("title" => __('Latest Places', 'geodirectory'), "add_location_filter" => '1'));
|
|
| 219 | + $widget_option_list['geodir_home_right'] = |
|
| 220 | + array('geodir_loginbox' => array("title" => __('My Dashboard', 'geodirectory')),
|
|
| 221 | + 'popular_post_view' => array("title" => __('Latest Places', 'geodirectory'), "add_location_filter" => '1'));
|
|
| 222 | 222 | |
| 223 | - /*===========================*/ |
|
| 224 | - /* Widgets ON LISTING PAGE */ |
|
| 225 | - /*===========================*/ |
|
| 223 | + /*===========================*/ |
|
| 224 | + /* Widgets ON LISTING PAGE */ |
|
| 225 | + /*===========================*/ |
|
| 226 | 226 | |
| 227 | - $widget_option_list['geodir_listing_top'] = |
|
| 228 | - array('popular_post_category' => array("title" => __('Popular Categories', 'geodirectory')),
|
|
| 229 | - 'geodir_advance_search' => array()); |
|
| 227 | + $widget_option_list['geodir_listing_top'] = |
|
| 228 | + array('popular_post_category' => array("title" => __('Popular Categories', 'geodirectory')),
|
|
| 229 | + 'geodir_advance_search' => array()); |
|
| 230 | 230 | |
| 231 | - $widget_option_list['geodir_listing_right_sidebar'] = |
|
| 232 | - array('geodir_loginbox' => array("title" => __('My Dashboard', 'geodirectory')),
|
|
| 233 | - 'geodir_map_v3_listing_map' => array("autozoom" => 1, "sticky" => 1),
|
|
| 234 | - 'popular_post_view' => array("title" => __('Latest Places', 'geodirectory'), "add_location_filter" => '1'));
|
|
| 231 | + $widget_option_list['geodir_listing_right_sidebar'] = |
|
| 232 | + array('geodir_loginbox' => array("title" => __('My Dashboard', 'geodirectory')),
|
|
| 233 | + 'geodir_map_v3_listing_map' => array("autozoom" => 1, "sticky" => 1),
|
|
| 234 | + 'popular_post_view' => array("title" => __('Latest Places', 'geodirectory'), "add_location_filter" => '1'));
|
|
| 235 | 235 | |
| 236 | 236 | |
| 237 | - /*===========================*/ |
|
| 238 | - /* Widgets ON SEARCH PAGE */ |
|
| 239 | - /*===========================*/ |
|
| 237 | + /*===========================*/ |
|
| 238 | + /* Widgets ON SEARCH PAGE */ |
|
| 239 | + /*===========================*/ |
|
| 240 | 240 | |
| 241 | - $widget_option_list['geodir_search_top'] = |
|
| 242 | - array('popular_post_category' => array("title" => __('Popular Categories', 'geodirectory')),
|
|
| 243 | - 'geodir_advance_search' => array()); |
|
| 241 | + $widget_option_list['geodir_search_top'] = |
|
| 242 | + array('popular_post_category' => array("title" => __('Popular Categories', 'geodirectory')),
|
|
| 243 | + 'geodir_advance_search' => array()); |
|
| 244 | 244 | |
| 245 | - $widget_option_list['geodir_search_right_sidebar'] = |
|
| 246 | - array('geodir_loginbox' => array("title" => __('My Dashboard', 'geodirectory')),
|
|
| 247 | - 'geodir_map_v3_listing_map' => array("autozoom" => 1, "sticky" => 1),
|
|
| 248 | - 'popular_post_view' => array("title" => __('Latest Places', 'geodirectory'), "add_location_filter" => '1'));
|
|
| 245 | + $widget_option_list['geodir_search_right_sidebar'] = |
|
| 246 | + array('geodir_loginbox' => array("title" => __('My Dashboard', 'geodirectory')),
|
|
| 247 | + 'geodir_map_v3_listing_map' => array("autozoom" => 1, "sticky" => 1),
|
|
| 248 | + 'popular_post_view' => array("title" => __('Latest Places', 'geodirectory'), "add_location_filter" => '1'));
|
|
| 249 | 249 | |
| 250 | - /*===========================*/ |
|
| 251 | - /* Widgets ON DETAIL/SINGLE PAGE */ |
|
| 252 | - /*===========================*/ |
|
| 250 | + /*===========================*/ |
|
| 251 | + /* Widgets ON DETAIL/SINGLE PAGE */ |
|
| 252 | + /*===========================*/ |
|
| 253 | 253 | |
| 254 | - $widget_option_list['geodir_detail_sidebar'] = |
|
| 255 | - array('geodir_loginbox' => array("title" => __('My Dashboard', 'geodirectory')),
|
|
| 256 | - 'geodir_map_v3_listing_map' => array("autozoom" => 1, "sticky" => 1),
|
|
| 257 | - 'popular_post_view' => array("title" => __('Latest Places', 'geodirectory'), "add_location_filter" => '1'));
|
|
| 254 | + $widget_option_list['geodir_detail_sidebar'] = |
|
| 255 | + array('geodir_loginbox' => array("title" => __('My Dashboard', 'geodirectory')),
|
|
| 256 | + 'geodir_map_v3_listing_map' => array("autozoom" => 1, "sticky" => 1),
|
|
| 257 | + 'popular_post_view' => array("title" => __('Latest Places', 'geodirectory'), "add_location_filter" => '1'));
|
|
| 258 | 258 | |
| 259 | 259 | |
| 260 | - /*===========================*/ |
|
| 261 | - /* Widgets ON AUTHOR PAGE */ |
|
| 262 | - /*===========================*/ |
|
| 260 | + /*===========================*/ |
|
| 261 | + /* Widgets ON AUTHOR PAGE */ |
|
| 262 | + /*===========================*/ |
|
| 263 | 263 | |
| 264 | 264 | |
| 265 | - $widget_option_list['geodir_author_right_sidebar'] = |
|
| 266 | - array('geodir_loginbox' => array("title" => __('My Dashboard', 'geodirectory')));
|
|
| 265 | + $widget_option_list['geodir_author_right_sidebar'] = |
|
| 266 | + array('geodir_loginbox' => array("title" => __('My Dashboard', 'geodirectory')));
|
|
| 267 | 267 | |
| 268 | 268 | |
| 269 | - $sidebars_widgets = get_option('sidebars_widgets');
|
|
| 269 | + $sidebars_widgets = get_option('sidebars_widgets');
|
|
| 270 | 270 | |
| 271 | - foreach ($widget_option_list as $key => $widget_options) {
|
|
| 271 | + foreach ($widget_option_list as $key => $widget_options) {
|
|
| 272 | 272 | |
| 273 | - foreach ($widget_options as $key2 => $widget_options_obj) {
|
|
| 274 | - $widgetid = 'widget_' . $key2; |
|
| 273 | + foreach ($widget_options as $key2 => $widget_options_obj) {
|
|
| 274 | + $widgetid = 'widget_' . $key2; |
|
| 275 | 275 | |
| 276 | - $widgetinfo[$widgetid][] = $widget_options_obj; |
|
| 276 | + $widgetinfo[$widgetid][] = $widget_options_obj; |
|
| 277 | 277 | |
| 278 | - $sidebarvalue_array[$key][] = $key2 . "-" . (count($widgetinfo[$widgetid])); |
|
| 278 | + $sidebarvalue_array[$key][] = $key2 . "-" . (count($widgetinfo[$widgetid])); |
|
| 279 | 279 | |
| 280 | - $widget_update[$widgetid][count($widgetinfo[$widgetid])] = $widget_options_obj; |
|
| 280 | + $widget_update[$widgetid][count($widgetinfo[$widgetid])] = $widget_options_obj; |
|
| 281 | 281 | |
| 282 | - } |
|
| 282 | + } |
|
| 283 | 283 | |
| 284 | - if (!empty($sidebarvalue_array[$key])) {
|
|
| 284 | + if (!empty($sidebarvalue_array[$key])) {
|
|
| 285 | 285 | |
| 286 | - $sidebars_widgets = get_option('sidebars_widgets');
|
|
| 287 | - $sidebars_widgets[$key] = $sidebarvalue_array[$key]; |
|
| 288 | - update_option('sidebars_widgets', $sidebars_widgets);
|
|
| 286 | + $sidebars_widgets = get_option('sidebars_widgets');
|
|
| 287 | + $sidebars_widgets[$key] = $sidebarvalue_array[$key]; |
|
| 288 | + update_option('sidebars_widgets', $sidebars_widgets);
|
|
| 289 | 289 | |
| 290 | - foreach ($widget_update as $key => $value) {
|
|
| 290 | + foreach ($widget_update as $key => $value) {
|
|
| 291 | 291 | |
| 292 | - update_option($key, $value); |
|
| 292 | + update_option($key, $value); |
|
| 293 | 293 | |
| 294 | - } |
|
| 294 | + } |
|
| 295 | 295 | |
| 296 | - } |
|
| 296 | + } |
|
| 297 | 297 | |
| 298 | - } |
|
| 298 | + } |
|
| 299 | 299 | |
| 300 | 300 | |
| 301 | 301 | } |
@@ -13,14 +13,14 @@ |
||
| 13 | 13 | * @since 1.0.0 |
| 14 | 14 | */ |
| 15 | 15 | include_once(geodir_plugin_path() . '/geodirectory-admin/option-pages/create_field.php'); |
| 16 | - die; |
|
| 16 | + die; |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | if (isset($_REQUEST['ajax_action']) && $_REQUEST['ajax_action'] != '') { |
| 21 | - switch ($_REQUEST['ajax_action']): |
|
| 22 | - case 'get_cat_dl': |
|
| 23 | - geodir_get_categories_dl($_REQUEST['post_type'], $_REQUEST['selected'], false, true); |
|
| 24 | - break; |
|
| 25 | - endswitch; |
|
| 21 | + switch ($_REQUEST['ajax_action']): |
|
| 22 | + case 'get_cat_dl': |
|
| 23 | + geodir_get_categories_dl($_REQUEST['post_type'], $_REQUEST['selected'], false, true); |
|
| 24 | + break; |
|
| 25 | + endswitch; |
|
| 26 | 26 | } |
| 27 | 27 | \ No newline at end of file |
@@ -17,262 +17,262 @@ |
||
| 17 | 17 | $geodir_settings['notifications_settings'] = apply_filters('geodir_notifications_settings', array(
|
| 18 | 18 | |
| 19 | 19 | |
| 20 | - array('name' => __('Options', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'notification_options'),
|
|
| 21 | - |
|
| 22 | - |
|
| 23 | - array('name' => __('Notification Options', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'notification_options'),
|
|
| 24 | - |
|
| 25 | - array( |
|
| 26 | - 'name' => __('List of usable shortcodes', 'geodirectory'),
|
|
| 27 | - 'desc' => __('[#client_name#],[#listing_link#],[#posted_date#],[#number_of_days#],[#number_of_grace_days#],[#login_url#],[#username#],[#user_email#],[#site_name_url#],[#renew_link#],[#post_id#],[#site_name#],[#from_email#](in most cases this will be the admin email, except for popup forms)', 'geodirectory'),
|
|
| 28 | - 'id' => 'geodir_list_of_usable_shordcodes', |
|
| 29 | - 'type' => 'html_content', |
|
| 30 | - 'css' => 'min-width:300px;', |
|
| 31 | - 'std' => 'All Places' // Default value for the page title - changed in settings |
|
| 32 | - ), |
|
| 33 | - |
|
| 34 | - array( |
|
| 35 | - 'name' => __('Use advanced editor? (slow loading)', 'geodirectory'),
|
|
| 36 | - 'desc' => __('Yes', 'geodirectory'),
|
|
| 37 | - 'id' => 'geodir_tiny_editor', |
|
| 38 | - 'std' => 'yes', |
|
| 39 | - 'type' => 'radio', |
|
| 40 | - 'value' => '1', |
|
| 41 | - 'radiogroup' => 'start' |
|
| 42 | - ), |
|
| 43 | - array( |
|
| 44 | - 'name' => __('Use advanced editor?(slow loading)', 'geodirectory'),
|
|
| 45 | - 'desc' => __('No', 'geodirectory'),
|
|
| 46 | - 'id' => 'geodir_tiny_editor', |
|
| 47 | - 'std' => 'yes', |
|
| 48 | - 'type' => 'radio', |
|
| 49 | - 'value' => '0', |
|
| 50 | - 'radiogroup' => 'end' |
|
| 51 | - ), |
|
| 52 | - |
|
| 53 | - |
|
| 54 | - array('type' => 'sectionend', 'id' => 'notification_options'),
|
|
| 55 | - |
|
| 56 | - |
|
| 57 | - array('name' => __('Site Bcc Options', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'site_bcc_options'),
|
|
| 58 | - |
|
| 59 | - array('name' => __('Site Bcc Options', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'site_bcc_options'),
|
|
| 60 | - |
|
| 61 | - array( |
|
| 62 | - 'name' => __('New user registration', 'geodirectory'),
|
|
| 63 | - 'desc' => __('Yes', 'geodirectory'),
|
|
| 64 | - 'id' => 'geodir_bcc_new_user', |
|
| 65 | - 'std' => 'yes', |
|
| 66 | - 'type' => 'radio', |
|
| 67 | - 'value' => '1', |
|
| 68 | - 'radiogroup' => 'start' |
|
| 69 | - ), |
|
| 70 | - array( |
|
| 71 | - 'name' => __('New user registration', 'geodirectory'),
|
|
| 72 | - 'desc' => __('No', 'geodirectory'),
|
|
| 73 | - 'id' => 'geodir_bcc_new_user', |
|
| 74 | - 'std' => 'yes', |
|
| 75 | - 'type' => 'radio', |
|
| 76 | - 'value' => '0', |
|
| 77 | - 'radiogroup' => 'end' |
|
| 78 | - ), |
|
| 79 | - |
|
| 80 | - array( |
|
| 81 | - 'name' => __('Send to friend', 'geodirectory'),
|
|
| 82 | - 'desc' => __('Yes', 'geodirectory'),
|
|
| 83 | - 'id' => 'geodir_bcc_friend', |
|
| 84 | - 'std' => 'yes', |
|
| 85 | - 'type' => 'radio', |
|
| 86 | - 'value' => '1', |
|
| 87 | - 'radiogroup' => 'start' |
|
| 88 | - ), |
|
| 89 | - array( |
|
| 90 | - 'name' => __('Send to friend', 'geodirectory'),
|
|
| 91 | - 'desc' => __('No', 'geodirectory'),
|
|
| 92 | - 'id' => 'geodir_bcc_friend', |
|
| 93 | - 'std' => 'yes', |
|
| 94 | - 'type' => 'radio', |
|
| 95 | - 'value' => '0', |
|
| 96 | - 'radiogroup' => 'end' |
|
| 97 | - ), |
|
| 98 | - |
|
| 99 | - array( |
|
| 100 | - 'name' => __('Send enquiry', 'geodirectory'),
|
|
| 101 | - 'desc' => __('Yes', 'geodirectory'),
|
|
| 102 | - 'id' => 'geodir_bcc_enquiry', |
|
| 103 | - 'std' => 'yes', |
|
| 104 | - 'type' => 'radio', |
|
| 105 | - 'value' => '1', |
|
| 106 | - 'radiogroup' => 'start' |
|
| 107 | - ), |
|
| 108 | - array( |
|
| 109 | - 'name' => __('Send enquiry', 'geodirectory'),
|
|
| 110 | - 'desc' => __('No', 'geodirectory'),
|
|
| 111 | - 'id' => 'geodir_bcc_enquiry', |
|
| 112 | - 'std' => 'yes', |
|
| 113 | - 'type' => 'radio', |
|
| 114 | - 'value' => '0', |
|
| 115 | - 'radiogroup' => 'end' |
|
| 116 | - ), |
|
| 117 | - |
|
| 118 | - |
|
| 119 | - array('type' => 'sectionend', 'id' => 'site_bcc_options'),
|
|
| 120 | - |
|
| 121 | - |
|
| 122 | - array('name' => __('Admin Emails', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'admin_emails'),
|
|
| 123 | - |
|
| 124 | - array('name' => __('Admin Emails', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'admin_emails'),
|
|
| 125 | - |
|
| 126 | - array( |
|
| 127 | - 'name' => __('Post submit success to admin email', 'geodirectory'),
|
|
| 128 | - 'desc' => '', |
|
| 129 | - 'id' => 'geodir_post_submited_success_email_subject_admin', |
|
| 130 | - 'type' => 'text', |
|
| 131 | - 'css' => 'min-width:300px;', |
|
| 132 | - 'std' => __('Post Submitted Successfully','geodirectory') // Default value for the page title - changed in settings
|
|
| 133 | - ), |
|
| 134 | - array( |
|
| 135 | - 'name' => '', |
|
| 136 | - 'desc' => '', |
|
| 137 | - 'id' => 'geodir_post_submited_success_email_content_admin', |
|
| 138 | - 'css' => 'width:500px; height: 150px;', |
|
| 139 | - 'type' => 'textarea', |
|
| 140 | - 'std' => __('<p>Dear Admin,</p><p>A new listing has been published [#listing_link#]. This email is just for your information.</p><br><p>[#site_name#]</p>','geodirectory')
|
|
| 141 | - ), |
|
| 142 | - |
|
| 143 | - |
|
| 144 | - array('type' => 'sectionend', 'id' => 'admin_emails'),
|
|
| 145 | - |
|
| 146 | - |
|
| 147 | - array('name' => __('Client Emails', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'client_emails'),
|
|
| 148 | - |
|
| 149 | - array('name' => __('Client Emails', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'client_emails'),
|
|
| 150 | - |
|
| 151 | - array( |
|
| 152 | - 'name' => __('Post submit success to client email', 'geodirectory'),
|
|
| 153 | - 'desc' => '', |
|
| 154 | - 'id' => 'geodir_post_submited_success_email_subject', |
|
| 155 | - 'type' => 'text', |
|
| 156 | - 'css' => 'min-width:300px;', |
|
| 157 | - 'std' => __('Post Submitted Successfully','geodirectory') // Default value for the page title - changed in settings
|
|
| 158 | - ), |
|
| 159 | - array( |
|
| 160 | - 'name' => '', |
|
| 161 | - 'desc' => '', |
|
| 162 | - 'id' => 'geodir_post_submited_success_email_content', |
|
| 163 | - 'css' => 'width:500px; height: 150px;', |
|
| 164 | - 'type' => 'textarea', |
|
| 165 | - 'std' => __('<p>Dear [#client_name#],</p><p>You submitted the below listing information. This email is just for your information.</p><p>[#listing_link#]</p><br><p>Thank you for your contribution.</p><p>[#site_name#]</p>','geodirectory')
|
|
| 166 | - ), |
|
| 167 | - |
|
| 168 | - |
|
| 169 | - array( |
|
| 170 | - 'name' => __('User forgot password email', 'geodirectory'),
|
|
| 171 | - 'desc' => '', |
|
| 172 | - 'id' => 'geodir_forgot_password_subject', |
|
| 173 | - 'type' => 'text', |
|
| 174 | - 'css' => 'min-width:300px;', |
|
| 175 | - 'std' => __('[#site_name#] - Your new password', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 176 | - ), |
|
| 177 | - array( |
|
| 178 | - 'name' => '', |
|
| 179 | - 'desc' => '', |
|
| 180 | - 'id' => 'geodir_forgot_password_content', |
|
| 181 | - 'css' => 'width:500px; height: 150px;', |
|
| 182 | - 'type' => 'textarea', |
|
| 183 | - 'std' => __("<p>Dear [#client_name#],<p><p>You requested a new password for [#site_name_url#]</p><p>[#login_details#]</p><p>You can login here: [#login_url#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 184 | - ), |
|
| 185 | - |
|
| 186 | - array( |
|
| 187 | - 'name' => __('Registration success email', 'geodirectory'),
|
|
| 188 | - 'desc' => '', |
|
| 189 | - 'id' => 'geodir_registration_success_email_subject', |
|
| 190 | - 'type' => 'text', |
|
| 191 | - 'css' => 'min-width:300px;', |
|
| 192 | - 'std' => __('Your Log In Details', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 193 | - ), |
|
| 194 | - array( |
|
| 195 | - 'name' => '', |
|
| 196 | - 'desc' => '', |
|
| 197 | - 'id' => 'geodir_registration_success_email_content', |
|
| 198 | - 'css' => 'width:500px; height: 150px;', |
|
| 199 | - 'type' => 'textarea', |
|
| 200 | - 'std' => __("<p>Dear [#client_name#],</p><p>You can log in with the following information:</p><p>[#login_details#]</p><p>You can login here: [#login_url#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 201 | - ), |
|
| 202 | - array( |
|
| 203 | - 'name' => __('Listing published email', 'geodirectory'),
|
|
| 204 | - 'desc' => '', |
|
| 205 | - 'id' => 'geodir_post_published_email_subject', |
|
| 206 | - 'type' => 'text', |
|
| 207 | - 'css' => 'min-width:300px;', |
|
| 208 | - 'std' => __('Listing Published Successfully', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 209 | - ), |
|
| 210 | - array( |
|
| 211 | - 'name' => '', |
|
| 212 | - 'desc' => '', |
|
| 213 | - 'id' => 'geodir_post_published_email_content', |
|
| 214 | - 'css' => 'width:500px; height: 150px;', |
|
| 215 | - 'type' => 'textarea', |
|
| 216 | - 'std' => __("<p>Dear [#client_name#],</p><p>Your listing [#listing_link#] has been published. This email is just for your information.</p><p>[#listing_link#]</p><br><p>Thank you for your contribution.</p><p>[#site_name#]</p>", 'geodirectory')
|
|
| 217 | - ), |
|
| 218 | - |
|
| 219 | - array('type' => 'sectionend', 'id' => 'client_emails'),
|
|
| 220 | - |
|
| 221 | - array('name' => __('Other Emails', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'other_emails'),
|
|
| 222 | - |
|
| 223 | - array('name' => __('Other Emails', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'other_emails'),
|
|
| 224 | - |
|
| 225 | - array( |
|
| 226 | - 'name' => __('Send to friend', 'geodirectory'),
|
|
| 227 | - 'desc' => '', |
|
| 228 | - 'id' => 'geodir_email_friend_subject', |
|
| 229 | - 'type' => 'text', |
|
| 230 | - 'css' => 'min-width:300px;', |
|
| 231 | - 'std' => __('[#from_name#] thought you might be interested in..', 'geodirectory')
|
|
| 232 | - ), |
|
| 233 | - array( |
|
| 234 | - 'name' => '', |
|
| 235 | - 'desc' => '', |
|
| 236 | - 'id' => 'geodir_email_friend_content', |
|
| 237 | - 'css' => 'width:500px; height: 150px;', |
|
| 238 | - 'type' => 'textarea', |
|
| 239 | - 'std' => __("<p>Dear [#to_name#],<p><p>Your friend has sent you a message from <b>[#site_name#]</b> </p><p>===============================</p><p><b>Subject : [#subject#]</b></p><p>[#comments#] [#listing_link#]</p><p>===============================</p><p>Thank you,<br /><br />[#site_name#].</p>",'geodirectory')
|
|
| 240 | - ), |
|
| 241 | - |
|
| 242 | - array( |
|
| 243 | - 'name' => __('Email enquiry', 'geodirectory'),
|
|
| 244 | - 'desc' => '', |
|
| 245 | - 'id' => 'geodir_email_enquiry_subject', |
|
| 246 | - 'type' => 'text', |
|
| 247 | - 'css' => 'min-width:300px;', |
|
| 248 | - 'std' => __('Website Enquiry', 'geodirectory')
|
|
| 249 | - ), |
|
| 250 | - array( |
|
| 251 | - 'name' => '', |
|
| 252 | - 'desc' => '', |
|
| 253 | - 'id' => 'geodir_email_enquiry_content', |
|
| 254 | - 'css' => 'width:500px; height: 150px;', |
|
| 255 | - 'type' => 'textarea', |
|
| 256 | - 'std' => __("<p>Dear [#to_name#],<p><p>An enquiry has been sent from <b>[#listing_link#]</b></p><p>===============================</p><p>[#comments#]</p><p>===============================</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 257 | - ), |
|
| 258 | - |
|
| 259 | - array('type' => 'sectionend', 'id' => 'other_emails'),
|
|
| 260 | - |
|
| 261 | - |
|
| 262 | - array('name' => __('Messages', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'messages'),
|
|
| 263 | - |
|
| 264 | - array('name' => __('Messages', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'messages'),
|
|
| 265 | - |
|
| 266 | - array( |
|
| 267 | - 'name' => __('Post submitted success', 'geodirectory'),
|
|
| 268 | - 'desc' => '', |
|
| 269 | - 'id' => 'geodir_post_added_success_msg_content', |
|
| 270 | - 'css' => 'width:500px; height: 150px;', |
|
| 271 | - 'type' => 'textarea', |
|
| 272 | - 'std' => __('<p>Thank you, your information has been successfully received.</p><p><a href="[#submited_information_link#]" >View your submitted information »</a></p><p>Thank you for visiting us at [#site_name#].</p>','geodirectory')
|
|
| 273 | - ), |
|
| 274 | - |
|
| 275 | - |
|
| 276 | - array('type' => 'sectionend', 'id' => 'messages'),
|
|
| 20 | + array('name' => __('Options', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'notification_options'),
|
|
| 21 | + |
|
| 22 | + |
|
| 23 | + array('name' => __('Notification Options', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'notification_options'),
|
|
| 24 | + |
|
| 25 | + array( |
|
| 26 | + 'name' => __('List of usable shortcodes', 'geodirectory'),
|
|
| 27 | + 'desc' => __('[#client_name#],[#listing_link#],[#posted_date#],[#number_of_days#],[#number_of_grace_days#],[#login_url#],[#username#],[#user_email#],[#site_name_url#],[#renew_link#],[#post_id#],[#site_name#],[#from_email#](in most cases this will be the admin email, except for popup forms)', 'geodirectory'),
|
|
| 28 | + 'id' => 'geodir_list_of_usable_shordcodes', |
|
| 29 | + 'type' => 'html_content', |
|
| 30 | + 'css' => 'min-width:300px;', |
|
| 31 | + 'std' => 'All Places' // Default value for the page title - changed in settings |
|
| 32 | + ), |
|
| 33 | + |
|
| 34 | + array( |
|
| 35 | + 'name' => __('Use advanced editor? (slow loading)', 'geodirectory'),
|
|
| 36 | + 'desc' => __('Yes', 'geodirectory'),
|
|
| 37 | + 'id' => 'geodir_tiny_editor', |
|
| 38 | + 'std' => 'yes', |
|
| 39 | + 'type' => 'radio', |
|
| 40 | + 'value' => '1', |
|
| 41 | + 'radiogroup' => 'start' |
|
| 42 | + ), |
|
| 43 | + array( |
|
| 44 | + 'name' => __('Use advanced editor?(slow loading)', 'geodirectory'),
|
|
| 45 | + 'desc' => __('No', 'geodirectory'),
|
|
| 46 | + 'id' => 'geodir_tiny_editor', |
|
| 47 | + 'std' => 'yes', |
|
| 48 | + 'type' => 'radio', |
|
| 49 | + 'value' => '0', |
|
| 50 | + 'radiogroup' => 'end' |
|
| 51 | + ), |
|
| 52 | + |
|
| 53 | + |
|
| 54 | + array('type' => 'sectionend', 'id' => 'notification_options'),
|
|
| 55 | + |
|
| 56 | + |
|
| 57 | + array('name' => __('Site Bcc Options', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'site_bcc_options'),
|
|
| 58 | + |
|
| 59 | + array('name' => __('Site Bcc Options', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'site_bcc_options'),
|
|
| 60 | + |
|
| 61 | + array( |
|
| 62 | + 'name' => __('New user registration', 'geodirectory'),
|
|
| 63 | + 'desc' => __('Yes', 'geodirectory'),
|
|
| 64 | + 'id' => 'geodir_bcc_new_user', |
|
| 65 | + 'std' => 'yes', |
|
| 66 | + 'type' => 'radio', |
|
| 67 | + 'value' => '1', |
|
| 68 | + 'radiogroup' => 'start' |
|
| 69 | + ), |
|
| 70 | + array( |
|
| 71 | + 'name' => __('New user registration', 'geodirectory'),
|
|
| 72 | + 'desc' => __('No', 'geodirectory'),
|
|
| 73 | + 'id' => 'geodir_bcc_new_user', |
|
| 74 | + 'std' => 'yes', |
|
| 75 | + 'type' => 'radio', |
|
| 76 | + 'value' => '0', |
|
| 77 | + 'radiogroup' => 'end' |
|
| 78 | + ), |
|
| 79 | + |
|
| 80 | + array( |
|
| 81 | + 'name' => __('Send to friend', 'geodirectory'),
|
|
| 82 | + 'desc' => __('Yes', 'geodirectory'),
|
|
| 83 | + 'id' => 'geodir_bcc_friend', |
|
| 84 | + 'std' => 'yes', |
|
| 85 | + 'type' => 'radio', |
|
| 86 | + 'value' => '1', |
|
| 87 | + 'radiogroup' => 'start' |
|
| 88 | + ), |
|
| 89 | + array( |
|
| 90 | + 'name' => __('Send to friend', 'geodirectory'),
|
|
| 91 | + 'desc' => __('No', 'geodirectory'),
|
|
| 92 | + 'id' => 'geodir_bcc_friend', |
|
| 93 | + 'std' => 'yes', |
|
| 94 | + 'type' => 'radio', |
|
| 95 | + 'value' => '0', |
|
| 96 | + 'radiogroup' => 'end' |
|
| 97 | + ), |
|
| 98 | + |
|
| 99 | + array( |
|
| 100 | + 'name' => __('Send enquiry', 'geodirectory'),
|
|
| 101 | + 'desc' => __('Yes', 'geodirectory'),
|
|
| 102 | + 'id' => 'geodir_bcc_enquiry', |
|
| 103 | + 'std' => 'yes', |
|
| 104 | + 'type' => 'radio', |
|
| 105 | + 'value' => '1', |
|
| 106 | + 'radiogroup' => 'start' |
|
| 107 | + ), |
|
| 108 | + array( |
|
| 109 | + 'name' => __('Send enquiry', 'geodirectory'),
|
|
| 110 | + 'desc' => __('No', 'geodirectory'),
|
|
| 111 | + 'id' => 'geodir_bcc_enquiry', |
|
| 112 | + 'std' => 'yes', |
|
| 113 | + 'type' => 'radio', |
|
| 114 | + 'value' => '0', |
|
| 115 | + 'radiogroup' => 'end' |
|
| 116 | + ), |
|
| 117 | + |
|
| 118 | + |
|
| 119 | + array('type' => 'sectionend', 'id' => 'site_bcc_options'),
|
|
| 120 | + |
|
| 121 | + |
|
| 122 | + array('name' => __('Admin Emails', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'admin_emails'),
|
|
| 123 | + |
|
| 124 | + array('name' => __('Admin Emails', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'admin_emails'),
|
|
| 125 | + |
|
| 126 | + array( |
|
| 127 | + 'name' => __('Post submit success to admin email', 'geodirectory'),
|
|
| 128 | + 'desc' => '', |
|
| 129 | + 'id' => 'geodir_post_submited_success_email_subject_admin', |
|
| 130 | + 'type' => 'text', |
|
| 131 | + 'css' => 'min-width:300px;', |
|
| 132 | + 'std' => __('Post Submitted Successfully','geodirectory') // Default value for the page title - changed in settings
|
|
| 133 | + ), |
|
| 134 | + array( |
|
| 135 | + 'name' => '', |
|
| 136 | + 'desc' => '', |
|
| 137 | + 'id' => 'geodir_post_submited_success_email_content_admin', |
|
| 138 | + 'css' => 'width:500px; height: 150px;', |
|
| 139 | + 'type' => 'textarea', |
|
| 140 | + 'std' => __('<p>Dear Admin,</p><p>A new listing has been published [#listing_link#]. This email is just for your information.</p><br><p>[#site_name#]</p>','geodirectory')
|
|
| 141 | + ), |
|
| 142 | + |
|
| 143 | + |
|
| 144 | + array('type' => 'sectionend', 'id' => 'admin_emails'),
|
|
| 145 | + |
|
| 146 | + |
|
| 147 | + array('name' => __('Client Emails', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'client_emails'),
|
|
| 148 | + |
|
| 149 | + array('name' => __('Client Emails', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'client_emails'),
|
|
| 150 | + |
|
| 151 | + array( |
|
| 152 | + 'name' => __('Post submit success to client email', 'geodirectory'),
|
|
| 153 | + 'desc' => '', |
|
| 154 | + 'id' => 'geodir_post_submited_success_email_subject', |
|
| 155 | + 'type' => 'text', |
|
| 156 | + 'css' => 'min-width:300px;', |
|
| 157 | + 'std' => __('Post Submitted Successfully','geodirectory') // Default value for the page title - changed in settings
|
|
| 158 | + ), |
|
| 159 | + array( |
|
| 160 | + 'name' => '', |
|
| 161 | + 'desc' => '', |
|
| 162 | + 'id' => 'geodir_post_submited_success_email_content', |
|
| 163 | + 'css' => 'width:500px; height: 150px;', |
|
| 164 | + 'type' => 'textarea', |
|
| 165 | + 'std' => __('<p>Dear [#client_name#],</p><p>You submitted the below listing information. This email is just for your information.</p><p>[#listing_link#]</p><br><p>Thank you for your contribution.</p><p>[#site_name#]</p>','geodirectory')
|
|
| 166 | + ), |
|
| 167 | + |
|
| 168 | + |
|
| 169 | + array( |
|
| 170 | + 'name' => __('User forgot password email', 'geodirectory'),
|
|
| 171 | + 'desc' => '', |
|
| 172 | + 'id' => 'geodir_forgot_password_subject', |
|
| 173 | + 'type' => 'text', |
|
| 174 | + 'css' => 'min-width:300px;', |
|
| 175 | + 'std' => __('[#site_name#] - Your new password', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 176 | + ), |
|
| 177 | + array( |
|
| 178 | + 'name' => '', |
|
| 179 | + 'desc' => '', |
|
| 180 | + 'id' => 'geodir_forgot_password_content', |
|
| 181 | + 'css' => 'width:500px; height: 150px;', |
|
| 182 | + 'type' => 'textarea', |
|
| 183 | + 'std' => __("<p>Dear [#client_name#],<p><p>You requested a new password for [#site_name_url#]</p><p>[#login_details#]</p><p>You can login here: [#login_url#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 184 | + ), |
|
| 185 | + |
|
| 186 | + array( |
|
| 187 | + 'name' => __('Registration success email', 'geodirectory'),
|
|
| 188 | + 'desc' => '', |
|
| 189 | + 'id' => 'geodir_registration_success_email_subject', |
|
| 190 | + 'type' => 'text', |
|
| 191 | + 'css' => 'min-width:300px;', |
|
| 192 | + 'std' => __('Your Log In Details', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 193 | + ), |
|
| 194 | + array( |
|
| 195 | + 'name' => '', |
|
| 196 | + 'desc' => '', |
|
| 197 | + 'id' => 'geodir_registration_success_email_content', |
|
| 198 | + 'css' => 'width:500px; height: 150px;', |
|
| 199 | + 'type' => 'textarea', |
|
| 200 | + 'std' => __("<p>Dear [#client_name#],</p><p>You can log in with the following information:</p><p>[#login_details#]</p><p>You can login here: [#login_url#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 201 | + ), |
|
| 202 | + array( |
|
| 203 | + 'name' => __('Listing published email', 'geodirectory'),
|
|
| 204 | + 'desc' => '', |
|
| 205 | + 'id' => 'geodir_post_published_email_subject', |
|
| 206 | + 'type' => 'text', |
|
| 207 | + 'css' => 'min-width:300px;', |
|
| 208 | + 'std' => __('Listing Published Successfully', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 209 | + ), |
|
| 210 | + array( |
|
| 211 | + 'name' => '', |
|
| 212 | + 'desc' => '', |
|
| 213 | + 'id' => 'geodir_post_published_email_content', |
|
| 214 | + 'css' => 'width:500px; height: 150px;', |
|
| 215 | + 'type' => 'textarea', |
|
| 216 | + 'std' => __("<p>Dear [#client_name#],</p><p>Your listing [#listing_link#] has been published. This email is just for your information.</p><p>[#listing_link#]</p><br><p>Thank you for your contribution.</p><p>[#site_name#]</p>", 'geodirectory')
|
|
| 217 | + ), |
|
| 218 | + |
|
| 219 | + array('type' => 'sectionend', 'id' => 'client_emails'),
|
|
| 220 | + |
|
| 221 | + array('name' => __('Other Emails', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'other_emails'),
|
|
| 222 | + |
|
| 223 | + array('name' => __('Other Emails', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'other_emails'),
|
|
| 224 | + |
|
| 225 | + array( |
|
| 226 | + 'name' => __('Send to friend', 'geodirectory'),
|
|
| 227 | + 'desc' => '', |
|
| 228 | + 'id' => 'geodir_email_friend_subject', |
|
| 229 | + 'type' => 'text', |
|
| 230 | + 'css' => 'min-width:300px;', |
|
| 231 | + 'std' => __('[#from_name#] thought you might be interested in..', 'geodirectory')
|
|
| 232 | + ), |
|
| 233 | + array( |
|
| 234 | + 'name' => '', |
|
| 235 | + 'desc' => '', |
|
| 236 | + 'id' => 'geodir_email_friend_content', |
|
| 237 | + 'css' => 'width:500px; height: 150px;', |
|
| 238 | + 'type' => 'textarea', |
|
| 239 | + 'std' => __("<p>Dear [#to_name#],<p><p>Your friend has sent you a message from <b>[#site_name#]</b> </p><p>===============================</p><p><b>Subject : [#subject#]</b></p><p>[#comments#] [#listing_link#]</p><p>===============================</p><p>Thank you,<br /><br />[#site_name#].</p>",'geodirectory')
|
|
| 240 | + ), |
|
| 241 | + |
|
| 242 | + array( |
|
| 243 | + 'name' => __('Email enquiry', 'geodirectory'),
|
|
| 244 | + 'desc' => '', |
|
| 245 | + 'id' => 'geodir_email_enquiry_subject', |
|
| 246 | + 'type' => 'text', |
|
| 247 | + 'css' => 'min-width:300px;', |
|
| 248 | + 'std' => __('Website Enquiry', 'geodirectory')
|
|
| 249 | + ), |
|
| 250 | + array( |
|
| 251 | + 'name' => '', |
|
| 252 | + 'desc' => '', |
|
| 253 | + 'id' => 'geodir_email_enquiry_content', |
|
| 254 | + 'css' => 'width:500px; height: 150px;', |
|
| 255 | + 'type' => 'textarea', |
|
| 256 | + 'std' => __("<p>Dear [#to_name#],<p><p>An enquiry has been sent from <b>[#listing_link#]</b></p><p>===============================</p><p>[#comments#]</p><p>===============================</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 257 | + ), |
|
| 258 | + |
|
| 259 | + array('type' => 'sectionend', 'id' => 'other_emails'),
|
|
| 260 | + |
|
| 261 | + |
|
| 262 | + array('name' => __('Messages', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'messages'),
|
|
| 263 | + |
|
| 264 | + array('name' => __('Messages', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'messages'),
|
|
| 265 | + |
|
| 266 | + array( |
|
| 267 | + 'name' => __('Post submitted success', 'geodirectory'),
|
|
| 268 | + 'desc' => '', |
|
| 269 | + 'id' => 'geodir_post_added_success_msg_content', |
|
| 270 | + 'css' => 'width:500px; height: 150px;', |
|
| 271 | + 'type' => 'textarea', |
|
| 272 | + 'std' => __('<p>Thank you, your information has been successfully received.</p><p><a href="[#submited_information_link#]" >View your submitted information »</a></p><p>Thank you for visiting us at [#site_name#].</p>','geodirectory')
|
|
| 273 | + ), |
|
| 274 | + |
|
| 275 | + |
|
| 276 | + array('type' => 'sectionend', 'id' => 'messages'),
|
|
| 277 | 277 | |
| 278 | 278 | )); // End Manage NOtifications settings |
@@ -16,184 +16,184 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | $geodir_settings['permalink_settings'] = apply_filters('geodir_permalink_settings', array( |
| 18 | 18 | |
| 19 | - /* Listing Permalink Settings start */ |
|
| 20 | - array('name' => __('Permalink', 'geodirectory'), 'type' => 'no_tabs', 'desc' => 'Settings to set permalink', 'id' => 'geodir_permalink_settings '), |
|
| 21 | - |
|
| 22 | - |
|
| 23 | - array('name' => __('Listing Detail Permalink Settings', 'geodirectory'), |
|
| 24 | - 'type' => 'sectionstart', |
|
| 25 | - 'desc' => '', |
|
| 26 | - 'id' => 'geodir_permalink'), |
|
| 27 | - |
|
| 28 | - array( |
|
| 29 | - 'name' => __('Add location in urls', 'geodirectory'), |
|
| 30 | - 'desc' => __('Add location slug in listing urls', 'geodirectory'), |
|
| 31 | - 'id' => 'geodir_add_location_url', |
|
| 32 | - 'type' => 'checkbox', |
|
| 33 | - 'std' => '1', |
|
| 34 | - 'checkboxgroup' => 'start' |
|
| 35 | - ), |
|
| 36 | - |
|
| 37 | - array( |
|
| 38 | - 'name' => __('Add full location in listing urls', 'geodirectory'), |
|
| 39 | - 'desc' => __('Add full location info with country, region and city slug in listing urls', 'geodirectory'), |
|
| 40 | - 'id' => 'geodir_show_location_url', |
|
| 41 | - 'type' => 'radio', |
|
| 42 | - 'value' => 'all', |
|
| 43 | - 'std' => 'all', |
|
| 44 | - 'radiogroup' => '' |
|
| 45 | - ), |
|
| 46 | - |
|
| 47 | - array( |
|
| 48 | - 'name' => __('Add country and city slug in listing urls', 'geodirectory'), |
|
| 49 | - 'desc' => __('Add country and city slug in listing urls (/country/city/)', 'geodirectory'), |
|
| 50 | - 'id' => 'geodir_show_location_url', |
|
| 51 | - 'type' => 'radio', |
|
| 52 | - 'std' => 'all', |
|
| 53 | - 'value' => 'country_city', |
|
| 54 | - 'radiogroup' => '' |
|
| 55 | - ), |
|
| 56 | - array( |
|
| 57 | - 'name' => __('Add region and city slug in listing urls', 'geodirectory'), |
|
| 58 | - 'desc' => __('Add region and city slug in listing urls (/region/city/)', 'geodirectory'), |
|
| 59 | - 'id' => 'geodir_show_location_url', |
|
| 60 | - 'type' => 'radio', |
|
| 61 | - 'std' => 'all', |
|
| 62 | - 'value' => 'region_city', |
|
| 63 | - 'radiogroup' => '' |
|
| 64 | - ), |
|
| 65 | - array( |
|
| 66 | - 'name' => __('Add only city in listing urls', 'geodirectory'), |
|
| 67 | - 'desc' => __('Add city slug in listing urls', 'geodirectory'), |
|
| 68 | - 'id' => 'geodir_show_location_url', |
|
| 69 | - 'type' => 'radio', |
|
| 70 | - 'std' => 'all', |
|
| 71 | - 'value' => 'city', |
|
| 72 | - 'radiogroup' => 'end' |
|
| 73 | - ), |
|
| 74 | - |
|
| 75 | - |
|
| 76 | - |
|
| 77 | - array( |
|
| 78 | - 'name' => __('Add category in listing urls', 'geodirectory'), |
|
| 79 | - 'desc' => __('Add requested category slugs in listing urls', 'geodirectory'), |
|
| 80 | - 'id' => 'geodir_add_categories_url', |
|
| 81 | - 'type' => 'checkbox', |
|
| 82 | - 'std' => '1', |
|
| 83 | - ), |
|
| 84 | - |
|
| 85 | - array( |
|
| 86 | - 'name' => __('Listing url prefix', 'geodirectory'), |
|
| 87 | - 'desc' => __('Listing prefix to show in url', 'geodirectory'), |
|
| 88 | - 'id' => 'geodir_listing_prefix', |
|
| 89 | - 'type' => 'text', |
|
| 90 | - 'css' => 'min-width:300px;', |
|
| 91 | - 'std' => 'places' |
|
| 92 | - ), |
|
| 93 | - |
|
| 94 | - array( |
|
| 95 | - 'name' => __('Location url prefix', 'geodirectory'), |
|
| 96 | - 'desc' => __('Depreciated, now uses the location page slug', 'geodirectory'), |
|
| 97 | - 'id' => 'geodir_location_prefix', |
|
| 98 | - 'type' => 'text', |
|
| 99 | - 'css' => 'min-width:300px;', |
|
| 100 | - 'std' => 'location' // Default value to show home top section |
|
| 101 | - ), |
|
| 102 | - |
|
| 103 | - array( |
|
| 104 | - 'name' => __('Location and category url separator', 'geodirectory'), |
|
| 105 | - 'desc' => __('Separator to show between location and category url slugs in listing urls', 'geodirectory'), |
|
| 106 | - 'id' => 'geodir_listingurl_separator', |
|
| 107 | - 'type' => 'text', |
|
| 108 | - 'css' => 'min-width:300px;', |
|
| 109 | - 'std' => 'C' // Default value to show home top section |
|
| 110 | - ), |
|
| 111 | - |
|
| 112 | - array( |
|
| 113 | - 'name' => __('Listing detail url separator', 'geodirectory'), |
|
| 114 | - 'desc' => __('Separator to show before listing slug in listing detail urls', 'geodirectory'), |
|
| 115 | - 'id' => 'geodir_detailurl_separator', |
|
| 116 | - 'type' => 'text', |
|
| 117 | - 'css' => 'min-width:300px;', |
|
| 118 | - 'std' => 'info' // Default value to show home top section |
|
| 119 | - ), |
|
| 120 | - |
|
| 121 | - |
|
| 122 | - array('type' => 'sectionend', 'id' => 'geodir_permalink'), |
|
| 123 | - |
|
| 124 | - array('name' => __('GeoDirectory Pages', 'geodirectory'), |
|
| 125 | - 'type' => 'sectionstart', |
|
| 126 | - 'desc' => '', |
|
| 127 | - 'id' => 'geodir_pages'), |
|
| 128 | - |
|
| 129 | - array( |
|
| 130 | - 'name' => __('GD Home page', 'geodirectory'), |
|
| 131 | - 'desc' => __('Select the page to use for the GD homepage (you must also set this page in Settings>Reading>Front page for it to work)', 'geodirectory'), |
|
| 132 | - 'id' => 'geodir_home_page', |
|
| 133 | - 'type' => 'single_select_page', |
|
| 134 | - 'class' => 'chosen_select' |
|
| 135 | - ), |
|
| 136 | - |
|
| 137 | - array( |
|
| 138 | - 'name' => __('Add listing page', 'geodirectory'), |
|
| 139 | - 'desc' => __('Select the page to use for adding listings', 'geodirectory'), |
|
| 140 | - 'id' => 'geodir_add_listing_page', |
|
| 141 | - 'type' => 'single_select_page', |
|
| 142 | - 'class' => 'chosen_select' |
|
| 143 | - ), |
|
| 144 | - |
|
| 145 | - array( |
|
| 146 | - 'name' => __('Listing preview page', 'geodirectory'), |
|
| 147 | - 'desc' => __('Select the page to use for listing preview', 'geodirectory'), |
|
| 148 | - 'id' => 'geodir_preview_page', |
|
| 149 | - 'type' => 'single_select_page', |
|
| 150 | - 'class' => 'chosen_select' |
|
| 151 | - ), |
|
| 152 | - |
|
| 153 | - array( |
|
| 154 | - 'name' => __('Listing success page', 'geodirectory'), |
|
| 155 | - 'desc' => __('Select the page to use for listing success', 'geodirectory'), |
|
| 156 | - 'id' => 'geodir_success_page', |
|
| 157 | - 'type' => 'single_select_page', |
|
| 158 | - 'class' => 'chosen_select' |
|
| 159 | - ), |
|
| 160 | - |
|
| 161 | - array( |
|
| 162 | - 'name' => __('Location page', 'geodirectory'), |
|
| 163 | - 'desc' => __('Select the page to use for locations', 'geodirectory'), |
|
| 164 | - 'id' => 'geodir_location_page', |
|
| 165 | - 'type' => 'single_select_page', |
|
| 166 | - 'class' => 'chosen_select' |
|
| 167 | - ), |
|
| 168 | - |
|
| 169 | - array( |
|
| 170 | - 'name' => __('Terms and Conditions page', 'geodirectory'), |
|
| 171 | - 'desc' => __('Select the page to use for Terms and Conditions (if enabled)', 'geodirectory'), |
|
| 172 | - 'id' => 'geodir_term_condition_page', |
|
| 173 | - 'type' => 'single_select_page', |
|
| 174 | - 'class' => 'chosen_select' |
|
| 175 | - ), |
|
| 176 | - |
|
| 177 | - array( |
|
| 178 | - 'name' => __('Info page', 'geodirectory'), |
|
| 179 | - 'desc' => __('Select the page to use for Gd general Info', 'geodirectory'), |
|
| 180 | - 'id' => 'geodir_info_page', |
|
| 181 | - 'type' => 'single_select_page', |
|
| 182 | - 'class' => 'chosen_select' |
|
| 183 | - ), |
|
| 184 | - |
|
| 185 | - array( |
|
| 186 | - 'name' => __('Login page', 'geodirectory'), |
|
| 187 | - 'desc' => __('Select the page to use for Login / Register', 'geodirectory'), |
|
| 188 | - 'id' => 'geodir_login_page', |
|
| 189 | - 'type' => 'single_select_page', |
|
| 190 | - 'class' => 'chosen_select' |
|
| 191 | - ), |
|
| 192 | - |
|
| 193 | - |
|
| 194 | - array('type' => 'sectionend', 'id' => 'geodir_pages'), |
|
| 195 | - |
|
| 196 | - /* Listing Detail Permalink Settings End */ |
|
| 19 | + /* Listing Permalink Settings start */ |
|
| 20 | + array('name' => __('Permalink', 'geodirectory'), 'type' => 'no_tabs', 'desc' => 'Settings to set permalink', 'id' => 'geodir_permalink_settings '), |
|
| 21 | + |
|
| 22 | + |
|
| 23 | + array('name' => __('Listing Detail Permalink Settings', 'geodirectory'), |
|
| 24 | + 'type' => 'sectionstart', |
|
| 25 | + 'desc' => '', |
|
| 26 | + 'id' => 'geodir_permalink'), |
|
| 27 | + |
|
| 28 | + array( |
|
| 29 | + 'name' => __('Add location in urls', 'geodirectory'), |
|
| 30 | + 'desc' => __('Add location slug in listing urls', 'geodirectory'), |
|
| 31 | + 'id' => 'geodir_add_location_url', |
|
| 32 | + 'type' => 'checkbox', |
|
| 33 | + 'std' => '1', |
|
| 34 | + 'checkboxgroup' => 'start' |
|
| 35 | + ), |
|
| 36 | + |
|
| 37 | + array( |
|
| 38 | + 'name' => __('Add full location in listing urls', 'geodirectory'), |
|
| 39 | + 'desc' => __('Add full location info with country, region and city slug in listing urls', 'geodirectory'), |
|
| 40 | + 'id' => 'geodir_show_location_url', |
|
| 41 | + 'type' => 'radio', |
|
| 42 | + 'value' => 'all', |
|
| 43 | + 'std' => 'all', |
|
| 44 | + 'radiogroup' => '' |
|
| 45 | + ), |
|
| 46 | + |
|
| 47 | + array( |
|
| 48 | + 'name' => __('Add country and city slug in listing urls', 'geodirectory'), |
|
| 49 | + 'desc' => __('Add country and city slug in listing urls (/country/city/)', 'geodirectory'), |
|
| 50 | + 'id' => 'geodir_show_location_url', |
|
| 51 | + 'type' => 'radio', |
|
| 52 | + 'std' => 'all', |
|
| 53 | + 'value' => 'country_city', |
|
| 54 | + 'radiogroup' => '' |
|
| 55 | + ), |
|
| 56 | + array( |
|
| 57 | + 'name' => __('Add region and city slug in listing urls', 'geodirectory'), |
|
| 58 | + 'desc' => __('Add region and city slug in listing urls (/region/city/)', 'geodirectory'), |
|
| 59 | + 'id' => 'geodir_show_location_url', |
|
| 60 | + 'type' => 'radio', |
|
| 61 | + 'std' => 'all', |
|
| 62 | + 'value' => 'region_city', |
|
| 63 | + 'radiogroup' => '' |
|
| 64 | + ), |
|
| 65 | + array( |
|
| 66 | + 'name' => __('Add only city in listing urls', 'geodirectory'), |
|
| 67 | + 'desc' => __('Add city slug in listing urls', 'geodirectory'), |
|
| 68 | + 'id' => 'geodir_show_location_url', |
|
| 69 | + 'type' => 'radio', |
|
| 70 | + 'std' => 'all', |
|
| 71 | + 'value' => 'city', |
|
| 72 | + 'radiogroup' => 'end' |
|
| 73 | + ), |
|
| 74 | + |
|
| 75 | + |
|
| 76 | + |
|
| 77 | + array( |
|
| 78 | + 'name' => __('Add category in listing urls', 'geodirectory'), |
|
| 79 | + 'desc' => __('Add requested category slugs in listing urls', 'geodirectory'), |
|
| 80 | + 'id' => 'geodir_add_categories_url', |
|
| 81 | + 'type' => 'checkbox', |
|
| 82 | + 'std' => '1', |
|
| 83 | + ), |
|
| 84 | + |
|
| 85 | + array( |
|
| 86 | + 'name' => __('Listing url prefix', 'geodirectory'), |
|
| 87 | + 'desc' => __('Listing prefix to show in url', 'geodirectory'), |
|
| 88 | + 'id' => 'geodir_listing_prefix', |
|
| 89 | + 'type' => 'text', |
|
| 90 | + 'css' => 'min-width:300px;', |
|
| 91 | + 'std' => 'places' |
|
| 92 | + ), |
|
| 93 | + |
|
| 94 | + array( |
|
| 95 | + 'name' => __('Location url prefix', 'geodirectory'), |
|
| 96 | + 'desc' => __('Depreciated, now uses the location page slug', 'geodirectory'), |
|
| 97 | + 'id' => 'geodir_location_prefix', |
|
| 98 | + 'type' => 'text', |
|
| 99 | + 'css' => 'min-width:300px;', |
|
| 100 | + 'std' => 'location' // Default value to show home top section |
|
| 101 | + ), |
|
| 102 | + |
|
| 103 | + array( |
|
| 104 | + 'name' => __('Location and category url separator', 'geodirectory'), |
|
| 105 | + 'desc' => __('Separator to show between location and category url slugs in listing urls', 'geodirectory'), |
|
| 106 | + 'id' => 'geodir_listingurl_separator', |
|
| 107 | + 'type' => 'text', |
|
| 108 | + 'css' => 'min-width:300px;', |
|
| 109 | + 'std' => 'C' // Default value to show home top section |
|
| 110 | + ), |
|
| 111 | + |
|
| 112 | + array( |
|
| 113 | + 'name' => __('Listing detail url separator', 'geodirectory'), |
|
| 114 | + 'desc' => __('Separator to show before listing slug in listing detail urls', 'geodirectory'), |
|
| 115 | + 'id' => 'geodir_detailurl_separator', |
|
| 116 | + 'type' => 'text', |
|
| 117 | + 'css' => 'min-width:300px;', |
|
| 118 | + 'std' => 'info' // Default value to show home top section |
|
| 119 | + ), |
|
| 120 | + |
|
| 121 | + |
|
| 122 | + array('type' => 'sectionend', 'id' => 'geodir_permalink'), |
|
| 123 | + |
|
| 124 | + array('name' => __('GeoDirectory Pages', 'geodirectory'), |
|
| 125 | + 'type' => 'sectionstart', |
|
| 126 | + 'desc' => '', |
|
| 127 | + 'id' => 'geodir_pages'), |
|
| 128 | + |
|
| 129 | + array( |
|
| 130 | + 'name' => __('GD Home page', 'geodirectory'), |
|
| 131 | + 'desc' => __('Select the page to use for the GD homepage (you must also set this page in Settings>Reading>Front page for it to work)', 'geodirectory'), |
|
| 132 | + 'id' => 'geodir_home_page', |
|
| 133 | + 'type' => 'single_select_page', |
|
| 134 | + 'class' => 'chosen_select' |
|
| 135 | + ), |
|
| 136 | + |
|
| 137 | + array( |
|
| 138 | + 'name' => __('Add listing page', 'geodirectory'), |
|
| 139 | + 'desc' => __('Select the page to use for adding listings', 'geodirectory'), |
|
| 140 | + 'id' => 'geodir_add_listing_page', |
|
| 141 | + 'type' => 'single_select_page', |
|
| 142 | + 'class' => 'chosen_select' |
|
| 143 | + ), |
|
| 144 | + |
|
| 145 | + array( |
|
| 146 | + 'name' => __('Listing preview page', 'geodirectory'), |
|
| 147 | + 'desc' => __('Select the page to use for listing preview', 'geodirectory'), |
|
| 148 | + 'id' => 'geodir_preview_page', |
|
| 149 | + 'type' => 'single_select_page', |
|
| 150 | + 'class' => 'chosen_select' |
|
| 151 | + ), |
|
| 152 | + |
|
| 153 | + array( |
|
| 154 | + 'name' => __('Listing success page', 'geodirectory'), |
|
| 155 | + 'desc' => __('Select the page to use for listing success', 'geodirectory'), |
|
| 156 | + 'id' => 'geodir_success_page', |
|
| 157 | + 'type' => 'single_select_page', |
|
| 158 | + 'class' => 'chosen_select' |
|
| 159 | + ), |
|
| 160 | + |
|
| 161 | + array( |
|
| 162 | + 'name' => __('Location page', 'geodirectory'), |
|
| 163 | + 'desc' => __('Select the page to use for locations', 'geodirectory'), |
|
| 164 | + 'id' => 'geodir_location_page', |
|
| 165 | + 'type' => 'single_select_page', |
|
| 166 | + 'class' => 'chosen_select' |
|
| 167 | + ), |
|
| 168 | + |
|
| 169 | + array( |
|
| 170 | + 'name' => __('Terms and Conditions page', 'geodirectory'), |
|
| 171 | + 'desc' => __('Select the page to use for Terms and Conditions (if enabled)', 'geodirectory'), |
|
| 172 | + 'id' => 'geodir_term_condition_page', |
|
| 173 | + 'type' => 'single_select_page', |
|
| 174 | + 'class' => 'chosen_select' |
|
| 175 | + ), |
|
| 176 | + |
|
| 177 | + array( |
|
| 178 | + 'name' => __('Info page', 'geodirectory'), |
|
| 179 | + 'desc' => __('Select the page to use for Gd general Info', 'geodirectory'), |
|
| 180 | + 'id' => 'geodir_info_page', |
|
| 181 | + 'type' => 'single_select_page', |
|
| 182 | + 'class' => 'chosen_select' |
|
| 183 | + ), |
|
| 184 | + |
|
| 185 | + array( |
|
| 186 | + 'name' => __('Login page', 'geodirectory'), |
|
| 187 | + 'desc' => __('Select the page to use for Login / Register', 'geodirectory'), |
|
| 188 | + 'id' => 'geodir_login_page', |
|
| 189 | + 'type' => 'single_select_page', |
|
| 190 | + 'class' => 'chosen_select' |
|
| 191 | + ), |
|
| 192 | + |
|
| 193 | + |
|
| 194 | + array('type' => 'sectionend', 'id' => 'geodir_pages'), |
|
| 195 | + |
|
| 196 | + /* Listing Detail Permalink Settings End */ |
|
| 197 | 197 | |
| 198 | 198 | |
| 199 | 199 | )); // End Design settings |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | $gd_wpseo_use = ''; |
| 12 | 12 | if (class_exists('WPSEO_Frontend') || class_exists('All_in_One_SEO_Pack')) { |
| 13 | - $gd_wpseo_use = "<b style='color:red;'>".__('Please use the WPSEO settings instead.','geodirectory')."</b><br />"; |
|
| 13 | + $gd_wpseo_use = "<b style='color:red;'>".__('Please use the WPSEO settings instead.','geodirectory')."</b><br />"; |
|
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | /** |
@@ -21,363 +21,363 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | $geodir_settings['title_meta_settings'] = apply_filters('geodir_title_meta_settings', array( |
| 23 | 23 | |
| 24 | - /* Listing Permalink Settings start */ |
|
| 25 | - array('name' => __('Title / Meta', 'geodirectory'), 'type' => 'no_tabs', 'desc' => 'Settings to set page title and meta', 'id' => 'geodir_title_meta_settings '), |
|
| 26 | - |
|
| 27 | - |
|
| 28 | - |
|
| 29 | - |
|
| 30 | - array('name' => $gd_wpseo_use.__('Available Variables', 'geodirectory'), |
|
| 31 | - 'desc' => __('%%title%%, %%sitename%%, %%sitedesc%%, %%excerpt%%, %%pt_single%%, %%pt_plural%%, %%category%%, %%id%%, %%sep%%, %%location%%, %%in_location%%, %%in_location_single%%, %%location_single%%, %%search_term%%, %%search_near%%, %%name%%', 'geodirectory'), |
|
| 32 | - 'type' => 'sectionstart', |
|
| 33 | - 'id' => 'geodir_meta_vars'), |
|
| 34 | - |
|
| 35 | - array('type' => 'sectionend', 'id' => 'geodir_meta_vars'), |
|
| 36 | - |
|
| 37 | - array('name' => __('Homepage Meta Settings', 'geodirectory'), |
|
| 38 | - 'type' => 'sectionstart', |
|
| 39 | - 'desc' => '', |
|
| 40 | - 'id' => 'geodir_home_meta'), |
|
| 41 | - |
|
| 42 | - array( |
|
| 43 | - 'name' => __('Homepage meta title', 'geodirectory'), |
|
| 44 | - 'desc' => __('This will use the title of the page set as frontpage if left blank.', 'geodirectory'), |
|
| 45 | - 'id' => 'geodir_meta_title_homepage', |
|
| 46 | - 'type' => 'text', |
|
| 47 | - 'css' => 'width:100%;', |
|
| 48 | - 'std' => '', |
|
| 49 | - 'placeholder' => '' |
|
| 50 | - ), |
|
| 51 | - |
|
| 52 | - array( |
|
| 53 | - 'name' => __('Homepage meta description', 'geodirectory'), |
|
| 54 | - 'desc' => __('Enter the meta description for the homepage.', 'geodirectory'), |
|
| 55 | - 'id' => 'geodir_meta_desc_homepage', |
|
| 56 | - 'type' => 'textarea', |
|
| 57 | - 'css' => 'width:100%;', |
|
| 58 | - 'std' => '' |
|
| 59 | - ), |
|
| 60 | - |
|
| 61 | - array('type' => 'sectionend', 'id' => 'geodir_home_meta'), |
|
| 62 | - |
|
| 63 | - // details page meta |
|
| 64 | - array('name' => __('Details Page Meta Settings', 'geodirectory'), |
|
| 65 | - 'type' => 'sectionstart', |
|
| 66 | - 'desc' => '', |
|
| 67 | - 'id' => 'geodir_details_meta'), |
|
| 68 | - |
|
| 69 | - array( |
|
| 70 | - 'name' => __('Details page meta title', 'geodirectory'), |
|
| 71 | - 'desc' => __('Enter the meta title for the details page.', 'geodirectory'), |
|
| 72 | - 'id' => 'geodir_meta_title_detail', |
|
| 73 | - 'type' => 'text', |
|
| 74 | - 'css' => 'width:100%;', |
|
| 75 | - 'std' => __('%%title%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 76 | - 'placeholder' => '%%title%% %%sep%% %%sitename%%' |
|
| 77 | - ), |
|
| 78 | - |
|
| 79 | - array( |
|
| 80 | - 'name' => __('Details page meta description', 'geodirectory'), |
|
| 81 | - 'desc' => __('Enter the meta description for the details page.', 'geodirectory'), |
|
| 82 | - 'id' => 'geodir_meta_desc_detail', |
|
| 83 | - 'type' => 'textarea', |
|
| 84 | - 'css' => 'width:100%;', |
|
| 85 | - 'std' => __('%%excerpt%%', 'geodirectory'), |
|
| 86 | - 'placeholder' => '%%excerpt%%' |
|
| 87 | - ), |
|
| 88 | - |
|
| 89 | - array('type' => 'sectionend', 'id' => 'geodir_details_meta'), |
|
| 90 | - |
|
| 91 | - // CPT page meta |
|
| 92 | - array('name' => __('Post Type Page Meta Settings', 'geodirectory'), |
|
| 93 | - 'type' => 'sectionstart', |
|
| 94 | - 'desc' => '', |
|
| 95 | - 'id' => 'geodir_pt_meta'), |
|
| 96 | - |
|
| 97 | - array( |
|
| 98 | - 'name' => __('Post type page meta title', 'geodirectory'), |
|
| 99 | - 'desc' => __('Enter the meta title for the post type pages.', 'geodirectory'), |
|
| 100 | - 'id' => 'geodir_meta_title_pt', |
|
| 101 | - 'type' => 'text', |
|
| 102 | - 'css' => 'width:100%;', |
|
| 103 | - 'std' => __('%%pt_plural%% %%in_location%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 104 | - 'placeholder' => '%%pt_plural%% %%in_location%% %%sep%% %%sitename%%' |
|
| 105 | - ), |
|
| 106 | - |
|
| 107 | - array( |
|
| 108 | - 'name' => __('Post type page meta description', 'geodirectory'), |
|
| 109 | - 'desc' => __('Enter the meta description for the post type pages.', 'geodirectory'), |
|
| 110 | - 'id' => 'geodir_meta_desc_pt', |
|
| 111 | - 'type' => 'textarea', |
|
| 112 | - 'css' => 'width:100%;', |
|
| 113 | - 'std' => __('%%pt_plural%% %%in_location%%', 'geodirectory'), |
|
| 114 | - 'placeholder' => '%%pt_plural%% %%in_location%%' |
|
| 115 | - ), |
|
| 116 | - |
|
| 117 | - array( |
|
| 118 | - 'name' => __('Post type page title', 'geodirectory'), |
|
| 119 | - 'desc' => __('Enter the title for the post type pages.', 'geodirectory'), |
|
| 120 | - 'id' => 'geodir_page_title_pt', |
|
| 121 | - 'type' => 'text', |
|
| 122 | - 'css' => 'width:100%;', |
|
| 123 | - 'std' => __('All %%pt_plural%% %%in_location_single%%', 'geodirectory'), |
|
| 124 | - 'placeholder' => 'All %%pt_plural%% %%in_location_single%%' |
|
| 125 | - ), |
|
| 126 | - |
|
| 127 | - array('type' => 'sectionend', 'id' => 'geodir_pt_meta'), |
|
| 128 | - |
|
| 129 | - // Cat listing page meta |
|
| 130 | - array('name' => __('Listing Page Meta Settings', 'geodirectory'), |
|
| 131 | - 'type' => 'sectionstart', |
|
| 132 | - 'desc' => '', |
|
| 133 | - 'id' => 'geodir_pt_meta'), |
|
| 134 | - |
|
| 135 | - array( |
|
| 136 | - 'name' => __('Listing page meta title', 'geodirectory'), |
|
| 137 | - 'desc' => __('Enter the meta title for the category listing pages.', 'geodirectory'), |
|
| 138 | - 'id' => 'geodir_meta_title_listing', |
|
| 139 | - 'type' => 'text', |
|
| 140 | - 'css' => 'width:100%;', |
|
| 141 | - 'std' => __('%%category%% %%in_location%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 142 | - 'placeholder' => '%%category%% %%in_location%% %%sep%% %%sitename%%' |
|
| 143 | - ), |
|
| 144 | - |
|
| 145 | - array( |
|
| 146 | - 'name' => __('Listing page meta description', 'geodirectory'), |
|
| 147 | - 'desc' => __('Enter the meta description for the category listing pages.', 'geodirectory'), |
|
| 148 | - 'id' => 'geodir_meta_desc_listing', |
|
| 149 | - 'type' => 'textarea', |
|
| 150 | - 'css' => 'width:100%;', |
|
| 151 | - 'std' => __('Posts related to Category: %%category%% %%in_location%%', 'geodirectory'), |
|
| 152 | - 'placeholder' => 'Posts related to Category: %%category%% %%in_location%%' |
|
| 153 | - ), |
|
| 154 | - |
|
| 155 | - array( |
|
| 156 | - 'name' => __('Category listing page title', 'geodirectory'), |
|
| 157 | - 'desc' => __('Enter the title for the category listing pages.', 'geodirectory'), |
|
| 158 | - 'id' => 'geodir_page_title_cat-listing', |
|
| 159 | - 'type' => 'text', |
|
| 160 | - 'css' => 'width:100%;', |
|
| 161 | - 'std' => __('All %%category%% %%in_location_single%%', 'geodirectory'), |
|
| 162 | - 'placeholder' => 'All %%category%% %%in_location_single%%' |
|
| 163 | - ), |
|
| 164 | - |
|
| 165 | - array( |
|
| 166 | - 'name' => __('Tag listing page title', 'geodirectory'), |
|
| 167 | - 'desc' => __('Enter the title for the tag listing pages.', 'geodirectory'), |
|
| 168 | - 'id' => 'geodir_page_title_tag-listing', |
|
| 169 | - 'type' => 'text', |
|
| 170 | - 'css' => 'width:100%;', |
|
| 171 | - 'std' => __('Tag: %%tag%% %%in_location_single%%', 'geodirectory'), |
|
| 172 | - 'placeholder' => 'Tag: %%tag%% %%in_location_single%%' |
|
| 173 | - ), |
|
| 174 | - |
|
| 175 | - array('type' => 'sectionend', 'id' => 'geodir_location_meta'), |
|
| 176 | - |
|
| 177 | - // location page meta |
|
| 178 | - array('name' => __('Location Page Meta Settings', 'geodirectory'), |
|
| 179 | - 'type' => 'sectionstart', |
|
| 180 | - 'desc' => '', |
|
| 181 | - 'id' => 'geodir_pt_meta'), |
|
| 182 | - |
|
| 183 | - array( |
|
| 184 | - 'name' => __('Location page meta title', 'geodirectory'), |
|
| 185 | - 'desc' => __('Enter the meta title for the location pages.', 'geodirectory'), |
|
| 186 | - 'id' => 'geodir_meta_title_location', |
|
| 187 | - 'type' => 'text', |
|
| 188 | - 'css' => 'width:100%;', |
|
| 189 | - 'std' => __('%%title%% %%location%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 190 | - 'placeholder' => '%%title%% %%location%% %%sep%% %%sitename%%' |
|
| 191 | - ), |
|
| 192 | - |
|
| 193 | - array( |
|
| 194 | - 'name' => __('Location page meta description', 'geodirectory'), |
|
| 195 | - 'desc' => __('Enter the meta description for the location pages.', 'geodirectory'), |
|
| 196 | - 'id' => 'geodir_meta_desc_location', |
|
| 197 | - 'type' => 'textarea', |
|
| 198 | - 'css' => 'width:100%;', |
|
| 199 | - 'std' => __('%%location%%', 'geodirectory'), |
|
| 200 | - 'placeholder' => '%%location%%' |
|
| 201 | - ), |
|
| 202 | - |
|
| 203 | - array('type' => 'sectionend', 'id' => 'geodir_location_meta'), |
|
| 204 | - |
|
| 205 | - // Search page meta |
|
| 206 | - array('name' => __('Search Page Meta Settings', 'geodirectory'), |
|
| 207 | - 'type' => 'sectionstart', |
|
| 208 | - 'desc' => '', |
|
| 209 | - 'id' => 'geodir_pt_meta'), |
|
| 210 | - |
|
| 211 | - array( |
|
| 212 | - 'name' => __('Search page meta title', 'geodirectory'), |
|
| 213 | - 'desc' => __('Enter the meta title for the search page.', 'geodirectory'), |
|
| 214 | - 'id' => 'geodir_meta_title_search', |
|
| 215 | - 'type' => 'text', |
|
| 216 | - 'css' => 'width:100%;', |
|
| 217 | - 'std' => __('%%pt_plural%% search results for %%search_term%%, Near %%search_near%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 218 | - 'placeholder' => '%%pt_plural%% search results for %%search_term%%, Near %%search_near%% %%sep%% %%sitename%%' |
|
| 219 | - ), |
|
| 220 | - |
|
| 221 | - array( |
|
| 222 | - 'name' => __('Search page meta description', 'geodirectory'), |
|
| 223 | - 'desc' => __('Enter the meta description for the search page.', 'geodirectory'), |
|
| 224 | - 'id' => 'geodir_meta_desc_search', |
|
| 225 | - 'type' => 'textarea', |
|
| 226 | - 'css' => 'width:100%;', |
|
| 227 | - 'std' => __('%%pt_plural%% search results for %%search_term%%, Near %%search_near%%', 'geodirectory'), |
|
| 228 | - 'placeholder' => '%%pt_plural%% search results for %%search_term%%, Near %%search_near%%' |
|
| 229 | - ), |
|
| 230 | - |
|
| 231 | - array('type' => 'sectionend', 'id' => 'geodir_location_meta'), |
|
| 232 | - |
|
| 233 | - //Add listing page meta |
|
| 234 | - array('name' => __('Add Listing Page Meta Settings', 'geodirectory'), |
|
| 235 | - 'type' => 'sectionstart', |
|
| 236 | - 'desc' => '', |
|
| 237 | - 'id' => 'geodir_pt_meta'), |
|
| 238 | - |
|
| 239 | - array( |
|
| 240 | - 'name' => __('Add listing page meta title', 'geodirectory'), |
|
| 241 | - 'desc' => __('Enter the meta title for the add listing page.', 'geodirectory'), |
|
| 242 | - 'id' => 'geodir_meta_title_add-listing', |
|
| 243 | - 'type' => 'text', |
|
| 244 | - 'css' => 'width:100%;', |
|
| 245 | - 'std' => __('Add %%pt_single%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 246 | - 'placeholder' => 'Add %%pt_single%% %%sep%% %%sitename%%' |
|
| 247 | - ), |
|
| 248 | - |
|
| 249 | - array( |
|
| 250 | - 'name' => __('Add listing page meta description', 'geodirectory'), |
|
| 251 | - 'desc' => __('Enter the meta description for the add listing page.', 'geodirectory'), |
|
| 252 | - 'id' => 'geodir_meta_desc_add-listing', |
|
| 253 | - 'type' => 'textarea', |
|
| 254 | - 'css' => 'width:100%;', |
|
| 255 | - 'std' => __('Add %%pt_single%%', 'geodirectory'), |
|
| 256 | - 'placeholder' => 'Add %%pt_single%%' |
|
| 257 | - ), |
|
| 258 | - |
|
| 259 | - array( |
|
| 260 | - 'name' => __('Add listing page title', 'geodirectory'), |
|
| 261 | - 'desc' => __('Enter the title for the add listing page.', 'geodirectory'), |
|
| 262 | - 'id' => 'geodir_page_title_add-listing', |
|
| 263 | - 'type' => 'text', |
|
| 264 | - 'css' => 'width:100%;', |
|
| 265 | - 'std' => __('Add %%pt_single%%', 'geodirectory'), |
|
| 266 | - 'placeholder' => 'Add %%pt_single%%' |
|
| 267 | - ), |
|
| 268 | - |
|
| 269 | - array( |
|
| 270 | - 'name' => __('Edit listing page title', 'geodirectory'), |
|
| 271 | - 'desc' => __('Enter the title for the edit listing page.', 'geodirectory'), |
|
| 272 | - 'id' => 'geodir_page_title_edit-listing', |
|
| 273 | - 'type' => 'text', |
|
| 274 | - 'css' => 'width:100%;', |
|
| 275 | - 'std' => __('Edit %%pt_single%%', 'geodirectory'), |
|
| 276 | - 'placeholder' => 'Edit %%pt_single%%' |
|
| 277 | - ), |
|
| 278 | - |
|
| 279 | - array('type' => 'sectionend', 'id' => 'geodir_location_meta'), |
|
| 280 | - |
|
| 281 | - //Author page meta |
|
| 282 | - array('name' => __('Author Page Meta Settings', 'geodirectory'), |
|
| 283 | - 'type' => 'sectionstart', |
|
| 284 | - 'desc' => '', |
|
| 285 | - 'id' => 'geodir_pt_meta'), |
|
| 286 | - |
|
| 287 | - array( |
|
| 288 | - 'name' => __('Author page meta title', 'geodirectory'), |
|
| 289 | - 'desc' => __('Enter the meta title for the author page.', 'geodirectory'), |
|
| 290 | - 'id' => 'geodir_meta_title_author', |
|
| 291 | - 'type' => 'text', |
|
| 292 | - 'css' => 'width:100%;', |
|
| 293 | - 'std' => __('Author: %%name%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 294 | - 'placeholder' => 'Author: %%name%% %%sep%% %%sitename%%' |
|
| 295 | - ), |
|
| 296 | - |
|
| 297 | - array( |
|
| 298 | - 'name' => __('Author page meta description', 'geodirectory'), |
|
| 299 | - 'desc' => __('Enter the meta description for the author page.', 'geodirectory'), |
|
| 300 | - 'id' => 'geodir_meta_desc_author', |
|
| 301 | - 'type' => 'textarea', |
|
| 302 | - 'css' => 'width:100%;', |
|
| 303 | - 'std' => '' |
|
| 304 | - ), |
|
| 305 | - |
|
| 306 | - array( |
|
| 307 | - 'name' => __('Author page title', 'geodirectory'), |
|
| 308 | - 'desc' => __('Enter the title for the author page.', 'geodirectory'), |
|
| 309 | - 'id' => 'geodir_page_title_author', |
|
| 310 | - 'type' => 'text', |
|
| 311 | - 'css' => 'width:100%;', |
|
| 312 | - 'std' => __('%%pt_plural%% by: %%name%%', 'geodirectory'), |
|
| 313 | - 'placeholder' => '%%pt_plural%% by: %%name%%' |
|
| 314 | - ), |
|
| 315 | - |
|
| 316 | - array( |
|
| 317 | - 'name' => __('Author favorite page title', 'geodirectory'), |
|
| 318 | - 'desc' => __('Enter the title for the author favorite page.', 'geodirectory'), |
|
| 319 | - 'id' => 'geodir_page_title_favorite', |
|
| 320 | - 'type' => 'text', |
|
| 321 | - 'css' => 'width:100%;', |
|
| 322 | - 'std' => __('%%name%%: Favorite %%pt_plural%%', 'geodirectory'), |
|
| 323 | - 'placeholder' => '%%name%%: Favorite %%pt_plural%%' |
|
| 324 | - ), |
|
| 325 | - |
|
| 326 | - array('type' => 'sectionend', 'id' => 'geodir_location_meta'), |
|
| 327 | - |
|
| 328 | - //Login page meta |
|
| 329 | - array('name' => __('Login Page Meta Settings', 'geodirectory'), |
|
| 330 | - 'type' => 'sectionstart', |
|
| 331 | - 'desc' => '', |
|
| 332 | - 'id' => 'geodir_login_meta'), |
|
| 333 | - |
|
| 334 | - array( |
|
| 335 | - 'name' => __('Login page meta title', 'geodirectory'), |
|
| 336 | - 'desc' => __('Enter the meta title for the login page.', 'geodirectory'), |
|
| 337 | - 'id' => 'geodir_meta_title_login', |
|
| 338 | - 'type' => 'text', |
|
| 339 | - 'css' => 'width:100%;', |
|
| 340 | - 'std' => __('%%title%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 341 | - 'placeholder' => '%%title%% %%sep%% %%sitename%%' |
|
| 342 | - ), |
|
| 343 | - |
|
| 344 | - array( |
|
| 345 | - 'name' => __('Login page meta description', 'geodirectory'), |
|
| 346 | - 'desc' => __('Enter the meta description for the login page.', 'geodirectory'), |
|
| 347 | - 'id' => 'geodir_meta_desc_login', |
|
| 348 | - 'type' => 'textarea', |
|
| 349 | - 'css' => 'width:100%;', |
|
| 350 | - 'std' => '' |
|
| 351 | - ), |
|
| 352 | - |
|
| 353 | - array('type' => 'sectionend', 'id' => 'geodir_login_meta'), |
|
| 354 | - |
|
| 355 | - //Listing success page meta |
|
| 356 | - array('name' => __('Listing Success Page Meta Settings', 'geodirectory'), |
|
| 357 | - 'type' => 'sectionstart', |
|
| 358 | - 'desc' => '', |
|
| 359 | - 'id' => 'geodir_login_meta'), |
|
| 360 | - |
|
| 361 | - array( |
|
| 362 | - 'name' => __('Listing success page meta title', 'geodirectory'), |
|
| 363 | - 'desc' => __('Enter the meta title for the listing success page.', 'geodirectory'), |
|
| 364 | - 'id' => 'geodir_meta_title_listing-success', |
|
| 365 | - 'type' => 'text', |
|
| 366 | - 'css' => 'width:100%;', |
|
| 367 | - 'std' => __('%%title%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 368 | - 'placeholder' => '%%title%% %%sep%% %%sitename%%' |
|
| 369 | - ), |
|
| 370 | - |
|
| 371 | - array( |
|
| 372 | - 'name' => __('Listing success page meta description', 'geodirectory'), |
|
| 373 | - 'desc' => __('Enter the meta description for the listing success page.', 'geodirectory'), |
|
| 374 | - 'id' => 'geodir_meta_desc_listing-success', |
|
| 375 | - 'type' => 'textarea', |
|
| 376 | - 'css' => 'width:100%;', |
|
| 377 | - 'std' => '' |
|
| 378 | - ), |
|
| 379 | - |
|
| 380 | - array('type' => 'sectionend', 'id' => 'geodir_login_meta'), |
|
| 24 | + /* Listing Permalink Settings start */ |
|
| 25 | + array('name' => __('Title / Meta', 'geodirectory'), 'type' => 'no_tabs', 'desc' => 'Settings to set page title and meta', 'id' => 'geodir_title_meta_settings '), |
|
| 26 | + |
|
| 27 | + |
|
| 28 | + |
|
| 29 | + |
|
| 30 | + array('name' => $gd_wpseo_use.__('Available Variables', 'geodirectory'), |
|
| 31 | + 'desc' => __('%%title%%, %%sitename%%, %%sitedesc%%, %%excerpt%%, %%pt_single%%, %%pt_plural%%, %%category%%, %%id%%, %%sep%%, %%location%%, %%in_location%%, %%in_location_single%%, %%location_single%%, %%search_term%%, %%search_near%%, %%name%%', 'geodirectory'), |
|
| 32 | + 'type' => 'sectionstart', |
|
| 33 | + 'id' => 'geodir_meta_vars'), |
|
| 34 | + |
|
| 35 | + array('type' => 'sectionend', 'id' => 'geodir_meta_vars'), |
|
| 36 | + |
|
| 37 | + array('name' => __('Homepage Meta Settings', 'geodirectory'), |
|
| 38 | + 'type' => 'sectionstart', |
|
| 39 | + 'desc' => '', |
|
| 40 | + 'id' => 'geodir_home_meta'), |
|
| 41 | + |
|
| 42 | + array( |
|
| 43 | + 'name' => __('Homepage meta title', 'geodirectory'), |
|
| 44 | + 'desc' => __('This will use the title of the page set as frontpage if left blank.', 'geodirectory'), |
|
| 45 | + 'id' => 'geodir_meta_title_homepage', |
|
| 46 | + 'type' => 'text', |
|
| 47 | + 'css' => 'width:100%;', |
|
| 48 | + 'std' => '', |
|
| 49 | + 'placeholder' => '' |
|
| 50 | + ), |
|
| 51 | + |
|
| 52 | + array( |
|
| 53 | + 'name' => __('Homepage meta description', 'geodirectory'), |
|
| 54 | + 'desc' => __('Enter the meta description for the homepage.', 'geodirectory'), |
|
| 55 | + 'id' => 'geodir_meta_desc_homepage', |
|
| 56 | + 'type' => 'textarea', |
|
| 57 | + 'css' => 'width:100%;', |
|
| 58 | + 'std' => '' |
|
| 59 | + ), |
|
| 60 | + |
|
| 61 | + array('type' => 'sectionend', 'id' => 'geodir_home_meta'), |
|
| 62 | + |
|
| 63 | + // details page meta |
|
| 64 | + array('name' => __('Details Page Meta Settings', 'geodirectory'), |
|
| 65 | + 'type' => 'sectionstart', |
|
| 66 | + 'desc' => '', |
|
| 67 | + 'id' => 'geodir_details_meta'), |
|
| 68 | + |
|
| 69 | + array( |
|
| 70 | + 'name' => __('Details page meta title', 'geodirectory'), |
|
| 71 | + 'desc' => __('Enter the meta title for the details page.', 'geodirectory'), |
|
| 72 | + 'id' => 'geodir_meta_title_detail', |
|
| 73 | + 'type' => 'text', |
|
| 74 | + 'css' => 'width:100%;', |
|
| 75 | + 'std' => __('%%title%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 76 | + 'placeholder' => '%%title%% %%sep%% %%sitename%%' |
|
| 77 | + ), |
|
| 78 | + |
|
| 79 | + array( |
|
| 80 | + 'name' => __('Details page meta description', 'geodirectory'), |
|
| 81 | + 'desc' => __('Enter the meta description for the details page.', 'geodirectory'), |
|
| 82 | + 'id' => 'geodir_meta_desc_detail', |
|
| 83 | + 'type' => 'textarea', |
|
| 84 | + 'css' => 'width:100%;', |
|
| 85 | + 'std' => __('%%excerpt%%', 'geodirectory'), |
|
| 86 | + 'placeholder' => '%%excerpt%%' |
|
| 87 | + ), |
|
| 88 | + |
|
| 89 | + array('type' => 'sectionend', 'id' => 'geodir_details_meta'), |
|
| 90 | + |
|
| 91 | + // CPT page meta |
|
| 92 | + array('name' => __('Post Type Page Meta Settings', 'geodirectory'), |
|
| 93 | + 'type' => 'sectionstart', |
|
| 94 | + 'desc' => '', |
|
| 95 | + 'id' => 'geodir_pt_meta'), |
|
| 96 | + |
|
| 97 | + array( |
|
| 98 | + 'name' => __('Post type page meta title', 'geodirectory'), |
|
| 99 | + 'desc' => __('Enter the meta title for the post type pages.', 'geodirectory'), |
|
| 100 | + 'id' => 'geodir_meta_title_pt', |
|
| 101 | + 'type' => 'text', |
|
| 102 | + 'css' => 'width:100%;', |
|
| 103 | + 'std' => __('%%pt_plural%% %%in_location%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 104 | + 'placeholder' => '%%pt_plural%% %%in_location%% %%sep%% %%sitename%%' |
|
| 105 | + ), |
|
| 106 | + |
|
| 107 | + array( |
|
| 108 | + 'name' => __('Post type page meta description', 'geodirectory'), |
|
| 109 | + 'desc' => __('Enter the meta description for the post type pages.', 'geodirectory'), |
|
| 110 | + 'id' => 'geodir_meta_desc_pt', |
|
| 111 | + 'type' => 'textarea', |
|
| 112 | + 'css' => 'width:100%;', |
|
| 113 | + 'std' => __('%%pt_plural%% %%in_location%%', 'geodirectory'), |
|
| 114 | + 'placeholder' => '%%pt_plural%% %%in_location%%' |
|
| 115 | + ), |
|
| 116 | + |
|
| 117 | + array( |
|
| 118 | + 'name' => __('Post type page title', 'geodirectory'), |
|
| 119 | + 'desc' => __('Enter the title for the post type pages.', 'geodirectory'), |
|
| 120 | + 'id' => 'geodir_page_title_pt', |
|
| 121 | + 'type' => 'text', |
|
| 122 | + 'css' => 'width:100%;', |
|
| 123 | + 'std' => __('All %%pt_plural%% %%in_location_single%%', 'geodirectory'), |
|
| 124 | + 'placeholder' => 'All %%pt_plural%% %%in_location_single%%' |
|
| 125 | + ), |
|
| 126 | + |
|
| 127 | + array('type' => 'sectionend', 'id' => 'geodir_pt_meta'), |
|
| 128 | + |
|
| 129 | + // Cat listing page meta |
|
| 130 | + array('name' => __('Listing Page Meta Settings', 'geodirectory'), |
|
| 131 | + 'type' => 'sectionstart', |
|
| 132 | + 'desc' => '', |
|
| 133 | + 'id' => 'geodir_pt_meta'), |
|
| 134 | + |
|
| 135 | + array( |
|
| 136 | + 'name' => __('Listing page meta title', 'geodirectory'), |
|
| 137 | + 'desc' => __('Enter the meta title for the category listing pages.', 'geodirectory'), |
|
| 138 | + 'id' => 'geodir_meta_title_listing', |
|
| 139 | + 'type' => 'text', |
|
| 140 | + 'css' => 'width:100%;', |
|
| 141 | + 'std' => __('%%category%% %%in_location%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 142 | + 'placeholder' => '%%category%% %%in_location%% %%sep%% %%sitename%%' |
|
| 143 | + ), |
|
| 144 | + |
|
| 145 | + array( |
|
| 146 | + 'name' => __('Listing page meta description', 'geodirectory'), |
|
| 147 | + 'desc' => __('Enter the meta description for the category listing pages.', 'geodirectory'), |
|
| 148 | + 'id' => 'geodir_meta_desc_listing', |
|
| 149 | + 'type' => 'textarea', |
|
| 150 | + 'css' => 'width:100%;', |
|
| 151 | + 'std' => __('Posts related to Category: %%category%% %%in_location%%', 'geodirectory'), |
|
| 152 | + 'placeholder' => 'Posts related to Category: %%category%% %%in_location%%' |
|
| 153 | + ), |
|
| 154 | + |
|
| 155 | + array( |
|
| 156 | + 'name' => __('Category listing page title', 'geodirectory'), |
|
| 157 | + 'desc' => __('Enter the title for the category listing pages.', 'geodirectory'), |
|
| 158 | + 'id' => 'geodir_page_title_cat-listing', |
|
| 159 | + 'type' => 'text', |
|
| 160 | + 'css' => 'width:100%;', |
|
| 161 | + 'std' => __('All %%category%% %%in_location_single%%', 'geodirectory'), |
|
| 162 | + 'placeholder' => 'All %%category%% %%in_location_single%%' |
|
| 163 | + ), |
|
| 164 | + |
|
| 165 | + array( |
|
| 166 | + 'name' => __('Tag listing page title', 'geodirectory'), |
|
| 167 | + 'desc' => __('Enter the title for the tag listing pages.', 'geodirectory'), |
|
| 168 | + 'id' => 'geodir_page_title_tag-listing', |
|
| 169 | + 'type' => 'text', |
|
| 170 | + 'css' => 'width:100%;', |
|
| 171 | + 'std' => __('Tag: %%tag%% %%in_location_single%%', 'geodirectory'), |
|
| 172 | + 'placeholder' => 'Tag: %%tag%% %%in_location_single%%' |
|
| 173 | + ), |
|
| 174 | + |
|
| 175 | + array('type' => 'sectionend', 'id' => 'geodir_location_meta'), |
|
| 176 | + |
|
| 177 | + // location page meta |
|
| 178 | + array('name' => __('Location Page Meta Settings', 'geodirectory'), |
|
| 179 | + 'type' => 'sectionstart', |
|
| 180 | + 'desc' => '', |
|
| 181 | + 'id' => 'geodir_pt_meta'), |
|
| 182 | + |
|
| 183 | + array( |
|
| 184 | + 'name' => __('Location page meta title', 'geodirectory'), |
|
| 185 | + 'desc' => __('Enter the meta title for the location pages.', 'geodirectory'), |
|
| 186 | + 'id' => 'geodir_meta_title_location', |
|
| 187 | + 'type' => 'text', |
|
| 188 | + 'css' => 'width:100%;', |
|
| 189 | + 'std' => __('%%title%% %%location%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 190 | + 'placeholder' => '%%title%% %%location%% %%sep%% %%sitename%%' |
|
| 191 | + ), |
|
| 192 | + |
|
| 193 | + array( |
|
| 194 | + 'name' => __('Location page meta description', 'geodirectory'), |
|
| 195 | + 'desc' => __('Enter the meta description for the location pages.', 'geodirectory'), |
|
| 196 | + 'id' => 'geodir_meta_desc_location', |
|
| 197 | + 'type' => 'textarea', |
|
| 198 | + 'css' => 'width:100%;', |
|
| 199 | + 'std' => __('%%location%%', 'geodirectory'), |
|
| 200 | + 'placeholder' => '%%location%%' |
|
| 201 | + ), |
|
| 202 | + |
|
| 203 | + array('type' => 'sectionend', 'id' => 'geodir_location_meta'), |
|
| 204 | + |
|
| 205 | + // Search page meta |
|
| 206 | + array('name' => __('Search Page Meta Settings', 'geodirectory'), |
|
| 207 | + 'type' => 'sectionstart', |
|
| 208 | + 'desc' => '', |
|
| 209 | + 'id' => 'geodir_pt_meta'), |
|
| 210 | + |
|
| 211 | + array( |
|
| 212 | + 'name' => __('Search page meta title', 'geodirectory'), |
|
| 213 | + 'desc' => __('Enter the meta title for the search page.', 'geodirectory'), |
|
| 214 | + 'id' => 'geodir_meta_title_search', |
|
| 215 | + 'type' => 'text', |
|
| 216 | + 'css' => 'width:100%;', |
|
| 217 | + 'std' => __('%%pt_plural%% search results for %%search_term%%, Near %%search_near%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 218 | + 'placeholder' => '%%pt_plural%% search results for %%search_term%%, Near %%search_near%% %%sep%% %%sitename%%' |
|
| 219 | + ), |
|
| 220 | + |
|
| 221 | + array( |
|
| 222 | + 'name' => __('Search page meta description', 'geodirectory'), |
|
| 223 | + 'desc' => __('Enter the meta description for the search page.', 'geodirectory'), |
|
| 224 | + 'id' => 'geodir_meta_desc_search', |
|
| 225 | + 'type' => 'textarea', |
|
| 226 | + 'css' => 'width:100%;', |
|
| 227 | + 'std' => __('%%pt_plural%% search results for %%search_term%%, Near %%search_near%%', 'geodirectory'), |
|
| 228 | + 'placeholder' => '%%pt_plural%% search results for %%search_term%%, Near %%search_near%%' |
|
| 229 | + ), |
|
| 230 | + |
|
| 231 | + array('type' => 'sectionend', 'id' => 'geodir_location_meta'), |
|
| 232 | + |
|
| 233 | + //Add listing page meta |
|
| 234 | + array('name' => __('Add Listing Page Meta Settings', 'geodirectory'), |
|
| 235 | + 'type' => 'sectionstart', |
|
| 236 | + 'desc' => '', |
|
| 237 | + 'id' => 'geodir_pt_meta'), |
|
| 238 | + |
|
| 239 | + array( |
|
| 240 | + 'name' => __('Add listing page meta title', 'geodirectory'), |
|
| 241 | + 'desc' => __('Enter the meta title for the add listing page.', 'geodirectory'), |
|
| 242 | + 'id' => 'geodir_meta_title_add-listing', |
|
| 243 | + 'type' => 'text', |
|
| 244 | + 'css' => 'width:100%;', |
|
| 245 | + 'std' => __('Add %%pt_single%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 246 | + 'placeholder' => 'Add %%pt_single%% %%sep%% %%sitename%%' |
|
| 247 | + ), |
|
| 248 | + |
|
| 249 | + array( |
|
| 250 | + 'name' => __('Add listing page meta description', 'geodirectory'), |
|
| 251 | + 'desc' => __('Enter the meta description for the add listing page.', 'geodirectory'), |
|
| 252 | + 'id' => 'geodir_meta_desc_add-listing', |
|
| 253 | + 'type' => 'textarea', |
|
| 254 | + 'css' => 'width:100%;', |
|
| 255 | + 'std' => __('Add %%pt_single%%', 'geodirectory'), |
|
| 256 | + 'placeholder' => 'Add %%pt_single%%' |
|
| 257 | + ), |
|
| 258 | + |
|
| 259 | + array( |
|
| 260 | + 'name' => __('Add listing page title', 'geodirectory'), |
|
| 261 | + 'desc' => __('Enter the title for the add listing page.', 'geodirectory'), |
|
| 262 | + 'id' => 'geodir_page_title_add-listing', |
|
| 263 | + 'type' => 'text', |
|
| 264 | + 'css' => 'width:100%;', |
|
| 265 | + 'std' => __('Add %%pt_single%%', 'geodirectory'), |
|
| 266 | + 'placeholder' => 'Add %%pt_single%%' |
|
| 267 | + ), |
|
| 268 | + |
|
| 269 | + array( |
|
| 270 | + 'name' => __('Edit listing page title', 'geodirectory'), |
|
| 271 | + 'desc' => __('Enter the title for the edit listing page.', 'geodirectory'), |
|
| 272 | + 'id' => 'geodir_page_title_edit-listing', |
|
| 273 | + 'type' => 'text', |
|
| 274 | + 'css' => 'width:100%;', |
|
| 275 | + 'std' => __('Edit %%pt_single%%', 'geodirectory'), |
|
| 276 | + 'placeholder' => 'Edit %%pt_single%%' |
|
| 277 | + ), |
|
| 278 | + |
|
| 279 | + array('type' => 'sectionend', 'id' => 'geodir_location_meta'), |
|
| 280 | + |
|
| 281 | + //Author page meta |
|
| 282 | + array('name' => __('Author Page Meta Settings', 'geodirectory'), |
|
| 283 | + 'type' => 'sectionstart', |
|
| 284 | + 'desc' => '', |
|
| 285 | + 'id' => 'geodir_pt_meta'), |
|
| 286 | + |
|
| 287 | + array( |
|
| 288 | + 'name' => __('Author page meta title', 'geodirectory'), |
|
| 289 | + 'desc' => __('Enter the meta title for the author page.', 'geodirectory'), |
|
| 290 | + 'id' => 'geodir_meta_title_author', |
|
| 291 | + 'type' => 'text', |
|
| 292 | + 'css' => 'width:100%;', |
|
| 293 | + 'std' => __('Author: %%name%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 294 | + 'placeholder' => 'Author: %%name%% %%sep%% %%sitename%%' |
|
| 295 | + ), |
|
| 296 | + |
|
| 297 | + array( |
|
| 298 | + 'name' => __('Author page meta description', 'geodirectory'), |
|
| 299 | + 'desc' => __('Enter the meta description for the author page.', 'geodirectory'), |
|
| 300 | + 'id' => 'geodir_meta_desc_author', |
|
| 301 | + 'type' => 'textarea', |
|
| 302 | + 'css' => 'width:100%;', |
|
| 303 | + 'std' => '' |
|
| 304 | + ), |
|
| 305 | + |
|
| 306 | + array( |
|
| 307 | + 'name' => __('Author page title', 'geodirectory'), |
|
| 308 | + 'desc' => __('Enter the title for the author page.', 'geodirectory'), |
|
| 309 | + 'id' => 'geodir_page_title_author', |
|
| 310 | + 'type' => 'text', |
|
| 311 | + 'css' => 'width:100%;', |
|
| 312 | + 'std' => __('%%pt_plural%% by: %%name%%', 'geodirectory'), |
|
| 313 | + 'placeholder' => '%%pt_plural%% by: %%name%%' |
|
| 314 | + ), |
|
| 315 | + |
|
| 316 | + array( |
|
| 317 | + 'name' => __('Author favorite page title', 'geodirectory'), |
|
| 318 | + 'desc' => __('Enter the title for the author favorite page.', 'geodirectory'), |
|
| 319 | + 'id' => 'geodir_page_title_favorite', |
|
| 320 | + 'type' => 'text', |
|
| 321 | + 'css' => 'width:100%;', |
|
| 322 | + 'std' => __('%%name%%: Favorite %%pt_plural%%', 'geodirectory'), |
|
| 323 | + 'placeholder' => '%%name%%: Favorite %%pt_plural%%' |
|
| 324 | + ), |
|
| 325 | + |
|
| 326 | + array('type' => 'sectionend', 'id' => 'geodir_location_meta'), |
|
| 327 | + |
|
| 328 | + //Login page meta |
|
| 329 | + array('name' => __('Login Page Meta Settings', 'geodirectory'), |
|
| 330 | + 'type' => 'sectionstart', |
|
| 331 | + 'desc' => '', |
|
| 332 | + 'id' => 'geodir_login_meta'), |
|
| 333 | + |
|
| 334 | + array( |
|
| 335 | + 'name' => __('Login page meta title', 'geodirectory'), |
|
| 336 | + 'desc' => __('Enter the meta title for the login page.', 'geodirectory'), |
|
| 337 | + 'id' => 'geodir_meta_title_login', |
|
| 338 | + 'type' => 'text', |
|
| 339 | + 'css' => 'width:100%;', |
|
| 340 | + 'std' => __('%%title%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 341 | + 'placeholder' => '%%title%% %%sep%% %%sitename%%' |
|
| 342 | + ), |
|
| 343 | + |
|
| 344 | + array( |
|
| 345 | + 'name' => __('Login page meta description', 'geodirectory'), |
|
| 346 | + 'desc' => __('Enter the meta description for the login page.', 'geodirectory'), |
|
| 347 | + 'id' => 'geodir_meta_desc_login', |
|
| 348 | + 'type' => 'textarea', |
|
| 349 | + 'css' => 'width:100%;', |
|
| 350 | + 'std' => '' |
|
| 351 | + ), |
|
| 352 | + |
|
| 353 | + array('type' => 'sectionend', 'id' => 'geodir_login_meta'), |
|
| 354 | + |
|
| 355 | + //Listing success page meta |
|
| 356 | + array('name' => __('Listing Success Page Meta Settings', 'geodirectory'), |
|
| 357 | + 'type' => 'sectionstart', |
|
| 358 | + 'desc' => '', |
|
| 359 | + 'id' => 'geodir_login_meta'), |
|
| 360 | + |
|
| 361 | + array( |
|
| 362 | + 'name' => __('Listing success page meta title', 'geodirectory'), |
|
| 363 | + 'desc' => __('Enter the meta title for the listing success page.', 'geodirectory'), |
|
| 364 | + 'id' => 'geodir_meta_title_listing-success', |
|
| 365 | + 'type' => 'text', |
|
| 366 | + 'css' => 'width:100%;', |
|
| 367 | + 'std' => __('%%title%% %%sep%% %%sitename%%', 'geodirectory'), |
|
| 368 | + 'placeholder' => '%%title%% %%sep%% %%sitename%%' |
|
| 369 | + ), |
|
| 370 | + |
|
| 371 | + array( |
|
| 372 | + 'name' => __('Listing success page meta description', 'geodirectory'), |
|
| 373 | + 'desc' => __('Enter the meta description for the listing success page.', 'geodirectory'), |
|
| 374 | + 'id' => 'geodir_meta_desc_listing-success', |
|
| 375 | + 'type' => 'textarea', |
|
| 376 | + 'css' => 'width:100%;', |
|
| 377 | + 'std' => '' |
|
| 378 | + ), |
|
| 379 | + |
|
| 380 | + array('type' => 'sectionend', 'id' => 'geodir_login_meta'), |
|
| 381 | 381 | |
| 382 | 382 | |
| 383 | 383 | |
@@ -11,139 +11,139 @@ discard block |
||
| 11 | 11 | //include the main class file |
| 12 | 12 | require_once("Tax-meta-class.php"); |
| 13 | 13 | if (is_admin()) { |
| 14 | - /* |
|
| 14 | + /* |
|
| 15 | 15 | * prefix of meta keys, optional |
| 16 | 16 | * use underscore (_) at the beginning to make keys hidden, for example $prefix = '_ba_'; |
| 17 | 17 | * you also can make prefix empty to disable it |
| 18 | 18 | * |
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | - $prefix = 'ct_'; |
|
| 22 | - /* |
|
| 21 | + $prefix = 'ct_'; |
|
| 22 | + /* |
|
| 23 | 23 | * configure your meta box |
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | - $config = array( |
|
| 27 | - 'id' => 'demo_meta_box', // meta box id, unique per meta box |
|
| 28 | - 'title' => __('Demo Meta Box', 'geodirectory'), // meta box title |
|
| 29 | - 'pages' => geodir_get_taxonomies(), // taxonomy name, accept categories, post_tag and custom taxonomies |
|
| 30 | - 'context' => 'normal', // where the meta box appear: normal (default), advanced, side; optional |
|
| 31 | - 'fields' => array(), // list of meta fields (can be added by field arrays) |
|
| 32 | - 'local_images' => false, // Use local or hosted images (meta box images for add/remove) |
|
| 33 | - 'use_with_theme' => true //change path if used with theme set to true, false for a plugin or anything else for a custom path(default false). |
|
| 34 | - ); |
|
| 26 | + $config = array( |
|
| 27 | + 'id' => 'demo_meta_box', // meta box id, unique per meta box |
|
| 28 | + 'title' => __('Demo Meta Box', 'geodirectory'), // meta box title |
|
| 29 | + 'pages' => geodir_get_taxonomies(), // taxonomy name, accept categories, post_tag and custom taxonomies |
|
| 30 | + 'context' => 'normal', // where the meta box appear: normal (default), advanced, side; optional |
|
| 31 | + 'fields' => array(), // list of meta fields (can be added by field arrays) |
|
| 32 | + 'local_images' => false, // Use local or hosted images (meta box images for add/remove) |
|
| 33 | + 'use_with_theme' => true //change path if used with theme set to true, false for a plugin or anything else for a custom path(default false). |
|
| 34 | + ); |
|
| 35 | 35 | |
| 36 | 36 | |
| 37 | - /* |
|
| 37 | + /* |
|
| 38 | 38 | * Initiate your meta box |
| 39 | 39 | */ |
| 40 | - $my_meta = new Tax_Meta_Class($config); |
|
| 41 | - $my_meta->addWysiwyg($prefix . 'cat_top_desc', array('name' => __('Category Top Description', 'geodirectory'), 'desc' => __('This will appear at the top of the category listing.', 'geodirectory'))); |
|
| 42 | - $my_meta->addImage($prefix . 'cat_default_img', array('name' => __('Default Listing Image', 'geodirectory'), 'desc' => __('Choose a default "no image"', 'geodirectory'))); |
|
| 43 | - $my_meta->addImage($prefix . 'cat_icon', array('name' => __('Category Icon', 'geodirectory'), 'desc' => __('Choose a category icon', 'geodirectory'), 'validate_func' => '!empty')); |
|
| 44 | - /*$my_meta->addCheckbox($prefix.'pointless',array('name'=> __('<b>Exclude</b> Rating sort option','geodirectory'),'style'=>'hidden'));*/// hidden setting to trick WPML |
|
| 45 | - |
|
| 46 | - $my_meta->addSelect($prefix . 'cat_schema', |
|
| 47 | - /* |
|
| 40 | + $my_meta = new Tax_Meta_Class($config); |
|
| 41 | + $my_meta->addWysiwyg($prefix . 'cat_top_desc', array('name' => __('Category Top Description', 'geodirectory'), 'desc' => __('This will appear at the top of the category listing.', 'geodirectory'))); |
|
| 42 | + $my_meta->addImage($prefix . 'cat_default_img', array('name' => __('Default Listing Image', 'geodirectory'), 'desc' => __('Choose a default "no image"', 'geodirectory'))); |
|
| 43 | + $my_meta->addImage($prefix . 'cat_icon', array('name' => __('Category Icon', 'geodirectory'), 'desc' => __('Choose a category icon', 'geodirectory'), 'validate_func' => '!empty')); |
|
| 44 | + /*$my_meta->addCheckbox($prefix.'pointless',array('name'=> __('<b>Exclude</b> Rating sort option','geodirectory'),'style'=>'hidden'));*/// hidden setting to trick WPML |
|
| 45 | + |
|
| 46 | + $my_meta->addSelect($prefix . 'cat_schema', |
|
| 47 | + /* |
|
| 48 | 48 | * Allows you to add/filter the cat schema types. |
| 49 | 49 | * |
| 50 | 50 | * @since 1.5.7 |
| 51 | 51 | */ |
| 52 | - apply_filters('geodir_cat_schemas',array( |
|
| 53 | - '' => __('Default (LocalBusiness)', 'geodirectory'), |
|
| 54 | - 'AccountingService' => 'AccountingService', |
|
| 55 | - 'Attorney' => 'Attorney', |
|
| 56 | - 'AutoBodyShop' => 'AutoBodyShop', |
|
| 57 | - 'AutoDealer' => 'AutoDealer', |
|
| 58 | - 'AutoPartsStore' => 'AutoPartsStore', |
|
| 59 | - 'AutoRental' => 'AutoRental', |
|
| 60 | - 'AutoRepair' => 'AutoRepair', |
|
| 61 | - 'AutoWash' => 'AutoWash', |
|
| 62 | - 'Bakery' => 'Bakery', |
|
| 63 | - 'BarOrPub' => 'BarOrPub', |
|
| 64 | - 'BeautySalon' => 'BeautySalon', |
|
| 65 | - 'BedAndBreakfast' => 'BedAndBreakfast', |
|
| 66 | - 'BikeStore' => 'BikeStore', |
|
| 67 | - 'BookStore' => 'BookStore', |
|
| 68 | - 'CafeOrCoffeeShop' => 'CafeOrCoffeeShop', |
|
| 69 | - 'ChildCare' => 'ChildCare', |
|
| 70 | - 'ClothingStore' => 'ClothingStore', |
|
| 71 | - 'ComputerStore' => 'ComputerStore', |
|
| 72 | - 'DaySpa' => 'DaySpa', |
|
| 73 | - 'Dentist' => 'Dentist', |
|
| 74 | - 'DryCleaningOrLaundry' => 'DryCleaningOrLaundry', |
|
| 75 | - 'Electrician' => 'Electrician', |
|
| 76 | - 'ElectronicsStore' => 'ElectronicsStore', |
|
| 77 | - 'EmergencyService' => 'EmergencyService', |
|
| 78 | - 'EntertainmentBusiness' => 'EntertainmentBusiness', |
|
| 79 | - 'Event' => 'Event', |
|
| 80 | - 'EventVenue' => 'EventVenue', |
|
| 81 | - 'ExerciseGym' => 'ExerciseGym', |
|
| 82 | - 'FinancialService' => 'FinancialService', |
|
| 83 | - 'Florist' => 'Florist', |
|
| 84 | - 'FoodEstablishment' => 'FoodEstablishment', |
|
| 85 | - 'FurnitureStore' => 'FurnitureStore', |
|
| 86 | - 'GardenStore' => 'GardenStore', |
|
| 87 | - 'GeneralContractor' => 'GeneralContractor', |
|
| 88 | - 'GolfCourse' => 'GolfCourse', |
|
| 89 | - 'HairSalon' => 'HairSalon', |
|
| 90 | - 'HardwareStore' => 'HardwareStore', |
|
| 91 | - 'HealthAndBeautyBusiness' => 'HealthAndBeautyBusiness', |
|
| 92 | - 'HobbyShop' => 'HobbyShop', |
|
| 93 | - 'HomeAndConstructionBusiness' => 'HomeAndConstructionBusiness', |
|
| 94 | - 'HomeGoodsStore' => 'HomeGoodsStore', |
|
| 95 | - 'Hospital' => 'Hospital', |
|
| 96 | - 'Hotel' => 'Hotel', |
|
| 97 | - 'HousePainter' => 'HousePainter', |
|
| 98 | - 'HVACBusiness' => 'HVACBusiness', |
|
| 99 | - 'InsuranceAgency' => 'InsuranceAgency', |
|
| 100 | - 'JewelryStore' => 'JewelryStore', |
|
| 101 | - 'LiquorStore' => 'LiquorStore', |
|
| 102 | - 'Locksmith' => 'Locksmith', |
|
| 103 | - 'LodgingBusiness' => 'LodgingBusiness', |
|
| 104 | - 'MedicalClinic' => 'MedicalClinic', |
|
| 105 | - 'MensClothingStore' => 'MensClothingStore', |
|
| 106 | - 'MobilePhoneStore' => 'MobilePhoneStore', |
|
| 107 | - 'Motel' => 'Motel', |
|
| 108 | - 'MotorcycleDealer' => 'MotorcycleDealer', |
|
| 109 | - 'MotorcycleRepair' => 'MotorcycleRepair', |
|
| 110 | - 'MovingCompany' => 'MovingCompany', |
|
| 111 | - 'MusicStore' => 'MusicStore', |
|
| 112 | - 'NailSalon' => 'NailSalon', |
|
| 113 | - 'NightClub' => 'NightClub', |
|
| 114 | - 'Notary' => 'Notary', |
|
| 115 | - 'OfficeEquipmentStore' => 'OfficeEquipmentStore', |
|
| 116 | - 'Optician' => 'Optician', |
|
| 117 | - 'PetStore' => 'PetStore', |
|
| 118 | - 'Physician' => 'Physician', |
|
| 119 | - 'Plumber' => 'Plumber', |
|
| 120 | - 'ProfessionalService' => 'ProfessionalService', |
|
| 121 | - 'RealEstateAgent' => 'RealEstateAgent', |
|
| 122 | - 'Residence' => 'Residence', |
|
| 123 | - 'Restaurant' => 'Restaurant', |
|
| 124 | - 'RoofingContractor' => 'RoofingContractor', |
|
| 125 | - 'RVPark' => 'RVPark', |
|
| 126 | - 'School' => 'School', |
|
| 127 | - 'SelfStorage' => 'SelfStorage', |
|
| 128 | - 'ShoeStore' => 'ShoeStore', |
|
| 129 | - 'SkiResort' => 'SkiResort', |
|
| 130 | - 'SportingGoodsStore' => 'SportingGoodsStore', |
|
| 131 | - 'SportsClub' => 'SportsClub', |
|
| 132 | - 'Store' => 'Store', |
|
| 133 | - 'TattooParlor' => 'TattooParlor', |
|
| 134 | - 'Taxi' => 'Taxi', |
|
| 135 | - 'TennisComplex' => 'TennisComplex', |
|
| 136 | - 'TireShop' => 'TireShop', |
|
| 137 | - 'TouristAttraction' => 'TouristAttraction', |
|
| 138 | - 'ToyStore' => 'ToyStore', |
|
| 139 | - 'TravelAgency' => 'TravelAgency', |
|
| 140 | - 'VeterinaryCare' => 'VeterinaryCare', |
|
| 141 | - 'WholesaleStore' => 'WholesaleStore', |
|
| 142 | - 'Winery' => 'Winery' |
|
| 143 | - )), |
|
| 144 | - array('name' => __('Schema Type', 'geodirectory'), 'desc' => __('Select the Schema to use for this category', 'geodirectory') . "", 'std' => array('selectkey2'))); |
|
| 145 | - |
|
| 146 | - /*$my_meta->addSelect($prefix.'cat_sort',array(''=>__('Default' , 'geodirectory'), |
|
| 52 | + apply_filters('geodir_cat_schemas',array( |
|
| 53 | + '' => __('Default (LocalBusiness)', 'geodirectory'), |
|
| 54 | + 'AccountingService' => 'AccountingService', |
|
| 55 | + 'Attorney' => 'Attorney', |
|
| 56 | + 'AutoBodyShop' => 'AutoBodyShop', |
|
| 57 | + 'AutoDealer' => 'AutoDealer', |
|
| 58 | + 'AutoPartsStore' => 'AutoPartsStore', |
|
| 59 | + 'AutoRental' => 'AutoRental', |
|
| 60 | + 'AutoRepair' => 'AutoRepair', |
|
| 61 | + 'AutoWash' => 'AutoWash', |
|
| 62 | + 'Bakery' => 'Bakery', |
|
| 63 | + 'BarOrPub' => 'BarOrPub', |
|
| 64 | + 'BeautySalon' => 'BeautySalon', |
|
| 65 | + 'BedAndBreakfast' => 'BedAndBreakfast', |
|
| 66 | + 'BikeStore' => 'BikeStore', |
|
| 67 | + 'BookStore' => 'BookStore', |
|
| 68 | + 'CafeOrCoffeeShop' => 'CafeOrCoffeeShop', |
|
| 69 | + 'ChildCare' => 'ChildCare', |
|
| 70 | + 'ClothingStore' => 'ClothingStore', |
|
| 71 | + 'ComputerStore' => 'ComputerStore', |
|
| 72 | + 'DaySpa' => 'DaySpa', |
|
| 73 | + 'Dentist' => 'Dentist', |
|
| 74 | + 'DryCleaningOrLaundry' => 'DryCleaningOrLaundry', |
|
| 75 | + 'Electrician' => 'Electrician', |
|
| 76 | + 'ElectronicsStore' => 'ElectronicsStore', |
|
| 77 | + 'EmergencyService' => 'EmergencyService', |
|
| 78 | + 'EntertainmentBusiness' => 'EntertainmentBusiness', |
|
| 79 | + 'Event' => 'Event', |
|
| 80 | + 'EventVenue' => 'EventVenue', |
|
| 81 | + 'ExerciseGym' => 'ExerciseGym', |
|
| 82 | + 'FinancialService' => 'FinancialService', |
|
| 83 | + 'Florist' => 'Florist', |
|
| 84 | + 'FoodEstablishment' => 'FoodEstablishment', |
|
| 85 | + 'FurnitureStore' => 'FurnitureStore', |
|
| 86 | + 'GardenStore' => 'GardenStore', |
|
| 87 | + 'GeneralContractor' => 'GeneralContractor', |
|
| 88 | + 'GolfCourse' => 'GolfCourse', |
|
| 89 | + 'HairSalon' => 'HairSalon', |
|
| 90 | + 'HardwareStore' => 'HardwareStore', |
|
| 91 | + 'HealthAndBeautyBusiness' => 'HealthAndBeautyBusiness', |
|
| 92 | + 'HobbyShop' => 'HobbyShop', |
|
| 93 | + 'HomeAndConstructionBusiness' => 'HomeAndConstructionBusiness', |
|
| 94 | + 'HomeGoodsStore' => 'HomeGoodsStore', |
|
| 95 | + 'Hospital' => 'Hospital', |
|
| 96 | + 'Hotel' => 'Hotel', |
|
| 97 | + 'HousePainter' => 'HousePainter', |
|
| 98 | + 'HVACBusiness' => 'HVACBusiness', |
|
| 99 | + 'InsuranceAgency' => 'InsuranceAgency', |
|
| 100 | + 'JewelryStore' => 'JewelryStore', |
|
| 101 | + 'LiquorStore' => 'LiquorStore', |
|
| 102 | + 'Locksmith' => 'Locksmith', |
|
| 103 | + 'LodgingBusiness' => 'LodgingBusiness', |
|
| 104 | + 'MedicalClinic' => 'MedicalClinic', |
|
| 105 | + 'MensClothingStore' => 'MensClothingStore', |
|
| 106 | + 'MobilePhoneStore' => 'MobilePhoneStore', |
|
| 107 | + 'Motel' => 'Motel', |
|
| 108 | + 'MotorcycleDealer' => 'MotorcycleDealer', |
|
| 109 | + 'MotorcycleRepair' => 'MotorcycleRepair', |
|
| 110 | + 'MovingCompany' => 'MovingCompany', |
|
| 111 | + 'MusicStore' => 'MusicStore', |
|
| 112 | + 'NailSalon' => 'NailSalon', |
|
| 113 | + 'NightClub' => 'NightClub', |
|
| 114 | + 'Notary' => 'Notary', |
|
| 115 | + 'OfficeEquipmentStore' => 'OfficeEquipmentStore', |
|
| 116 | + 'Optician' => 'Optician', |
|
| 117 | + 'PetStore' => 'PetStore', |
|
| 118 | + 'Physician' => 'Physician', |
|
| 119 | + 'Plumber' => 'Plumber', |
|
| 120 | + 'ProfessionalService' => 'ProfessionalService', |
|
| 121 | + 'RealEstateAgent' => 'RealEstateAgent', |
|
| 122 | + 'Residence' => 'Residence', |
|
| 123 | + 'Restaurant' => 'Restaurant', |
|
| 124 | + 'RoofingContractor' => 'RoofingContractor', |
|
| 125 | + 'RVPark' => 'RVPark', |
|
| 126 | + 'School' => 'School', |
|
| 127 | + 'SelfStorage' => 'SelfStorage', |
|
| 128 | + 'ShoeStore' => 'ShoeStore', |
|
| 129 | + 'SkiResort' => 'SkiResort', |
|
| 130 | + 'SportingGoodsStore' => 'SportingGoodsStore', |
|
| 131 | + 'SportsClub' => 'SportsClub', |
|
| 132 | + 'Store' => 'Store', |
|
| 133 | + 'TattooParlor' => 'TattooParlor', |
|
| 134 | + 'Taxi' => 'Taxi', |
|
| 135 | + 'TennisComplex' => 'TennisComplex', |
|
| 136 | + 'TireShop' => 'TireShop', |
|
| 137 | + 'TouristAttraction' => 'TouristAttraction', |
|
| 138 | + 'ToyStore' => 'ToyStore', |
|
| 139 | + 'TravelAgency' => 'TravelAgency', |
|
| 140 | + 'VeterinaryCare' => 'VeterinaryCare', |
|
| 141 | + 'WholesaleStore' => 'WholesaleStore', |
|
| 142 | + 'Winery' => 'Winery' |
|
| 143 | + )), |
|
| 144 | + array('name' => __('Schema Type', 'geodirectory'), 'desc' => __('Select the Schema to use for this category', 'geodirectory') . "", 'std' => array('selectkey2'))); |
|
| 145 | + |
|
| 146 | + /*$my_meta->addSelect($prefix.'cat_sort',array(''=>__('Default' , 'geodirectory'), |
|
| 147 | 147 | 'random'=>__('Random','geodirectory'), |
| 148 | 148 | 'az'=>__('Alphabetical' , 'geodirectory'), |
| 149 | 149 | 'newest'=>__('Newest','geodirectory'), |
@@ -154,8 +154,8 @@ discard block |
||
| 154 | 154 | 'low_review'=>__('Lowest Reviews','geodirectory')), |
| 155 | 155 | array('name'=> __('Sort By','geodirectory'),'desc' => __('Select the default sort option.' ,'geodirectory'), 'std'=> array('selectkey2')));*/ |
| 156 | 156 | |
| 157 | - // Show options for placecategories only |
|
| 158 | - /* if(isset($_REQUEST['taxonomy']) && in_array($_REQUEST['taxonomy'],$config['pages']) ){ |
|
| 157 | + // Show options for placecategories only |
|
| 158 | + /* if(isset($_REQUEST['taxonomy']) && in_array($_REQUEST['taxonomy'],$config['pages']) ){ |
|
| 159 | 159 | // Exclude sort options |
| 160 | 160 | $my_meta->addCheckbox($prefix.'cat_exclude_rating',array('name'=> __('<b>Exclude</b> Rating sort option','geodirectory'))); |
| 161 | 161 | $my_meta->addCheckbox($prefix.'cat_exclude_reviews',array('name'=> __('<b>Exclude</b> Reviews sort option','geodirectory'))); |
@@ -167,8 +167,8 @@ discard block |
||
| 167 | 167 | |
| 168 | 168 | }*/ |
| 169 | 169 | |
| 170 | - //Finish Meta Box Decleration |
|
| 171 | - $my_meta->Finish(); |
|
| 170 | + //Finish Meta Box Decleration |
|
| 171 | + $my_meta->Finish(); |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | |
@@ -177,86 +177,86 @@ discard block |
||
| 177 | 177 | ############################################################## |
| 178 | 178 | $gd_taxonomies = geodir_get_taxonomies(); |
| 179 | 179 | if (!empty($gd_taxonomies)) { |
| 180 | - foreach ($gd_taxonomies as $gd_taxonomy) { |
|
| 180 | + foreach ($gd_taxonomies as $gd_taxonomy) { |
|
| 181 | 181 | |
| 182 | - add_filter('manage_edit-' . $gd_taxonomy . '_columns', 'addCat_column', 10, 2); |
|
| 183 | - add_action('manage_' . $gd_taxonomy . '_custom_column', 'manage_category_custom_fields', 10, 3); |
|
| 182 | + add_filter('manage_edit-' . $gd_taxonomy . '_columns', 'addCat_column', 10, 2); |
|
| 183 | + add_action('manage_' . $gd_taxonomy . '_custom_column', 'manage_category_custom_fields', 10, 3); |
|
| 184 | 184 | |
| 185 | - } |
|
| 185 | + } |
|
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | function addCat_column($columns) |
| 189 | 189 | { |
| 190 | - // only edit the columns on the current taxonomy |
|
| 191 | - /*if ( !isset($_GET['taxonomy']) && !in_array($_GET['taxonomy'],geodir_get_taxonomies()) ) |
|
| 190 | + // only edit the columns on the current taxonomy |
|
| 191 | + /*if ( !isset($_GET['taxonomy']) && !in_array($_GET['taxonomy'],geodir_get_taxonomies()) ) |
|
| 192 | 192 | return $columns; |
| 193 | 193 | */ |
| 194 | - if ($posts = $columns['description']) { |
|
| 195 | - unset($columns['description']); |
|
| 196 | - } |
|
| 197 | - |
|
| 198 | - $columns['cat_icon'] = 'Icon'; |
|
| 199 | - $columns['cat_default_img'] = __('Default Image', 'geodirectory'); |
|
| 200 | - $columns['cat_ID_num'] = __('Cat ID', 'geodirectory'); |
|
| 201 | - return $columns; |
|
| 194 | + if ($posts = $columns['description']) { |
|
| 195 | + unset($columns['description']); |
|
| 196 | + } |
|
| 197 | + |
|
| 198 | + $columns['cat_icon'] = 'Icon'; |
|
| 199 | + $columns['cat_default_img'] = __('Default Image', 'geodirectory'); |
|
| 200 | + $columns['cat_ID_num'] = __('Cat ID', 'geodirectory'); |
|
| 201 | + return $columns; |
|
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | ############################################################# |
| 205 | 205 | function manage_category_custom_fields($deprecated, $column_name, $term_id) |
| 206 | 206 | { |
| 207 | - if ($column_name == 'cat_ID_num') |
|
| 208 | - echo $term_id; |
|
| 207 | + if ($column_name == 'cat_ID_num') |
|
| 208 | + echo $term_id; |
|
| 209 | 209 | |
| 210 | - if ($column_name == 'cat_icon') { |
|
| 211 | - $term_icon_url = get_tax_meta($term_id, 'ct_cat_icon'); |
|
| 210 | + if ($column_name == 'cat_icon') { |
|
| 211 | + $term_icon_url = get_tax_meta($term_id, 'ct_cat_icon'); |
|
| 212 | 212 | |
| 213 | - if ($term_icon_url != '') { |
|
| 213 | + if ($term_icon_url != '') { |
|
| 214 | 214 | |
| 215 | - $file_info = pathinfo($term_icon_url['src']); |
|
| 215 | + $file_info = pathinfo($term_icon_url['src']); |
|
| 216 | 216 | |
| 217 | - if (isset($file_info['dirname'] ) && $file_info['dirname'] != '.' && $file_info['dirname'] != '..') |
|
| 218 | - $sub_dir = $file_info['dirname']; |
|
| 219 | - else{$sub_dir = '';} |
|
| 217 | + if (isset($file_info['dirname'] ) && $file_info['dirname'] != '.' && $file_info['dirname'] != '..') |
|
| 218 | + $sub_dir = $file_info['dirname']; |
|
| 219 | + else{$sub_dir = '';} |
|
| 220 | 220 | |
| 221 | - $uploads = wp_upload_dir(trim($sub_dir, '/')); // Array of key => value pairs |
|
| 222 | - $uploads_baseurl = $uploads['baseurl']; |
|
| 223 | - $uploads_path = $uploads['path']; |
|
| 221 | + $uploads = wp_upload_dir(trim($sub_dir, '/')); // Array of key => value pairs |
|
| 222 | + $uploads_baseurl = $uploads['baseurl']; |
|
| 223 | + $uploads_path = $uploads['path']; |
|
| 224 | 224 | |
| 225 | - $file_name = $file_info['basename']; |
|
| 225 | + $file_name = $file_info['basename']; |
|
| 226 | 226 | |
| 227 | - $sub_dir = str_replace($uploads_baseurl, '', $sub_dir); |
|
| 227 | + $sub_dir = str_replace($uploads_baseurl, '', $sub_dir); |
|
| 228 | 228 | |
| 229 | - $uploads_url = $uploads_baseurl . $sub_dir; |
|
| 229 | + $uploads_url = $uploads_baseurl . $sub_dir; |
|
| 230 | 230 | |
| 231 | - $term_icon_url['src'] = $uploads_url . '/' . $file_name; |
|
| 232 | - echo '<img src="' . $term_icon_url['src'] . '" />'; |
|
| 231 | + $term_icon_url['src'] = $uploads_url . '/' . $file_name; |
|
| 232 | + echo '<img src="' . $term_icon_url['src'] . '" />'; |
|
| 233 | 233 | |
| 234 | - } |
|
| 235 | - } |
|
| 234 | + } |
|
| 235 | + } |
|
| 236 | 236 | |
| 237 | - if ($column_name == 'cat_default_img') { |
|
| 238 | - $cat_default_img = get_tax_meta($term_id, 'ct_cat_default_img'); |
|
| 239 | - if ($cat_default_img != '') |
|
| 240 | - echo '<img src="' . $cat_default_img['src'] . '" style="max-height:60px;max-width:60px;"/>'; |
|
| 237 | + if ($column_name == 'cat_default_img') { |
|
| 238 | + $cat_default_img = get_tax_meta($term_id, 'ct_cat_default_img'); |
|
| 239 | + if ($cat_default_img != '') |
|
| 240 | + echo '<img src="' . $cat_default_img['src'] . '" style="max-height:60px;max-width:60px;"/>'; |
|
| 241 | 241 | |
| 242 | - } |
|
| 242 | + } |
|
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | function geodir_get_default_catimage($term_id, $post_type = 'gd_place') |
| 246 | 246 | { |
| 247 | 247 | |
| 248 | - if ($cat_default_img = get_tax_meta($term_id, 'ct_cat_default_img', '', $post_type)) |
|
| 249 | - return $cat_default_img; |
|
| 250 | - else |
|
| 251 | - return false; |
|
| 248 | + if ($cat_default_img = get_tax_meta($term_id, 'ct_cat_default_img', '', $post_type)) |
|
| 249 | + return $cat_default_img; |
|
| 250 | + else |
|
| 251 | + return false; |
|
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | //Clear custom fields |
| 255 | 255 | add_action('in_admin_footer', 'geodir_tax_meta_clear_custom_field'); |
| 256 | 256 | function geodir_tax_meta_clear_custom_field() |
| 257 | 257 | { |
| 258 | - if (isset($_REQUEST['taxonomy']) && !empty($_REQUEST['taxonomy'])): |
|
| 259 | - ?> |
|
| 258 | + if (isset($_REQUEST['taxonomy']) && !empty($_REQUEST['taxonomy'])): |
|
| 259 | + ?> |
|
| 260 | 260 | <script type="text/javascript"> |
| 261 | 261 | jQuery(document).ready(function () { |
| 262 | 262 | jQuery('#addtag #submit').click(function () { |
@@ -277,5 +277,5 @@ discard block |
||
| 277 | 277 | }); |
| 278 | 278 | </script> |
| 279 | 279 | <?php |
| 280 | - endif; |
|
| 280 | + endif; |
|
| 281 | 281 | } |
@@ -18,11 +18,11 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | function geodir_divi_signup_body_class($classes) |
| 20 | 20 | { |
| 21 | - if (geodir_is_page('login')) { |
|
| 22 | - $classes = str_replace('et_right_sidebar', 'et_full_width_page', $classes); |
|
| 23 | - $classes[] = 'divi-gd-signup'; |
|
| 24 | - } |
|
| 25 | - return $classes; |
|
| 21 | + if (geodir_is_page('login')) { |
|
| 22 | + $classes = str_replace('et_right_sidebar', 'et_full_width_page', $classes); |
|
| 23 | + $classes[] = 'divi-gd-signup'; |
|
| 24 | + } |
|
| 25 | + return $classes; |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | add_action('geodir_wrapper_close', 'geodir_divi_action_wrapper_close', 11); |
@@ -34,8 +34,8 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | function geodir_divi_action_wrapper_close() |
| 36 | 36 | { |
| 37 | - if (geodir_is_page('login')) { |
|
| 38 | - // We need to close extra divs generated by WRAPPER BEFORE MAIN CONTENT (below) because there is no sidebar on this page |
|
| 39 | - echo '</div></div>'; |
|
| 40 | - } |
|
| 37 | + if (geodir_is_page('login')) { |
|
| 38 | + // We need to close extra divs generated by WRAPPER BEFORE MAIN CONTENT (below) because there is no sidebar on this page |
|
| 39 | + echo '</div></div>'; |
|
| 40 | + } |
|
| 41 | 41 | } |
| 42 | 42 | \ No newline at end of file |
@@ -1,100 +1,100 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Enfold theme compatibility functions. |
|
| 4 | - * |
|
| 5 | - * This file lets the GeoDirectory Plugin use the Enfold theme HTML wrappers to fit and work perfectly. |
|
| 6 | - * |
|
| 7 | - * @since 1.0.0 |
|
| 8 | - * @package GeoDirectory |
|
| 9 | - */ |
|
| 3 | + * Enfold theme compatibility functions. |
|
| 4 | + * |
|
| 5 | + * This file lets the GeoDirectory Plugin use the Enfold theme HTML wrappers to fit and work perfectly. |
|
| 6 | + * |
|
| 7 | + * @since 1.0.0 |
|
| 8 | + * @package GeoDirectory |
|
| 9 | + */ |
|
| 10 | 10 | add_action('after_setup_theme', 'enfold_action_calls', 11); |
| 11 | 11 | /** |
| 12 | - * Action calls for enfold theme compatibility. |
|
| 13 | - * |
|
| 14 | - * @since 1.0.0 |
|
| 15 | - * @package GeoDirectory |
|
| 16 | - */ |
|
| 12 | + * Action calls for enfold theme compatibility. |
|
| 13 | + * |
|
| 14 | + * @since 1.0.0 |
|
| 15 | + * @package GeoDirectory |
|
| 16 | + */ |
|
| 17 | 17 | function enfold_action_calls() |
| 18 | 18 | { |
| 19 | 19 | |
| 20 | - /* ACTIONS |
|
| 20 | + /* ACTIONS |
|
| 21 | 21 | ****************************************************************************************/ |
| 22 | 22 | |
| 23 | - // Add body class for styling purposes |
|
| 24 | - add_filter('body_class', 'wpgeo_enfold_body_class'); |
|
| 23 | + // Add body class for styling purposes |
|
| 24 | + add_filter('body_class', 'wpgeo_enfold_body_class'); |
|
| 25 | 25 | |
| 26 | - // Pages using the page-builder shouldn't redirect on successful payment |
|
| 27 | - if (isset($_REQUEST['pay_action'])) { |
|
| 28 | - add_action('init', 'geodir_allow_payment_urls_enfold', 15); |
|
| 29 | - } |
|
| 26 | + // Pages using the page-builder shouldn't redirect on successful payment |
|
| 27 | + if (isset($_REQUEST['pay_action'])) { |
|
| 28 | + add_action('init', 'geodir_allow_payment_urls_enfold', 15); |
|
| 29 | + } |
|
| 30 | 30 | |
| 31 | - // LOCATION MANAGER MENU ACTIONS - set the location menu item before the Enfold search |
|
| 32 | - if (function_exists('geodir_location_menu_items')) { |
|
| 33 | - remove_filter('wp_nav_menu_items', 'geodir_location_menu_items', 110); |
|
| 34 | - add_filter('wp_nav_menu_items', 'geodir_location_menu_items', 8, 2); |
|
| 35 | - } |
|
| 36 | - // GEODIR MENU ACTIONS - set the GeoDir menu items before the Enfold search |
|
| 37 | - remove_filter('wp_nav_menu_items', 'geodir_menu_items', 100); |
|
| 38 | - add_filter('wp_nav_menu_items', 'geodir_menu_items', 7, 2); |
|
| 31 | + // LOCATION MANAGER MENU ACTIONS - set the location menu item before the Enfold search |
|
| 32 | + if (function_exists('geodir_location_menu_items')) { |
|
| 33 | + remove_filter('wp_nav_menu_items', 'geodir_location_menu_items', 110); |
|
| 34 | + add_filter('wp_nav_menu_items', 'geodir_location_menu_items', 8, 2); |
|
| 35 | + } |
|
| 36 | + // GEODIR MENU ACTIONS - set the GeoDir menu items before the Enfold search |
|
| 37 | + remove_filter('wp_nav_menu_items', 'geodir_menu_items', 100); |
|
| 38 | + add_filter('wp_nav_menu_items', 'geodir_menu_items', 7, 2); |
|
| 39 | 39 | |
| 40 | - // HOME TOP SIDEBAR |
|
| 41 | - remove_action('geodir_home_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); |
|
| 42 | - remove_action('geodir_location_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); |
|
| 43 | - //add_action( 'ava_after_main_container', 'enfold_home_sidebar' ); |
|
| 40 | + // HOME TOP SIDEBAR |
|
| 41 | + remove_action('geodir_home_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); |
|
| 42 | + remove_action('geodir_location_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); |
|
| 43 | + //add_action( 'ava_after_main_container', 'enfold_home_sidebar' ); |
|
| 44 | 44 | |
| 45 | 45 | |
| 46 | - // WRAPPER OPEN ACTIONS |
|
| 47 | - remove_action('geodir_wrapper_open', 'geodir_action_wrapper_open', 10); |
|
| 48 | - add_action('geodir_wrapper_open', 'enfold_action_wrapper_open', 9); |
|
| 49 | - add_action('geodir_wrapper_open', 'enfold_detail_title', 8, 2); // ADD GEODIR TITLE |
|
| 46 | + // WRAPPER OPEN ACTIONS |
|
| 47 | + remove_action('geodir_wrapper_open', 'geodir_action_wrapper_open', 10); |
|
| 48 | + add_action('geodir_wrapper_open', 'enfold_action_wrapper_open', 9); |
|
| 49 | + add_action('geodir_wrapper_open', 'enfold_detail_title', 8, 2); // ADD GEODIR TITLE |
|
| 50 | 50 | |
| 51 | 51 | |
| 52 | - // WRAPPER CONTENT OPEN ACTIONS |
|
| 53 | - remove_action('geodir_wrapper_content_open', 'geodir_action_wrapper_content_open', 10); |
|
| 54 | - add_action('geodir_wrapper_content_open', 'enfold_action_wrapper_content_open', 9, 3); |
|
| 52 | + // WRAPPER CONTENT OPEN ACTIONS |
|
| 53 | + remove_action('geodir_wrapper_content_open', 'geodir_action_wrapper_content_open', 10); |
|
| 54 | + add_action('geodir_wrapper_content_open', 'enfold_action_wrapper_content_open', 9, 3); |
|
| 55 | 55 | |
| 56 | 56 | |
| 57 | - // SIDEBAR RIGHT OPEN ACTIONS |
|
| 58 | - remove_action('geodir_sidebar_right_open', 'geodir_action_sidebar_right_open', 10); |
|
| 59 | - add_action('geodir_sidebar_right_open', 'enfold_action_sidebar_right_open', 10, 4); |
|
| 57 | + // SIDEBAR RIGHT OPEN ACTIONS |
|
| 58 | + remove_action('geodir_sidebar_right_open', 'geodir_action_sidebar_right_open', 10); |
|
| 59 | + add_action('geodir_sidebar_right_open', 'enfold_action_sidebar_right_open', 10, 4); |
|
| 60 | 60 | |
| 61 | - // SIDEBAR LEFT OPEN ACTIONS |
|
| 62 | - remove_action('geodir_sidebar_left_open', 'geodir_action_sidebar_left_open', 10); |
|
| 63 | - add_action('geodir_sidebar_left_open', 'enfold_action_sidebar_left_open', 10, 4); |
|
| 61 | + // SIDEBAR LEFT OPEN ACTIONS |
|
| 62 | + remove_action('geodir_sidebar_left_open', 'geodir_action_sidebar_left_open', 10); |
|
| 63 | + add_action('geodir_sidebar_left_open', 'enfold_action_sidebar_left_open', 10, 4); |
|
| 64 | 64 | |
| 65 | 65 | |
| 66 | - // HOME PAGE BREADCRUMBS |
|
| 67 | - remove_action('geodir_home_before_main_content', 'geodir_breadcrumb', 20); |
|
| 68 | - remove_action('geodir_location_before_main_content', 'geodir_breadcrumb', 20); |
|
| 66 | + // HOME PAGE BREADCRUMBS |
|
| 67 | + remove_action('geodir_home_before_main_content', 'geodir_breadcrumb', 20); |
|
| 68 | + remove_action('geodir_location_before_main_content', 'geodir_breadcrumb', 20); |
|
| 69 | 69 | |
| 70 | - // LISTINGS PAGE BREADCRUMBS & TITLES |
|
| 71 | - remove_action('geodir_listings_before_main_content', 'geodir_breadcrumb', 20); |
|
| 72 | - remove_action('geodir_listings_page_title', 'geodir_action_listings_title', 10); |
|
| 70 | + // LISTINGS PAGE BREADCRUMBS & TITLES |
|
| 71 | + remove_action('geodir_listings_before_main_content', 'geodir_breadcrumb', 20); |
|
| 72 | + remove_action('geodir_listings_page_title', 'geodir_action_listings_title', 10); |
|
| 73 | 73 | |
| 74 | - // DETAILS PAGE BREADCRUMBS & TITLES |
|
| 75 | - remove_action('geodir_detail_before_main_content', 'geodir_breadcrumb', 20); |
|
| 76 | - remove_action('geodir_details_main_content', 'geodir_action_page_title', 20); |
|
| 74 | + // DETAILS PAGE BREADCRUMBS & TITLES |
|
| 75 | + remove_action('geodir_detail_before_main_content', 'geodir_breadcrumb', 20); |
|
| 76 | + remove_action('geodir_details_main_content', 'geodir_action_page_title', 20); |
|
| 77 | 77 | |
| 78 | - // SEARCH PAGE BREADCRUMBS & TITLES |
|
| 79 | - remove_action('geodir_search_before_main_content', 'geodir_breadcrumb', 20); |
|
| 80 | - remove_action('geodir_search_page_title', 'geodir_action_search_page_title', 10); |
|
| 78 | + // SEARCH PAGE BREADCRUMBS & TITLES |
|
| 79 | + remove_action('geodir_search_before_main_content', 'geodir_breadcrumb', 20); |
|
| 80 | + remove_action('geodir_search_page_title', 'geodir_action_search_page_title', 10); |
|
| 81 | 81 | |
| 82 | - // AUTHOR PAGE BREADCRUMBS & TITLES |
|
| 83 | - remove_action('geodir_author_before_main_content', 'geodir_breadcrumb', 20); |
|
| 84 | - remove_action('geodir_author_page_title', 'geodir_action_author_page_title', 10); |
|
| 82 | + // AUTHOR PAGE BREADCRUMBS & TITLES |
|
| 83 | + remove_action('geodir_author_before_main_content', 'geodir_breadcrumb', 20); |
|
| 84 | + remove_action('geodir_author_page_title', 'geodir_action_author_page_title', 10); |
|
| 85 | 85 | |
| 86 | - // DISABLE ENFOLD MAPS CALL |
|
| 87 | - add_filter('avf_load_google_map_api', 'gd_enfold_remove_maps_api', 10, 1); |
|
| 86 | + // DISABLE ENFOLD MAPS CALL |
|
| 87 | + add_filter('avf_load_google_map_api', 'gd_enfold_remove_maps_api', 10, 1); |
|
| 88 | 88 | |
| 89 | - // make top section wide |
|
| 90 | - remove_action('geodir_home_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); |
|
| 91 | - remove_action('geodir_location_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); |
|
| 92 | - remove_action('geodir_author_before_main_content', 'geodir_action_geodir_sidebar_author_top', 10); |
|
| 93 | - remove_action('geodir_search_before_main_content', 'geodir_action_geodir_sidebar_search_top', 10); |
|
| 94 | - remove_action('geodir_detail_before_main_content', 'geodir_action_geodir_sidebar_detail_top', 10); |
|
| 95 | - remove_action('geodir_listings_before_main_content', 'geodir_action_geodir_sidebar_listings_top', 10); |
|
| 89 | + // make top section wide |
|
| 90 | + remove_action('geodir_home_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); |
|
| 91 | + remove_action('geodir_location_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); |
|
| 92 | + remove_action('geodir_author_before_main_content', 'geodir_action_geodir_sidebar_author_top', 10); |
|
| 93 | + remove_action('geodir_search_before_main_content', 'geodir_action_geodir_sidebar_search_top', 10); |
|
| 94 | + remove_action('geodir_detail_before_main_content', 'geodir_action_geodir_sidebar_detail_top', 10); |
|
| 95 | + remove_action('geodir_listings_before_main_content', 'geodir_action_geodir_sidebar_listings_top', 10); |
|
| 96 | 96 | |
| 97 | - add_action('geodir_wrapper_open', 'gd_enfold_compat_add_top_section_back', 5); |
|
| 97 | + add_action('geodir_wrapper_open', 'gd_enfold_compat_add_top_section_back', 5); |
|
| 98 | 98 | |
| 99 | 99 | } // Close enfold_action_calls |
| 100 | 100 | |
@@ -108,17 +108,17 @@ discard block |
||
| 108 | 108 | function gd_enfold_compat_add_top_section_back() |
| 109 | 109 | { |
| 110 | 110 | |
| 111 | - if (is_page_geodir_home() || geodir_is_page('location')) { |
|
| 112 | - add_action('geodir_wrapper_open', 'geodir_action_geodir_sidebar_home_top', 8); |
|
| 113 | - } elseif (geodir_is_page('listing')) { |
|
| 114 | - add_action('geodir_wrapper_open', 'geodir_action_geodir_sidebar_listings_top', 8); |
|
| 115 | - } elseif (geodir_is_page('detail')) { |
|
| 116 | - add_action('geodir_wrapper_open', 'geodir_action_geodir_sidebar_detail_top', 8); |
|
| 117 | - } elseif (geodir_is_page('search')) { |
|
| 118 | - add_action('geodir_wrapper_open', 'geodir_action_geodir_sidebar_search_top', 8); |
|
| 119 | - } elseif (geodir_is_page('author')) { |
|
| 120 | - add_action('geodir_wrapper_open', 'geodir_action_geodir_sidebar_author_top', 8); |
|
| 121 | - } |
|
| 111 | + if (is_page_geodir_home() || geodir_is_page('location')) { |
|
| 112 | + add_action('geodir_wrapper_open', 'geodir_action_geodir_sidebar_home_top', 8); |
|
| 113 | + } elseif (geodir_is_page('listing')) { |
|
| 114 | + add_action('geodir_wrapper_open', 'geodir_action_geodir_sidebar_listings_top', 8); |
|
| 115 | + } elseif (geodir_is_page('detail')) { |
|
| 116 | + add_action('geodir_wrapper_open', 'geodir_action_geodir_sidebar_detail_top', 8); |
|
| 117 | + } elseif (geodir_is_page('search')) { |
|
| 118 | + add_action('geodir_wrapper_open', 'geodir_action_geodir_sidebar_search_top', 8); |
|
| 119 | + } elseif (geodir_is_page('author')) { |
|
| 120 | + add_action('geodir_wrapper_open', 'geodir_action_geodir_sidebar_author_top', 8); |
|
| 121 | + } |
|
| 122 | 122 | |
| 123 | 123 | |
| 124 | 124 | } |
@@ -137,8 +137,8 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | function wpgeo_enfold_body_class($classes) |
| 139 | 139 | { |
| 140 | - $classes[] = 'wpgeo-enfold'; |
|
| 141 | - return $classes; |
|
| 140 | + $classes[] = 'wpgeo-enfold'; |
|
| 141 | + return $classes; |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
@@ -149,8 +149,8 @@ discard block |
||
| 149 | 149 | */ |
| 150 | 150 | function geodir_allow_payment_urls_enfold() |
| 151 | 151 | { |
| 152 | - global $builder; |
|
| 153 | - remove_action('template_redirect', array($builder, 'template_redirect'), 1000); |
|
| 152 | + global $builder; |
|
| 153 | + remove_action('template_redirect', array($builder, 'template_redirect'), 1000); |
|
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | |
@@ -162,8 +162,8 @@ discard block |
||
| 162 | 162 | */ |
| 163 | 163 | function enfold_action_wrapper_open() |
| 164 | 164 | { |
| 165 | - echo "<div class='container_wrap container_wrap_first main_color " . avia_layout_class('main', false) . "'>"; |
|
| 166 | - echo "<div class='container template-blog '>"; |
|
| 165 | + echo "<div class='container_wrap container_wrap_first main_color " . avia_layout_class('main', false) . "'>"; |
|
| 166 | + echo "<div class='container template-blog '>"; |
|
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | /** |
@@ -177,38 +177,38 @@ discard block |
||
| 177 | 177 | */ |
| 178 | 178 | function enfold_detail_title($page, $class) |
| 179 | 179 | { |
| 180 | - //echo '###'.$page; |
|
| 181 | - global $wp; |
|
| 182 | - if (isset($wp->query_vars['page_id']) && $wp->query_vars['page_id'] == geodir_location_page_id() && !geodir_is_page('login')) { |
|
| 183 | - add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2); |
|
| 184 | - echo avia_title(); |
|
| 185 | - } elseif ($page == 'details-page') { |
|
| 186 | - add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2); |
|
| 187 | - echo avia_title(); |
|
| 188 | - } elseif ($page == 'listings-page' || $page == 'search-page') { |
|
| 189 | - add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2); |
|
| 190 | - ob_start(); // Start buffering; |
|
| 191 | - geodir_action_listings_title(); |
|
| 192 | - $gd_title = ob_get_clean(); |
|
| 193 | - $title_p = explode('">', $gd_title); |
|
| 194 | - $title = str_replace('</h1></header>', "", $title_p[2]); |
|
| 195 | - //print_r($title_p); |
|
| 196 | - echo avia_title(array('title' => $title)); |
|
| 197 | - } elseif ($page == 'author-page') { |
|
| 198 | - add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2); |
|
| 199 | - ob_start(); // Start buffering; |
|
| 200 | - geodir_action_author_page_title(); |
|
| 201 | - $gd_title = ob_get_clean(); |
|
| 202 | - $gd_title = str_replace('<h1>', "", $gd_title); |
|
| 203 | - $gd_title = str_replace('</h1>', "", $gd_title); |
|
| 204 | - echo avia_title(array('title' => $gd_title)); |
|
| 205 | - } elseif ($page == 'add-listing-page') { |
|
| 206 | - add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2); |
|
| 207 | - echo avia_title(); |
|
| 208 | - } elseif ($page == 'add-listing-page') { |
|
| 209 | - add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2); |
|
| 210 | - echo avia_title(); |
|
| 211 | - } |
|
| 180 | + //echo '###'.$page; |
|
| 181 | + global $wp; |
|
| 182 | + if (isset($wp->query_vars['page_id']) && $wp->query_vars['page_id'] == geodir_location_page_id() && !geodir_is_page('login')) { |
|
| 183 | + add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2); |
|
| 184 | + echo avia_title(); |
|
| 185 | + } elseif ($page == 'details-page') { |
|
| 186 | + add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2); |
|
| 187 | + echo avia_title(); |
|
| 188 | + } elseif ($page == 'listings-page' || $page == 'search-page') { |
|
| 189 | + add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2); |
|
| 190 | + ob_start(); // Start buffering; |
|
| 191 | + geodir_action_listings_title(); |
|
| 192 | + $gd_title = ob_get_clean(); |
|
| 193 | + $title_p = explode('">', $gd_title); |
|
| 194 | + $title = str_replace('</h1></header>', "", $title_p[2]); |
|
| 195 | + //print_r($title_p); |
|
| 196 | + echo avia_title(array('title' => $title)); |
|
| 197 | + } elseif ($page == 'author-page') { |
|
| 198 | + add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2); |
|
| 199 | + ob_start(); // Start buffering; |
|
| 200 | + geodir_action_author_page_title(); |
|
| 201 | + $gd_title = ob_get_clean(); |
|
| 202 | + $gd_title = str_replace('<h1>', "", $gd_title); |
|
| 203 | + $gd_title = str_replace('</h1>', "", $gd_title); |
|
| 204 | + echo avia_title(array('title' => $gd_title)); |
|
| 205 | + } elseif ($page == 'add-listing-page') { |
|
| 206 | + add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2); |
|
| 207 | + echo avia_title(); |
|
| 208 | + } elseif ($page == 'add-listing-page') { |
|
| 209 | + add_action('avia_breadcrumbs_trail', 'enfold_detail_breadcrum', 8, 2); |
|
| 210 | + echo avia_title(); |
|
| 211 | + } |
|
| 212 | 212 | |
| 213 | 213 | } |
| 214 | 214 | |
@@ -223,22 +223,22 @@ discard block |
||
| 223 | 223 | */ |
| 224 | 224 | function enfold_detail_breadcrum($trail, $args) |
| 225 | 225 | { |
| 226 | - ob_start(); // Start buffering; |
|
| 227 | - geodir_breadcrumb(); |
|
| 228 | - $gd_crums = ob_get_clean(); |
|
| 229 | - if ($gd_crums) { |
|
| 230 | - $gd_crums = str_replace('<div class="geodir-breadcrumb clearfix"><ul id="breadcrumbs"><li>', "", $gd_crums); |
|
| 231 | - $gd_crums = str_replace('</li></ul></div>', "", $gd_crums); |
|
| 232 | - $gd_crums = str_replace(' > ', " > ", $gd_crums); |
|
| 233 | - $gd_crums = str_replace('</li><li>', "", $gd_crums); |
|
| 234 | - $gd_crums = explode(" > ", $gd_crums); |
|
| 235 | - $trail_end = array_pop($gd_crums); |
|
| 236 | - $gd_crums['trail_end'] = $trail_end; |
|
| 237 | - //print_r($gd_crums); |
|
| 238 | - //print_r($trail); |
|
| 239 | - $trail = $gd_crums; |
|
| 240 | - } |
|
| 241 | - return $trail; |
|
| 226 | + ob_start(); // Start buffering; |
|
| 227 | + geodir_breadcrumb(); |
|
| 228 | + $gd_crums = ob_get_clean(); |
|
| 229 | + if ($gd_crums) { |
|
| 230 | + $gd_crums = str_replace('<div class="geodir-breadcrumb clearfix"><ul id="breadcrumbs"><li>', "", $gd_crums); |
|
| 231 | + $gd_crums = str_replace('</li></ul></div>', "", $gd_crums); |
|
| 232 | + $gd_crums = str_replace(' > ', " > ", $gd_crums); |
|
| 233 | + $gd_crums = str_replace('</li><li>', "", $gd_crums); |
|
| 234 | + $gd_crums = explode(" > ", $gd_crums); |
|
| 235 | + $trail_end = array_pop($gd_crums); |
|
| 236 | + $gd_crums['trail_end'] = $trail_end; |
|
| 237 | + //print_r($gd_crums); |
|
| 238 | + //print_r($trail); |
|
| 239 | + $trail = $gd_crums; |
|
| 240 | + } |
|
| 241 | + return $trail; |
|
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | |
@@ -253,12 +253,12 @@ discard block |
||
| 253 | 253 | */ |
| 254 | 254 | function enfold_action_wrapper_content_open($type = '', $id = '', $class = '') |
| 255 | 255 | { |
| 256 | - if (geodir_is_page('login')) { |
|
| 257 | - echo "<main class='template-page content twelve alpha units " . $class . "' " . avia_markup_helper(array('context' => 'content', 'post_type' => 'page', 'echo' => false)) . ">"; |
|
| 258 | - } else { |
|
| 259 | - echo "<main class='template-page content " . avia_layout_class('content', false) . " units " . $class . "' " . avia_markup_helper(array('context' => 'content', 'post_type' => 'page', 'echo' => false)) . ">"; |
|
| 260 | - } |
|
| 261 | - echo '<div class="entry-content-wrapper">'; |
|
| 256 | + if (geodir_is_page('login')) { |
|
| 257 | + echo "<main class='template-page content twelve alpha units " . $class . "' " . avia_markup_helper(array('context' => 'content', 'post_type' => 'page', 'echo' => false)) . ">"; |
|
| 258 | + } else { |
|
| 259 | + echo "<main class='template-page content " . avia_layout_class('content', false) . " units " . $class . "' " . avia_markup_helper(array('context' => 'content', 'post_type' => 'page', 'echo' => false)) . ">"; |
|
| 260 | + } |
|
| 261 | + echo '<div class="entry-content-wrapper">'; |
|
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | |
@@ -274,9 +274,9 @@ discard block |
||
| 274 | 274 | */ |
| 275 | 275 | function enfold_action_sidebar_right_open($type = '', $id = '', $class = '', $itemtype = '') |
| 276 | 276 | { |
| 277 | - $sidebar_smartphone = avia_get_option('smartphones_sidebar') == 'smartphones_sidebar' ? 'smartphones_sidebar_active' : ""; |
|
| 278 | - echo "<aside class='sidebar sidebar_right " . $sidebar_smartphone . " " . avia_layout_class('sidebar', false) . " units' " . avia_markup_helper(array('context' => 'sidebar', 'echo' => false)) . ">"; |
|
| 279 | - echo "<div class='inner_sidebar extralight-border'>"; |
|
| 277 | + $sidebar_smartphone = avia_get_option('smartphones_sidebar') == 'smartphones_sidebar' ? 'smartphones_sidebar_active' : ""; |
|
| 278 | + echo "<aside class='sidebar sidebar_right " . $sidebar_smartphone . " " . avia_layout_class('sidebar', false) . " units' " . avia_markup_helper(array('context' => 'sidebar', 'echo' => false)) . ">"; |
|
| 279 | + echo "<div class='inner_sidebar extralight-border'>"; |
|
| 280 | 280 | } |
| 281 | 281 | |
| 282 | 282 | /** |
@@ -291,9 +291,9 @@ discard block |
||
| 291 | 291 | */ |
| 292 | 292 | function enfold_action_sidebar_left_open($type = '', $id = '', $class = '', $itemtype = '') |
| 293 | 293 | { |
| 294 | - $sidebar_smartphone = avia_get_option('smartphones_sidebar') == 'smartphones_sidebar' ? 'smartphones_sidebar_active' : ""; |
|
| 295 | - echo "<aside class='sidebar sidebar_left " . $sidebar_smartphone . " " . avia_layout_class('sidebar', false) . " units' " . avia_markup_helper(array('context' => 'sidebar', 'echo' => false)) . ">"; |
|
| 296 | - echo "<div class='inner_sidebar extralight-border'>"; |
|
| 294 | + $sidebar_smartphone = avia_get_option('smartphones_sidebar') == 'smartphones_sidebar' ? 'smartphones_sidebar_active' : ""; |
|
| 295 | + echo "<aside class='sidebar sidebar_left " . $sidebar_smartphone . " " . avia_layout_class('sidebar', false) . " units' " . avia_markup_helper(array('context' => 'sidebar', 'echo' => false)) . ">"; |
|
| 296 | + echo "<div class='inner_sidebar extralight-border'>"; |
|
| 297 | 297 | } |
| 298 | 298 | |
| 299 | 299 | |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | */ |
| 308 | 308 | function gd_enfold_remove_maps_api($call) |
| 309 | 309 | { |
| 310 | - return false; |
|
| 310 | + return false; |
|
| 311 | 311 | } |
| 312 | 312 | |
| 313 | 313 | |
@@ -17,26 +17,26 @@ discard block |
||
| 17 | 17 | function gd_compat_php_genesis() |
| 18 | 18 | { |
| 19 | 19 | // REPLACE GENESIS BREADCRUMBS WITH GD BREADCRUMBS |
| 20 | - remove_action('geodir_detail_before_main_content', 'geodir_breadcrumb', 20); |
|
| 21 | - remove_action('geodir_listings_before_main_content', 'geodir_breadcrumb', 20); |
|
| 22 | - remove_action('geodir_author_before_main_content', 'geodir_breadcrumb', 20); |
|
| 23 | - remove_action('geodir_search_before_main_content', 'geodir_breadcrumb', 20); |
|
| 24 | - remove_action('geodir_home_before_main_content', 'geodir_breadcrumb', 20); |
|
| 25 | - remove_action('geodir_location_before_main_content', 'geodir_breadcrumb', 20); |
|
| 20 | + remove_action('geodir_detail_before_main_content', 'geodir_breadcrumb', 20); |
|
| 21 | + remove_action('geodir_listings_before_main_content', 'geodir_breadcrumb', 20); |
|
| 22 | + remove_action('geodir_author_before_main_content', 'geodir_breadcrumb', 20); |
|
| 23 | + remove_action('geodir_search_before_main_content', 'geodir_breadcrumb', 20); |
|
| 24 | + remove_action('geodir_home_before_main_content', 'geodir_breadcrumb', 20); |
|
| 25 | + remove_action('geodir_location_before_main_content', 'geodir_breadcrumb', 20); |
|
| 26 | 26 | |
| 27 | 27 | |
| 28 | - // make top section wide |
|
| 29 | - remove_action('geodir_home_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); |
|
| 30 | - remove_action('geodir_location_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); |
|
| 31 | - remove_action('geodir_author_before_main_content', 'geodir_action_geodir_sidebar_author_top', 10); |
|
| 32 | - remove_action('geodir_search_before_main_content', 'geodir_action_geodir_sidebar_search_top', 10); |
|
| 33 | - remove_action('geodir_detail_before_main_content', 'geodir_action_geodir_sidebar_detail_top', 10); |
|
| 34 | - remove_action('geodir_listings_before_main_content', 'geodir_action_geodir_sidebar_listings_top', 10); |
|
| 28 | + // make top section wide |
|
| 29 | + remove_action('geodir_home_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); |
|
| 30 | + remove_action('geodir_location_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); |
|
| 31 | + remove_action('geodir_author_before_main_content', 'geodir_action_geodir_sidebar_author_top', 10); |
|
| 32 | + remove_action('geodir_search_before_main_content', 'geodir_action_geodir_sidebar_search_top', 10); |
|
| 33 | + remove_action('geodir_detail_before_main_content', 'geodir_action_geodir_sidebar_detail_top', 10); |
|
| 34 | + remove_action('geodir_listings_before_main_content', 'geodir_action_geodir_sidebar_listings_top', 10); |
|
| 35 | 35 | |
| 36 | - // REMOVE PAGE TITLES |
|
| 37 | - remove_action('geodir_listings_page_title', 'geodir_action_listings_title', 10); |
|
| 38 | - remove_action('geodir_search_page_title', 'geodir_action_search_page_title', 10); |
|
| 39 | - remove_action('geodir_author_page_title', 'geodir_action_author_page_title', 10); |
|
| 36 | + // REMOVE PAGE TITLES |
|
| 37 | + remove_action('geodir_listings_page_title', 'geodir_action_listings_title', 10); |
|
| 38 | + remove_action('geodir_search_page_title', 'geodir_action_search_page_title', 10); |
|
| 39 | + remove_action('geodir_author_page_title', 'geodir_action_author_page_title', 10); |
|
| 40 | 40 | |
| 41 | 41 | |
| 42 | 42 | } |
@@ -53,25 +53,25 @@ discard block |
||
| 53 | 53 | function gd_genesis_compat_left_sidebars() |
| 54 | 54 | { |
| 55 | 55 | |
| 56 | - if (is_page_geodir_home()) { |
|
| 57 | - remove_action('geodir_home_sidebar_left', 'geodir_action_home_sidebar_left', 10); |
|
| 58 | - add_action('geodir_wrapper_close', 'geodir_action_home_sidebar_left', 11); |
|
| 59 | - } elseif (geodir_is_page('location')) { |
|
| 60 | - remove_action('geodir_location_sidebar_left', 'geodir_action_home_sidebar_left', 10); |
|
| 61 | - add_action('geodir_wrapper_close', 'geodir_action_home_sidebar_left', 11); |
|
| 62 | - } elseif (geodir_is_page('listing')) { |
|
| 63 | - remove_action('geodir_listings_sidebar_left', 'geodir_action_listings_sidebar_left', 10); |
|
| 64 | - add_action('geodir_wrapper_close', 'geodir_action_listings_sidebar_left', 11); |
|
| 65 | - } elseif (geodir_is_page('detail') && get_option('geodir_detail_sidebar_left_section')) { |
|
| 66 | - //remove_action( 'geodir_detail_sidebar', 'geodir_action_details_sidebar', 10 ); |
|
| 67 | - //add_action( 'geodir_wrapper_close', 'geodir_action_details_sidebar', 11 ); |
|
| 68 | - } elseif (geodir_is_page('search')) { |
|
| 69 | - remove_action('geodir_search_sidebar_left', 'geodir_action_search_sidebar_left', 10); |
|
| 70 | - add_action('geodir_wrapper_close', 'geodir_action_search_sidebar_left', 11); |
|
| 71 | - } elseif (geodir_is_page('author')) { |
|
| 72 | - remove_action('geodir_author_sidebar_left', 'geodir_action_author_sidebar_left', 10); |
|
| 73 | - add_action('geodir_wrapper_close', 'geodir_action_author_sidebar_left', 11); |
|
| 74 | - } |
|
| 56 | + if (is_page_geodir_home()) { |
|
| 57 | + remove_action('geodir_home_sidebar_left', 'geodir_action_home_sidebar_left', 10); |
|
| 58 | + add_action('geodir_wrapper_close', 'geodir_action_home_sidebar_left', 11); |
|
| 59 | + } elseif (geodir_is_page('location')) { |
|
| 60 | + remove_action('geodir_location_sidebar_left', 'geodir_action_home_sidebar_left', 10); |
|
| 61 | + add_action('geodir_wrapper_close', 'geodir_action_home_sidebar_left', 11); |
|
| 62 | + } elseif (geodir_is_page('listing')) { |
|
| 63 | + remove_action('geodir_listings_sidebar_left', 'geodir_action_listings_sidebar_left', 10); |
|
| 64 | + add_action('geodir_wrapper_close', 'geodir_action_listings_sidebar_left', 11); |
|
| 65 | + } elseif (geodir_is_page('detail') && get_option('geodir_detail_sidebar_left_section')) { |
|
| 66 | + //remove_action( 'geodir_detail_sidebar', 'geodir_action_details_sidebar', 10 ); |
|
| 67 | + //add_action( 'geodir_wrapper_close', 'geodir_action_details_sidebar', 11 ); |
|
| 68 | + } elseif (geodir_is_page('search')) { |
|
| 69 | + remove_action('geodir_search_sidebar_left', 'geodir_action_search_sidebar_left', 10); |
|
| 70 | + add_action('geodir_wrapper_close', 'geodir_action_search_sidebar_left', 11); |
|
| 71 | + } elseif (geodir_is_page('author')) { |
|
| 72 | + remove_action('geodir_author_sidebar_left', 'geodir_action_author_sidebar_left', 10); |
|
| 73 | + add_action('geodir_wrapper_close', 'geodir_action_author_sidebar_left', 11); |
|
| 74 | + } |
|
| 75 | 75 | |
| 76 | 76 | |
| 77 | 77 | } |
@@ -88,65 +88,65 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | function geodir_set_body_scs($classes) |
| 90 | 90 | { |
| 91 | - $remove_class = false; |
|
| 92 | - $new_class = ''; |
|
| 93 | - if (is_page_geodir_home() || geodir_is_page('location')) { |
|
| 94 | - $remove_class = true; |
|
| 95 | - if (get_option('geodir_show_home_left_section')) { |
|
| 96 | - $new_class .= 'sidebar-'; |
|
| 97 | - } |
|
| 98 | - if (get_option('geodir_show_home_contant_section')) { |
|
| 99 | - $new_class .= 'content'; |
|
| 100 | - } |
|
| 101 | - if (get_option('geodir_show_home_right_section')) { |
|
| 102 | - $new_class .= '-sidebar'; |
|
| 103 | - } |
|
| 104 | - } elseif (geodir_is_page('listing')) { |
|
| 105 | - $remove_class = true; |
|
| 106 | - if (get_option('geodir_show_listing_left_section')) { |
|
| 107 | - $new_class .= 'sidebar-'; |
|
| 108 | - } |
|
| 109 | - $new_class .= 'content'; |
|
| 110 | - if (get_option('geodir_show_listing_right_section')) { |
|
| 111 | - $new_class .= '-sidebar'; |
|
| 112 | - } |
|
| 113 | - } elseif (geodir_is_page('detail')) { |
|
| 114 | - $remove_class = true; |
|
| 115 | - if (get_option('geodir_detail_sidebar_left_section')) { |
|
| 116 | - $new_class .= 'sidebar-content gd-details-sidebar-left'; |
|
| 117 | - } else { |
|
| 118 | - $new_class .= 'content-sidebar'; |
|
| 119 | - } |
|
| 120 | - } elseif (geodir_is_page('search')) { |
|
| 121 | - $remove_class = true; |
|
| 122 | - if (get_option('geodir_show_search_left_section')) { |
|
| 123 | - $new_class .= 'sidebar-'; |
|
| 124 | - } |
|
| 125 | - $new_class .= 'content'; |
|
| 126 | - if (get_option('geodir_show_search_right_section')) { |
|
| 127 | - $new_class .= '-sidebar'; |
|
| 128 | - } |
|
| 129 | - } elseif (geodir_is_page('author')) { |
|
| 130 | - $remove_class = true; |
|
| 131 | - if (get_option('geodir_show_author_left_section')) { |
|
| 132 | - $new_class .= 'sidebar-'; |
|
| 133 | - } |
|
| 134 | - $new_class .= 'content'; |
|
| 135 | - if (get_option('geodir_show_author_right_section')) { |
|
| 136 | - $new_class .= '-sidebar'; |
|
| 137 | - } |
|
| 138 | - } elseif (geodir_is_page('add-listing')) { |
|
| 139 | - $remove_class = true; |
|
| 140 | - $new_class .= 'content-sidebar'; |
|
| 141 | - } |
|
| 142 | - |
|
| 143 | - if ($remove_class) { |
|
| 144 | - $classes = array_diff($classes, array('content-sidebar', 'sidebar-content', 'content-sidebar-sidebar', 'sidebar-sidebar-content', 'sidebar-content-sidebar', 'full-width-content')); |
|
| 145 | - //str_replace(array('content-sidebar','sidebar-content','content-sidebar-sidebar','sidebar-sidebar-content','sidebar-content-sidebar','full-width-content'),array('','','','','',''),$classes); |
|
| 146 | - $classes[] = $new_class; |
|
| 147 | - } |
|
| 148 | - |
|
| 149 | - return $classes; |
|
| 91 | + $remove_class = false; |
|
| 92 | + $new_class = ''; |
|
| 93 | + if (is_page_geodir_home() || geodir_is_page('location')) { |
|
| 94 | + $remove_class = true; |
|
| 95 | + if (get_option('geodir_show_home_left_section')) { |
|
| 96 | + $new_class .= 'sidebar-'; |
|
| 97 | + } |
|
| 98 | + if (get_option('geodir_show_home_contant_section')) { |
|
| 99 | + $new_class .= 'content'; |
|
| 100 | + } |
|
| 101 | + if (get_option('geodir_show_home_right_section')) { |
|
| 102 | + $new_class .= '-sidebar'; |
|
| 103 | + } |
|
| 104 | + } elseif (geodir_is_page('listing')) { |
|
| 105 | + $remove_class = true; |
|
| 106 | + if (get_option('geodir_show_listing_left_section')) { |
|
| 107 | + $new_class .= 'sidebar-'; |
|
| 108 | + } |
|
| 109 | + $new_class .= 'content'; |
|
| 110 | + if (get_option('geodir_show_listing_right_section')) { |
|
| 111 | + $new_class .= '-sidebar'; |
|
| 112 | + } |
|
| 113 | + } elseif (geodir_is_page('detail')) { |
|
| 114 | + $remove_class = true; |
|
| 115 | + if (get_option('geodir_detail_sidebar_left_section')) { |
|
| 116 | + $new_class .= 'sidebar-content gd-details-sidebar-left'; |
|
| 117 | + } else { |
|
| 118 | + $new_class .= 'content-sidebar'; |
|
| 119 | + } |
|
| 120 | + } elseif (geodir_is_page('search')) { |
|
| 121 | + $remove_class = true; |
|
| 122 | + if (get_option('geodir_show_search_left_section')) { |
|
| 123 | + $new_class .= 'sidebar-'; |
|
| 124 | + } |
|
| 125 | + $new_class .= 'content'; |
|
| 126 | + if (get_option('geodir_show_search_right_section')) { |
|
| 127 | + $new_class .= '-sidebar'; |
|
| 128 | + } |
|
| 129 | + } elseif (geodir_is_page('author')) { |
|
| 130 | + $remove_class = true; |
|
| 131 | + if (get_option('geodir_show_author_left_section')) { |
|
| 132 | + $new_class .= 'sidebar-'; |
|
| 133 | + } |
|
| 134 | + $new_class .= 'content'; |
|
| 135 | + if (get_option('geodir_show_author_right_section')) { |
|
| 136 | + $new_class .= '-sidebar'; |
|
| 137 | + } |
|
| 138 | + } elseif (geodir_is_page('add-listing')) { |
|
| 139 | + $remove_class = true; |
|
| 140 | + $new_class .= 'content-sidebar'; |
|
| 141 | + } |
|
| 142 | + |
|
| 143 | + if ($remove_class) { |
|
| 144 | + $classes = array_diff($classes, array('content-sidebar', 'sidebar-content', 'content-sidebar-sidebar', 'sidebar-sidebar-content', 'sidebar-content-sidebar', 'full-width-content')); |
|
| 145 | + //str_replace(array('content-sidebar','sidebar-content','content-sidebar-sidebar','sidebar-sidebar-content','sidebar-content-sidebar','full-width-content'),array('','','','','',''),$classes); |
|
| 146 | + $classes[] = $new_class; |
|
| 147 | + } |
|
| 148 | + |
|
| 149 | + return $classes; |
|
| 150 | 150 | |
| 151 | 151 | } |
| 152 | 152 | |
@@ -160,17 +160,17 @@ discard block |
||
| 160 | 160 | function gd_genesis_compat_add_top_section_back() |
| 161 | 161 | { |
| 162 | 162 | |
| 163 | - if (is_page_geodir_home() || geodir_is_page('location')) { |
|
| 164 | - geodir_action_geodir_sidebar_home_top(); |
|
| 165 | - } elseif (geodir_is_page('listing')) { |
|
| 166 | - geodir_action_geodir_sidebar_listings_top(); |
|
| 167 | - } elseif (geodir_is_page('detail')) { |
|
| 168 | - geodir_action_geodir_sidebar_detail_top(); |
|
| 169 | - } elseif (geodir_is_page('search')) { |
|
| 170 | - geodir_action_geodir_sidebar_search_top(); |
|
| 171 | - } elseif (geodir_is_page('author')) { |
|
| 172 | - geodir_action_geodir_sidebar_author_top(); |
|
| 173 | - } |
|
| 163 | + if (is_page_geodir_home() || geodir_is_page('location')) { |
|
| 164 | + geodir_action_geodir_sidebar_home_top(); |
|
| 165 | + } elseif (geodir_is_page('listing')) { |
|
| 166 | + geodir_action_geodir_sidebar_listings_top(); |
|
| 167 | + } elseif (geodir_is_page('detail')) { |
|
| 168 | + geodir_action_geodir_sidebar_detail_top(); |
|
| 169 | + } elseif (geodir_is_page('search')) { |
|
| 170 | + geodir_action_geodir_sidebar_search_top(); |
|
| 171 | + } elseif (geodir_is_page('author')) { |
|
| 172 | + geodir_action_geodir_sidebar_author_top(); |
|
| 173 | + } |
|
| 174 | 174 | |
| 175 | 175 | |
| 176 | 176 | } |
@@ -183,12 +183,12 @@ discard block |
||
| 183 | 183 | */ |
| 184 | 184 | function geodir_replace_breadcrumb() |
| 185 | 185 | { |
| 186 | - if (is_front_page() && get_option('geodir_set_as_home') && !geodir_is_page('login')) { |
|
| 187 | - } else { |
|
| 188 | - echo '<div class="geodir-breadcrumb-bar"><div class="wrap">'; |
|
| 189 | - geodir_breadcrumb(); |
|
| 190 | - echo '</div></div>'; |
|
| 191 | - } |
|
| 186 | + if (is_front_page() && get_option('geodir_set_as_home') && !geodir_is_page('login')) { |
|
| 187 | + } else { |
|
| 188 | + echo '<div class="geodir-breadcrumb-bar"><div class="wrap">'; |
|
| 189 | + geodir_breadcrumb(); |
|
| 190 | + echo '</div></div>'; |
|
| 191 | + } |
|
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | // Force Full Width on signup page |
@@ -201,9 +201,9 @@ discard block |
||
| 201 | 201 | */ |
| 202 | 202 | function geodir_genesis_meta() |
| 203 | 203 | { |
| 204 | - if (geodir_is_page('login')) { |
|
| 205 | - add_filter('genesis_pre_get_option_site_layout', '__genesis_return_full_width_content'); |
|
| 206 | - } |
|
| 204 | + if (geodir_is_page('login')) { |
|
| 205 | + add_filter('genesis_pre_get_option_site_layout', '__genesis_return_full_width_content'); |
|
| 206 | + } |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | add_action('geodir_add_listing_page_title', 'geodir_add_listing_page_title_genesis_before', 8); |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | function geodir_add_listing_page_title_genesis_before() |
| 217 | 217 | { |
| 218 | 218 | |
| 219 | - echo "<div class='entry' >"; |
|
| 219 | + echo "<div class='entry' >"; |
|
| 220 | 220 | } |
| 221 | 221 | |
| 222 | 222 | |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | function geodir_add_listing_form_genesis_after() |
| 231 | 231 | { |
| 232 | 232 | |
| 233 | - echo "</div>"; |
|
| 233 | + echo "</div>"; |
|
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | |
@@ -249,38 +249,38 @@ discard block |
||
| 249 | 249 | { |
| 250 | 250 | |
| 251 | 251 | |
| 252 | - $title = ''; |
|
| 253 | - $subtitle = ''; |
|
| 254 | - |
|
| 255 | - if (geodir_is_page('listing')) { |
|
| 256 | - echo '<div class="wrap gd-title-wrap">'; |
|
| 257 | - geodir_action_listings_title(); |
|
| 258 | - echo '</div>'; |
|
| 259 | - } |
|
| 260 | - |
|
| 261 | - if (geodir_is_page('add-listing')) { |
|
| 262 | - echo '<div class="wrap gd-title-wrap">'; |
|
| 263 | - geodir_action_add_listing_page_title(); |
|
| 264 | - echo '</div>'; |
|
| 265 | - } |
|
| 266 | - |
|
| 267 | - if (geodir_is_page('author')) { |
|
| 268 | - echo '<div class="wrap gd-title-wrap">'; |
|
| 269 | - geodir_action_author_page_title(); |
|
| 270 | - echo '</div>'; |
|
| 271 | - } |
|
| 272 | - |
|
| 273 | - if (geodir_is_page('detail') || geodir_is_page('preview')) { |
|
| 274 | - echo '<div class="wrap gd-title-wrap">'; |
|
| 275 | - echo get_the_title(); |
|
| 276 | - echo '</div>'; |
|
| 277 | - } |
|
| 278 | - |
|
| 279 | - if (geodir_is_page('search')) { |
|
| 280 | - echo '<div class="wrap gd-title-wrap">'; |
|
| 281 | - geodir_action_search_page_title(); |
|
| 282 | - echo '</div>'; |
|
| 283 | - } |
|
| 252 | + $title = ''; |
|
| 253 | + $subtitle = ''; |
|
| 254 | + |
|
| 255 | + if (geodir_is_page('listing')) { |
|
| 256 | + echo '<div class="wrap gd-title-wrap">'; |
|
| 257 | + geodir_action_listings_title(); |
|
| 258 | + echo '</div>'; |
|
| 259 | + } |
|
| 260 | + |
|
| 261 | + if (geodir_is_page('add-listing')) { |
|
| 262 | + echo '<div class="wrap gd-title-wrap">'; |
|
| 263 | + geodir_action_add_listing_page_title(); |
|
| 264 | + echo '</div>'; |
|
| 265 | + } |
|
| 266 | + |
|
| 267 | + if (geodir_is_page('author')) { |
|
| 268 | + echo '<div class="wrap gd-title-wrap">'; |
|
| 269 | + geodir_action_author_page_title(); |
|
| 270 | + echo '</div>'; |
|
| 271 | + } |
|
| 272 | + |
|
| 273 | + if (geodir_is_page('detail') || geodir_is_page('preview')) { |
|
| 274 | + echo '<div class="wrap gd-title-wrap">'; |
|
| 275 | + echo get_the_title(); |
|
| 276 | + echo '</div>'; |
|
| 277 | + } |
|
| 278 | + |
|
| 279 | + if (geodir_is_page('search')) { |
|
| 280 | + echo '<div class="wrap gd-title-wrap">'; |
|
| 281 | + geodir_action_search_page_title(); |
|
| 282 | + echo '</div>'; |
|
| 283 | + } |
|
| 284 | 284 | } |
| 285 | 285 | |
| 286 | 286 | |
@@ -293,8 +293,8 @@ discard block |
||
| 293 | 293 | */ |
| 294 | 294 | function gd_genesis_listing_page_title_bar() |
| 295 | 295 | { |
| 296 | - geodir_action_listings_title(); |
|
| 297 | - //geodir_action_listings_description(); |
|
| 296 | + geodir_action_listings_title(); |
|
| 297 | + //geodir_action_listings_description(); |
|
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | |
@@ -307,19 +307,19 @@ discard block |
||
| 307 | 307 | */ |
| 308 | 308 | function gd_compat_php_genesis_geo_1280_fix() |
| 309 | 309 | { |
| 310 | - if (function_exists('geo1280_search_bar')) { |
|
| 311 | - remove_action('genesis_after_header', 'geo1280_search_bar', 20); |
|
| 312 | - add_action('genesis_after_header', 'geo1280_search_bar_fix', 4); |
|
| 310 | + if (function_exists('geo1280_search_bar')) { |
|
| 311 | + remove_action('genesis_after_header', 'geo1280_search_bar', 20); |
|
| 312 | + add_action('genesis_after_header', 'geo1280_search_bar_fix', 4); |
|
| 313 | 313 | |
| 314 | - // |
|
| 314 | + // |
|
| 315 | 315 | |
| 316 | - remove_action('genesis_after_header', 'geodir_replace_breadcrumb', 20); |
|
| 317 | - remove_action('genesis_before_content_sidebar_wrap', 'geodir_replace_breadcrumb', 20); |
|
| 318 | - add_action('geodir_wrapper_open', 'geodir_replace_breadcrumb', 105); |
|
| 316 | + remove_action('genesis_after_header', 'geodir_replace_breadcrumb', 20); |
|
| 317 | + remove_action('genesis_before_content_sidebar_wrap', 'geodir_replace_breadcrumb', 20); |
|
| 318 | + add_action('geodir_wrapper_open', 'geodir_replace_breadcrumb', 105); |
|
| 319 | 319 | |
| 320 | - remove_action('genesis_before_content_sidebar_wrap', 'geo1280_page_title', 10); |
|
| 321 | - add_action('geodir_wrapper_open', 'geo1280_page_title', 101); |
|
| 322 | - } |
|
| 320 | + remove_action('genesis_before_content_sidebar_wrap', 'geo1280_page_title', 10); |
|
| 321 | + add_action('geodir_wrapper_open', 'geo1280_page_title', 101); |
|
| 322 | + } |
|
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | /** |
@@ -331,11 +331,11 @@ discard block |
||
| 331 | 331 | function geo1280_search_bar_fix() |
| 332 | 332 | { |
| 333 | 333 | |
| 334 | - echo '<div class="geo1280-placeholder"></div>'; |
|
| 335 | - if (is_active_sidebar('search-bar')) { |
|
| 336 | - genesis_widget_area('search-bar', array( |
|
| 337 | - 'before' => '<div class="search-bar widget-area"><div class="wrap">', |
|
| 338 | - 'after' => '</div></div>', |
|
| 339 | - )); |
|
| 340 | - } |
|
| 334 | + echo '<div class="geo1280-placeholder"></div>'; |
|
| 335 | + if (is_active_sidebar('search-bar')) { |
|
| 336 | + genesis_widget_area('search-bar', array( |
|
| 337 | + 'before' => '<div class="search-bar widget-area"><div class="wrap">', |
|
| 338 | + 'after' => '</div></div>', |
|
| 339 | + )); |
|
| 340 | + } |
|
| 341 | 341 | } |