Simple Wp Sitemap - Version 1.0.5

Version Description

(March 26, 2015) = * Fixed timezone bug * Made the sitemaps a bit lighter, they were so dark n dull * Corrected some css problems in older browsers * Updated screenshots

Download this release

Release Info

Developer Webbjocke
Plugin Icon 128x128 Simple Wp Sitemap
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

css/html.css CHANGED
@@ -4,43 +4,57 @@
4
  }
5
  body{
6
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
7
- font-size: 14px;
 
8
  }
9
  h1{
10
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
 
 
11
  }
12
  a{
13
  text-decoration: none;
14
- color: black;
15
- word-break: break-all;
16
  transition: all 0.3s;
17
  display: inline-block;
 
18
  vertical-align: top;
19
  max-width: 75%;
20
  }
21
  a:hover{
22
- background: whitesmoke;
 
 
 
23
  }
24
  ul{
25
- padding: 10px 0 10px 20px;
 
26
  }
27
- h1{
28
- margin: 20px 0;
29
  }
30
  #wrapper{
31
  max-width: 1080px;
32
- padding: 0 2% 40px 2%;
33
- margin: 0 auto;
 
 
 
34
  }
35
  .date, .header-date{
36
  float: right;
37
  }
 
 
 
38
  .header{
39
  overflow: auto;
40
  clear: left;
41
- padding-bottom: 5px;
42
- border-bottom: 5px solid lightgray;
43
  font-size: 1.2em;
 
44
  }
45
  .header-txt{
46
  float: left;
@@ -50,27 +64,37 @@ h1{
50
  text-align: right;
51
  font-size: 0.8em;
52
  margin-top: 25px;
 
 
53
  }
54
  @media screen and (max-width: 960px){
55
- a{
56
- max-width: 100%;
57
- }
58
- ul{
59
- list-style-type: none;
60
- padding: 0;
61
- }
62
- li{
63
- border-bottom: 1px solid lightgray;
64
  }
65
- li:nth-child(2n){
66
- background: whitesmoke;
 
67
  }
 
 
 
 
 
 
68
  .date{
69
  float: none;
70
- display: block;
 
 
 
 
71
  }
72
  .header-date{
73
  float: none;
74
  clear: left;
75
  }
 
 
 
76
  }
4
  }
5
  body{
6
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
7
+ font-size: 13px;
8
+ background: #fff;
9
  }
10
  h1{
11
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
12
+ margin: 0 0.1% 25px 0.1%;
13
+ word-wrap: break-word;
14
  }
15
  a{
16
  text-decoration: none;
17
+ color: #000;
 
18
  transition: all 0.3s;
19
  display: inline-block;
20
+ word-wrap: break-word;
21
  vertical-align: top;
22
  max-width: 75%;
23
  }
24
  a:hover{
25
+ background: #f8f8f8;
26
+ }
27
+ a:active, a:focus{
28
+ color: #0000ff;
29
  }
30
  ul{
31
+ list-style-type: none;
32
+ padding: 0;
33
  }
34
+ li:nth-child(2n){
35
+ background: #f8f8f8;
36
  }
37
  #wrapper{
38
  max-width: 1080px;
39
+ padding: 15px 2% 40px 2%;
40
+ margin: 20px auto;
41
+ }
42
+ ul a, .date{
43
+ padding: 4px 0.1%;
44
  }
45
  .date, .header-date{
46
  float: right;
47
  }
48
+ .date{
49
+ display: inline-block;
50
+ }
51
  .header{
52
  overflow: auto;
53
  clear: left;
54
+ padding: 7px 0.1% 7px 0.1%;
55
+ border-bottom: 5px solid #f1f1f1;
56
  font-size: 1.2em;
57
+ width: 99.8%;
58
  }
59
  .header-txt{
60
  float: left;
64
  text-align: right;
65
  font-size: 0.8em;
66
  margin-top: 25px;
67
+ padding-right: 0.1%;
68
+ box-sizing: border-box;
69
  }
70
  @media screen and (max-width: 960px){
71
+ #wrapper{
72
+ padding-left: 0%;
73
+ padding-right: 0%;
 
 
 
 
 
 
74
  }
75
+ h1{
76
+ padding-left: 7px;
77
+ padding-right: 7px;
78
  }
79
+ ul a{
80
+ max-width: 100%;
81
+ width: 100%;
82
+ padding: 4px 7px 2px 7px;
83
+ box-sizing: border-box;
84
+ }
85
  .date{
86
  float: none;
87
+ padding: 0 7px 4px 7px;
88
+ }
89
+ .header{
90
+ padding: 5px 7px;
91
+ width: auto;
92
  }
93
  .header-date{
94
  float: none;
95
  clear: left;
96
  }
97
+ #attr{
98
+ padding-right: 7px;
99
+ }
100
  }
css/xml.css CHANGED
@@ -8,11 +8,11 @@ url{
8
  display: block;
9
  overflow: auto;
10
  padding: 5px;
11
- font-size: 0.8em;
12
- word-break: break-all;
13
  }
14
  url:nth-child(2n+1){
15
- background: whitesmoke;
16
  }
17
  loc{
18
  float: left;
8
  display: block;
9
  overflow: auto;
10
  padding: 5px;
11
+ font-size: 13px;
12
+ word-wrap: break-word;
13
  }
14
  url:nth-child(2n+1){
15
+ background: #f8f8f8;
16
  }
17
  loc{
18
  float: left;
readme.txt CHANGED
@@ -5,7 +5,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
5
  Tags: sitemap, google sitemap, xml, simple sitemap, html, xml sitemap, html sitemap, seo, seo sitemap
6
  Requires at least: 4.0
7
  Tested up to: 4.1.1
8
- Stable tag: 1.0.4
9
 
10
  An easy, fast and secure plugin that adds both an xml and an html sitemap to your site, which updates and maintains themselves so you dont have to!
11
 
@@ -43,6 +43,12 @@ None so far :)
43
 
44
  == Changelog ==
45
 
 
 
 
 
 
 
46
  = 1.0.4 (March 18, 2015) =
47
  * Added options to include category, tag and author pages
48
  * Changed layout a bit and made it more responsive
5
  Tags: sitemap, google sitemap, xml, simple sitemap, html, xml sitemap, html sitemap, seo, seo sitemap
6
  Requires at least: 4.0
7
  Tested up to: 4.1.1
8
+ Stable tag: 1.0.5
9
 
10
  An easy, fast and secure plugin that adds both an xml and an html sitemap to your site, which updates and maintains themselves so you dont have to!
11
 
43
 
44
  == Changelog ==
45
 
46
+ = 1.0.5 (March 26, 2015) =
47
+ * Fixed timezone bug
48
+ * Made the sitemaps a bit lighter, they were so dark n dull
49
+ * Corrected some css problems in older browsers
50
+ * Updated screenshots
51
+
52
  = 1.0.4 (March 18, 2015) =
53
  * Added options to include category, tag and author pages
54
  * Changed layout a bit and made it more responsive
screenshot-2.png CHANGED
Binary file
simple-wp-sitemap.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Simple Wp Sitemap
5
  * Plugin URI: http://www.webbjocke.com/simple-wp-sitemap/
6
  * Description: An easy, fast and secure plugin that adds both an xml and an html sitemap to your site, which updates and maintains themselves so you dont have to!
7
- * Version: 1.0.4
8
  * Author: Webbjocke
9
  * Author URI: http://www.webbjocke.com/
10
  * License: GPLv3
4
  * Plugin Name: Simple Wp Sitemap
5
  * Plugin URI: http://www.webbjocke.com/simple-wp-sitemap/
6
  * Description: An easy, fast and secure plugin that adds both an xml and an html sitemap to your site, which updates and maintains themselves so you dont have to!
7
+ * Version: 1.0.5
8
  * Author: Webbjocke
9
  * Author URI: http://www.webbjocke.com/
10
  * License: GPLv3
simpleWpMapBuilder.php CHANGED
@@ -189,6 +189,7 @@ class SimpleWpMapBuilder {
189
  $html = '';
190
 
191
  if (!$homePage){ // if homepage isn't found in the query add it here (for instance if it's not a real "page" it wont be found)
 
192
  $date = date('Y-m-d\TH:i:sP');
193
  $xml .= $this->getXml($this->homeUrl, $date);
194
  $html .= sprintf("%s\t</ul>\n", $this->getHtml($this->homeUrl, $date));
189
  $html = '';
190
 
191
  if (!$homePage){ // if homepage isn't found in the query add it here (for instance if it's not a real "page" it wont be found)
192
+ date_default_timezone_set(get_option('timezone_string'));
193
  $date = date('Y-m-d\TH:i:sP');
194
  $xml .= $this->getXml($this->homeUrl, $date);
195
  $html .= sprintf("%s\t</ul>\n", $this->getHtml($this->homeUrl, $date));
simpleWpMapOptions.php CHANGED
@@ -7,6 +7,7 @@ class SimpleWpMapOptions {
7
 
8
  // Updates the settings/options
9
  public function setOptions($otherUrls, $blockUrls, $attrLink, $categories, $tags, $authors){
 
10
  update_option('simple_wp_other_urls', $this->addUrls($otherUrls, get_option('simple_wp_other_urls')));
11
  update_option('simple_wp_block_urls', $this->addUrls($blockUrls));
12
  update_option('simple_wp_attr_link', $attrLink);
7
 
8
  // Updates the settings/options
9
  public function setOptions($otherUrls, $blockUrls, $attrLink, $categories, $tags, $authors){
10
+ date_default_timezone_set(get_option('timezone_string'));
11
  update_option('simple_wp_other_urls', $this->addUrls($otherUrls, get_option('simple_wp_other_urls')));
12
  update_option('simple_wp_block_urls', $this->addUrls($blockUrls));
13
  update_option('simple_wp_attr_link', $attrLink);