Completed
Pull Request — master (#211)
by Kiran
05:44
created
geodirectory-admin/admin_db_install.php 1 patch
Indentation   +295 added lines, -295 removed lines patch added patch discarded remove patch
@@ -6,26 +6,26 @@  discard block
 block discarded – undo
6 6
  * @package GeoDirectory
7 7
  */
8 8
 if (!function_exists('geodir_create_tables')) {
9
-    /**
10
-     * Creates custom db tables for storing GeoDirectory plugin data.
11
-     *
12
-     * @since 1.0.0
13
-     * @package GeoDirectory
14
-     * @global object $wpdb WordPress Database object.
15
-     * @global string $plugin_prefix GeoDirectory plugin table prefix.
16
-     */
17
-    function geodir_create_tables()
18
-    {
19
-
20
-        global $wpdb, $plugin_prefix;
21
-
22
-        $wpdb->hide_errors();
23
-
24
-        $collate = '';
25
-        if ($wpdb->has_cap('collation')) {
26
-            if (!empty($wpdb->charset)) $collate = "DEFAULT CHARACTER SET $wpdb->charset";
27
-            if (!empty($wpdb->collate)) $collate .= " COLLATE $wpdb->collate";
28
-        }
9
+	/**
10
+	 * Creates custom db tables for storing GeoDirectory plugin data.
11
+	 *
12
+	 * @since 1.0.0
13
+	 * @package GeoDirectory
14
+	 * @global object $wpdb WordPress Database object.
15
+	 * @global string $plugin_prefix GeoDirectory plugin table prefix.
16
+	 */
17
+	function geodir_create_tables()
18
+	{
19
+
20
+		global $wpdb, $plugin_prefix;
21
+
22
+		$wpdb->hide_errors();
23
+
24
+		$collate = '';
25
+		if ($wpdb->has_cap('collation')) {
26
+			if (!empty($wpdb->charset)) $collate = "DEFAULT CHARACTER SET $wpdb->charset";
27
+			if (!empty($wpdb->collate)) $collate .= " COLLATE $wpdb->collate";
28
+		}
29 29
 
30 30
 		/**
31 31
 		 * Include any functions needed for upgrades.
@@ -36,31 +36,31 @@  discard block
 block discarded – undo
36 36
 
37 37
 
38 38
 // rename tables if we need to
39
-        if ($wpdb->query("SHOW TABLES LIKE 'geodir_countries'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_countries'") == 0) {
40
-            $wpdb->query("RENAME TABLE geodir_countries TO " . $wpdb->prefix . "geodir_countries");
41
-        }
42
-        if ($wpdb->query("SHOW TABLES LIKE 'geodir_custom_fields'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_custom_fields'") == 0) {
43
-            $wpdb->query("RENAME TABLE geodir_custom_fields TO " . $wpdb->prefix . "geodir_custom_fields");
44
-        }
45
-        if ($wpdb->query("SHOW TABLES LIKE 'geodir_post_icon'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_post_icon'") == 0) {
46
-            $wpdb->query("RENAME TABLE geodir_post_icon TO " . $wpdb->prefix . "geodir_post_icon");
47
-        }
48
-        if ($wpdb->query("SHOW TABLES LIKE 'geodir_attachments'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_attachments'") == 0) {
49
-            $wpdb->query("RENAME TABLE geodir_attachments TO " . $wpdb->prefix . "geodir_attachments");
50
-        }
51
-        if ($wpdb->query("SHOW TABLES LIKE 'geodir_post_review'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_post_review'") == 0) {
52
-            $wpdb->query("RENAME TABLE geodir_post_review TO " . $wpdb->prefix . "geodir_post_review");
53
-        }
54
-        if ($wpdb->query("SHOW TABLES LIKE 'geodir_custom_sort_fields'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_custom_sort_fields'") == 0) {
55
-            $wpdb->query("RENAME TABLE geodir_custom_sort_fields TO " . $wpdb->prefix . "geodir_custom_sort_fields");
56
-        }
57
-        if ($wpdb->query("SHOW TABLES LIKE 'geodir_gd_place_detail'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_gd_place_detail'") == 0) {
58
-            $wpdb->query("RENAME TABLE geodir_gd_place_detail TO " . $wpdb->prefix . "geodir_gd_place_detail");
59
-        }
60
-
61
-
62
-        // Table for storing Countries
63
-        $GEODIR_COUNTRIES_TABLE = "CREATE TABLE " . GEODIR_COUNTRIES_TABLE . " (
39
+		if ($wpdb->query("SHOW TABLES LIKE 'geodir_countries'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_countries'") == 0) {
40
+			$wpdb->query("RENAME TABLE geodir_countries TO " . $wpdb->prefix . "geodir_countries");
41
+		}
42
+		if ($wpdb->query("SHOW TABLES LIKE 'geodir_custom_fields'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_custom_fields'") == 0) {
43
+			$wpdb->query("RENAME TABLE geodir_custom_fields TO " . $wpdb->prefix . "geodir_custom_fields");
44
+		}
45
+		if ($wpdb->query("SHOW TABLES LIKE 'geodir_post_icon'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_post_icon'") == 0) {
46
+			$wpdb->query("RENAME TABLE geodir_post_icon TO " . $wpdb->prefix . "geodir_post_icon");
47
+		}
48
+		if ($wpdb->query("SHOW TABLES LIKE 'geodir_attachments'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_attachments'") == 0) {
49
+			$wpdb->query("RENAME TABLE geodir_attachments TO " . $wpdb->prefix . "geodir_attachments");
50
+		}
51
+		if ($wpdb->query("SHOW TABLES LIKE 'geodir_post_review'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_post_review'") == 0) {
52
+			$wpdb->query("RENAME TABLE geodir_post_review TO " . $wpdb->prefix . "geodir_post_review");
53
+		}
54
+		if ($wpdb->query("SHOW TABLES LIKE 'geodir_custom_sort_fields'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_custom_sort_fields'") == 0) {
55
+			$wpdb->query("RENAME TABLE geodir_custom_sort_fields TO " . $wpdb->prefix . "geodir_custom_sort_fields");
56
+		}
57
+		if ($wpdb->query("SHOW TABLES LIKE 'geodir_gd_place_detail'") > 0 && $wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "geodir_gd_place_detail'") == 0) {
58
+			$wpdb->query("RENAME TABLE geodir_gd_place_detail TO " . $wpdb->prefix . "geodir_gd_place_detail");
59
+		}
60
+
61
+
62
+		// Table for storing Countries
63
+		$GEODIR_COUNTRIES_TABLE = "CREATE TABLE " . GEODIR_COUNTRIES_TABLE . " (
64 64
 						CountryId smallint AUTO_INCREMENT NOT NULL ,
65 65
 						Country varchar (50) NOT NULL ,
66 66
 						FIPS104 varchar (2) NOT NULL ,
@@ -79,21 +79,21 @@  discard block
 block discarded – undo
79 79
 						Comment varchar (255) NULL ,
80 80
 						PRIMARY KEY  (CountryId)) $collate ";
81 81
 
82
-        /**
83
-         * Filter the SQL query that creates/updates the country DB table structure.
84
-         *
85
-         * @since 1.0.0
86
-         * @param string $sql The SQL insert query string.
87
-         */
88
-        $GEODIR_COUNTRIES_TABLE = apply_filters('geodir_before_country_table_create', $GEODIR_COUNTRIES_TABLE);
89
-        dbDelta($GEODIR_COUNTRIES_TABLE);
82
+		/**
83
+		 * Filter the SQL query that creates/updates the country DB table structure.
84
+		 *
85
+		 * @since 1.0.0
86
+		 * @param string $sql The SQL insert query string.
87
+		 */
88
+		$GEODIR_COUNTRIES_TABLE = apply_filters('geodir_before_country_table_create', $GEODIR_COUNTRIES_TABLE);
89
+		dbDelta($GEODIR_COUNTRIES_TABLE);
90 90
 
91 91
 
92
-        $country_table_empty = $wpdb->get_var("SELECT COUNT(CountryId) FROM " . GEODIR_COUNTRIES_TABLE . "");
92
+		$country_table_empty = $wpdb->get_var("SELECT COUNT(CountryId) FROM " . GEODIR_COUNTRIES_TABLE . "");
93 93
 
94
-        if ($country_table_empty == 0) {
94
+		if ($country_table_empty == 0) {
95 95
 
96
-            $countries_insert = "INSERT INTO " . GEODIR_COUNTRIES_TABLE . " (`CountryId`, `Country`, `FIPS104`, `ISO2`, `ISO3`, `ISON`, `Internet`, `Capital`, `MapReference`, `NationalitySingular`, `NationalityPlural`, `Currency`, `CurrencyCode`, `Population`, `Title`, `COMMENT`) VALUES
96
+			$countries_insert = "INSERT INTO " . GEODIR_COUNTRIES_TABLE . " (`CountryId`, `Country`, `FIPS104`, `ISO2`, `ISO3`, `ISON`, `Internet`, `Capital`, `MapReference`, `NationalitySingular`, `NationalityPlural`, `Currency`, `CurrencyCode`, `Population`, `Title`, `COMMENT`) VALUES
97 97
 	(1, 'Afghanistan', 'AF', 'AF', 'AFG', '4', 'AF', 'Kabul ', 'Asia ', 'Afghan', 'Afghans', 'Afghani ', 'AFA', 26813057, 'Afghanistan', ''),
98 98
 	(2, 'Albania', 'AL', 'AL', 'ALB', '8', 'AL', 'Tirana ', 'Europe ', 'Albanian', 'Albanians', 'Lek ', 'ALL', 3510484, 'Albania', ''),
99 99
 	(3, 'Algeria', 'AG', 'DZ', 'DZA', '12', 'DZ', 'Algiers ', 'Africa ', 'Algerian', 'Algerians', 'Algerian Dinar ', 'DZD', 31736053, 'Algeria', ''),
@@ -367,21 +367,21 @@  discard block
 block discarded – undo
367 367
 	(276, 'Curaçao', 'UC', 'CW', 'CUW', '531', 'CW', 'Willemstad ', 'Central America and the Caribbean', 'Curaçaoan', 'Curaçaoans', 'Netherlands Antillean guilder', 'ANG', 152760, 'Curaçao', ''),
368 368
 	(277, 'Caribbean Netherlands', '--', 'BQ', 'BES', '535', 'BQ', '--', 'Central America and the Caribbean', '--', '--', 'United States dollar', 'USD', 21133, 'Caribbean Netherlands', '')";
369 369
 
370
-            /**
371
-             * Filter the SQL query that inserts the country DB table data.
372
-             *
373
-             * @since 1.0.0
374
-             * @param string $sql The SQL insert query string.
375
-             */
376
-            $countries_insert = apply_filters('geodir_before_country_data_insert', $countries_insert);
377
-            $wpdb->query($countries_insert);
370
+			/**
371
+			 * Filter the SQL query that inserts the country DB table data.
372
+			 *
373
+			 * @since 1.0.0
374
+			 * @param string $sql The SQL insert query string.
375
+			 */
376
+			$countries_insert = apply_filters('geodir_before_country_data_insert', $countries_insert);
377
+			$wpdb->query($countries_insert);
378 378
 
379
-        }
379
+		}
380 380
 
381 381
 
382
-        // Table for storing location attribute - these are user defined
382
+		// Table for storing location attribute - these are user defined
383 383
 
384
-        $icon_table = "CREATE TABLE " . GEODIR_ICON_TABLE . " (
384
+		$icon_table = "CREATE TABLE " . GEODIR_ICON_TABLE . " (
385 385
 						id int NOT NULL AUTO_INCREMENT,
386 386
 						post_id int( 10 ) NOT NULL,
387 387
 						post_title varchar(254) NOT NULL,
@@ -390,19 +390,19 @@  discard block
 block discarded – undo
390 390
 						PRIMARY KEY  (id)
391 391
 						) $collate ";
392 392
 
393
-        /**
394
-         * Filter the SQL query that creates/updates the post_icon DB table structure.
395
-         *
396
-         * @since 1.0.0
397
-         * @param string $sql The SQL insert query string.
398
-         */
399
-        $icon_table = apply_filters('geodir_before_icon_table_create', $icon_table);
393
+		/**
394
+		 * Filter the SQL query that creates/updates the post_icon DB table structure.
395
+		 *
396
+		 * @since 1.0.0
397
+		 * @param string $sql The SQL insert query string.
398
+		 */
399
+		$icon_table = apply_filters('geodir_before_icon_table_create', $icon_table);
400 400
 
401
-        dbDelta($icon_table);
401
+		dbDelta($icon_table);
402 402
 
403
-        // Table for storing post custom fields - these are user defined
403
+		// Table for storing post custom fields - these are user defined
404 404
 
405
-        $post_custom_fields = "CREATE TABLE " . GEODIR_CUSTOM_FIELDS_TABLE . " (
405
+		$post_custom_fields = "CREATE TABLE " . GEODIR_CUSTOM_FIELDS_TABLE . " (
406 406
 							  id int(11) NOT NULL AUTO_INCREMENT,
407 407
 							  post_type varchar(100) NULL,
408 408
 							  data_type varchar(100) NULL DEFAULT NULL,
@@ -436,18 +436,18 @@  discard block
 block discarded – undo
436 436
 							  PRIMARY KEY  (id)
437 437
 							  ) $collate";
438 438
 
439
-        /**
440
-         * Filter the SQL query that creates/updates the custom_fields DB table structure.
441
-         *
442
-         * @since 1.0.0
443
-         * @param string $sql The SQL insert query string.
444
-         */
445
-        $post_custom_fields = apply_filters('geodir_before_custom_field_table_create', $post_custom_fields);
439
+		/**
440
+		 * Filter the SQL query that creates/updates the custom_fields DB table structure.
441
+		 *
442
+		 * @since 1.0.0
443
+		 * @param string $sql The SQL insert query string.
444
+		 */
445
+		$post_custom_fields = apply_filters('geodir_before_custom_field_table_create', $post_custom_fields);
446 446
 
447
-        dbDelta($post_custom_fields);
447
+		dbDelta($post_custom_fields);
448 448
 
449
-        // Table for storing place attribute - these are user defined
450
-        $post_detail = "CREATE TABLE " . $plugin_prefix . "gd_place_detail (
449
+		// Table for storing place attribute - these are user defined
450
+		$post_detail = "CREATE TABLE " . $plugin_prefix . "gd_place_detail (
451 451
 						post_id int(11) NOT NULL,
452 452
 						post_title text NULL DEFAULT NULL,
453 453
 						post_status varchar(20) NULL DEFAULT NULL,
@@ -473,22 +473,22 @@  discard block
 block discarded – undo
473 473
 						PRIMARY KEY  (post_id)
474 474
 						) $collate ";
475 475
 
476
-        /**
477
-         * Filter the SQL query that creates/updates the post_detail DB table structure.
478
-         *
479
-         * @since 1.0.0
480
-         * @param string $sql The SQL insert query string.
481
-         */
482
-        $post_detail = apply_filters('geodir_before_post_detail_table_create', $post_detail);
476
+		/**
477
+		 * Filter the SQL query that creates/updates the post_detail DB table structure.
478
+		 *
479
+		 * @since 1.0.0
480
+		 * @param string $sql The SQL insert query string.
481
+		 */
482
+		$post_detail = apply_filters('geodir_before_post_detail_table_create', $post_detail);
483 483
 
484
-        dbDelta($post_detail);
484
+		dbDelta($post_detail);
485 485
 
486
-        // alter post_title
487
-        //$wpdb->query("ALTER TABLE ".$wpdb->prefix."geodir_gd_place_detail MODIFY `post_title` text NULL");
486
+		// alter post_title
487
+		//$wpdb->query("ALTER TABLE ".$wpdb->prefix."geodir_gd_place_detail MODIFY `post_title` text NULL");
488 488
 
489
-        // Table for storing place images - these are user defined
489
+		// Table for storing place images - these are user defined
490 490
 
491
-        $attechment_table = "CREATE TABLE " . GEODIR_ATTACHMENT_TABLE . " (
491
+		$attechment_table = "CREATE TABLE " . GEODIR_ATTACHMENT_TABLE . " (
492 492
 						ID int(11) NOT NULL AUTO_INCREMENT,
493 493
 						post_id int(11) NOT NULL,
494 494
 						user_id int(11) DEFAULT NULL,
@@ -504,18 +504,18 @@  discard block
 block discarded – undo
504 504
 						PRIMARY KEY  (ID)
505 505
 						) $collate ";
506 506
 
507
-        /**
508
-         * Filter the SQL query that creates/updates the attachments DB table structure.
509
-         *
510
-         * @since 1.0.0
511
-         * @param string $sql The SQL insert query string.
512
-         */
513
-        $attechment_table = apply_filters('geodir_before_attachment_table_create', $attechment_table);
507
+		/**
508
+		 * Filter the SQL query that creates/updates the attachments DB table structure.
509
+		 *
510
+		 * @since 1.0.0
511
+		 * @param string $sql The SQL insert query string.
512
+		 */
513
+		$attechment_table = apply_filters('geodir_before_attachment_table_create', $attechment_table);
514 514
 
515
-        dbDelta($attechment_table);
515
+		dbDelta($attechment_table);
516 516
 
517 517
 
518
-        $custom_sort_fields_table = "CREATE TABLE " . GEODIR_CUSTOM_SORT_FIELDS_TABLE . " (
518
+		$custom_sort_fields_table = "CREATE TABLE " . GEODIR_CUSTOM_SORT_FIELDS_TABLE . " (
519 519
 			id int(11) NOT NULL AUTO_INCREMENT,
520 520
 			post_type varchar(255) NOT NULL,
521 521
 			data_type varchar(255) NOT NULL,
@@ -533,18 +533,18 @@  discard block
 block discarded – undo
533 533
 			PRIMARY KEY  (id)
534 534
 			) $collate ";
535 535
 
536
-        /**
537
-         * Filter the SQL query that creates/updates the custom_sort_fields DB table structure.
538
-         *
539
-         * @since 1.0.0
540
-         * @param string $sql The SQL insert query string.
541
-         */
542
-        $custom_sort_fields_table = apply_filters('geodir_before_sort_fields_table_create', $custom_sort_fields_table);
536
+		/**
537
+		 * Filter the SQL query that creates/updates the custom_sort_fields DB table structure.
538
+		 *
539
+		 * @since 1.0.0
540
+		 * @param string $sql The SQL insert query string.
541
+		 */
542
+		$custom_sort_fields_table = apply_filters('geodir_before_sort_fields_table_create', $custom_sort_fields_table);
543 543
 
544
-        dbDelta($custom_sort_fields_table);
544
+		dbDelta($custom_sort_fields_table);
545 545
 
546 546
 
547
-            $review_table = "CREATE TABLE " . GEODIR_REVIEW_TABLE . " (
547
+			$review_table = "CREATE TABLE " . GEODIR_REVIEW_TABLE . " (
548 548
 			id int(11) NOT NULL AUTO_INCREMENT,
549 549
 			post_id int(11) DEFAULT NULL,
550 550
 			post_title varchar( 255 ) NULL DEFAULT NULL,
@@ -568,191 +568,191 @@  discard block
 block discarded – undo
568 568
 			PRIMARY KEY  (id)
569 569
 			) $collate  ";
570 570
 
571
-            /**
572
-             * Filter the SQL query that creates the review DB table structure.
573
-             *
574
-             * @since 1.0.0
575
-             * @param string $sql The SQL insert query string.
576
-             */
577
-            $review_table = apply_filters('geodir_before_review_table_create', $review_table);
578
-            dbDelta($review_table);
571
+			/**
572
+			 * Filter the SQL query that creates the review DB table structure.
573
+			 *
574
+			 * @since 1.0.0
575
+			 * @param string $sql The SQL insert query string.
576
+			 */
577
+			$review_table = apply_filters('geodir_before_review_table_create', $review_table);
578
+			dbDelta($review_table);
579 579
 
580 580
 
581 581
 
582
-        // Alter terms table
583
-        $term_icon_column = $wpdb->get_var("SHOW COLUMNS FROM $wpdb->terms where field='term_icon'");
584
-        if (!$term_icon_column) {
585
-            $wpdb->query("ALTER TABLE $wpdb->terms ADD `term_icon` TEXT NULL DEFAULT NULL");
586
-        }
582
+		// Alter terms table
583
+		$term_icon_column = $wpdb->get_var("SHOW COLUMNS FROM $wpdb->terms where field='term_icon'");
584
+		if (!$term_icon_column) {
585
+			$wpdb->query("ALTER TABLE $wpdb->terms ADD `term_icon` TEXT NULL DEFAULT NULL");
586
+		}
587 587
 
588
-        //require_once(geodir_plugin_path() . '/upgrade.php');
588
+		//require_once(geodir_plugin_path() . '/upgrade.php');
589 589
 
590 590
 
591
-    }
591
+	}
592 592
 } // END MAIN FUNCTION geodir_tables_install
593 593
 
594 594
 if (!function_exists('geodir_create_default_fields')) {
595
-    /**
596
-     * Inserts default custom fields table data into database.
597
-     *
598
-     * @since 1.0.0
599
-     * @package GeoDirectory
600
-     */
601
-    function geodir_create_default_fields()
602
-    {
603
-
604
-        $fields = array();
605
-
606
-        $fields[] = array('listing_type' => 'gd_place',
607
-            'data_type' => 'VARCHAR',
608
-            'field_type' => 'taxonomy',
609
-            'admin_title' => __('Category', 'geodirectory'),
610
-            'admin_desc' => __('SELECT listing category FROM here. SELECT at least one CATEGORY', 'geodirectory'),
611
-            'site_title' => __('Category', 'geodirectory'),
612
-            'htmlvar_name' => 'gd_placecategory',
613
-            'default_value' => '',
614
-            'is_default' => '1',
615
-            'is_admin' => '1',
616
-            'is_required' => '1',
617
-            'clabels' => __('Category', 'geodirectory'));
618
-
619
-        $fields[] = array('listing_type' => 'gd_place',
620
-            'data_type' => 'VARCHAR',
621
-            'field_type' => 'address',
622
-            'admin_title' => __('Address', 'geodirectory'),
623
-            'admin_desc' => ADDRESS_MSG,
624
-            'site_title' => __('Address', 'geodirectory'),
625
-            'htmlvar_name' => 'post',
626
-            'default_value' => '',
627
-            'option_values' => '',
628
-            'is_default' => '1',
629
-            'is_admin' => '1',
630
-            'is_required' => '1',
631
-            'required_msg' => __('Address fields are required', 'geodirectory'),
632
-            'clabels' => __('Address', 'geodirectory'),
633
-            'extra' => array('show_city' => 1, 'city_lable' => __('City', 'geodirectory'),
634
-                'show_region' => 1, 'region_lable' => __('Region', 'geodirectory'),
635
-                'show_country' => 1, 'country_lable' => __('Country', 'geodirectory'),
636
-                'show_zip' => 1, 'zip_lable' => __('Zip/Post Code', 'geodirectory'),
637
-                'show_map' => 1, 'map_lable' => __('Set Address On Map', 'geodirectory'),
638
-                'show_mapview' => 1, 'mapview_lable' => __('Select Map View', 'geodirectory'),
639
-                'show_mapzoom' => 1, 'mapzoom_lable' => 'hidden',
640
-                'show_latlng' => 1));
641
-
642
-        $fields[] = array('listing_type' => 'gd_place',
643
-            'data_type' => 'VARCHAR',
644
-            'field_type' => 'text',
645
-            'admin_title' => __('Time', 'geodirectory'),
646
-            'admin_desc' => __('Enter Business or Listing Timing Information.<br/>eg. : 10.00 am to 6 pm every day', 'geodirectory'),
647
-            'site_title' => __('Time', 'geodirectory'),
648
-            'htmlvar_name' => 'timing',
649
-            'default_value' => '',
650
-            'option_values' => '',
651
-            'is_default' => '1',
652
-            'is_admin' => '1',
653
-            'clabels' => __('Time', 'geodirectory'));
654
-
655
-        $fields[] = array('listing_type' => 'gd_place',
656
-            'data_type' => 'VARCHAR',
657
-            'field_type' => 'phone',
658
-            'admin_title' => __('Phone', 'geodirectory'),
659
-            'admin_desc' => __('You can enter phone number,cell phone number etc.', 'geodirectory'),
660
-            'site_title' => __('Phone', 'geodirectory'),
661
-            'htmlvar_name' => 'contact',
662
-            'default_value' => '',
663
-            'option_values' => '',
664
-            'is_default' => '1',
665
-            'is_admin' => '1',
666
-            'clabels' => __('Phone', 'geodirectory'));
667
-
668
-        $fields[] = array('listing_type' => 'gd_place',
669
-            'data_type' => 'VARCHAR',
670
-            'field_type' => 'email',
671
-            'admin_title' => __('Email', 'geodirectory'),
672
-            'admin_desc' => __('You can enter your business or listing email.', 'geodirectory'),
673
-            'site_title' => __('Email', 'geodirectory'),
674
-            'htmlvar_name' => 'email',
675
-            'default_value' => '',
676
-            'option_values' => '',
677
-            'is_default' => '1',
678
-            'is_admin' => '1',
679
-            'clabels' => __('Email', 'geodirectory'));
680
-
681
-        $fields[] = array('listing_type' => 'gd_place',
682
-            'data_type' => 'VARCHAR',
683
-            'field_type' => 'url',
684
-            'admin_title' => __('Website', 'geodirectory'),
685
-            'admin_desc' => __('You can enter your business or listing website.', 'geodirectory'),
686
-            'site_title' => __('Website', 'geodirectory'),
687
-            'htmlvar_name' => 'website',
688
-            'default_value' => '',
689
-            'option_values' => '',
690
-            'is_default' => '1',
691
-            'is_admin' => '1',
692
-            'clabels' => __('Website', 'geodirectory'));
693
-
694
-        $fields[] = array('listing_type' => 'gd_place',
695
-            'data_type' => 'VARCHAR',
696
-            'field_type' => 'url',
697
-            'admin_title' => __('Twitter', 'geodirectory'),
698
-            'admin_desc' => __('You can enter your business or listing twitter url.', 'geodirectory'),
699
-            'site_title' => __('Twitter', 'geodirectory'),
700
-            'htmlvar_name' => 'twitter',
701
-            'default_value' => '',
702
-            'option_values' => '',
703
-            'is_default' => '1',
704
-            'is_admin' => '1',
705
-            'clabels' => __('Twitter', 'geodirectory'));
706
-
707
-        $fields[] = array('listing_type' => 'gd_place',
708
-            'data_type' => 'VARCHAR',
709
-            'field_type' => 'url',
710
-            'admin_title' => __('Facebook', 'geodirectory'),
711
-            'admin_desc' => __('You can enter your business or listing facebook url.', 'geodirectory'),
712
-            'site_title' => __('Facebook', 'geodirectory'),
713
-            'htmlvar_name' => 'facebook',
714
-            'default_value' => '',
715
-            'option_values' => '',
716
-            'is_default' => '1',
717
-            'is_admin' => '1',
718
-            'clabels' => __('Facebook', 'geodirectory'));
719
-
720
-        $fields[] = array('listing_type' => 'gd_place',
721
-            'data_type' => 'TEXT',
722
-            'field_type' => 'textarea',
723
-            'admin_title' => __('Video', 'geodirectory'),
724
-            'admin_desc' => __('Add video code here, YouTube etc.', 'geodirectory'),
725
-            'site_title' => __('Video', 'geodirectory'),
726
-            'htmlvar_name' => 'video',
727
-            'default_value' => '',
728
-            'option_values' => '',
729
-            'is_default' => '0',
730
-            'is_admin' => '1',
731
-            'clabels' => __('Video', 'geodirectory'));
732
-
733
-        $fields[] = array('listing_type' => 'gd_place',
734
-            'data_type' => 'TEXT',
735
-            'field_type' => 'textarea',
736
-            'admin_title' => __('Special Offers', 'geodirectory'),
737
-            'admin_desc' => __('Note: List out any special offers (optional)', 'geodirectory'),
738
-            'site_title' => __('Special Offers', 'geodirectory'),
739
-            'htmlvar_name' => 'special_offers',
740
-            'default_value' => '',
741
-            'option_values' => '',
742
-            'is_default' => '0',
743
-            'is_admin' => '1',
744
-            'clabels' => __('Special Offers', 'geodirectory'));
745
-
746
-        /**
747
-         * Filter the array of default custom fields DB table data.
748
-         *
749
-         * @since 1.0.0
750
-         * @param string $fields The default custom fields as an array.
751
-         */
752
-        $fields = apply_filters('geodir_before_default_custom_fields_saved', $fields);
753
-        foreach ($fields as $field_index => $field) {
754
-            geodir_custom_field_save($field);
755
-
756
-        }
757
-    }
595
+	/**
596
+	 * Inserts default custom fields table data into database.
597
+	 *
598
+	 * @since 1.0.0
599
+	 * @package GeoDirectory
600
+	 */
601
+	function geodir_create_default_fields()
602
+	{
603
+
604
+		$fields = array();
605
+
606
+		$fields[] = array('listing_type' => 'gd_place',
607
+			'data_type' => 'VARCHAR',
608
+			'field_type' => 'taxonomy',
609
+			'admin_title' => __('Category', 'geodirectory'),
610
+			'admin_desc' => __('SELECT listing category FROM here. SELECT at least one CATEGORY', 'geodirectory'),
611
+			'site_title' => __('Category', 'geodirectory'),
612
+			'htmlvar_name' => 'gd_placecategory',
613
+			'default_value' => '',
614
+			'is_default' => '1',
615
+			'is_admin' => '1',
616
+			'is_required' => '1',
617
+			'clabels' => __('Category', 'geodirectory'));
618
+
619
+		$fields[] = array('listing_type' => 'gd_place',
620
+			'data_type' => 'VARCHAR',
621
+			'field_type' => 'address',
622
+			'admin_title' => __('Address', 'geodirectory'),
623
+			'admin_desc' => ADDRESS_MSG,
624
+			'site_title' => __('Address', 'geodirectory'),
625
+			'htmlvar_name' => 'post',
626
+			'default_value' => '',
627
+			'option_values' => '',
628
+			'is_default' => '1',
629
+			'is_admin' => '1',
630
+			'is_required' => '1',
631
+			'required_msg' => __('Address fields are required', 'geodirectory'),
632
+			'clabels' => __('Address', 'geodirectory'),
633
+			'extra' => array('show_city' => 1, 'city_lable' => __('City', 'geodirectory'),
634
+				'show_region' => 1, 'region_lable' => __('Region', 'geodirectory'),
635
+				'show_country' => 1, 'country_lable' => __('Country', 'geodirectory'),
636
+				'show_zip' => 1, 'zip_lable' => __('Zip/Post Code', 'geodirectory'),
637
+				'show_map' => 1, 'map_lable' => __('Set Address On Map', 'geodirectory'),
638
+				'show_mapview' => 1, 'mapview_lable' => __('Select Map View', 'geodirectory'),
639
+				'show_mapzoom' => 1, 'mapzoom_lable' => 'hidden',
640
+				'show_latlng' => 1));
641
+
642
+		$fields[] = array('listing_type' => 'gd_place',
643
+			'data_type' => 'VARCHAR',
644
+			'field_type' => 'text',
645
+			'admin_title' => __('Time', 'geodirectory'),
646
+			'admin_desc' => __('Enter Business or Listing Timing Information.<br/>eg. : 10.00 am to 6 pm every day', 'geodirectory'),
647
+			'site_title' => __('Time', 'geodirectory'),
648
+			'htmlvar_name' => 'timing',
649
+			'default_value' => '',
650
+			'option_values' => '',
651
+			'is_default' => '1',
652
+			'is_admin' => '1',
653
+			'clabels' => __('Time', 'geodirectory'));
654
+
655
+		$fields[] = array('listing_type' => 'gd_place',
656
+			'data_type' => 'VARCHAR',
657
+			'field_type' => 'phone',
658
+			'admin_title' => __('Phone', 'geodirectory'),
659
+			'admin_desc' => __('You can enter phone number,cell phone number etc.', 'geodirectory'),
660
+			'site_title' => __('Phone', 'geodirectory'),
661
+			'htmlvar_name' => 'contact',
662
+			'default_value' => '',
663
+			'option_values' => '',
664
+			'is_default' => '1',
665
+			'is_admin' => '1',
666
+			'clabels' => __('Phone', 'geodirectory'));
667
+
668
+		$fields[] = array('listing_type' => 'gd_place',
669
+			'data_type' => 'VARCHAR',
670
+			'field_type' => 'email',
671
+			'admin_title' => __('Email', 'geodirectory'),
672
+			'admin_desc' => __('You can enter your business or listing email.', 'geodirectory'),
673
+			'site_title' => __('Email', 'geodirectory'),
674
+			'htmlvar_name' => 'email',
675
+			'default_value' => '',
676
+			'option_values' => '',
677
+			'is_default' => '1',
678
+			'is_admin' => '1',
679
+			'clabels' => __('Email', 'geodirectory'));
680
+
681
+		$fields[] = array('listing_type' => 'gd_place',
682
+			'data_type' => 'VARCHAR',
683
+			'field_type' => 'url',
684
+			'admin_title' => __('Website', 'geodirectory'),
685
+			'admin_desc' => __('You can enter your business or listing website.', 'geodirectory'),
686
+			'site_title' => __('Website', 'geodirectory'),
687
+			'htmlvar_name' => 'website',
688
+			'default_value' => '',
689
+			'option_values' => '',
690
+			'is_default' => '1',
691
+			'is_admin' => '1',
692
+			'clabels' => __('Website', 'geodirectory'));
693
+
694
+		$fields[] = array('listing_type' => 'gd_place',
695
+			'data_type' => 'VARCHAR',
696
+			'field_type' => 'url',
697
+			'admin_title' => __('Twitter', 'geodirectory'),
698
+			'admin_desc' => __('You can enter your business or listing twitter url.', 'geodirectory'),
699
+			'site_title' => __('Twitter', 'geodirectory'),
700
+			'htmlvar_name' => 'twitter',
701
+			'default_value' => '',
702
+			'option_values' => '',
703
+			'is_default' => '1',
704
+			'is_admin' => '1',
705
+			'clabels' => __('Twitter', 'geodirectory'));
706
+
707
+		$fields[] = array('listing_type' => 'gd_place',
708
+			'data_type' => 'VARCHAR',
709
+			'field_type' => 'url',
710
+			'admin_title' => __('Facebook', 'geodirectory'),
711
+			'admin_desc' => __('You can enter your business or listing facebook url.', 'geodirectory'),
712
+			'site_title' => __('Facebook', 'geodirectory'),
713
+			'htmlvar_name' => 'facebook',
714
+			'default_value' => '',
715
+			'option_values' => '',
716
+			'is_default' => '1',
717
+			'is_admin' => '1',
718
+			'clabels' => __('Facebook', 'geodirectory'));
719
+
720
+		$fields[] = array('listing_type' => 'gd_place',
721
+			'data_type' => 'TEXT',
722
+			'field_type' => 'textarea',
723
+			'admin_title' => __('Video', 'geodirectory'),
724
+			'admin_desc' => __('Add video code here, YouTube etc.', 'geodirectory'),
725
+			'site_title' => __('Video', 'geodirectory'),
726
+			'htmlvar_name' => 'video',
727
+			'default_value' => '',
728
+			'option_values' => '',
729
+			'is_default' => '0',
730
+			'is_admin' => '1',
731
+			'clabels' => __('Video', 'geodirectory'));
732
+
733
+		$fields[] = array('listing_type' => 'gd_place',
734
+			'data_type' => 'TEXT',
735
+			'field_type' => 'textarea',
736
+			'admin_title' => __('Special Offers', 'geodirectory'),
737
+			'admin_desc' => __('Note: List out any special offers (optional)', 'geodirectory'),
738
+			'site_title' => __('Special Offers', 'geodirectory'),
739
+			'htmlvar_name' => 'special_offers',
740
+			'default_value' => '',
741
+			'option_values' => '',
742
+			'is_default' => '0',
743
+			'is_admin' => '1',
744
+			'clabels' => __('Special Offers', 'geodirectory'));
745
+
746
+		/**
747
+		 * Filter the array of default custom fields DB table data.
748
+		 *
749
+		 * @since 1.0.0
750
+		 * @param string $fields The default custom fields as an array.
751
+		 */
752
+		$fields = apply_filters('geodir_before_default_custom_fields_saved', $fields);
753
+		foreach ($fields as $field_index => $field) {
754
+			geodir_custom_field_save($field);
755
+
756
+		}
757
+	}
758 758
 }
759 759
\ No newline at end of file
Please login to merge, or discard this patch.
geodirectory-admin/geodir_admin_ajax.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
geodirectory-admin/option-pages/design_settings_array.php 1 patch
Indentation   +902 added lines, -902 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Design tab settings.
4
- *
5
- * @since 1.0.0
6
- * @package GeoDirectory
7
- * @global array $geodir_settings Geodirectory settings array.
8
- */
3
+	 * Design tab settings.
4
+	 *
5
+	 * @since 1.0.0
6
+	 * @package GeoDirectory
7
+	 * @global array $geodir_settings Geodirectory settings array.
8
+	 */
9 9
 global $geodir_settings;
10 10
 
11 11
 
@@ -17,14 +17,14 @@  discard block
 block discarded – undo
17 17
  */
18 18
 function geodir_post_type_setting_fun()
19 19
 {
20
-    $post_type_arr = array();
20
+	$post_type_arr = array();
21 21
 
22
-    $post_types = geodir_get_posttypes('object');
22
+	$post_types = geodir_get_posttypes('object');
23 23
 
24
-    foreach ($post_types as $key => $post_types_obj) {
25
-        $post_type_arr[$key] = $post_types_obj->labels->singular_name;
26
-    }
27
-    return $post_type_arr;
24
+	foreach ($post_types as $key => $post_types_obj) {
25
+		$post_type_arr[$key] = $post_types_obj->labels->singular_name;
26
+	}
27
+	return $post_type_arr;
28 28
 }
29 29
 
30 30
 /**
@@ -35,548 +35,548 @@  discard block
 block discarded – undo
35 35
  */
36 36
 function geodir_theme_location_setting_fun()
37 37
 {
38
-    $post_type_arr = array();
39
-    $geodir_all_nav_locations = get_registered_nav_menus();
40
-    $geodir_active_nav_locations = get_nav_menu_locations();
41
-    if (!empty($geodir_active_nav_locations) && is_array($geodir_active_nav_locations)) {
42
-        foreach ($geodir_active_nav_locations as $key => $theme_location) {
43
-            if (!empty($geodir_all_nav_locations) && is_array($geodir_all_nav_locations) && array_key_exists($key, $geodir_all_nav_locations))
44
-                $post_type_arr[$key] = $geodir_all_nav_locations[$key];
45
-        }
46
-    }
47
-
48
-    return $post_type_arr;
38
+	$post_type_arr = array();
39
+	$geodir_all_nav_locations = get_registered_nav_menus();
40
+	$geodir_active_nav_locations = get_nav_menu_locations();
41
+	if (!empty($geodir_active_nav_locations) && is_array($geodir_active_nav_locations)) {
42
+		foreach ($geodir_active_nav_locations as $key => $theme_location) {
43
+			if (!empty($geodir_all_nav_locations) && is_array($geodir_all_nav_locations) && array_key_exists($key, $geodir_all_nav_locations))
44
+				$post_type_arr[$key] = $geodir_all_nav_locations[$key];
45
+		}
46
+	}
47
+
48
+	return $post_type_arr;
49 49
 }
50 50
 /**
51
- * Filter GD design settings array.
52
- *
53
- * @since 1.0.0
54
- * @package GeoDirectory
55
- */
51
+	 * Filter GD design settings array.
52
+	 *
53
+	 * @since 1.0.0
54
+	 * @package GeoDirectory
55
+	 */
56 56
 $geodir_settings['design_settings'] = apply_filters('geodir_design_settings', array(
57 57
 
58
-    /* Home Layout Settings start */
59
-    array('name' => __('Home', 'geodirectory'), 'type' => 'title', 'desc' => 'Setting to set home page layout', 'id' => 'home_page_settings '),
58
+	/* Home Layout Settings start */
59
+	array('name' => __('Home', 'geodirectory'), 'type' => 'title', 'desc' => 'Setting to set home page layout', 'id' => 'home_page_settings '),
60 60
 
61 61
 
62
-    array('name' => __('Home Top Section Settings', 'geodirectory'),
63
-        'type' => 'sectionstart',
64
-        'desc' => '',
65
-        'id' => 'geodir_home_top_section'),
62
+	array('name' => __('Home Top Section Settings', 'geodirectory'),
63
+		'type' => 'sectionstart',
64
+		'desc' => '',
65
+		'id' => 'geodir_home_top_section'),
66 66
 
67
-    array(
68
-        'name' => __('Geodirectory home page', 'geodirectory'),
69
-        'desc' => __('Set geodirectory home page as your home. <b style="color:red;">This setting has been depreciated and will be removed in the next version, instead please set the GD home page in GD>Permalinks and then set this page to the front page under Settings>Reading>Front Page</b>', 'geodirectory'),
70
-        'id' => 'geodir_set_as_home',
71
-        'type' => 'checkbox',
72
-        'std' => '0' // Default value to show home top section
73
-    ),
67
+	array(
68
+		'name' => __('Geodirectory home page', 'geodirectory'),
69
+		'desc' => __('Set geodirectory home page as your home. <b style="color:red;">This setting has been depreciated and will be removed in the next version, instead please set the GD home page in GD>Permalinks and then set this page to the front page under Settings>Reading>Front Page</b>', 'geodirectory'),
70
+		'id' => 'geodir_set_as_home',
71
+		'type' => 'checkbox',
72
+		'std' => '0' // Default value to show home top section
73
+	),
74 74
 
75
-    array(
76
-        'name' => __('Home top section', 'geodirectory'),
77
-        'desc' => __('Show the top section of home page', 'geodirectory'),
78
-        'id' => 'geodir_show_home_top_section',
79
-        'type' => 'checkbox',
80
-        'std' => '1' // Default value to show home top section
81
-    ),
75
+	array(
76
+		'name' => __('Home top section', 'geodirectory'),
77
+		'desc' => __('Show the top section of home page', 'geodirectory'),
78
+		'id' => 'geodir_show_home_top_section',
79
+		'type' => 'checkbox',
80
+		'std' => '1' // Default value to show home top section
81
+	),
82 82
 
83 83
 
84
-    array('type' => 'sectionend', 'id' => 'geodir_home_top_section'),
84
+	array('type' => 'sectionend', 'id' => 'geodir_home_top_section'),
85 85
 
86 86
 
87
-    array('name' => __('Home Page Layout Settings', 'geodirectory'),
88
-        'type' => 'sectionstart',
89
-        'desc' => '',
90
-        'id' => 'geodir_home_layout'),
87
+	array('name' => __('Home Page Layout Settings', 'geodirectory'),
88
+		'type' => 'sectionstart',
89
+		'desc' => '',
90
+		'id' => 'geodir_home_layout'),
91 91
 
92
-    array(
93
-        'name' => __('Home right section', 'geodirectory'),
94
-        'desc' => __('Show the right section of home page', 'geodirectory'),
95
-        'id' => 'geodir_show_home_right_section',
96
-        'type' => 'checkbox',
97
-        'std' => '1' // Default value to show home top section
98
-    ),
92
+	array(
93
+		'name' => __('Home right section', 'geodirectory'),
94
+		'desc' => __('Show the right section of home page', 'geodirectory'),
95
+		'id' => 'geodir_show_home_right_section',
96
+		'type' => 'checkbox',
97
+		'std' => '1' // Default value to show home top section
98
+	),
99 99
 
100
-    array(
101
-        'name' => __('Width of home right section', 'geodirectory'),
102
-        'desc' => __('Enter the width of right section of home page in %', 'geodirectory'),
103
-        'id' => 'geodir_width_home_right_section',
104
-        'type' => 'text',
105
-        'css' => 'min-width:300px;',
106
-        'std' => '30' // Default value to show home top section
107
-    ),
100
+	array(
101
+		'name' => __('Width of home right section', 'geodirectory'),
102
+		'desc' => __('Enter the width of right section of home page in %', 'geodirectory'),
103
+		'id' => 'geodir_width_home_right_section',
104
+		'type' => 'text',
105
+		'css' => 'min-width:300px;',
106
+		'std' => '30' // Default value to show home top section
107
+	),
108 108
 
109
-    array(
110
-        'name' => __('Home content section', 'geodirectory'),
111
-        'desc' => __('Show the content section of home page', 'geodirectory'),
112
-        'id' => 'geodir_show_home_contant_section',
113
-        'type' => 'checkbox',
114
-        'std' => '1' // Default value to show home top section
115
-    ),
109
+	array(
110
+		'name' => __('Home content section', 'geodirectory'),
111
+		'desc' => __('Show the content section of home page', 'geodirectory'),
112
+		'id' => 'geodir_show_home_contant_section',
113
+		'type' => 'checkbox',
114
+		'std' => '1' // Default value to show home top section
115
+	),
116 116
 
117
-    array(
118
-        'name' => __('Width of home content section', 'geodirectory'),
119
-        'desc' => __('Enter the width of content section of home page in %', 'geodirectory'),
120
-        'id' => 'geodir_width_home_contant_section',
121
-        'type' => 'text',
122
-        'css' => 'min-width:300px;',
123
-        'std' => '63' // Default value to show home top section
124
-    ),
117
+	array(
118
+		'name' => __('Width of home content section', 'geodirectory'),
119
+		'desc' => __('Enter the width of content section of home page in %', 'geodirectory'),
120
+		'id' => 'geodir_width_home_contant_section',
121
+		'type' => 'text',
122
+		'css' => 'min-width:300px;',
123
+		'std' => '63' // Default value to show home top section
124
+	),
125 125
 
126
-    array(
127
-        'name' => __('Home left section', 'geodirectory'),
128
-        'desc' => __('Show the left section of home page', 'geodirectory'),
129
-        'id' => 'geodir_show_home_left_section',
130
-        'type' => 'checkbox',
131
-        'std' => '0' // Default value to show home top section
132
-    ),
126
+	array(
127
+		'name' => __('Home left section', 'geodirectory'),
128
+		'desc' => __('Show the left section of home page', 'geodirectory'),
129
+		'id' => 'geodir_show_home_left_section',
130
+		'type' => 'checkbox',
131
+		'std' => '0' // Default value to show home top section
132
+	),
133 133
 
134
-    array(
135
-        'name' => __('Width of home left section', 'geodirectory'),
136
-        'desc' => __('Enter the width of left section of home page in %', 'geodirectory'),
137
-        'id' => 'geodir_width_home_left_section',
138
-        'type' => 'text',
139
-        'css' => 'min-width:300px;',
140
-        'std' => '30' // Default value to show home top section
141
-    ),
134
+	array(
135
+		'name' => __('Width of home left section', 'geodirectory'),
136
+		'desc' => __('Enter the width of left section of home page in %', 'geodirectory'),
137
+		'id' => 'geodir_width_home_left_section',
138
+		'type' => 'text',
139
+		'css' => 'min-width:300px;',
140
+		'std' => '30' // Default value to show home top section
141
+	),
142 142
 
143
-    array(
144
-        'name' => __('Home bottom section', 'geodirectory'),
145
-        'desc' => __('Show the bottom section of home page', 'geodirectory'),
146
-        'id' => 'geodir_show_home_bottom_section',
147
-        'type' => 'checkbox',
148
-        'std' => '0' // Default value to show home top section
149
-    ),
150
-    array(
151
-        'name' => __('Resize image large size', 'geodirectory'),
152
-        'desc' => sprintf(__('Use default wordpress media image large size ( %s ) for featured image upload. If unchecked then default geodirectory image large size ( 800x800 ) will be used.', 'geodirectory'), get_option('large_size_w') . 'x' . get_option('large_size_h')),
153
-        'id' => 'geodir_use_wp_media_large_size',
154
-        'type' => 'checkbox',
155
-        'std' => '0'
156
-    ),
143
+	array(
144
+		'name' => __('Home bottom section', 'geodirectory'),
145
+		'desc' => __('Show the bottom section of home page', 'geodirectory'),
146
+		'id' => 'geodir_show_home_bottom_section',
147
+		'type' => 'checkbox',
148
+		'std' => '0' // Default value to show home top section
149
+	),
150
+	array(
151
+		'name' => __('Resize image large size', 'geodirectory'),
152
+		'desc' => sprintf(__('Use default wordpress media image large size ( %s ) for featured image upload. If unchecked then default geodirectory image large size ( 800x800 ) will be used.', 'geodirectory'), get_option('large_size_w') . 'x' . get_option('large_size_h')),
153
+		'id' => 'geodir_use_wp_media_large_size',
154
+		'type' => 'checkbox',
155
+		'std' => '0'
156
+	),
157 157
 
158
-    array('type' => 'sectionend', 'id' => 'geodir_home_layout'),
158
+	array('type' => 'sectionend', 'id' => 'geodir_home_layout'),
159 159
 
160 160
 
161
-    /* Home Layout Settings end */
161
+	/* Home Layout Settings end */
162 162
 
163 163
 
164
-    /* Listing Layout Settings end */
164
+	/* Listing Layout Settings end */
165 165
 
166
-    array('name' => __('Listings', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_listing_settings '),
166
+	array('name' => __('Listings', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_listing_settings '),
167 167
 
168 168
 
169
-    array('name' => __('Listing Page Layout Settings', 'geodirectory'),
170
-        'type' => 'sectionstart',
171
-        'desc' => '',
172
-        'id' => 'geodir_listing_layout'),
169
+	array('name' => __('Listing Page Layout Settings', 'geodirectory'),
170
+		'type' => 'sectionstart',
171
+		'desc' => '',
172
+		'id' => 'geodir_listing_layout'),
173 173
 
174
-    array(
175
-        'name' => __('Listing top section', 'geodirectory'),
176
-        'desc' => __('Show the top section of listing page', 'geodirectory'),
177
-        'id' => 'geodir_show_listing_top_section',
178
-        'type' => 'checkbox',
179
-        'std' => '1' // Default value to show home top section
180
-    ),
174
+	array(
175
+		'name' => __('Listing top section', 'geodirectory'),
176
+		'desc' => __('Show the top section of listing page', 'geodirectory'),
177
+		'id' => 'geodir_show_listing_top_section',
178
+		'type' => 'checkbox',
179
+		'std' => '1' // Default value to show home top section
180
+	),
181 181
 
182
-    array(
183
-        'name' => __('Listing right section', 'geodirectory'),
184
-        'desc' => __('Show the right section of listing page', 'geodirectory'),
185
-        'id' => 'geodir_show_listing_right_section',
186
-        'type' => 'checkbox',
187
-        'std' => '1' // Default value to show home top section
188
-    ),
182
+	array(
183
+		'name' => __('Listing right section', 'geodirectory'),
184
+		'desc' => __('Show the right section of listing page', 'geodirectory'),
185
+		'id' => 'geodir_show_listing_right_section',
186
+		'type' => 'checkbox',
187
+		'std' => '1' // Default value to show home top section
188
+	),
189 189
 
190
-    array(
191
-        'name' => __('Width of listing right section', 'geodirectory'),
192
-        'desc' => __('Enter the width of right section of listing page in %', 'geodirectory'),
193
-        'id' => 'geodir_width_listing_right_section',
194
-        'type' => 'text',
195
-        'css' => 'min-width:300px;',
196
-        'std' => '30' // Default value to show home top section
197
-    ),
190
+	array(
191
+		'name' => __('Width of listing right section', 'geodirectory'),
192
+		'desc' => __('Enter the width of right section of listing page in %', 'geodirectory'),
193
+		'id' => 'geodir_width_listing_right_section',
194
+		'type' => 'text',
195
+		'css' => 'min-width:300px;',
196
+		'std' => '30' // Default value to show home top section
197
+	),
198 198
 
199 199
 
200
-    array(
201
-        'name' => __('Listing content section view', 'geodirectory'),
202
-        'desc' => __('Set the listing view of listing page', 'geodirectory'),
203
-        'id' => 'geodir_listing_view',
204
-        'css' => 'min-width:300px;',
205
-        'std' => 'gridview_onehalf',
206
-        'type' => 'select',
207
-        'class' => 'chosen_select',
208
-        'options' => array_unique(array(
209
-            'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
210
-            'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
211
-            'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
212
-            'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
213
-            'listview' => __('List view', 'geodirectory'),
214
-        ))
215
-    ),
200
+	array(
201
+		'name' => __('Listing content section view', 'geodirectory'),
202
+		'desc' => __('Set the listing view of listing page', 'geodirectory'),
203
+		'id' => 'geodir_listing_view',
204
+		'css' => 'min-width:300px;',
205
+		'std' => 'gridview_onehalf',
206
+		'type' => 'select',
207
+		'class' => 'chosen_select',
208
+		'options' => array_unique(array(
209
+			'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
210
+			'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
211
+			'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
212
+			'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
213
+			'listview' => __('List view', 'geodirectory'),
214
+		))
215
+	),
216 216
 
217
-    array(
218
-        'name' => __('Width of listing content section', 'geodirectory'),
219
-        'desc' => __('Enter the width of content section of listing page in %', 'geodirectory'),
220
-        'id' => 'geodir_width_listing_contant_section',
221
-        'type' => 'text',
222
-        'css' => 'min-width:300px;',
223
-        'std' => '63' // Default value to show home top section
224
-    ),
217
+	array(
218
+		'name' => __('Width of listing content section', 'geodirectory'),
219
+		'desc' => __('Enter the width of content section of listing page in %', 'geodirectory'),
220
+		'id' => 'geodir_width_listing_contant_section',
221
+		'type' => 'text',
222
+		'css' => 'min-width:300px;',
223
+		'std' => '63' // Default value to show home top section
224
+	),
225 225
 
226
-    array(
227
-        'name' => __('Listing left section', 'geodirectory'),
228
-        'desc' => __('Show the left section of listing page', 'geodirectory'),
229
-        'id' => 'geodir_show_listing_left_section',
230
-        'type' => 'checkbox',
231
-        'std' => '0' // Default value to show home top section
232
-    ),
226
+	array(
227
+		'name' => __('Listing left section', 'geodirectory'),
228
+		'desc' => __('Show the left section of listing page', 'geodirectory'),
229
+		'id' => 'geodir_show_listing_left_section',
230
+		'type' => 'checkbox',
231
+		'std' => '0' // Default value to show home top section
232
+	),
233 233
 
234
-    array(
235
-        'name' => __('Width of listing left section', 'geodirectory'),
236
-        'desc' => __('Enter the width of left section of listing in %', 'geodirectory'),
237
-        'id' => 'geodir_width_listing_left_section',
238
-        'type' => 'text',
239
-        'css' => 'min-width:300px;',
240
-        'std' => '30' // Default value to show home top section
241
-    ),
234
+	array(
235
+		'name' => __('Width of listing left section', 'geodirectory'),
236
+		'desc' => __('Enter the width of left section of listing in %', 'geodirectory'),
237
+		'id' => 'geodir_width_listing_left_section',
238
+		'type' => 'text',
239
+		'css' => 'min-width:300px;',
240
+		'std' => '30' // Default value to show home top section
241
+	),
242 242
 
243
-    array(
244
-        'name' => __('Listing bottom section', 'geodirectory'),
245
-        'desc' => __('Show the bottom section of listing page', 'geodirectory'),
246
-        'id' => 'geodir_show_listing_bottom_section',
247
-        'type' => 'checkbox',
248
-        'std' => '0' // Default value to show home top section
249
-    ),
243
+	array(
244
+		'name' => __('Listing bottom section', 'geodirectory'),
245
+		'desc' => __('Show the bottom section of listing page', 'geodirectory'),
246
+		'id' => 'geodir_show_listing_bottom_section',
247
+		'type' => 'checkbox',
248
+		'std' => '0' // Default value to show home top section
249
+	),
250 250
 
251
-    array(
252
-        'name' => __('Upload listing no image', 'geodirectory'),
253
-        'desc' => '',
254
-        'id' => 'geodir_listing_no_img',
255
-        'type' => 'file',
256
-        'std' => '0' // Default value to show home top section
257
-    ),
251
+	array(
252
+		'name' => __('Upload listing no image', 'geodirectory'),
253
+		'desc' => '',
254
+		'id' => 'geodir_listing_no_img',
255
+		'type' => 'file',
256
+		'std' => '0' // Default value to show home top section
257
+	),
258 258
 
259
-    array(
260
-        'name' => __('Description word limit', 'geodirectory'),
261
-        'desc' => '',
262
-        'id' => 'geodir_desc_word_limit',
263
-        'type' => 'text',
264
-        'css' => 'min-width:300px;',
265
-        'std' => '50' // Default value to show home top section
266
-    ),
259
+	array(
260
+		'name' => __('Description word limit', 'geodirectory'),
261
+		'desc' => '',
262
+		'id' => 'geodir_desc_word_limit',
263
+		'type' => 'text',
264
+		'css' => 'min-width:300px;',
265
+		'std' => '50' // Default value to show home top section
266
+	),
267 267
 
268
-    array('type' => 'sectionend', 'id' => 'geodir_listing_layout'),
268
+	array('type' => 'sectionend', 'id' => 'geodir_listing_layout'),
269 269
 
270 270
 
271
-    array('name' => __('Listing General Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_listing_gen_settings '),
271
+	array('name' => __('Listing General Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_listing_gen_settings '),
272 272
 
273
-    array(
274
-        'name' => __('New listing default status', 'geodirectory'),
275
-        'desc' => __('Select new listing default status.', 'geodirectory'),
276
-        'tip' => '',
277
-        'id' => 'geodir_new_post_default_status',
278
-        'css' => 'min-width:300px;',
279
-        'std' => 'publish',
280
-        'type' => 'select',
281
-        'class' => 'chosen_select',
282
-        'options' => array_unique(array(
283
-            'publish' => __('publish', 'geodirectory'),
284
-            'draft' => __('draft', 'geodirectory'),
285
-        ))
286
-    ),
273
+	array(
274
+		'name' => __('New listing default status', 'geodirectory'),
275
+		'desc' => __('Select new listing default status.', 'geodirectory'),
276
+		'tip' => '',
277
+		'id' => 'geodir_new_post_default_status',
278
+		'css' => 'min-width:300px;',
279
+		'std' => 'publish',
280
+		'type' => 'select',
281
+		'class' => 'chosen_select',
282
+		'options' => array_unique(array(
283
+			'publish' => __('publish', 'geodirectory'),
284
+			'draft' => __('draft', 'geodirectory'),
285
+		))
286
+	),
287 287
 
288
-    array(
289
-        'name' => __('New listings settings', 'geodirectory'),
290
-        'desc' => __('Enter number of days a listing will appear new.(enter 0 to disable feature)', 'geodirectory'),
291
-        'id' => 'geodir_listing_new_days',
292
-        'type' => 'text',
293
-        'css' => 'min-width:300px;',
294
-        'std' => '30' // Default value for the page title - changed in settings
295
-    ),
288
+	array(
289
+		'name' => __('New listings settings', 'geodirectory'),
290
+		'desc' => __('Enter number of days a listing will appear new.(enter 0 to disable feature)', 'geodirectory'),
291
+		'id' => 'geodir_listing_new_days',
292
+		'type' => 'text',
293
+		'css' => 'min-width:300px;',
294
+		'std' => '30' // Default value for the page title - changed in settings
295
+	),
296 296
 
297
-    array('type' => 'sectionend', 'id' => 'geodir_listing_gen_settings'),
297
+	array('type' => 'sectionend', 'id' => 'geodir_listing_gen_settings'),
298 298
 
299 299
 
300
-    array('name' => __('Add Listing Form Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_add_listing_gen_settings'),
300
+	array('name' => __('Add Listing Form Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_add_listing_gen_settings'),
301 301
 
302
-    array(
303
-        'name' => __('Enable "Accept Terms and Conditions"', 'geodirectory'),
304
-        'desc' => __('Show the "Accept Terms and Conditions" field on add listing.', 'geodirectory'),
305
-        'id' => 'geodir_accept_term_condition',
306
-        'type' => 'checkbox',
307
-        'std' => '1' // Default value to show home top section
308
-    ),
302
+	array(
303
+		'name' => __('Enable "Accept Terms and Conditions"', 'geodirectory'),
304
+		'desc' => __('Show the "Accept Terms and Conditions" field on add listing.', 'geodirectory'),
305
+		'id' => 'geodir_accept_term_condition',
306
+		'type' => 'checkbox',
307
+		'std' => '1' // Default value to show home top section
308
+	),
309 309
 
310 310
 
311
-    array(
312
-        'name' => __('Show description field as editor', 'geodirectory'),
313
-        'desc' => __('Select post types to show advanced editor on add listing page.', 'geodirectory'),
314
-        'tip' => '',
315
-        'id' => 'geodir_tiny_editor_on_add_listing',
316
-        'css' => 'min-width:300px;',
317
-        'std' => array(),
318
-        'type' => 'multiselect',
319
-        'placeholder_text' => __('Select post types', 'geodirectory'),
320
-        'class' => 'chosen_select',
321
-        'options' => array_unique(geodir_post_type_setting_fun())
322
-    ),
311
+	array(
312
+		'name' => __('Show description field as editor', 'geodirectory'),
313
+		'desc' => __('Select post types to show advanced editor on add listing page.', 'geodirectory'),
314
+		'tip' => '',
315
+		'id' => 'geodir_tiny_editor_on_add_listing',
316
+		'css' => 'min-width:300px;',
317
+		'std' => array(),
318
+		'type' => 'multiselect',
319
+		'placeholder_text' => __('Select post types', 'geodirectory'),
320
+		'class' => 'chosen_select',
321
+		'options' => array_unique(geodir_post_type_setting_fun())
322
+	),
323 323
 
324
-    array('type' => 'sectionend', 'id' => 'geodir_add_listing_gen_settings'),
325
-    /* Listing Layout Settings end */
324
+	array('type' => 'sectionend', 'id' => 'geodir_add_listing_gen_settings'),
325
+	/* Listing Layout Settings end */
326 326
 
327 327
 
328
-    /* Search Layout Settings end */
328
+	/* Search Layout Settings end */
329 329
 
330
-    array('name' => __('Search', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_search_settings '),
330
+	array('name' => __('Search', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_search_settings '),
331 331
 
332 332
 
333
-    array('name' => __('Search Page Layout Settings', 'geodirectory'),
334
-        'type' => 'sectionstart',
335
-        'desc' => '',
336
-        'id' => 'geodir_search_layout'),
333
+	array('name' => __('Search Page Layout Settings', 'geodirectory'),
334
+		'type' => 'sectionstart',
335
+		'desc' => '',
336
+		'id' => 'geodir_search_layout'),
337 337
 
338
-    array(
339
-        'name' => __('Search top section', 'geodirectory'),
340
-        'desc' => __('Show the top section of search page', 'geodirectory'),
341
-        'id' => 'geodir_show_search_top_section',
342
-        'type' => 'checkbox',
343
-        'std' => '1' // Default value to show home top section
344
-    ),
338
+	array(
339
+		'name' => __('Search top section', 'geodirectory'),
340
+		'desc' => __('Show the top section of search page', 'geodirectory'),
341
+		'id' => 'geodir_show_search_top_section',
342
+		'type' => 'checkbox',
343
+		'std' => '1' // Default value to show home top section
344
+	),
345 345
 
346
-    array(
347
-        'name' => __('Search right section', 'geodirectory'),
348
-        'desc' => __('Show the right section of search page', 'geodirectory'),
349
-        'id' => 'geodir_show_search_right_section',
350
-        'type' => 'checkbox',
351
-        'std' => '1' // Default value to show home top section
352
-    ),
346
+	array(
347
+		'name' => __('Search right section', 'geodirectory'),
348
+		'desc' => __('Show the right section of search page', 'geodirectory'),
349
+		'id' => 'geodir_show_search_right_section',
350
+		'type' => 'checkbox',
351
+		'std' => '1' // Default value to show home top section
352
+	),
353 353
 
354
-    array(
355
-        'name' => __('Width of search right section', 'geodirectory'),
356
-        'desc' => __('Enter the width of right section of search page in %', 'geodirectory'),
357
-        'id' => 'geodir_width_search_right_section',
358
-        'type' => 'text',
359
-        'css' => 'min-width:300px;',
360
-        'std' => '30' // Default value to show home top section
361
-    ),
354
+	array(
355
+		'name' => __('Width of search right section', 'geodirectory'),
356
+		'desc' => __('Enter the width of right section of search page in %', 'geodirectory'),
357
+		'id' => 'geodir_width_search_right_section',
358
+		'type' => 'text',
359
+		'css' => 'min-width:300px;',
360
+		'std' => '30' // Default value to show home top section
361
+	),
362 362
 
363 363
 
364
-    array(
365
-        'name' => __('Search content section view', 'geodirectory'),
366
-        'desc' => __('Set the listing view of search page', 'geodirectory'),
367
-        'id' => 'geodir_search_view',
368
-        'css' => 'min-width:300px;',
369
-        'std' => 'gridview_onehalf',
370
-        'type' => 'select',
371
-        'class' => 'chosen_select',
372
-        'options' => array_unique(array(
373
-            'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
374
-            'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
375
-            'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
376
-            'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
377
-            'listview' => __('List view', 'geodirectory'),
378
-        ))
379
-    ),
364
+	array(
365
+		'name' => __('Search content section view', 'geodirectory'),
366
+		'desc' => __('Set the listing view of search page', 'geodirectory'),
367
+		'id' => 'geodir_search_view',
368
+		'css' => 'min-width:300px;',
369
+		'std' => 'gridview_onehalf',
370
+		'type' => 'select',
371
+		'class' => 'chosen_select',
372
+		'options' => array_unique(array(
373
+			'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
374
+			'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
375
+			'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
376
+			'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
377
+			'listview' => __('List view', 'geodirectory'),
378
+		))
379
+	),
380 380
 
381
-    array(
382
-        'name' => __('Width of search content section', 'geodirectory'),
383
-        'desc' => __('Enter the width of content section of search page in %', 'geodirectory'),
384
-        'id' => 'geodir_width_search_contant_section',
385
-        'type' => 'text',
386
-        'css' => 'min-width:300px;',
387
-        'std' => '63' // Default value to show home top section
388
-    ),
381
+	array(
382
+		'name' => __('Width of search content section', 'geodirectory'),
383
+		'desc' => __('Enter the width of content section of search page in %', 'geodirectory'),
384
+		'id' => 'geodir_width_search_contant_section',
385
+		'type' => 'text',
386
+		'css' => 'min-width:300px;',
387
+		'std' => '63' // Default value to show home top section
388
+	),
389 389
 
390
-    array(
391
-        'name' => __('Search left section', 'geodirectory'),
392
-        'desc' => __('Show the left section of search page', 'geodirectory'),
393
-        'id' => 'geodir_show_search_left_section',
394
-        'type' => 'checkbox',
395
-        'std' => '0' // Default value to show home top section
396
-    ),
390
+	array(
391
+		'name' => __('Search left section', 'geodirectory'),
392
+		'desc' => __('Show the left section of search page', 'geodirectory'),
393
+		'id' => 'geodir_show_search_left_section',
394
+		'type' => 'checkbox',
395
+		'std' => '0' // Default value to show home top section
396
+	),
397 397
 
398
-    array(
399
-        'name' => __('Width of search left section', 'geodirectory'),
400
-        'desc' => __('Enter the width of left section of search in %', 'geodirectory'),
401
-        'id' => 'geodir_width_search_left_section',
402
-        'type' => 'text',
403
-        'css' => 'min-width:300px;',
404
-        'std' => '30' // Default value to show home top section
405
-    ),
398
+	array(
399
+		'name' => __('Width of search left section', 'geodirectory'),
400
+		'desc' => __('Enter the width of left section of search in %', 'geodirectory'),
401
+		'id' => 'geodir_width_search_left_section',
402
+		'type' => 'text',
403
+		'css' => 'min-width:300px;',
404
+		'std' => '30' // Default value to show home top section
405
+	),
406 406
 
407
-    array(
408
-        'name' => __('Search bottom section', 'geodirectory'),
409
-        'desc' => __('Show the bottom section of search page', 'geodirectory'),
410
-        'id' => 'geodir_show_search_bottom_section',
411
-        'type' => 'checkbox',
412
-        'std' => '0' // Default value to show home top section
413
-    ),
407
+	array(
408
+		'name' => __('Search bottom section', 'geodirectory'),
409
+		'desc' => __('Show the bottom section of search page', 'geodirectory'),
410
+		'id' => 'geodir_show_search_bottom_section',
411
+		'type' => 'checkbox',
412
+		'std' => '0' // Default value to show home top section
413
+	),
414 414
 	
415 415
 	array(
416
-        'name' => __('Show advanced pagination details', 'geodirectory'),
417
-        'desc' => __('This will add extra pagination info like "Showing listings x-y of z" aftre/before pagination.', 'geodirectory'),
418
-        'id' => 'geodir_pagination_advance_info',
419
-        'css' => 'min-width:300px;',
420
-        'std' => '',
421
-        'type' => 'select',
422
-        'class' => 'chosen_select',
423
-        'options' => array(
416
+		'name' => __('Show advanced pagination details', 'geodirectory'),
417
+		'desc' => __('This will add extra pagination info like "Showing listings x-y of z" aftre/before pagination.', 'geodirectory'),
418
+		'id' => 'geodir_pagination_advance_info',
419
+		'css' => 'min-width:300px;',
420
+		'std' => '',
421
+		'type' => 'select',
422
+		'class' => 'chosen_select',
423
+		'options' => array(
424 424
 						'' => __('Never Display', 'geodirectory'),
425 425
 						'after' => __('After Pagination', 'geodirectory'),
426 426
 						'before' => __('Before Pagination', 'geodirectory')
427 427
 					)
428
-    ),
428
+	),
429 429
 
430
-    array('type' => 'sectionend', 'id' => 'geodir_search_layout'),
430
+	array('type' => 'sectionend', 'id' => 'geodir_search_layout'),
431 431
 
432 432
 
433
-    array('name' => __('Search form default text settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_search_form_default_text_settings'),
433
+	array('name' => __('Search form default text settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_search_form_default_text_settings'),
434 434
 
435
-    array(
436
-        'name' => __('Search field default value', 'geodirectory'),
437
-        'desc' => __('Show the search text box \'placeholder\' value on search form.', 'geodirectory'),
438
-        'id' => 'geodir_search_field_default_text',
439
-        'type' => 'text',
440
-        'css' => 'min-width:300px;',
441
-        'std' => 'Search for' // show on the listing page.
442
-    ),
435
+	array(
436
+		'name' => __('Search field default value', 'geodirectory'),
437
+		'desc' => __('Show the search text box \'placeholder\' value on search form.', 'geodirectory'),
438
+		'id' => 'geodir_search_field_default_text',
439
+		'type' => 'text',
440
+		'css' => 'min-width:300px;',
441
+		'std' => 'Search for' // show on the listing page.
442
+	),
443 443
 
444
-    array(
445
-        'name' => __('Near field default value', 'geodirectory'),
446
-        'desc' => __('Show the near text box \'placeholder\' value on search form.', 'geodirectory'),
447
-        'id' => 'geodir_near_field_default_text',
448
-        'type' => 'text',
449
-        'css' => 'min-width:300px;',
450
-        'std' => 'Near' // show on the listing page.
451
-    ),
444
+	array(
445
+		'name' => __('Near field default value', 'geodirectory'),
446
+		'desc' => __('Show the near text box \'placeholder\' value on search form.', 'geodirectory'),
447
+		'id' => 'geodir_near_field_default_text',
448
+		'type' => 'text',
449
+		'css' => 'min-width:300px;',
450
+		'std' => 'Near' // show on the listing page.
451
+	),
452 452
 
453
-    array(
454
-        'name' => __('Search button label', 'geodirectory'),
455
-        'desc' => __('Show the search button label on search form.', 'geodirectory'),
456
-        'id' => 'geodir_search_button_label',
457
-        'type' => 'text',
458
-        'css' => 'min-width:300px;',
459
-        'std' => 'Search' // show on the listing page.
460
-    ),
453
+	array(
454
+		'name' => __('Search button label', 'geodirectory'),
455
+		'desc' => __('Show the search button label on search form.', 'geodirectory'),
456
+		'id' => 'geodir_search_button_label',
457
+		'type' => 'text',
458
+		'css' => 'min-width:300px;',
459
+		'std' => 'Search' // show on the listing page.
460
+	),
461 461
 
462
-    array('type' => 'sectionend', 'id' => 'geodir_search_form_default_text_settings'),
462
+	array('type' => 'sectionend', 'id' => 'geodir_search_form_default_text_settings'),
463 463
 
464
-    /* Listing Layout Settings end */
464
+	/* Listing Layout Settings end */
465 465
 
466 466
 
467
-    /* Detail Layout Settings end */
467
+	/* Detail Layout Settings end */
468 468
 
469
-    array('name' => __('Detail', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_detail_settings '),
469
+	array('name' => __('Detail', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_detail_settings '),
470 470
 
471
-    array('name' => __('Detail/Single Page Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'detail_page_settings '),
471
+	array('name' => __('Detail/Single Page Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'detail_page_settings '),
472 472
 
473
-    array(
474
-        'name' => __('Detail top section', 'geodirectory'),
475
-        'desc' => __('Show the top section of listing page', 'geodirectory'),
476
-        'id' => 'geodir_show_detail_top_section',
477
-        'type' => 'checkbox',
478
-        'std' => '1' // Default value to show home top section
479
-    ),
473
+	array(
474
+		'name' => __('Detail top section', 'geodirectory'),
475
+		'desc' => __('Show the top section of listing page', 'geodirectory'),
476
+		'id' => 'geodir_show_detail_top_section',
477
+		'type' => 'checkbox',
478
+		'std' => '1' // Default value to show home top section
479
+	),
480 480
 
481
-    array(
482
-        'name' => __('Detail bottom section', 'geodirectory'),
483
-        'desc' => __('Show the bottom section of listing page', 'geodirectory'),
484
-        'id' => 'geodir_show_detail_bottom_section',
485
-        'type' => 'checkbox',
486
-        'std' => '1' // Default value to show home top section
487
-    ),
488
-    array(
489
-        'name' => __('Detail sidebar section on left side', 'geodirectory'),
490
-        'desc' => __('Display detail sidebar section on left side of the detail page', 'geodirectory'),
491
-        'id' => 'geodir_detail_sidebar_left_section',
492
-        'type' => 'checkbox',
493
-        'std' => '0'
494
-    ),
495
-    array(
496
-        'name' => __('Disable GD modal', 'geodirectory'),
497
-        'desc' => __('Disable GD modal that displays slideshow images in popup', 'geodirectory'),
498
-        'id' => 'geodir_disable_gb_modal',
499
-        'type' => 'checkbox',
500
-        'std' => '0'
501
-    ),
502
-    array(
503
-        'name' => __('Disable Tweet, Fb Like, Google+ buttons section', 'geodirectory'),
504
-        'desc' => __('Disable Tweet, Fb Like, Google+ buttons section that displays on Detail page sidebar', 'geodirectory'),
505
-        'id' => 'geodir_disable_tfg_buttons_section',
506
-        'type' => 'checkbox',
507
-        'std' => '0'
508
-    ),
509
-    array(
510
-        'name' => __('Disable share this button section', 'geodirectory'),
511
-        'desc' => __('Disable share this button section that displays on Detail page sidebar', 'geodirectory'),
512
-        'id' => 'geodir_disable_sharethis_button_section',
513
-        'type' => 'checkbox',
514
-        'std' => '0'
515
-    ),
516
-    array(
517
-        'name' => __('Disable Google Analytics section', 'geodirectory'),
518
-        'desc' => __('Disable Google Analytics section that displays on Detail page sidebar', 'geodirectory'),
519
-        'id' => 'geodir_disable_google_analytics_section',
520
-        'type' => 'checkbox',
521
-        'std' => '0'
522
-    ),
523
-    array(
524
-        'name' => __('Disable User Links section', 'geodirectory'),
525
-        'desc' => __('Disable User Links section (Edit post, Favorite etc..) that displays on Detail page sidebar', 'geodirectory'),
526
-        'id' => 'geodir_disable_user_links_section',
527
-        'type' => 'checkbox',
528
-        'std' => '0'
529
-    ),
530
-    array(
531
-        'name' => __('Disable Rating Info section', 'geodirectory'),
532
-        'desc' => __('Disable Rating Info section that displays on Detail page sidebar', 'geodirectory'),
533
-        'id' => 'geodir_disable_rating_info_section',
534
-        'type' => 'checkbox',
535
-        'std' => '0'
536
-    ),
537
-    array(
538
-        'name' => __('Disable Listing Info section', 'geodirectory'),
539
-        'desc' => __('Disable Listing Info section that displays on Detail page sidebar', 'geodirectory'),
540
-        'id' => 'geodir_disable_listing_info_section',
541
-        'type' => 'checkbox',
542
-        'std' => '0'
543
-    ),
481
+	array(
482
+		'name' => __('Detail bottom section', 'geodirectory'),
483
+		'desc' => __('Show the bottom section of listing page', 'geodirectory'),
484
+		'id' => 'geodir_show_detail_bottom_section',
485
+		'type' => 'checkbox',
486
+		'std' => '1' // Default value to show home top section
487
+	),
488
+	array(
489
+		'name' => __('Detail sidebar section on left side', 'geodirectory'),
490
+		'desc' => __('Display detail sidebar section on left side of the detail page', 'geodirectory'),
491
+		'id' => 'geodir_detail_sidebar_left_section',
492
+		'type' => 'checkbox',
493
+		'std' => '0'
494
+	),
495
+	array(
496
+		'name' => __('Disable GD modal', 'geodirectory'),
497
+		'desc' => __('Disable GD modal that displays slideshow images in popup', 'geodirectory'),
498
+		'id' => 'geodir_disable_gb_modal',
499
+		'type' => 'checkbox',
500
+		'std' => '0'
501
+	),
502
+	array(
503
+		'name' => __('Disable Tweet, Fb Like, Google+ buttons section', 'geodirectory'),
504
+		'desc' => __('Disable Tweet, Fb Like, Google+ buttons section that displays on Detail page sidebar', 'geodirectory'),
505
+		'id' => 'geodir_disable_tfg_buttons_section',
506
+		'type' => 'checkbox',
507
+		'std' => '0'
508
+	),
509
+	array(
510
+		'name' => __('Disable share this button section', 'geodirectory'),
511
+		'desc' => __('Disable share this button section that displays on Detail page sidebar', 'geodirectory'),
512
+		'id' => 'geodir_disable_sharethis_button_section',
513
+		'type' => 'checkbox',
514
+		'std' => '0'
515
+	),
516
+	array(
517
+		'name' => __('Disable Google Analytics section', 'geodirectory'),
518
+		'desc' => __('Disable Google Analytics section that displays on Detail page sidebar', 'geodirectory'),
519
+		'id' => 'geodir_disable_google_analytics_section',
520
+		'type' => 'checkbox',
521
+		'std' => '0'
522
+	),
523
+	array(
524
+		'name' => __('Disable User Links section', 'geodirectory'),
525
+		'desc' => __('Disable User Links section (Edit post, Favorite etc..) that displays on Detail page sidebar', 'geodirectory'),
526
+		'id' => 'geodir_disable_user_links_section',
527
+		'type' => 'checkbox',
528
+		'std' => '0'
529
+	),
530
+	array(
531
+		'name' => __('Disable Rating Info section', 'geodirectory'),
532
+		'desc' => __('Disable Rating Info section that displays on Detail page sidebar', 'geodirectory'),
533
+		'id' => 'geodir_disable_rating_info_section',
534
+		'type' => 'checkbox',
535
+		'std' => '0'
536
+	),
537
+	array(
538
+		'name' => __('Disable Listing Info section', 'geodirectory'),
539
+		'desc' => __('Disable Listing Info section that displays on Detail page sidebar', 'geodirectory'),
540
+		'id' => 'geodir_disable_listing_info_section',
541
+		'type' => 'checkbox',
542
+		'std' => '0'
543
+	),
544 544
 
545
-    array('type' => 'sectionend', 'id' => 'detail_page_settings'),
545
+	array('type' => 'sectionend', 'id' => 'detail_page_settings'),
546 546
 
547 547
 
548
-    /* ---------- DETAIL PAGE TAB SETTING START*/
548
+	/* ---------- DETAIL PAGE TAB SETTING START*/
549 549
 
550
-    array('name' => __('Detail Page Tab Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_detail_page_tab_settings '),
550
+	array('name' => __('Detail Page Tab Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_detail_page_tab_settings '),
551 551
 
552
-    array(
553
-        'name' => __('Exclude selected tabs from detail page', 'geodirectory'),
554
-        'desc' => __('Select tabs to exclude from the list of all appearing tabs on detail page.', 'geodirectory'),
555
-        'tip' => '',
556
-        'id' => 'geodir_detail_page_tabs_excluded',
557
-        'css' => 'min-width:300px;',
558
-        'std' => geodir_get_posttypes(),
559
-        'type' => 'multiselect',
560
-        'placeholder_text' => __('Select tabs', 'geodirectory'),
561
-        'class' => 'chosen_select',
562
-        'options' => array_unique(geodir_detail_page_tabs_key_value_array())
563
-    ),
552
+	array(
553
+		'name' => __('Exclude selected tabs from detail page', 'geodirectory'),
554
+		'desc' => __('Select tabs to exclude from the list of all appearing tabs on detail page.', 'geodirectory'),
555
+		'tip' => '',
556
+		'id' => 'geodir_detail_page_tabs_excluded',
557
+		'css' => 'min-width:300px;',
558
+		'std' => geodir_get_posttypes(),
559
+		'type' => 'multiselect',
560
+		'placeholder_text' => __('Select tabs', 'geodirectory'),
561
+		'class' => 'chosen_select',
562
+		'options' => array_unique(geodir_detail_page_tabs_key_value_array())
563
+	),
564 564
 
565 565
 
566
-    array('type' => 'sectionend', 'id' => 'geodir_detail_page_tab_settings'),
567
-    /* ---------- DETAIL PAGE TAB SETTING END*/
566
+	array('type' => 'sectionend', 'id' => 'geodir_detail_page_tab_settings'),
567
+	/* ---------- DETAIL PAGE TAB SETTING END*/
568 568
 
569
-    /* START DEFAULT STAR IMAGE*/
570
-    array('name' => __('Default Rating Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_rating_settings '),
569
+	/* START DEFAULT STAR IMAGE*/
570
+	array('name' => __('Default Rating Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_rating_settings '),
571 571
 
572
-    array(
573
-        'name' => __('Upload default rating star icon', 'geodirectory'),
574
-        'desc' => '',
575
-        'id' => 'geodir_default_rating_star_icon',
576
-        'type' => 'file',
577
-        'std' => '0',
578
-        'value' => geodir_plugin_url() . '/geodirectory-assets/images/stars.png'// Default value to show home top section
579
-    ),
572
+	array(
573
+		'name' => __('Upload default rating star icon', 'geodirectory'),
574
+		'desc' => '',
575
+		'id' => 'geodir_default_rating_star_icon',
576
+		'type' => 'file',
577
+		'std' => '0',
578
+		'value' => geodir_plugin_url() . '/geodirectory-assets/images/stars.png'// Default value to show home top section
579
+	),
580 580
 	array(
581 581
 		'name' => __('Enable Font Awesome', 'geodirectory'),
582 582
 		'desc' => __('When enabled all rating images will be using font awesome rating icons as images.', 'geodirectory' ),
@@ -592,368 +592,368 @@  discard block
 block discarded – undo
592 592
 		'std' => '#757575'
593 593
 	),
594 594
 
595
-    array('type' => 'sectionend', 'id' => 'geodir_detail_page_tab_settings'),
595
+	array('type' => 'sectionend', 'id' => 'geodir_detail_page_tab_settings'),
596 596
 
597
-    /* END DEFAULT STAR IMAGE*/
597
+	/* END DEFAULT STAR IMAGE*/
598 598
 
599
-    /* Detail related post settings start */
599
+	/* Detail related post settings start */
600 600
 
601
-    array('name' => __('Related Post Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'detail_page_related_post_settings '),
601
+	array('name' => __('Related Post Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'detail_page_related_post_settings '),
602 602
 
603
-    array(
604
-        'name' => __('Show related post listing on', 'geodirectory'),
605
-        'desc' => __('Select the post types to display related listing on detail page.', 'geodirectory'),
606
-        'tip' => '',
607
-        'id' => 'geodir_add_related_listing_posttypes',
608
-        'css' => 'min-width:300px;',
609
-        'std' => geodir_get_posttypes(),
610
-        'type' => 'multiselect',
611
-        'placeholder_text' => __('Select post types', 'geodirectory'),
612
-        'class' => 'chosen_select',
613
-        'options' => array_unique(geodir_post_type_setting_fun())
614
-    ),
603
+	array(
604
+		'name' => __('Show related post listing on', 'geodirectory'),
605
+		'desc' => __('Select the post types to display related listing on detail page.', 'geodirectory'),
606
+		'tip' => '',
607
+		'id' => 'geodir_add_related_listing_posttypes',
608
+		'css' => 'min-width:300px;',
609
+		'std' => geodir_get_posttypes(),
610
+		'type' => 'multiselect',
611
+		'placeholder_text' => __('Select post types', 'geodirectory'),
612
+		'class' => 'chosen_select',
613
+		'options' => array_unique(geodir_post_type_setting_fun())
614
+	),
615 615
 
616
-    array(
617
-        'name' => __('Relate to', 'geodirectory'),
618
-        'desc' => __('Set the relation between current post to related posts.', 'geodirectory'),
619
-        'id' => 'geodir_related_post_relate_to',
620
-        'css' => 'min-width:300px;',
621
-        'std' => 'category',
622
-        'type' => 'select',
623
-        'class' => 'chosen_select',
624
-        'options' => array_unique(array(
625
-            'category' => __('Categories', 'geodirectory'),
626
-            'tags' => __('Tags', 'geodirectory'),
627
-        ))
628
-    ),
616
+	array(
617
+		'name' => __('Relate to', 'geodirectory'),
618
+		'desc' => __('Set the relation between current post to related posts.', 'geodirectory'),
619
+		'id' => 'geodir_related_post_relate_to',
620
+		'css' => 'min-width:300px;',
621
+		'std' => 'category',
622
+		'type' => 'select',
623
+		'class' => 'chosen_select',
624
+		'options' => array_unique(array(
625
+			'category' => __('Categories', 'geodirectory'),
626
+			'tags' => __('Tags', 'geodirectory'),
627
+		))
628
+	),
629 629
 
630
-    array(
631
-        'name' => __('Layout', 'geodirectory'),
632
-        'desc' => __('Set the listing view of relate post on detail page', 'geodirectory'),
633
-        'id' => 'geodir_related_post_listing_view',
634
-        'css' => 'min-width:300px;',
635
-        'std' => 'gridview_onehalf',
636
-        'type' => 'select',
637
-        'class' => 'chosen_select',
638
-        'options' => array_unique(array(
639
-            'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
640
-            'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
641
-            'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
642
-            'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
643
-            'listview' => __('List view', 'geodirectory'),
644
-        ))
645
-    ),
630
+	array(
631
+		'name' => __('Layout', 'geodirectory'),
632
+		'desc' => __('Set the listing view of relate post on detail page', 'geodirectory'),
633
+		'id' => 'geodir_related_post_listing_view',
634
+		'css' => 'min-width:300px;',
635
+		'std' => 'gridview_onehalf',
636
+		'type' => 'select',
637
+		'class' => 'chosen_select',
638
+		'options' => array_unique(array(
639
+			'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
640
+			'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
641
+			'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
642
+			'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
643
+			'listview' => __('List view', 'geodirectory'),
644
+		))
645
+	),
646 646
 
647
-    array(
648
-        'name' => __('Sort by', 'geodirectory'),
649
-        'desc' => __('Set the related post listing sort by view', 'geodirectory'),
650
-        'id' => 'geodir_related_post_sortby',
651
-        'css' => 'min-width:300px;',
652
-        'std' => 'latest',
653
-        'type' => 'select',
654
-        'class' => 'chosen_select',
655
-        'options' => array_unique(array(
656
-            'latest' => __('Latest', 'geodirectory'),
657
-            'featured' => __('Featured', 'geodirectory'),
658
-            'high_review' => __('Review', 'geodirectory'),
659
-            'high_rating' => __('Rating', 'geodirectory'),
660
-            'random' => __('Random', 'geodirectory'),
661
-        ))
662
-    ),
647
+	array(
648
+		'name' => __('Sort by', 'geodirectory'),
649
+		'desc' => __('Set the related post listing sort by view', 'geodirectory'),
650
+		'id' => 'geodir_related_post_sortby',
651
+		'css' => 'min-width:300px;',
652
+		'std' => 'latest',
653
+		'type' => 'select',
654
+		'class' => 'chosen_select',
655
+		'options' => array_unique(array(
656
+			'latest' => __('Latest', 'geodirectory'),
657
+			'featured' => __('Featured', 'geodirectory'),
658
+			'high_review' => __('Review', 'geodirectory'),
659
+			'high_rating' => __('Rating', 'geodirectory'),
660
+			'random' => __('Random', 'geodirectory'),
661
+		))
662
+	),
663 663
 
664
-    array(
665
-        'name' => __('Number of posts:', 'geodirectory'),
666
-        'desc' => __('Enter number of posts to display on related posts listing', 'geodirectory'),
667
-        'id' => 'geodir_related_post_count',
668
-        'type' => 'text',
669
-        'css' => 'min-width:300px;',
670
-        'std' => '5' // Default value to show home top section
671
-    ),
664
+	array(
665
+		'name' => __('Number of posts:', 'geodirectory'),
666
+		'desc' => __('Enter number of posts to display on related posts listing', 'geodirectory'),
667
+		'id' => 'geodir_related_post_count',
668
+		'type' => 'text',
669
+		'css' => 'min-width:300px;',
670
+		'std' => '5' // Default value to show home top section
671
+	),
672 672
 
673
-    array(
674
-        'name' => __('Post excerpt', 'geodirectory'),
675
-        'desc' => __('Post content excerpt character count', 'geodirectory'),
676
-        'id' => 'geodir_related_post_excerpt',
677
-        'type' => 'text',
678
-        'css' => 'min-width:300px;',
679
-        'std' => '20' // Default value to show home top section
680
-    ),
673
+	array(
674
+		'name' => __('Post excerpt', 'geodirectory'),
675
+		'desc' => __('Post content excerpt character count', 'geodirectory'),
676
+		'id' => 'geodir_related_post_excerpt',
677
+		'type' => 'text',
678
+		'css' => 'min-width:300px;',
679
+		'std' => '20' // Default value to show home top section
680
+	),
681 681
 
682 682
 
683
-    array('type' => 'sectionend', 'id' => 'detail_page_related_post_settings'),
684
-    /* Detail Layout Settings end */
683
+	array('type' => 'sectionend', 'id' => 'detail_page_related_post_settings'),
684
+	/* Detail Layout Settings end */
685 685
 
686
-    /* Author Layout Settings Start */
686
+	/* Author Layout Settings Start */
687 687
 
688
-    array('name' => __('Author', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_author_settings '),
688
+	array('name' => __('Author', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_author_settings '),
689 689
 
690 690
 
691
-    array('name' => __('Author Page Layout Settings', 'geodirectory'),
692
-        'type' => 'sectionstart',
693
-        'desc' => '',
694
-        'id' => 'geodir_author_layout'),
691
+	array('name' => __('Author Page Layout Settings', 'geodirectory'),
692
+		'type' => 'sectionstart',
693
+		'desc' => '',
694
+		'id' => 'geodir_author_layout'),
695 695
 
696
-    array(
697
-        'name' => __('Author top section', 'geodirectory'),
698
-        'desc' => __('Show the top section of author page', 'geodirectory'),
699
-        'id' => 'geodir_show_author_top_section',
700
-        'type' => 'checkbox',
701
-        'std' => '1' // Default value to show home top section
702
-    ),
696
+	array(
697
+		'name' => __('Author top section', 'geodirectory'),
698
+		'desc' => __('Show the top section of author page', 'geodirectory'),
699
+		'id' => 'geodir_show_author_top_section',
700
+		'type' => 'checkbox',
701
+		'std' => '1' // Default value to show home top section
702
+	),
703 703
 
704
-    array(
705
-        'name' => __('Author right section', 'geodirectory'),
706
-        'desc' => __('Show the right section of author page', 'geodirectory'),
707
-        'id' => 'geodir_show_author_right_section',
708
-        'type' => 'checkbox',
709
-        'std' => '1' // Default value to show home top section
710
-    ),
704
+	array(
705
+		'name' => __('Author right section', 'geodirectory'),
706
+		'desc' => __('Show the right section of author page', 'geodirectory'),
707
+		'id' => 'geodir_show_author_right_section',
708
+		'type' => 'checkbox',
709
+		'std' => '1' // Default value to show home top section
710
+	),
711 711
 
712
-    array(
713
-        'name' => __('Width of author right section', 'geodirectory'),
714
-        'desc' => __('Enter the width of right section of author page in %', 'geodirectory'),
715
-        'id' => 'geodir_width_author_right_section',
716
-        'type' => 'text',
717
-        'css' => 'min-width:300px;',
718
-        'std' => '30' // Default value to show home top section
719
-    ),
712
+	array(
713
+		'name' => __('Width of author right section', 'geodirectory'),
714
+		'desc' => __('Enter the width of right section of author page in %', 'geodirectory'),
715
+		'id' => 'geodir_width_author_right_section',
716
+		'type' => 'text',
717
+		'css' => 'min-width:300px;',
718
+		'std' => '30' // Default value to show home top section
719
+	),
720 720
 
721
-    array(
722
-        'name' => __('Author content section view', 'geodirectory'),
723
-        'desc' => __('Set the listing view of author page', 'geodirectory'),
724
-        'id' => 'geodir_author_view',
725
-        'css' => 'min-width:300px;',
726
-        'std' => 'gridview_onehalf',
727
-        'type' => 'select',
728
-        'class' => 'chosen_select',
729
-        'options' => array_unique(array(
730
-            'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
731
-            'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
732
-            'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
733
-            'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
734
-            'listview' => __('List view', 'geodirectory'),
735
-        ))
736
-    ),
721
+	array(
722
+		'name' => __('Author content section view', 'geodirectory'),
723
+		'desc' => __('Set the listing view of author page', 'geodirectory'),
724
+		'id' => 'geodir_author_view',
725
+		'css' => 'min-width:300px;',
726
+		'std' => 'gridview_onehalf',
727
+		'type' => 'select',
728
+		'class' => 'chosen_select',
729
+		'options' => array_unique(array(
730
+			'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
731
+			'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
732
+			'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
733
+			'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
734
+			'listview' => __('List view', 'geodirectory'),
735
+		))
736
+	),
737 737
 
738
-    array(
739
-        'name' => __('Width of author content section', 'geodirectory'),
740
-        'desc' => __('Enter the width of content section of author page in %', 'geodirectory'),
741
-        'id' => 'geodir_width_author_contant_section',
742
-        'type' => 'text',
743
-        'css' => 'min-width:300px;',
744
-        'std' => '63' // Default value to show home top section
745
-    ),
738
+	array(
739
+		'name' => __('Width of author content section', 'geodirectory'),
740
+		'desc' => __('Enter the width of content section of author page in %', 'geodirectory'),
741
+		'id' => 'geodir_width_author_contant_section',
742
+		'type' => 'text',
743
+		'css' => 'min-width:300px;',
744
+		'std' => '63' // Default value to show home top section
745
+	),
746 746
 
747
-    array(
748
-        'name' => __('Author left section', 'geodirectory'),
749
-        'desc' => __('Show the left section of author page', 'geodirectory'),
750
-        'id' => 'geodir_show_author_left_section',
751
-        'type' => 'checkbox',
752
-        'std' => '0' // Default value to show home top section
753
-    ),
747
+	array(
748
+		'name' => __('Author left section', 'geodirectory'),
749
+		'desc' => __('Show the left section of author page', 'geodirectory'),
750
+		'id' => 'geodir_show_author_left_section',
751
+		'type' => 'checkbox',
752
+		'std' => '0' // Default value to show home top section
753
+	),
754 754
 
755
-    array(
756
-        'name' => __('Width of author left section', 'geodirectory'),
757
-        'desc' => __('Enter the width of left section of home page in %', 'geodirectory'),
758
-        'id' => 'geodir_width_author_left_section',
759
-        'type' => 'text',
760
-        'css' => 'min-width:300px;',
761
-        'std' => '30' // Default value to show home top section
762
-    ),
755
+	array(
756
+		'name' => __('Width of author left section', 'geodirectory'),
757
+		'desc' => __('Enter the width of left section of home page in %', 'geodirectory'),
758
+		'id' => 'geodir_width_author_left_section',
759
+		'type' => 'text',
760
+		'css' => 'min-width:300px;',
761
+		'std' => '30' // Default value to show home top section
762
+	),
763 763
 
764
-    array(
765
-        'name' => __('Author bottom section', 'geodirectory'),
766
-        'desc' => __('Show the bottom section of author page', 'geodirectory'),
767
-        'id' => 'geodir_show_author_bottom_section',
768
-        'type' => 'checkbox',
769
-        'std' => '0' // Default value to show home top section
770
-    ),
764
+	array(
765
+		'name' => __('Author bottom section', 'geodirectory'),
766
+		'desc' => __('Show the bottom section of author page', 'geodirectory'),
767
+		'id' => 'geodir_show_author_bottom_section',
768
+		'type' => 'checkbox',
769
+		'std' => '0' // Default value to show home top section
770
+	),
771 771
 
772 772
 
773
-    array(
774
-        'name' => __('Description word limit', 'geodirectory'),
775
-        'desc' => '',
776
-        'id' => 'geodir_author_desc_word_limit',
777
-        'type' => 'text',
778
-        'css' => 'min-width:300px;',
779
-        'std' => '50' // Default value to show home top section
780
-    ),
773
+	array(
774
+		'name' => __('Description word limit', 'geodirectory'),
775
+		'desc' => '',
776
+		'id' => 'geodir_author_desc_word_limit',
777
+		'type' => 'text',
778
+		'css' => 'min-width:300px;',
779
+		'std' => '50' // Default value to show home top section
780
+	),
781 781
 
782
-    array('type' => 'sectionend', 'id' => 'geodir_author_layout'),
783
-    /* Author Layout Settings end */
782
+	array('type' => 'sectionend', 'id' => 'geodir_author_layout'),
783
+	/* Author Layout Settings end */
784 784
 
785 785
 
786
-    /* Post Type Navigation Settings Start */
787
-    array('name' => __('Navigation', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_navigation_settings'),
786
+	/* Post Type Navigation Settings Start */
787
+	array('name' => __('Navigation', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_navigation_settings'),
788 788
 
789 789
 
790
-    /* Post Type Navigation Settings Start */
790
+	/* Post Type Navigation Settings Start */
791 791
 
792
-    array('name' => __('Navigation Locations', 'geodirectory'),
793
-        'type' => 'sectionstart',
794
-        'desc' => '',
795
-        'id' => 'geodir_navigation_locations'),
792
+	array('name' => __('Navigation Locations', 'geodirectory'),
793
+		'type' => 'sectionstart',
794
+		'desc' => '',
795
+		'id' => 'geodir_navigation_locations'),
796 796
 
797
-    array(
798
-        'name' => __('Show geodirectory navigation in selected menu locations', 'geodirectory'),
799
-        'desc' => '',
800
-        'tip' => '',
801
-        'id' => 'geodir_theme_location_nav',
802
-        'css' => 'min-width:300px;',
803
-        'std' => array(),
804
-        'type' => 'multiselect',
805
-        'placeholder_text' => __('Select menu locations', 'geodirectory'),
806
-        'class' => 'chosen_select',
807
-        'options' => array_unique(geodir_theme_location_setting_fun())
808
-    ),
809
-    array('type' => 'sectionend', 'id' => 'geodir_navigation_options'),
810
-
811
-
812
-    array('name' => __('Navigation Settings', 'geodirectory'),
813
-        'type' => 'sectionstart',
814
-        'desc' => '',
815
-        'id' => 'geodir_navigation_options'),
797
+	array(
798
+		'name' => __('Show geodirectory navigation in selected menu locations', 'geodirectory'),
799
+		'desc' => '',
800
+		'tip' => '',
801
+		'id' => 'geodir_theme_location_nav',
802
+		'css' => 'min-width:300px;',
803
+		'std' => array(),
804
+		'type' => 'multiselect',
805
+		'placeholder_text' => __('Select menu locations', 'geodirectory'),
806
+		'class' => 'chosen_select',
807
+		'options' => array_unique(geodir_theme_location_setting_fun())
808
+	),
809
+	array('type' => 'sectionend', 'id' => 'geodir_navigation_options'),
816 810
 
817 811
 
818
-    array(
819
-        'name' => __('Show add listing navigation in menu', 'geodirectory'),
820
-        'desc' => sprintf(__('Show add listing navigation in main menu? (untick to disable) If you disable this option, none of the add listing link will appear in main navigation.', 'geodirectory')),
821
-        'id' => 'geodir_show_addlisting_nav',
822
-        'std' => '1',
823
-        'type' => 'checkbox'
824
-    ),
812
+	array('name' => __('Navigation Settings', 'geodirectory'),
813
+		'type' => 'sectionstart',
814
+		'desc' => '',
815
+		'id' => 'geodir_navigation_options'),
825 816
 
826
-    array(
827
-        'name' => __('Show listings navigation in menu', 'geodirectory'),
828
-        'desc' => sprintf(__('Show listing navigation in main menu? (untick to disable) If you disable this option, none of the listing link will appear in main navigation.', 'geodirectory')),
829
-        'id' => 'geodir_show_listing_nav',
830
-        'std' => '1',
831
-        'type' => 'checkbox'
832
-    ),
833 817
 
834
-    array('type' => 'sectionend', 'id' => 'geodir_navigation_options'),
818
+	array(
819
+		'name' => __('Show add listing navigation in menu', 'geodirectory'),
820
+		'desc' => sprintf(__('Show add listing navigation in main menu? (untick to disable) If you disable this option, none of the add listing link will appear in main navigation.', 'geodirectory')),
821
+		'id' => 'geodir_show_addlisting_nav',
822
+		'std' => '1',
823
+		'type' => 'checkbox'
824
+	),
835 825
 
826
+	array(
827
+		'name' => __('Show listings navigation in menu', 'geodirectory'),
828
+		'desc' => sprintf(__('Show listing navigation in main menu? (untick to disable) If you disable this option, none of the listing link will appear in main navigation.', 'geodirectory')),
829
+		'id' => 'geodir_show_listing_nav',
830
+		'std' => '1',
831
+		'type' => 'checkbox'
832
+	),
836 833
 
837
-    array('name' => __('Post Type Navigation Settings', 'geodirectory'),
838
-        'type' => 'sectionstart',
839
-        'desc' => '',
840
-        'id' => 'geodir_post_type_navigation_layout'),
841
-    array(
842
-        'name' => __('Show listing link in main navigation', 'geodirectory'),
843
-        'desc' => '',
844
-        'tip' => '',
845
-        'id' => 'geodir_add_posttype_in_main_nav',
846
-        'css' => 'min-width:300px;',
847
-        'std' => array(),
848
-        'type' => 'multiselect',
849
-        'placeholder_text' => __('Select post types', 'geodirectory'),
850
-        'class' => 'chosen_select',
851
-        'options' => array_unique(geodir_post_type_setting_fun())
852
-    ),
834
+	array('type' => 'sectionend', 'id' => 'geodir_navigation_options'),
853 835
 
854
-    array(
855
-        'name' => __('Show listing link in listing navigation', 'geodirectory'),
856
-        'desc' => '',
857
-        'tip' => '',
858
-        'id' => 'geodir_add_posttype_in_listing_nav',
859
-        'css' => 'min-width:300px;',
860
-        'std' => geodir_get_posttypes(),
861
-        'type' => 'multiselect',
862
-        'placeholder_text' => __('Select post types', 'geodirectory'),
863
-        'class' => 'chosen_select',
864
-        'options' => array_unique(geodir_post_type_setting_fun())
865
-    ),
866 836
 
867
-    array(
868
-        'name' => __('Allow post type to add from frontend', 'geodirectory'),
869
-        'desc' => '',
870
-        'tip' => '',
871
-        'id' => 'geodir_allow_posttype_frontend',
872
-        'css' => 'min-width:300px;',
873
-        'std' => geodir_get_posttypes(),
874
-        'type' => 'multiselect',
875
-        'placeholder_text' => __('Select post types', 'geodirectory'),
876
-        'class' => 'chosen_select',
877
-        'options' => array_unique(geodir_post_type_setting_fun())
878
-    ),
837
+	array('name' => __('Post Type Navigation Settings', 'geodirectory'),
838
+		'type' => 'sectionstart',
839
+		'desc' => '',
840
+		'id' => 'geodir_post_type_navigation_layout'),
841
+	array(
842
+		'name' => __('Show listing link in main navigation', 'geodirectory'),
843
+		'desc' => '',
844
+		'tip' => '',
845
+		'id' => 'geodir_add_posttype_in_main_nav',
846
+		'css' => 'min-width:300px;',
847
+		'std' => array(),
848
+		'type' => 'multiselect',
849
+		'placeholder_text' => __('Select post types', 'geodirectory'),
850
+		'class' => 'chosen_select',
851
+		'options' => array_unique(geodir_post_type_setting_fun())
852
+	),
879 853
 
880
-    array(
881
-        'name' => __('Show add listing link in main navigation', 'geodirectory'),
882
-        'desc' => '',
883
-        'tip' => '',
884
-        'id' => 'geodir_add_listing_link_main_nav',
885
-        'css' => 'min-width:300px;',
886
-        'std' => array(),
887
-        'type' => 'multiselect',
888
-        'placeholder_text' => __('Select post types', 'geodirectory'),
889
-        'class' => 'chosen_select',
890
-        'options' => array_unique(geodir_post_type_setting_fun())
891
-    ),
854
+	array(
855
+		'name' => __('Show listing link in listing navigation', 'geodirectory'),
856
+		'desc' => '',
857
+		'tip' => '',
858
+		'id' => 'geodir_add_posttype_in_listing_nav',
859
+		'css' => 'min-width:300px;',
860
+		'std' => geodir_get_posttypes(),
861
+		'type' => 'multiselect',
862
+		'placeholder_text' => __('Select post types', 'geodirectory'),
863
+		'class' => 'chosen_select',
864
+		'options' => array_unique(geodir_post_type_setting_fun())
865
+	),
892 866
 
893
-    array(
894
-        'name' => __('Show add listing link in add listing navigation', 'geodirectory'),
895
-        'desc' => '',
896
-        'tip' => '',
897
-        'id' => 'geodir_add_listing_link_add_listing_nav',
898
-        'css' => 'min-width:300px;',
899
-        'std' => geodir_get_posttypes(),
900
-        'type' => 'multiselect',
901
-        'class' => 'chosen_select',
902
-        'options' => array_unique(geodir_post_type_setting_fun())
903
-    ),
867
+	array(
868
+		'name' => __('Allow post type to add from frontend', 'geodirectory'),
869
+		'desc' => '',
870
+		'tip' => '',
871
+		'id' => 'geodir_allow_posttype_frontend',
872
+		'css' => 'min-width:300px;',
873
+		'std' => geodir_get_posttypes(),
874
+		'type' => 'multiselect',
875
+		'placeholder_text' => __('Select post types', 'geodirectory'),
876
+		'class' => 'chosen_select',
877
+		'options' => array_unique(geodir_post_type_setting_fun())
878
+	),
904 879
 
905
-    array('type' => 'sectionend', 'id' => 'geodir_post_type_navigation_layout'),
880
+	array(
881
+		'name' => __('Show add listing link in main navigation', 'geodirectory'),
882
+		'desc' => '',
883
+		'tip' => '',
884
+		'id' => 'geodir_add_listing_link_main_nav',
885
+		'css' => 'min-width:300px;',
886
+		'std' => array(),
887
+		'type' => 'multiselect',
888
+		'placeholder_text' => __('Select post types', 'geodirectory'),
889
+		'class' => 'chosen_select',
890
+		'options' => array_unique(geodir_post_type_setting_fun())
891
+	),
906 892
 
893
+	array(
894
+		'name' => __('Show add listing link in add listing navigation', 'geodirectory'),
895
+		'desc' => '',
896
+		'tip' => '',
897
+		'id' => 'geodir_add_listing_link_add_listing_nav',
898
+		'css' => 'min-width:300px;',
899
+		'std' => geodir_get_posttypes(),
900
+		'type' => 'multiselect',
901
+		'class' => 'chosen_select',
902
+		'options' => array_unique(geodir_post_type_setting_fun())
903
+	),
907 904
 
908
-    array('name' => __('User Dashboard Post Type Navigation Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_user_dashboard_post_type '),
905
+	array('type' => 'sectionend', 'id' => 'geodir_post_type_navigation_layout'),
909 906
 
910 907
 
911
-    array(
912
-        'name' => __('Show add listing link in user dashboard', 'geodirectory'),
913
-        'desc' => '',
914
-        'tip' => '',
915
-        'id' => 'geodir_add_listing_link_user_dashboard',
916
-        'css' => 'min-width:300px;',
917
-        'std' => geodir_get_posttypes(),
918
-        'type' => 'multiselect',
919
-        'placeholder_text' => __('Select post types', 'geodirectory'),
920
-        'class' => 'chosen_select',
921
-        'options' => array_unique(geodir_post_type_setting_fun())
922
-    ),
908
+	array('name' => __('User Dashboard Post Type Navigation Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_user_dashboard_post_type '),
923 909
 
924
-    array(
925
-        'name' => __('Show favorite link in user dashboard', 'geodirectory'),
926
-        'desc' => __('Option will not appear if user does not have a favorite of that post type', 'geodirectory'),
927
-        'tip' => '',
928
-        'id' => 'geodir_favorite_link_user_dashboard',
929
-        'css' => 'min-width:300px;',
930
-        'std' => geodir_get_posttypes(),
931
-        'type' => 'multiselect',
932
-        'placeholder_text' => __('Select post types', 'geodirectory'),
933
-        'class' => 'chosen_select',
934
-        'options' => array_unique(geodir_post_type_setting_fun())
935
-    ),
936 910
 
937
-    array(
938
-        'name' => __('Show listing link in user dashboard', 'geodirectory'),
939
-        'desc' => __('Option will not appear if user does not have his/her own listing of that post type', 'geodirectory'),
940
-        'tip' => '',
941
-        'id' => 'geodir_listing_link_user_dashboard',
942
-        'css' => 'min-width:300px;',
943
-        'std' => geodir_get_posttypes(),
944
-        'type' => 'multiselect',
945
-        'placeholder_text' => __('Select post types', 'geodirectory'),
946
-        'class' => 'chosen_select',
947
-        'options' => array_unique(geodir_post_type_setting_fun())
948
-    ),
949
-
950
-    array('type' => 'sectionend', 'id' => 'geodir_user_dashboard_post_type'),
951
-    /* Post Type Navigation Settings End */
952
-
953
-    /* Script Settings Start */
954
-    array('name' => __('Scripts', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_script_settings '),
955
-
956
-    /*
911
+	array(
912
+		'name' => __('Show add listing link in user dashboard', 'geodirectory'),
913
+		'desc' => '',
914
+		'tip' => '',
915
+		'id' => 'geodir_add_listing_link_user_dashboard',
916
+		'css' => 'min-width:300px;',
917
+		'std' => geodir_get_posttypes(),
918
+		'type' => 'multiselect',
919
+		'placeholder_text' => __('Select post types', 'geodirectory'),
920
+		'class' => 'chosen_select',
921
+		'options' => array_unique(geodir_post_type_setting_fun())
922
+	),
923
+
924
+	array(
925
+		'name' => __('Show favorite link in user dashboard', 'geodirectory'),
926
+		'desc' => __('Option will not appear if user does not have a favorite of that post type', 'geodirectory'),
927
+		'tip' => '',
928
+		'id' => 'geodir_favorite_link_user_dashboard',
929
+		'css' => 'min-width:300px;',
930
+		'std' => geodir_get_posttypes(),
931
+		'type' => 'multiselect',
932
+		'placeholder_text' => __('Select post types', 'geodirectory'),
933
+		'class' => 'chosen_select',
934
+		'options' => array_unique(geodir_post_type_setting_fun())
935
+	),
936
+
937
+	array(
938
+		'name' => __('Show listing link in user dashboard', 'geodirectory'),
939
+		'desc' => __('Option will not appear if user does not have his/her own listing of that post type', 'geodirectory'),
940
+		'tip' => '',
941
+		'id' => 'geodir_listing_link_user_dashboard',
942
+		'css' => 'min-width:300px;',
943
+		'std' => geodir_get_posttypes(),
944
+		'type' => 'multiselect',
945
+		'placeholder_text' => __('Select post types', 'geodirectory'),
946
+		'class' => 'chosen_select',
947
+		'options' => array_unique(geodir_post_type_setting_fun())
948
+	),
949
+
950
+	array('type' => 'sectionend', 'id' => 'geodir_user_dashboard_post_type'),
951
+	/* Post Type Navigation Settings End */
952
+
953
+	/* Script Settings Start */
954
+	array('name' => __('Scripts', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_script_settings '),
955
+
956
+	/*
957 957
     array( 	'name' => __( 'Add/Remove Scripts', 'geodirectory' ),
958 958
                 'type' => 'sectionstart',
959 959
                 'desc' => '',
@@ -979,150 +979,150 @@  discard block
 block discarded – undo
979 979
 
980 980
     */
981 981
 
982
-    array('name' => __('SCSS Settings (CSS combine and minify)', 'geodirectory'),
983
-        'type' => 'sectionstart',
984
-        'desc' => '',
985
-        'id' => 'geodir_scss_settings'),
982
+	array('name' => __('SCSS Settings (CSS combine and minify)', 'geodirectory'),
983
+		'type' => 'sectionstart',
984
+		'desc' => '',
985
+		'id' => 'geodir_scss_settings'),
986 986
 
987
-    array(
988
-        'name' => __('Disable Core SCSS', 'geodirectory'),
989
-        'desc' => __('Stops the CSS files being minified and output as one.', 'geodirectory'),
990
-        'id' => 'geodir_scss_core',
991
-        'type' => 'checkbox',
992
-        'std' => '0' // Default value to show home top section
993
-    ),
987
+	array(
988
+		'name' => __('Disable Core SCSS', 'geodirectory'),
989
+		'desc' => __('Stops the CSS files being minified and output as one.', 'geodirectory'),
990
+		'id' => 'geodir_scss_core',
991
+		'type' => 'checkbox',
992
+		'std' => '0' // Default value to show home top section
993
+	),
994 994
 
995
-    array('type' => 'sectionend', 'id' => 'geodir_scss_settings'),
995
+	array('type' => 'sectionend', 'id' => 'geodir_scss_settings'),
996 996
 
997
-    array('name' => __('Script Settings', 'geodirectory'),
998
-        'type' => 'sectionstart',
999
-        'desc' => '',
1000
-        'id' => 'geodir_script_settings'),
997
+	array('name' => __('Script Settings', 'geodirectory'),
998
+		'type' => 'sectionstart',
999
+		'desc' => '',
1000
+		'id' => 'geodir_script_settings'),
1001 1001
 
1002
-    array(
1003
-        'name' => __('Custom style css code', 'geodirectory'),
1004
-        'desc' => '',
1005
-        'id' => 'geodir_coustem_css',
1006
-        'type' => 'textarea',
1007
-        'css' => 'min-width:300px;',
1008
-        'std' => '' // Default value for the page title - changed in settings
1009
-    ),
1002
+	array(
1003
+		'name' => __('Custom style css code', 'geodirectory'),
1004
+		'desc' => '',
1005
+		'id' => 'geodir_coustem_css',
1006
+		'type' => 'textarea',
1007
+		'css' => 'min-width:300px;',
1008
+		'std' => '' // Default value for the page title - changed in settings
1009
+	),
1010 1010
 
1011
-    array(
1012
-        'name' => __('Header script code', 'geodirectory'),
1013
-        'desc' => '',
1014
-        'id' => 'geodir_header_scripts',
1015
-        'type' => 'textarea',
1016
-        'css' => 'min-width:300px;',
1017
-        'std' => '' // Default value for the page title - changed in settings
1018
-    ),
1011
+	array(
1012
+		'name' => __('Header script code', 'geodirectory'),
1013
+		'desc' => '',
1014
+		'id' => 'geodir_header_scripts',
1015
+		'type' => 'textarea',
1016
+		'css' => 'min-width:300px;',
1017
+		'std' => '' // Default value for the page title - changed in settings
1018
+	),
1019 1019
 
1020
-    array(
1021
-        'name' => __('Footer script code', 'geodirectory'),
1022
-        'desc' => '',
1023
-        'id' => 'geodir_footer_scripts',
1024
-        'type' => 'textarea',
1025
-        'css' => 'min-width:300px;',
1026
-        'std' => '' // Default value for the page title - changed in settings
1027
-    ),
1020
+	array(
1021
+		'name' => __('Footer script code', 'geodirectory'),
1022
+		'desc' => '',
1023
+		'id' => 'geodir_footer_scripts',
1024
+		'type' => 'textarea',
1025
+		'css' => 'min-width:300px;',
1026
+		'std' => '' // Default value for the page title - changed in settings
1027
+	),
1028 1028
 
1029
-    array('type' => 'sectionend', 'id' => 'geodir_script_settings'),
1030
-    /* Script Settings End */
1029
+	array('type' => 'sectionend', 'id' => 'geodir_script_settings'),
1030
+	/* Script Settings End */
1031 1031
 
1032
-    /* Map Settings Start */
1033
-    array('name' => __('Map', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_map_settings '),
1032
+	/* Map Settings Start */
1033
+	array('name' => __('Map', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_map_settings '),
1034 1034
 
1035
-    /* Untick the category by default on home map */
1036
-    array(
1037
-        'name' => __('Home Map Settings', 'geodirectory'),
1038
-        'type' => 'sectionstart',
1039
-        'desc' => '',
1040
-        'id' => 'geodir_home_map_section'
1041
-    ),
1042
-    array(
1043
-        'name' => __('Select category to untick by default on map', 'geodirectory'),
1044
-        'desc' => __('Select category to untick by default on the home map.', 'geodirectory'),
1045
-        'tip' => '',
1046
-        'id' => 'geodir_home_map_untick',
1047
-        'css' => 'min-width:300px;',
1048
-        'std' => '',
1049
-        'type' => 'multiselect',
1050
-        'placeholder_text' => __('Select category', 'geodirectory'),
1051
-        'class' => 'chosen_select',
1052
-        'options' => geodir_home_map_cats_key_value_array()
1053
-    ),
1054
-    array(
1055
-        'type' => 'sectionend',
1056
-        'id' => 'geodir_home_map_section'
1057
-    ),
1035
+	/* Untick the category by default on home map */
1036
+	array(
1037
+		'name' => __('Home Map Settings', 'geodirectory'),
1038
+		'type' => 'sectionstart',
1039
+		'desc' => '',
1040
+		'id' => 'geodir_home_map_section'
1041
+	),
1042
+	array(
1043
+		'name' => __('Select category to untick by default on map', 'geodirectory'),
1044
+		'desc' => __('Select category to untick by default on the home map.', 'geodirectory'),
1045
+		'tip' => '',
1046
+		'id' => 'geodir_home_map_untick',
1047
+		'css' => 'min-width:300px;',
1048
+		'std' => '',
1049
+		'type' => 'multiselect',
1050
+		'placeholder_text' => __('Select category', 'geodirectory'),
1051
+		'class' => 'chosen_select',
1052
+		'options' => geodir_home_map_cats_key_value_array()
1053
+	),
1054
+	array(
1055
+		'type' => 'sectionend',
1056
+		'id' => 'geodir_home_map_section'
1057
+	),
1058 1058
 
1059
-    array(
1060
-        'name' => __('Add Listing Map Settings', 'geodirectory'),
1061
-        'type' => 'sectionstart',
1062
-        'desc' => '',
1063
-        'id' => 'geodir_add_listing_map_section'
1064
-    ),
1065
-    array(
1066
-        'name' => __('Disable mouse scroll', 'geodirectory'),
1067
-        'desc' => __('Stops the mouse scroll zooming the map', 'geodirectory'),
1068
-        'id' => 'geodir_add_listing_mouse_scroll',
1069
-        'type' => 'checkbox',
1070
-        'std' => '0' // Default value to show home top section
1071
-    ),
1072
-    array(
1073
-        'type' => 'sectionend',
1074
-        'id' => 'geodir_add_listing_map_section'
1075
-    ),
1059
+	array(
1060
+		'name' => __('Add Listing Map Settings', 'geodirectory'),
1061
+		'type' => 'sectionstart',
1062
+		'desc' => '',
1063
+		'id' => 'geodir_add_listing_map_section'
1064
+	),
1065
+	array(
1066
+		'name' => __('Disable mouse scroll', 'geodirectory'),
1067
+		'desc' => __('Stops the mouse scroll zooming the map', 'geodirectory'),
1068
+		'id' => 'geodir_add_listing_mouse_scroll',
1069
+		'type' => 'checkbox',
1070
+		'std' => '0' // Default value to show home top section
1071
+	),
1072
+	array(
1073
+		'type' => 'sectionend',
1074
+		'id' => 'geodir_add_listing_map_section'
1075
+	),
1076 1076
 
1077 1077
 
1078
-    array('name' => __('Default map settings', 'geodirectory'),
1079
-        'type' => 'sectionstart',
1080
-        'desc' => '',
1081
-        'id' => 'geodir_map_default_settings'),
1078
+	array('name' => __('Default map settings', 'geodirectory'),
1079
+		'type' => 'sectionstart',
1080
+		'desc' => '',
1081
+		'id' => 'geodir_map_default_settings'),
1082 1082
 
1083
-    array(
1084
-        'name' => '',
1085
-        'desc' => '',
1086
-        'id' => 'map_default_settings',
1087
-        'type' => 'map_default_settings',
1088
-        'css' => 'min-width:300px;',
1089
-        'std' => '' // Default value for the page title - changed in settings
1090
-    ),
1083
+	array(
1084
+		'name' => '',
1085
+		'desc' => '',
1086
+		'id' => 'map_default_settings',
1087
+		'type' => 'map_default_settings',
1088
+		'css' => 'min-width:300px;',
1089
+		'std' => '' // Default value for the page title - changed in settings
1090
+	),
1091 1091
 
1092
-    array(
1093
-        'name' => __('Upload map default marker icon', 'geodirectory'),
1094
-        'desc' => '',
1095
-        'id' => 'geodir_default_marker_icon',
1096
-        'type' => 'file',
1097
-        'std' => '0',
1098
-        'value' => geodir_plugin_url() . '/geodirectory-functions/map-functions/icons/pin.png'// Default value to show home top section
1099
-    ),
1100
-    // add option that allows enable/disable map dragging to phone devices
1101
-    array(
1102
-        'name' => __('Show button control on map to enable/disable dragging', 'geodirectory'),
1103
-        'desc' => __('If checked, it displays button control to enable/disable dragging on google maps for phone devices', 'geodirectory'),
1104
-        'id' => 'geodir_map_onoff_dragging',
1105
-        'type' => 'checkbox',
1106
-        'std' => '0' // Default value to show home top section
1107
-    ),
1092
+	array(
1093
+		'name' => __('Upload map default marker icon', 'geodirectory'),
1094
+		'desc' => '',
1095
+		'id' => 'geodir_default_marker_icon',
1096
+		'type' => 'file',
1097
+		'std' => '0',
1098
+		'value' => geodir_plugin_url() . '/geodirectory-functions/map-functions/icons/pin.png'// Default value to show home top section
1099
+	),
1100
+	// add option that allows enable/disable map dragging to phone devices
1101
+	array(
1102
+		'name' => __('Show button control on map to enable/disable dragging', 'geodirectory'),
1103
+		'desc' => __('If checked, it displays button control to enable/disable dragging on google maps for phone devices', 'geodirectory'),
1104
+		'id' => 'geodir_map_onoff_dragging',
1105
+		'type' => 'checkbox',
1106
+		'std' => '0' // Default value to show home top section
1107
+	),
1108 1108
 
1109
-    array('type' => 'sectionend', 'id' => 'geodir_map_default_settings'),
1109
+	array('type' => 'sectionend', 'id' => 'geodir_map_default_settings'),
1110 1110
 
1111
-    array('name' => __('Show / hide post type and category on map', 'geodirectory'),
1112
-        'type' => 'sectionstart',
1113
-        'desc' => '',
1114
-        'id' => 'geodir_map_settings'),
1111
+	array('name' => __('Show / hide post type and category on map', 'geodirectory'),
1112
+		'type' => 'sectionstart',
1113
+		'desc' => '',
1114
+		'id' => 'geodir_map_settings'),
1115 1115
 
1116
-    array(
1117
-        'name' => __('Select Map Category', 'geodirectory'),
1118
-        'desc' => '',
1119
-        'id' => 'geodir_map_settings',
1120
-        'type' => 'map',
1121
-        'css' => 'min-width:300px;',
1122
-        'std' => '' // Default value for the page title - changed in settings
1123
-    ),
1124
-
1125
-    array('type' => 'sectionend', 'id' => 'geodir_map_settings'),
1126
-    /* Map Settings End */
1116
+	array(
1117
+		'name' => __('Select Map Category', 'geodirectory'),
1118
+		'desc' => '',
1119
+		'id' => 'geodir_map_settings',
1120
+		'type' => 'map',
1121
+		'css' => 'min-width:300px;',
1122
+		'std' => '' // Default value for the page title - changed in settings
1123
+	),
1124
+
1125
+	array('type' => 'sectionend', 'id' => 'geodir_map_settings'),
1126
+	/* Map Settings End */
1127 1127
 
1128 1128
 )); // End Design settings
Please login to merge, or discard this patch.
geodirectory-admin/option-pages/notifications_settings_array.php 1 patch
Indentation   +257 added lines, -257 removed lines patch added patch discarded remove patch
@@ -17,262 +17,262 @@
 block discarded – undo
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 &raquo;</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 &raquo;</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
Please login to merge, or discard this patch.
geodirectory-admin/option-pages/permalink_settings_array.php 1 patch
Indentation   +178 added lines, -178 removed lines patch added patch discarded remove patch
@@ -16,184 +16,184 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
geodirectory-admin/option-pages/title_meta_settings_array.php 1 patch
Indentation   +358 added lines, -358 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
geodirectory-functions/cat-meta-functions/cat_meta.php 1 patch
Indentation   +165 added lines, -165 removed lines patch added patch discarded remove patch
@@ -11,139 +11,139 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
277 277
             });
278 278
         </script>
279 279
     <?php
280
-    endif;
280
+	endif;
281 281
 }
Please login to merge, or discard this patch.
geodirectory-functions/compatibility/Divi.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
geodirectory-functions/compatibility/Genesis.php 1 patch
Indentation   +168 added lines, -168 removed lines patch added patch discarded remove patch
@@ -17,26 +17,26 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.