myStickymenu - Version 1.8

Version Description

  • Added: "Make visible when scrolled on Homepage" after number of pixels. Now its possible to have one activation height for home page and another for the rest of the pages.
  • Added German language
Download this release

Release Info

Developer damiroquai
Plugin Icon 128x128 myStickymenu
Version 1.8
Comparing to
See all releases

Code changes from version 1.7 to 1.8

languages/mystickymenu-de_DE.mo ADDED
Binary file
languages/mystickymenu-de_DE.po ADDED
@@ -0,0 +1,143 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: myStickymenu\n"
4
+ "POT-Creation-Date: 2014-09-30 12:27+0100\n"
5
+ "PO-Revision-Date: 2014-09-30 12:35+0100\n"
6
+ "Last-Translator: Damir Babojelic <jahmirda@gmail.com>\n"
7
+ "Language-Team: Schelli <mail@schelli.eu>\n"
8
+ "Language: de_DE\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.5.7\n"
13
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-SearchPath-0: ..\n"
18
+ "X-Poedit-SearchPath-1: .\n"
19
+
20
+ #: ../mystickymenu.php:66
21
+ msgid "myStickymenu Settings"
22
+ msgstr "myStickymenu Einstellungen"
23
+
24
+ #: ../mystickymenu.php:95
25
+ msgid "myStickymenu Options"
26
+ msgstr "myStickymenu Optionen"
27
+
28
+ #: ../mystickymenu.php:102
29
+ msgid "Sticky Class"
30
+ msgstr "Sticky Klasse"
31
+
32
+ #: ../mystickymenu.php:110
33
+ msgid "Sticky z-index"
34
+ msgstr "Sticky z-Index"
35
+
36
+ #: ../mystickymenu.php:118
37
+ msgid "Sticky Background Color"
38
+ msgstr "Sticky Hintergrundfarbe"
39
+
40
+ #: ../mystickymenu.php:126
41
+ msgid "Sticky Opacity"
42
+ msgstr "Deckkraft"
43
+
44
+ #: ../mystickymenu.php:134
45
+ msgid "Sticky Transition Time"
46
+ msgstr "Einblendegeschwindigkeit"
47
+
48
+ #: ../mystickymenu.php:142
49
+ msgid "Disable at Small Screen Sizes"
50
+ msgstr "Deaktivierung bei Bildschirmbreiten"
51
+
52
+ #: ../mystickymenu.php:150
53
+ msgid "Make visible when scroled"
54
+ msgstr "Einblendung"
55
+
56
+ #: ../mystickymenu.php:158
57
+ msgid "Make visible when scroled on homepage"
58
+ msgstr "Einblendung (Startseite)"
59
+
60
+ #: ../mystickymenu.php:166
61
+ msgid "Fade or slide effect"
62
+ msgstr " Einblenden oder Hereingleiten"
63
+
64
+ #: ../mystickymenu.php:174
65
+ msgid ".myfixed css class"
66
+ msgstr ".myfixed CSS-Klasse"
67
+
68
+ #: ../mystickymenu.php:258
69
+ msgid ""
70
+ "Add nice modern sticky menu or header to any theme. Defaults works for "
71
+ "Twenty Thirteen theme. <br />For other themes change 'Sticky Class' to div "
72
+ "class desired to be sticky (div id can be used too)."
73
+ msgstr ""
74
+ "Füge deiner Seite ein optisch anspechendes und modernes \"Sticky Menü\" oder "
75
+ "einen \"Sticky Header\" hinzu. Das Plugin ist voreingestellt für das Theme "
76
+ "\"Twenty Thirteen\". <br />Um es mit anderen Themes zu nutzen, brauchst du "
77
+ "nur das Feld \"Sticky Klasse\" entsprechend anzupassen."
78
+
79
+ #: ../mystickymenu.php:270
80
+ msgid "menu or header div class or id."
81
+ msgstr ""
82
+ "Menü oder Header div-Klasse bzw. ID. (Für einige Themes findest du diese <a "
83
+ "href='http://wordpress.transformnews.com/tutorials/mystickymenu-theme-"
84
+ "support-682'>hier</a>.)"
85
+
86
+ #: ../mystickymenu.php:296
87
+ msgid "numbers 1-100."
88
+ msgstr "Ein Wert zwischen 1 und 100"
89
+
90
+ #: ../mystickymenu.php:306
91
+ msgid "in seconds."
92
+ msgstr "in Sekunden"
93
+
94
+ #: ../mystickymenu.php:315
95
+ msgid "less than"
96
+ msgstr "kleiner als"
97
+
98
+ #: ../mystickymenu.php:320
99
+ msgid "px width, 0 to disable."
100
+ msgstr "Pixel (Keine Deaktivierung: 0)"
101
+
102
+ #: ../mystickymenu.php:329 ../mystickymenu.php:343
103
+ msgid "after"
104
+ msgstr "nach "
105
+
106
+ #: ../mystickymenu.php:334 ../mystickymenu.php:348
107
+ msgid "px. (scroll)"
108
+ msgstr "Pixeln (scrollen)"
109
+
110
+ #: ../mystickymenu.php:359
111
+ msgid "Checked is slide, unchecked is fade."
112
+ msgstr "Aktiviert = Hereingleiten, Deaktiviert = Einblenden"
113
+
114
+ #: ../mystickymenu.php:368
115
+ msgid ""
116
+ "Add/Edit .myfixed css class to change sticky menu style. Leave it blank for "
117
+ "default style."
118
+ msgstr ""
119
+ "Ändere oder ergänze den CSS-Code um den Stil des \"Sticky Menü\" anzupassen."
120
+
121
+ #: ../mystickymenu.php:375
122
+ msgid "Default style: "
123
+ msgstr "Voreingestellter Stil:<br />"
124
+
125
+ #: ../mystickymenu.php:377
126
+ msgid ""
127
+ "If you want to change sticky hover color first add default style and than: "
128
+ msgstr ""
129
+ "Um die Farbe des \"Sticky Menü\" beim Mouseover (hover) zu ändern ergänze "
130
+ "den voreingestellten Stil um folgenden Code:<br />"
131
+
132
+ #: ../mystickymenu.php:379
133
+ msgid ""
134
+ "More examples <a href='http://wordpress.transformnews.com/tutorials/"
135
+ "mystickymenu-extended-style-functionality-using-myfixed-sticky-"
136
+ "class-403'>here</a>."
137
+ msgstr ""
138
+ "Mehr Beispiele findest du <a href='http://wordpress.transformnews.com/"
139
+ "tutorials/mystickymenu-extended-style-functionality-using-myfixed-sticky-"
140
+ "class-403'>hier</a>."
141
+
142
+ #~ msgid "mymessage2"
143
+ #~ msgstr "Bye"
languages/mystickymenu-es_ES.mo CHANGED
Binary file
languages/mystickymenu-hr_HR.mo CHANGED
Binary file
languages/mystickymenu-hr_HR.po CHANGED
@@ -1,8 +1,8 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: myStickymenu\n"
4
- "POT-Creation-Date: 2014-07-29 00:57+0100\n"
5
- "PO-Revision-Date: 2014-07-30 16:35+0100\n"
6
"Last-Translator: Damir Babojelic <jahmirda@gmail.com>\n"
7
"Language-Team: \n"
8
"Language: Croatian\n"
@@ -17,51 +17,55 @@ msgstr ""
17
"X-Poedit-SearchPath-0: ..\n"
18
"X-Poedit-SearchPath-1: .\n"
19
20
- #: ../mystickymenu.php:73
21
msgid "myStickymenu Settings"
22
msgstr "myStickymenu Postavke"
23
24
- #: ../mystickymenu.php:102
25
msgid "myStickymenu Options"
26
msgstr "myStickymenu Opcije"
27
28
- #: ../mystickymenu.php:109
29
msgid "Sticky Class"
30
msgstr "Sticky klasa"
31
32
- #: ../mystickymenu.php:117
33
msgid "Sticky z-index"
34
msgstr "Sticky z-index"
35
36
- #: ../mystickymenu.php:125
37
msgid "Sticky Background Color"
38
msgstr "Sticky pozadinska boja"
39
40
- #: ../mystickymenu.php:133
41
msgid "Sticky Opacity"
42
msgstr "Sticky prozirnost"
43
44
- #: ../mystickymenu.php:141
45
msgid "Sticky Transition Time"
46
msgstr "Sticky vrijeme tranzicije"
47
48
- #: ../mystickymenu.php:149
49
msgid "Disable at Small Screen Sizes"
50
msgstr "Onemogući na malim ekranima"
51
52
- #: ../mystickymenu.php:157
53
- msgid "Make visible when scroled"
54
msgstr "Učini izbornik vidljivim"
55
56
- #: ../mystickymenu.php:165
57
msgid "Fade or slide effect"
58
msgstr "Fade ili Slide efekt"
59
60
- #: ../mystickymenu.php:173
61
msgid ".myfixed css class"
62
msgstr ".myfixed css klasa"
63
64
- #: ../mystickymenu.php:271
65
msgid ""
66
"Add nice modern sticky menu or header to any theme. Defaults works for "
67
"Twenty Thirteen theme. <br />For other themes change 'Sticky Class' to div "
@@ -72,56 +76,56 @@ msgstr ""
72
"'Sticky klasu' u css klasu vašeg izbornika. Takodjer možete koristiti i css "
73
"ID."
74
75
- #: ../mystickymenu.php:283
76
msgid "menu or header div class or id."
77
msgstr "menu ili header css div klasa ili id."
78
79
- #: ../mystickymenu.php:309
80
msgid "numbers 1-100."
81
msgstr "brojevi 1-100"
82
83
- #: ../mystickymenu.php:319
84
msgid "in seconds."
85
msgstr "u sekundama"
86
87
- #: ../mystickymenu.php:328
88
msgid "less than"
89
msgstr "manjim od"
90
91
- #: ../mystickymenu.php:333
92
msgid "px width, 0 to disable."
93
msgstr "px širine. 0 da biste onemogućili opciju."
94
95
- #: ../mystickymenu.php:342
96
msgid "after"
97
msgstr "nakon"
98
99
- #: ../mystickymenu.php:347
100
msgid "px. (scroll)"
101
msgstr "px. (scroll)"
102
103
- #: ../mystickymenu.php:358
104
msgid "Checked is slide, unchecked is fade."
105
msgstr "Označeno je slide, neoznačeno je fade"
106
107
- #: ../mystickymenu.php:367
108
msgid ""
109
"Add/Edit .myfixed css class to change sticky menu style. Leave it blank for "
110
"default style."
111
msgstr ""
112
"Dodajte ili izmijenite .myfixed css klasu. Ostavite prazno za zadani stil."
113
114
- #: ../mystickymenu.php:374
115
msgid "Default style: "
116
msgstr "Zadani stil: "
117
118
- #: ../mystickymenu.php:376
119
msgid ""
120
"If you want to change sticky hover color first add default style and than: "
121
msgstr ""
122
"npr. ako želite promijeniti sticky hover boju, nakon zadanog stila dodajte: "
123
124
- #: ../mystickymenu.php:378
125
msgid ""
126
"More examples <a href='http://wordpress.transformnews.com/tutorials/"
127
"mystickymenu-extended-style-functionality-using-myfixed-sticky-"
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: myStickymenu\n"
4
+ "POT-Creation-Date: 2014-08-12 18:04+0100\n"
5
+ "PO-Revision-Date: 2014-08-12 18:05+0100\n"
6
"Last-Translator: Damir Babojelic <jahmirda@gmail.com>\n"
7
"Language-Team: \n"
8
"Language: Croatian\n"
17
"X-Poedit-SearchPath-0: ..\n"
18
"X-Poedit-SearchPath-1: .\n"
19
20
+ #: ../mystickymenu.php:66
21
msgid "myStickymenu Settings"
22
msgstr "myStickymenu Postavke"
23
24
+ #: ../mystickymenu.php:95
25
msgid "myStickymenu Options"
26
msgstr "myStickymenu Opcije"
27
28
+ #: ../mystickymenu.php:102
29
msgid "Sticky Class"
30
msgstr "Sticky klasa"
31
32
+ #: ../mystickymenu.php:110
33
msgid "Sticky z-index"
34
msgstr "Sticky z-index"
35
36
+ #: ../mystickymenu.php:118
37
msgid "Sticky Background Color"
38
msgstr "Sticky pozadinska boja"
39
40
+ #: ../mystickymenu.php:126
41
msgid "Sticky Opacity"
42
msgstr "Sticky prozirnost"
43
44
+ #: ../mystickymenu.php:134
45
msgid "Sticky Transition Time"
46
msgstr "Sticky vrijeme tranzicije"
47
48
+ #: ../mystickymenu.php:142
49
msgid "Disable at Small Screen Sizes"
50
msgstr "Onemogući na malim ekranima"
51
52
+ #: ../mystickymenu.php:150
53
+ msgid "Make visible when Scrolled"
54
msgstr "Učini izbornik vidljivim"
55
56
+ #: ../mystickymenu.php:158
57
+ msgid "Make visible when scrolled on Homepage"
58
+ msgstr "Učini izbornik vidljivim na početnoj stranici"
59
+
60
+ #: ../mystickymenu.php:166
61
msgid "Fade or slide effect"
62
msgstr "Fade ili Slide efekt"
63
64
+ #: ../mystickymenu.php:174
65
msgid ".myfixed css class"
66
msgstr ".myfixed css klasa"
67
68
+ #: ../mystickymenu.php:258
69
msgid ""
70
"Add nice modern sticky menu or header to any theme. Defaults works for "
71
"Twenty Thirteen theme. <br />For other themes change 'Sticky Class' to div "
76
"'Sticky klasu' u css klasu vašeg izbornika. Takodjer možete koristiti i css "
77
"ID."
78
79
+ #: ../mystickymenu.php:270
80
msgid "menu or header div class or id."
81
msgstr "menu ili header css div klasa ili id."
82
83
+ #: ../mystickymenu.php:296
84
msgid "numbers 1-100."
85
msgstr "brojevi 1-100"
86
87
+ #: ../mystickymenu.php:306
88
msgid "in seconds."
89
msgstr "u sekundama"
90
91
+ #: ../mystickymenu.php:315
92
msgid "less than"
93
msgstr "manjim od"
94
95
+ #: ../mystickymenu.php:320
96
msgid "px width, 0 to disable."
97
msgstr "px širine. 0 da biste onemogućili opciju."
98
99
+ #: ../mystickymenu.php:329 ../mystickymenu.php:343
100
msgid "after"
101
msgstr "nakon"
102
103
+ #: ../mystickymenu.php:334 ../mystickymenu.php:348
104
msgid "px. (scroll)"
105
msgstr "px. (scroll)"
106
107
+ #: ../mystickymenu.php:359
108
msgid "Checked is slide, unchecked is fade."
109
msgstr "Označeno je slide, neoznačeno je fade"
110
111
+ #: ../mystickymenu.php:368
112
msgid ""
113
"Add/Edit .myfixed css class to change sticky menu style. Leave it blank for "
114
"default style."
115
msgstr ""
116
"Dodajte ili izmijenite .myfixed css klasu. Ostavite prazno za zadani stil."
117
118
+ #: ../mystickymenu.php:375
119
msgid "Default style: "
120
msgstr "Zadani stil: "
121
122
+ #: ../mystickymenu.php:377
123
msgid ""
124
"If you want to change sticky hover color first add default style and than: "
125
msgstr ""
126
"npr. ako želite promijeniti sticky hover boju, nakon zadanog stila dodajte: "
127
128
+ #: ../mystickymenu.php:379
129
msgid ""
130
"More examples <a href='http://wordpress.transformnews.com/tutorials/"
131
"mystickymenu-extended-style-functionality-using-myfixed-sticky-"
languages/mystickymenu-rs_RS.mo CHANGED
Binary file
languages/mystickymenu-rs_RS.po CHANGED
@@ -1,8 +1,8 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: myStickymenu\n"
4
- "POT-Creation-Date: 2014-08-11 14:43+0100\n"
5
- "PO-Revision-Date: 2014-08-11 14:43+0100\n"
6
"Last-Translator: Damir Babojelic <jahmirda@gmail.com>\n"
7
"Language-Team: TFN <jahmirda@gmail.com>\n"
8
"Language: English\n"
@@ -17,51 +17,55 @@ msgstr ""
17
"X-Poedit-SearchPath-0: ..\n"
18
"X-Poedit-SearchPath-1: .\n"
19
20
- #: ../mystickymenu.php:73
21
msgid "myStickymenu Settings"
22
msgstr "myStickymenu Postavke"
23
24
- #: ../mystickymenu.php:102
25
msgid "myStickymenu Options"
26
msgstr "myStickymenu Opcije"
27
28
- #: ../mystickymenu.php:109
29
msgid "Sticky Class"
30
msgstr "Sticky klasa"
31
32
- #: ../mystickymenu.php:117
33
msgid "Sticky z-index"
34
msgstr "Sticky z-index"
35
36
- #: ../mystickymenu.php:125
37
msgid "Sticky Background Color"
38
msgstr "Sticky pozadinska boja"
39
40
- #: ../mystickymenu.php:133
41
msgid "Sticky Opacity"
42
msgstr "Sticky prozirnost"
43
44
- #: ../mystickymenu.php:141
45
msgid "Sticky Transition Time"
46
msgstr "Sticky vrijeme tranzicije"
47
48
- #: ../mystickymenu.php:149
49
msgid "Disable at Small Screen Sizes"
50
msgstr "Onemogući na malim ekranima"
51
52
- #: ../mystickymenu.php:157
53
- msgid "Make visible when scroled"
54
msgstr "Učini vidljivim kad se skroluje"
55
56
- #: ../mystickymenu.php:165
57
msgid "Fade or slide effect"
58
msgstr "Fade ili Slide efekt"
59
60
- #: ../mystickymenu.php:173
61
msgid ".myfixed css class"
62
msgstr ".myfixed css klasa"
63
64
- #: ../mystickymenu.php:271
65
msgid ""
66
"Add nice modern sticky menu or header to any theme. Defaults works for "
67
"Twenty Thirteen theme. <br />For other themes change 'Sticky Class' to div "
@@ -72,39 +76,39 @@ msgstr ""
72
"klasu' u div klasu za koju želite da bude sticky. Takođe, možete koristiti i "
73
"div ID."
74
75
- #: ../mystickymenu.php:283
76
msgid "menu or header div class or id."
77
msgstr "div klasa menija ili zaglavlja."
78
79
- #: ../mystickymenu.php:309
80
msgid "numbers 1-100."
81
msgstr "brojevi 1-100."
82
83
- #: ../mystickymenu.php:319
84
msgid "in seconds."
85
msgstr "u sekundama."
86
87
- #: ../mystickymenu.php:328
88
msgid "less than"
89
msgstr "manje od"
90
91
- #: ../mystickymenu.php:333
92
msgid "px width, 0 to disable."
93
msgstr "px širine. 0 da biste onemogućili opciju."
94
95
- #: ../mystickymenu.php:342
96
msgid "after"
97
msgstr "nakon"
98
99
- #: ../mystickymenu.php:347
100
msgid "px. (scroll)"
101
msgstr "px. (scroll)"
102
103
- #: ../mystickymenu.php:358
104
msgid "Checked is slide, unchecked is fade."
105
msgstr "Označeno je slide, neoznačeno je fade."
106
107
- #: ../mystickymenu.php:367
108
msgid ""
109
"Add/Edit .myfixed css class to change sticky menu style. Leave it blank for "
110
"default style."
@@ -112,18 +116,18 @@ msgstr ""
112
"Dodajte/Uredite .myfixed css klasu da biste promenili izgled sticky menija. "
113
"Za podrazumevani izgled, ostavite nepopunjeno. "
114
115
- #: ../mystickymenu.php:374
116
msgid "Default style: "
117
msgstr "Podrazumevani izgled: "
118
119
- #: ../mystickymenu.php:376
120
msgid ""
121
"If you want to change sticky hover color first add default style and than: "
122
msgstr ""
123
"Ako želite da promenite sticky hover boju, prvo dodajte podrazumevani stil i "
124
"zatim: "
125
126
- #: ../mystickymenu.php:378
127
msgid ""
128
"More examples <a href='http://wordpress.transformnews.com/tutorials/"
129
"mystickymenu-extended-style-functionality-using-myfixed-sticky-"
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: myStickymenu\n"
4
+ "POT-Creation-Date: 2014-08-12 18:05+0100\n"
5
+ "PO-Revision-Date: 2014-08-12 18:05+0100\n"
6
"Last-Translator: Damir Babojelic <jahmirda@gmail.com>\n"
7
"Language-Team: TFN <jahmirda@gmail.com>\n"
8
"Language: English\n"
17
"X-Poedit-SearchPath-0: ..\n"
18
"X-Poedit-SearchPath-1: .\n"
19
20
+ #: ../mystickymenu.php:66
21
msgid "myStickymenu Settings"
22
msgstr "myStickymenu Postavke"
23
24
+ #: ../mystickymenu.php:95
25
msgid "myStickymenu Options"
26
msgstr "myStickymenu Opcije"
27
28
+ #: ../mystickymenu.php:102
29
msgid "Sticky Class"
30
msgstr "Sticky klasa"
31
32
+ #: ../mystickymenu.php:110
33
msgid "Sticky z-index"
34
msgstr "Sticky z-index"
35
36
+ #: ../mystickymenu.php:118
37
msgid "Sticky Background Color"
38
msgstr "Sticky pozadinska boja"
39
40
+ #: ../mystickymenu.php:126
41
msgid "Sticky Opacity"
42
msgstr "Sticky prozirnost"
43
44
+ #: ../mystickymenu.php:134
45
msgid "Sticky Transition Time"
46
msgstr "Sticky vrijeme tranzicije"
47
48
+ #: ../mystickymenu.php:142
49
msgid "Disable at Small Screen Sizes"
50
msgstr "Onemogući na malim ekranima"
51
52
+ #: ../mystickymenu.php:150
53
+ msgid "Make visible when Scrolled"
54
msgstr "Učini vidljivim kad se skroluje"
55
56
+ #: ../mystickymenu.php:158
57
+ msgid "Make visible when scrolled on Homepage"
58
+ msgstr "Učini vidljivim kad se skroluje na Homepage-u"
59
+
60
+ #: ../mystickymenu.php:166
61
msgid "Fade or slide effect"
62
msgstr "Fade ili Slide efekt"
63
64
+ #: ../mystickymenu.php:174
65
msgid ".myfixed css class"
66
msgstr ".myfixed css klasa"
67
68
+ #: ../mystickymenu.php:258
69
msgid ""
70
"Add nice modern sticky menu or header to any theme. Defaults works for "
71
"Twenty Thirteen theme. <br />For other themes change 'Sticky Class' to div "
76
"klasu' u div klasu za koju želite da bude sticky. Takođe, možete koristiti i "
77
"div ID."
78
79
+ #: ../mystickymenu.php:270
80
msgid "menu or header div class or id."
81
msgstr "div klasa menija ili zaglavlja."
82
83
+ #: ../mystickymenu.php:296
84
msgid "numbers 1-100."
85
msgstr "brojevi 1-100."
86
87
+ #: ../mystickymenu.php:306
88
msgid "in seconds."
89
msgstr "u sekundama."
90
91
+ #: ../mystickymenu.php:315
92
msgid "less than"
93
msgstr "manje od"
94
95
+ #: ../mystickymenu.php:320
96
msgid "px width, 0 to disable."
97
msgstr "px širine. 0 da biste onemogućili opciju."
98
99
+ #: ../mystickymenu.php:329 ../mystickymenu.php:343
100
msgid "after"
101
msgstr "nakon"
102
103
+ #: ../mystickymenu.php:334 ../mystickymenu.php:348
104
msgid "px. (scroll)"
105
msgstr "px. (scroll)"
106
107
+ #: ../mystickymenu.php:359
108
msgid "Checked is slide, unchecked is fade."
109
msgstr "Označeno je slide, neoznačeno je fade."
110
111
+ #: ../mystickymenu.php:368
112
msgid ""
113
"Add/Edit .myfixed css class to change sticky menu style. Leave it blank for "
114
"default style."
116
"Dodajte/Uredite .myfixed css klasu da biste promenili izgled sticky menija. "
117
"Za podrazumevani izgled, ostavite nepopunjeno. "
118
119
+ #: ../mystickymenu.php:375
120
msgid "Default style: "
121
msgstr "Podrazumevani izgled: "
122
123
+ #: ../mystickymenu.php:377
124
msgid ""
125
"If you want to change sticky hover color first add default style and than: "
126
msgstr ""
127
"Ako želite da promenite sticky hover boju, prvo dodajte podrazumevani stil i "
128
"zatim: "
129
130
+ #: ../mystickymenu.php:379
131
msgid ""
132
"More examples <a href='http://wordpress.transformnews.com/tutorials/"
133
"mystickymenu-extended-style-functionality-using-myfixed-sticky-"
languages/mystickymenu.mo CHANGED
Binary file
languages/mystickymenu.po CHANGED
@@ -1,8 +1,8 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: myStickymenu\n"
4
- "POT-Creation-Date: 2014-07-29 00:58+0100\n"
5
- "PO-Revision-Date: 2014-07-29 00:58+0100\n"
6
"Last-Translator: Damir Babojelic <jahmirda@gmail.com>\n"
7
"Language-Team: TFN <jahmirda@gmail.com>\n"
8
"Language: English\n"
@@ -17,105 +17,109 @@ msgstr ""
17
"X-Poedit-SearchPath-0: ..\n"
18
"X-Poedit-SearchPath-1: .\n"
19
20
- #: ../mystickymenu.php:73
21
msgid "myStickymenu Settings"
22
msgstr ""
23
24
- #: ../mystickymenu.php:102
25
msgid "myStickymenu Options"
26
msgstr ""
27
28
- #: ../mystickymenu.php:109
29
msgid "Sticky Class"
30
msgstr ""
31
32
- #: ../mystickymenu.php:117
33
msgid "Sticky z-index"
34
msgstr ""
35
36
- #: ../mystickymenu.php:125
37
msgid "Sticky Background Color"
38
msgstr ""
39
40
- #: ../mystickymenu.php:133
41
msgid "Sticky Opacity"
42
msgstr ""
43
44
- #: ../mystickymenu.php:141
45
msgid "Sticky Transition Time"
46
msgstr ""
47
48
- #: ../mystickymenu.php:149
49
msgid "Disable at Small Screen Sizes"
50
msgstr ""
51
52
- #: ../mystickymenu.php:157
53
- msgid "Make visible when scroled"
54
msgstr ""
55
56
- #: ../mystickymenu.php:165
57
msgid "Fade or slide effect"
58
msgstr ""
59
60
- #: ../mystickymenu.php:173
61
msgid ".myfixed css class"
62
msgstr ""
63
64
- #: ../mystickymenu.php:271
65
msgid ""
66
"Add nice modern sticky menu or header to any theme. Defaults works for "
67
"Twenty Thirteen theme. <br />For other themes change 'Sticky Class' to div "
68
"class desired to be sticky (div id can be used too)."
69
msgstr ""
70
71
- #: ../mystickymenu.php:283
72
msgid "menu or header div class or id."
73
msgstr ""
74
75
- #: ../mystickymenu.php:309
76
msgid "numbers 1-100."
77
msgstr ""
78
79
- #: ../mystickymenu.php:319
80
msgid "in seconds."
81
msgstr ""
82
83
- #: ../mystickymenu.php:328
84
msgid "less than"
85
msgstr ""
86
87
- #: ../mystickymenu.php:333
88
msgid "px width, 0 to disable."
89
msgstr ""
90
91
- #: ../mystickymenu.php:342
92
msgid "after"
93
msgstr ""
94
95
- #: ../mystickymenu.php:347
96
msgid "px. (scroll)"
97
msgstr ""
98
99
- #: ../mystickymenu.php:358
100
msgid "Checked is slide, unchecked is fade."
101
msgstr ""
102
103
- #: ../mystickymenu.php:367
104
msgid ""
105
"Add/Edit .myfixed css class to change sticky menu style. Leave it blank for "
106
"default style."
107
msgstr ""
108
109
- #: ../mystickymenu.php:374
110
msgid "Default style: "
111
msgstr ""
112
113
- #: ../mystickymenu.php:376
114
msgid ""
115
"If you want to change sticky hover color first add default style and than: "
116
msgstr ""
117
118
- #: ../mystickymenu.php:378
119
msgid ""
120
"More examples <a href='http://wordpress.transformnews.com/tutorials/"
121
"mystickymenu-extended-style-functionality-using-myfixed-sticky-"
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: myStickymenu\n"
4
+ "POT-Creation-Date: 2014-08-12 18:04+0100\n"
5
+ "PO-Revision-Date: 2014-08-12 18:04+0100\n"
6
"Last-Translator: Damir Babojelic <jahmirda@gmail.com>\n"
7
"Language-Team: TFN <jahmirda@gmail.com>\n"
8
"Language: English\n"
17
"X-Poedit-SearchPath-0: ..\n"
18
"X-Poedit-SearchPath-1: .\n"
19
20
+ #: ../mystickymenu.php:66
21
msgid "myStickymenu Settings"
22
msgstr ""
23
24
+ #: ../mystickymenu.php:95
25
msgid "myStickymenu Options"
26
msgstr ""
27
28
+ #: ../mystickymenu.php:102
29
msgid "Sticky Class"
30
msgstr ""
31
32
+ #: ../mystickymenu.php:110
33
msgid "Sticky z-index"
34
msgstr ""
35
36
+ #: ../mystickymenu.php:118
37
msgid "Sticky Background Color"
38
msgstr ""
39
40
+ #: ../mystickymenu.php:126
41
msgid "Sticky Opacity"
42
msgstr ""
43
44
+ #: ../mystickymenu.php:134
45
msgid "Sticky Transition Time"
46
msgstr ""
47
48
+ #: ../mystickymenu.php:142
49
msgid "Disable at Small Screen Sizes"
50
msgstr ""
51
52
+ #: ../mystickymenu.php:150
53
+ msgid "Make visible when Scrolled"
54
+ msgstr ""
55
+
56
+ #: ../mystickymenu.php:158
57
+ msgid "Make visible when scrolled on Homepage"
58
msgstr ""
59
60
+ #: ../mystickymenu.php:166
61
msgid "Fade or slide effect"
62
msgstr ""
63
64
+ #: ../mystickymenu.php:174
65
msgid ".myfixed css class"
66
msgstr ""
67
68
+ #: ../mystickymenu.php:258
69
msgid ""
70
"Add nice modern sticky menu or header to any theme. Defaults works for "
71
"Twenty Thirteen theme. <br />For other themes change 'Sticky Class' to div "
72
"class desired to be sticky (div id can be used too)."
73
msgstr ""
74
75
+ #: ../mystickymenu.php:270
76
msgid "menu or header div class or id."
77
msgstr ""
78
79
+ #: ../mystickymenu.php:296
80
msgid "numbers 1-100."
81
msgstr ""
82
83
+ #: ../mystickymenu.php:306
84
msgid "in seconds."
85
msgstr ""
86
87
+ #: ../mystickymenu.php:315
88
msgid "less than"
89
msgstr ""
90
91
+ #: ../mystickymenu.php:320
92
msgid "px width, 0 to disable."
93
msgstr ""
94
95
+ #: ../mystickymenu.php:329 ../mystickymenu.php:343
96
msgid "after"
97
msgstr ""
98
99
+ #: ../mystickymenu.php:334 ../mystickymenu.php:348
100
msgid "px. (scroll)"
101
msgstr ""
102
103
+ #: ../mystickymenu.php:359
104
msgid "Checked is slide, unchecked is fade."
105
msgstr ""
106
107
+ #: ../mystickymenu.php:368
108
msgid ""
109
"Add/Edit .myfixed css class to change sticky menu style. Leave it blank for "
110
"default style."
111
msgstr ""
112
113
+ #: ../mystickymenu.php:375
114
msgid "Default style: "
115
msgstr ""
116
117
+ #: ../mystickymenu.php:377
118
msgid ""
119
"If you want to change sticky hover color first add default style and than: "
120
msgstr ""
121
122
+ #: ../mystickymenu.php:379
123
msgid ""
124
"More examples <a href='http://wordpress.transformnews.com/tutorials/"
125
"mystickymenu-extended-style-functionality-using-myfixed-sticky-"
mystickymenu.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: myStickymenu
4
Plugin URI: http://wordpress.transformnews.com/plugins/mystickymenu-simple-sticky-fixed-on-top-menu-implementation-for-twentythirteen-menu-269
5
Description: Simple sticky (fixed on top) menu implementation for default Twentythirteen navigation menu. For other themes, after install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
6
- Version: 1.7
7
Author: m.r.d.a
8
Text domain: mystickymenu
9
Domain Path: /languages
@@ -13,9 +13,6 @@
13
// Block direct acess to the file
14
defined('ABSPATH') or die("Cannot access pages directly.");
15
16
-
17
-
18
-
19
// Add plugin admin settings by Otto
20
class MyStickyMenuPage
21
{
@@ -27,205 +24,207 @@ class MyStickyMenuPage
27
/**
28
* Start up
29
*/
30
- public function __construct()
31
- {
32
- add_action( 'admin_menu', array( $this, 'add_plugin_page' ) );
33
add_action( 'admin_init', array( $this, 'mysticky_load_transl') );
34
- add_action( 'admin_init', array( $this, 'page_init' ) );
35
add_action( 'admin_init', array( $this, 'mysticky_default_options' ) );
36
- add_action( 'admin_enqueue_scripts', array( $this, 'mysticky_enqueue_color_picker' ) );
37
-
38
-
39
}
40
-
41
42
public function mysticky_load_transl()
43
- {
44
- load_plugin_textdomain('mystickymenu', FALSE, dirname(plugin_basename(__FILE__)).'/languages/');
45
- }
46
47
/**
48
* Add options page
49
*/
50
- public function add_plugin_page()
51
- {
52
- // This page will be under "Settings"
53
-
54
- add_options_page(
55
- 'Settings Admin',
56
- 'myStickymenu',
57
- 'manage_options',
58
- 'my-stickymenu-settings',
59
- array( $this, 'create_admin_page' )
60
- );
61
- }
62
63
/**
64
* Options page callback
65
*/
66
- public function create_admin_page()
67
- {
68
- // Set class property
69
- $this->options = get_option( 'mysticky_option_name');
70
- ?>
71
- <div class="wrap">
72
- <?php screen_icon(); ?>
73
- <h2><?php _e('myStickymenu Settings', 'mystickymenu'); ?></h2>
74
- <form method="post" action="options.php">
75
- <?php
76
- // This prints out all hidden setting fields
77
- settings_fields( 'mysticky_option_group' );
78
- do_settings_sections( 'my-stickymenu-settings' );
79
- submit_button();
80
- ?>
81
- </form>
82
- </div>
83
- <?php
84
- }
85
86
/**
87
* Register and add settings
88
*/
89
- public function page_init()
90
- {
91
global $id, $title, $callback, $page;
92
- register_setting(
93
- 'mysticky_option_group', // Option group
94
- 'mysticky_option_name', // Option name
95
- array( $this, 'sanitize' ) // Sanitize
96
- );
97
98
add_settings_field( $id, $title, $callback, $page, $section = 'default', $args = array() );
99
100
- add_settings_section(
101
- 'setting_section_id', // ID
102
- __("myStickymenu Options", 'mystickymenu'), // Title
103
- array( $this, 'print_section_info' ), // Callback
104
- 'my-stickymenu-settings' // Page
105
- );
106
107
- add_settings_field(
108
- 'mysticky_class_selector', // ID
109
__("Sticky Class", 'mystickymenu'), // Title
110
- array( $this, 'mysticky_class_selector_callback' ), // Callback
111
- 'my-stickymenu-settings', // Page
112
- 'setting_section_id' // Section
113
- );
114
115
- add_settings_field(
116
- 'myfixed_zindex',
117
__("Sticky z-index", 'mystickymenu'),
118
- array( $this, 'myfixed_zindex_callback' ),
119
- 'my-stickymenu-settings',
120
- 'setting_section_id'
121
- );
122
-
123
add_settings_field(
124
- 'myfixed_bgcolor',
125
__("Sticky Background Color", 'mystickymenu'),
126
- array( $this, 'myfixed_bgcolor_callback' ),
127
- 'my-stickymenu-settings',
128
- 'setting_section_id'
129
- );
130
-
131
add_settings_field(
132
- 'myfixed_opacity',
133
__("Sticky Opacity", 'mystickymenu'),
134
- array( $this, 'myfixed_opacity_callback' ),
135
- 'my-stickymenu-settings',
136
- 'setting_section_id'
137
- );
138
-
139
add_settings_field(
140
- 'myfixed_transition_time',
141
__("Sticky Transition Time", 'mystickymenu'),
142
- array( $this, 'myfixed_transition_time_callback' ),
143
- 'my-stickymenu-settings',
144
- 'setting_section_id'
145
- );
146
-
147
add_settings_field(
148
- 'myfixed_disable_small_screen',
149
__("Disable at Small Screen Sizes", 'mystickymenu'),
150
- array( $this, 'myfixed_disable_small_screen_callback' ),
151
- 'my-stickymenu-settings',
152
- 'setting_section_id'
153
- );
154
-
155
add_settings_field(
156
- 'mysticky_active_on_height',
157
__("Make visible when scroled", 'mystickymenu'),
158
- array( $this, 'mysticky_active_on_height_callback' ),
159
- 'my-stickymenu-settings',
160
- 'setting_section_id'
161
- );
162
-
163
add_settings_field(
164
- 'myfixed_fade',
165
__("Fade or slide effect", 'mystickymenu'),
166
- array( $this, 'myfixed_fade_callback' ),
167
- 'my-stickymenu-settings',
168
- 'setting_section_id'
169
- );
170
-
171
add_settings_field(
172
- 'myfixed_cssstyle',
173
__(".myfixed css class", 'mystickymenu'),
174
- array( $this, 'myfixed_cssstyle_callback' ),
175
- 'my-stickymenu-settings',
176
- 'setting_section_id'
177
-
178
- );
179
- }
180
-
181
/**
182
* Sanitize each setting field as needed
183
*
184
* @param array $input Contains all settings fields as array keys
185
*/
186
- public function sanitize( $input )
187
- {
188
- $new_input = array();
189
- if( isset( $input['mysticky_class_selector'] ) )
190
- $new_input['mysticky_class_selector'] = sanitize_text_field( $input['mysticky_class_selector'] );
191
-
192
- if( isset( $input['myfixed_zindex'] ) )
193
- $new_input['myfixed_zindex'] = absint( $input['myfixed_zindex'] );
194
-
195
if( isset( $input['myfixed_bgcolor'] ) )
196
- $new_input['myfixed_bgcolor'] = sanitize_text_field( $input['myfixed_bgcolor'] );
197
-
198
if( isset( $input['myfixed_opacity'] ) )
199
- $new_input['myfixed_opacity'] = absint( $input['myfixed_opacity'] );
200
-
201
if( isset( $input['myfixed_transition_time'] ) )
202
- $new_input['myfixed_transition_time'] = sanitize_text_field( $input['myfixed_transition_time'] );
203
-
204
if( isset( $input['myfixed_disable_small_screen'] ) )
205
- $new_input['myfixed_disable_small_screen'] = absint( $input['myfixed_disable_small_screen'] );
206
-
207
if( isset( $input['mysticky_active_on_height'] ) )
208
- $new_input['mysticky_active_on_height'] = absint( $input['mysticky_active_on_height'] );
209
-
210
if( isset( $input['myfixed_fade'] ) )
211
- $new_input['myfixed_fade'] = sanitize_text_field( $input['myfixed_fade'] );
212
-
213
if( isset( $input['myfixed_cssstyle'] ) )
214
- //$new_input['myfixed_cssstyle'] = esc_textarea( $input['myfixed_cssstyle'] );
215
- $new_input['myfixed_cssstyle'] = sanitize_text_field( $input['myfixed_cssstyle'] );
216
-
217
-
218
- return $new_input;
219
- }
220
-
221
/**
222
* Load Defaults
223
*/
224
public function mysticky_default_options() {
225
-
226
global $options;
227
-
228
-
229
$default = array(
230
231
'mysticky_class_selector' => '.navbar',
@@ -235,34 +234,22 @@ class MyStickyMenuPage
235
'myfixed_transition_time' => '0.3',
236
'myfixed_disable_small_screen' => '359',
237
'mysticky_active_on_height' => '320',
238
'myfixed_fade' => false,
239
'myfixed_cssstyle' => '.myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; }'
240
-
241
);
242
243
if ( get_option('mysticky_option_name') == false ) {
244
-
245
-
246
-
247
update_option( 'mysticky_option_name', $default );
248
}
249
-
250
- /*
251
- foreach ( $options as $option => $default_value ) {
252
- if ( ! get_option( $option ) ) {
253
- add_option( $option, $default_value );
254
- } else {
255
- update_option( $option, $default_value );
256
- }
257
- }
258
- */
259
- }
260
public function mysticky_enqueue_color_picker( )
261
{
262
wp_enqueue_style( 'wp-color-picker' );
263
wp_enqueue_script( 'my-script-handle', plugins_url('js/iris-script.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
264
}
265
-
266
/**
267
* Print the Section text
268
*/
@@ -270,7 +257,7 @@ class MyStickyMenuPage
270
{
271
echo __("Add nice modern sticky menu or header to any theme. Defaults works for Twenty Thirteen theme. <br />For other themes change 'Sticky Class' to div class desired to be sticky (div id can be used too).", 'mystickymenu');
272
}
273
-
274
/**
275
* Get the settings option array and print one of its values
276
*/
@@ -283,11 +270,11 @@ class MyStickyMenuPage
283
echo __("menu or header div class or id.", 'mystickymenu');
284
echo '</p>';
285
}
286
-
287
public function myfixed_zindex_callback()
288
{
289
printf(
290
- '<p class="description"><input type="text" size="8" id="myfixed_zindex" name="mysticky_option_name[myfixed_zindex]" value="%s" /></p>',
291
isset( $this->options['myfixed_zindex'] ) ? esc_attr( $this->options['myfixed_zindex']) : ''
292
);
293
}
@@ -295,31 +282,31 @@ class MyStickyMenuPage
295
public function myfixed_bgcolor_callback()
296
{
297
printf(
298
- '<p class="description"><input type="text" size="8" id="myfixed_bgcolor" name="mysticky_option_name[myfixed_bgcolor]" class="my-color-field" value="%s" /></p> ' ,
299
isset( $this->options['myfixed_bgcolor'] ) ? esc_attr( $this->options['myfixed_bgcolor']) : ''
300
- );
301
- }
302
-
303
public function myfixed_opacity_callback()
304
{
305
printf(
306
- '<p class="description"><input type="text" size="4" id="myfixed_opacity" name="mysticky_option_name[myfixed_opacity]" value="%s" /> ',
307
isset( $this->options['myfixed_opacity'] ) ? esc_attr( $this->options['myfixed_opacity']) : ''
308
);
309
echo __("numbers 1-100.", 'mystickymenu');
310
echo '</p>';
311
}
312
-
313
public function myfixed_transition_time_callback()
314
- {
315
- printf(
316
- '<p class="description"><input type="text" size="4" id="myfixed_transition_time" name="mysticky_option_name[myfixed_transition_time]" value="%s" /> ',
317
- isset( $this->options['myfixed_transition_time'] ) ? esc_attr( $this->options['myfixed_transition_time']) : ''
318
- );
319
echo __("in seconds.", 'mystickymenu');
320
echo '</p>';
321
- }
322
-
323
public function myfixed_disable_small_screen_callback()
324
{
325
printf(
@@ -327,13 +314,13 @@ class MyStickyMenuPage
327
);
328
echo __("less than", 'mystickymenu');
329
printf(
330
- ' <input type="text" size="4" id="myfixed_disable_small_screen" name="mysticky_option_name[myfixed_disable_small_screen]" value="%s" />',
331
- isset( $this->options['myfixed_disable_small_screen'] ) ? esc_attr( $this->options['myfixed_disable_small_screen']) : ''
332
);
333
echo __("px width, 0 to disable.", 'mystickymenu');
334
echo '</p>';
335
}
336
-
337
public function mysticky_active_on_height_callback()
338
{
339
printf(
@@ -341,13 +328,27 @@ class MyStickyMenuPage
341
);
342
echo __("after", 'mystickymenu');
343
printf(
344
- ' <input type="text" size="4" id="mysticky_active_on_height" name="mysticky_option_name[mysticky_active_on_height]" value="%s" />',
345
- isset( $this->options['mysticky_active_on_height'] ) ? esc_attr( $this->options['mysticky_active_on_height']) : ''
346
);
347
echo __("px. (scroll)", 'mystickymenu');
348
echo '</p>';
349
}
350
-
351
public function myfixed_fade_callback()
352
{
353
printf(
@@ -358,8 +359,8 @@ class MyStickyMenuPage
358
echo __("Checked is slide, unchecked is fade.", 'mystickymenu');
359
echo '</p>';
360
}
361
-
362
- public function myfixed_cssstyle_callback()
363
{
364
printf(
365
'<p class="description">'
@@ -377,12 +378,12 @@ class MyStickyMenuPage
377
echo '.myfixed li a:hover {color:#000; background-color: #ccc;}<br />';
378
echo __("More examples <a href='http://wordpress.transformnews.com/tutorials/mystickymenu-extended-style-functionality-using-myfixed-sticky-class-403'>here</a>.", 'mystickymenu');
379
echo'</p>';
380
- }
381
382
}
383
384
if( is_admin() )
385
- $my_settings_page = new MyStickyMenuPage();
386
387
// end plugin admin settings
388
@@ -399,15 +400,15 @@ class MyStickyMenuPage
399
}
400
return $link;
401
}
402
-
403
add_filter('the_content_more_link', 'mysticky_remove_more_jump_link');
404
405
// Create style from options
406
407
function mysticky_build_stylesheet_content() {
408
-
409
$mysticky_options = get_option( 'mysticky_option_name' );
410
-
411
echo
412
'<style type="text/css">';
413
if ( is_user_logged_in() ) {
@@ -458,12 +459,27 @@ class MyStickyMenuPage
458
}
459
460
add_action('wp_head', 'mysticky_build_stylesheet_content');
461
-
462
-
463
function mystickymenu_script() {
464
465
$mysticky_options = get_option( 'mysticky_option_name' );
466
467
// Register scripts
468
wp_register_script('mystickymenu', WP_PLUGIN_URL. '/mystickymenu/js/mystickymenu.js', false,'1.0.0', true);
469
wp_enqueue_script( 'mystickymenu' );
3
Plugin Name: myStickymenu
4
Plugin URI: http://wordpress.transformnews.com/plugins/mystickymenu-simple-sticky-fixed-on-top-menu-implementation-for-twentythirteen-menu-269
5
Description: Simple sticky (fixed on top) menu implementation for default Twentythirteen navigation menu. For other themes, after install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
6
+ Version: 1.8
7
Author: m.r.d.a
8
Text domain: mystickymenu
9
Domain Path: /languages
13
// Block direct acess to the file
14
defined('ABSPATH') or die("Cannot access pages directly.");
15
16
// Add plugin admin settings by Otto
17
class MyStickyMenuPage
18
{
24
/**
25
* Start up
26
*/
27
+ public function __construct()
28
+ {
29
+ add_action( 'admin_menu', array( $this, 'add_plugin_page' ) );
30
add_action( 'admin_init', array( $this, 'mysticky_load_transl') );
31
+ add_action( 'admin_init', array( $this, 'page_init' ) );
32
add_action( 'admin_init', array( $this, 'mysticky_default_options' ) );
33
+ add_action( 'admin_enqueue_scripts', array( $this, 'mysticky_enqueue_color_picker' ) );
34
}
35
36
public function mysticky_load_transl()
37
+ {
38
+ load_plugin_textdomain('mystickymenu', FALSE, dirname(plugin_basename(__FILE__)).'/languages/');
39
+ }
40
41
/**
42
* Add options page
43
*/
44
+ public function add_plugin_page()
45
+ {
46
+ // This page will be under "Settings"
47
+ add_options_page(
48
+ 'Settings Admin',
49
+ 'myStickymenu',
50
+ 'manage_options',
51
+ 'my-stickymenu-settings',
52
+ array( $this, 'create_admin_page' )
53
+ );
54
+ }
55
56
/**
57
* Options page callback
58
*/
59
+ public function create_admin_page()
60
+ {
61
+ // Set class property
62
+ $this->options = get_option( 'mysticky_option_name');
63
+ ?>
64
+ <div class="wrap">
65
+ <?php screen_icon(); ?>
66
+ <h2><?php _e('myStickymenu Settings', 'mystickymenu'); ?></h2>
67
+ <form method="post" action="options.php">
68
+ <?php
69
+ // This prints out all hidden setting fields
70
+ settings_fields( 'mysticky_option_group' );
71
+ do_settings_sections( 'my-stickymenu-settings' );
72
+ submit_button();
73
+ ?>
74
+ </form>
75
+ </div>
76
+ <?php
77
+ }
78
79
/**
80
* Register and add settings
81
*/
82
+ public function page_init()
83
+ {
84
global $id, $title, $callback, $page;
85
+ register_setting(
86
+ 'mysticky_option_group', // Option group
87
+ 'mysticky_option_name', // Option name
88
+ array( $this, 'sanitize' ) // Sanitize
89
+ );
90
91
add_settings_field( $id, $title, $callback, $page, $section = 'default', $args = array() );
92
93
+ add_settings_section(
94
+ 'setting_section_id', // ID
95
+ __("myStickymenu Options", 'mystickymenu'), // Title
96
+ array( $this, 'print_section_info' ), // Callback
97
+ 'my-stickymenu-settings' // Page
98
+ );
99
100
+ add_settings_field(
101
+ 'mysticky_class_selector', // ID
102
__("Sticky Class", 'mystickymenu'), // Title
103
+ array( $this, 'mysticky_class_selector_callback' ), // Callback
104
+ 'my-stickymenu-settings', // Page
105
+ 'setting_section_id' // Section
106
+ );
107
108
+ add_settings_field(
109
+ 'myfixed_zindex',
110
__("Sticky z-index", 'mystickymenu'),
111
+ array( $this, 'myfixed_zindex_callback' ),
112
+ 'my-stickymenu-settings',
113
+ 'setting_section_id'
114
+ );
115
+
116
add_settings_field(
117
+ 'myfixed_bgcolor',
118
__("Sticky Background Color", 'mystickymenu'),
119
+ array( $this, 'myfixed_bgcolor_callback' ),
120
+ 'my-stickymenu-settings',
121
+ 'setting_section_id'
122
+ );
123
+
124
add_settings_field(
125
+ 'myfixed_opacity',
126
__("Sticky Opacity", 'mystickymenu'),
127
+ array( $this, 'myfixed_opacity_callback' ),
128
+ 'my-stickymenu-settings',
129
+ 'setting_section_id'
130
+ );
131
+
132
add_settings_field(
133
+ 'myfixed_transition_time',
134
__("Sticky Transition Time", 'mystickymenu'),
135
+ array( $this, 'myfixed_transition_time_callback' ),
136
+ 'my-stickymenu-settings',
137
+ 'setting_section_id'
138
+ );
139
+
140
add_settings_field(
141
+ 'myfixed_disable_small_screen',
142
__("Disable at Small Screen Sizes", 'mystickymenu'),
143
+ array( $this, 'myfixed_disable_small_screen_callback' ),
144
+ 'my-stickymenu-settings',
145
+ 'setting_section_id'
146
+ );
147
+
148
add_settings_field(
149
+ 'mysticky_active_on_height',
150
__("Make visible when scroled", 'mystickymenu'),
151
+ array( $this, 'mysticky_active_on_height_callback' ),
152
+ 'my-stickymenu-settings',
153
+ 'setting_section_id'
154
+ );
155
+
156
add_settings_field(
157
+ 'mysticky_active_on_height_home',
158
+ __("Make visible when scroled on homepage", 'mystickymenu'),
159
+ array( $this, 'mysticky_active_on_height_home_callback' ),
160
+ 'my-stickymenu-settings',
161
+ 'setting_section_id'
162
+ );
163
+
164
+ add_settings_field(
165
+ 'myfixed_fade',
166
__("Fade or slide effect", 'mystickymenu'),
167
+ array( $this, 'myfixed_fade_callback' ),
168
+ 'my-stickymenu-settings',
169
+ 'setting_section_id'
170
+ );
171
+
172
add_settings_field(
173
+ 'myfixed_cssstyle',
174
__(".myfixed css class", 'mystickymenu'),
175
+ array( $this, 'myfixed_cssstyle_callback' ),
176
+ 'my-stickymenu-settings',
177
+ 'setting_section_id'
178
+ );
179
+ }
180
/**
181
* Sanitize each setting field as needed
182
*
183
* @param array $input Contains all settings fields as array keys
184
*/
185
+ public function sanitize( $input )
186
+ {
187
+ $new_input = array();
188
+ if( isset( $input['mysticky_class_selector'] ) )
189
+ $new_input['mysticky_class_selector'] = sanitize_text_field( $input['mysticky_class_selector'] );
190
+
191
+ if( isset( $input['myfixed_zindex'] ) )
192
+ $new_input['myfixed_zindex'] = absint( $input['myfixed_zindex'] );
193
+
194
if( isset( $input['myfixed_bgcolor'] ) )
195
+ $new_input['myfixed_bgcolor'] = sanitize_text_field( $input['myfixed_bgcolor'] );
196
+
197
if( isset( $input['myfixed_opacity'] ) )
198
+ $new_input['myfixed_opacity'] = absint( $input['myfixed_opacity'] );
199
+
200
if( isset( $input['myfixed_transition_time'] ) )
201
+ $new_input['myfixed_transition_time'] = sanitize_text_field( $input['myfixed_transition_time'] );
202
+
203
if( isset( $input['myfixed_disable_small_screen'] ) )
204
+ $new_input['myfixed_disable_small_screen'] = absint( $input['myfixed_disable_small_screen'] );
205
+
206
if( isset( $input['mysticky_active_on_height'] ) )
207
+ $new_input['mysticky_active_on_height'] = absint( $input['mysticky_active_on_height'] );
208
+
209
+ if( isset( $input['mysticky_active_on_height_home'] ) )
210
+ $new_input['mysticky_active_on_height_home'] = absint( $input['mysticky_active_on_height_home'] );
211
+
212
if( isset( $input['myfixed_fade'] ) )
213
+ $new_input['myfixed_fade'] = sanitize_text_field( $input['myfixed_fade'] );
214
+
215
if( isset( $input['myfixed_cssstyle'] ) )
216
+ $new_input['myfixed_cssstyle'] = sanitize_text_field( $input['myfixed_cssstyle'] );
217
+
218
+ return $new_input;
219
+ }
220
+
221
/**
222
* Load Defaults
223
*/
224
public function mysticky_default_options() {
225
+
226
global $options;
227
+
228
$default = array(
229
230
'mysticky_class_selector' => '.navbar',
234
'myfixed_transition_time' => '0.3',
235
'myfixed_disable_small_screen' => '359',
236
'mysticky_active_on_height' => '320',
237
+ 'mysticky_active_on_height_home' => '320',
238
'myfixed_fade' => false,
239
'myfixed_cssstyle' => '.myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; }'
240
);
241
242
if ( get_option('mysticky_option_name') == false ) {
243
update_option( 'mysticky_option_name', $default );
244
}
245
+ }
246
+
247
public function mysticky_enqueue_color_picker( )
248
{
249
wp_enqueue_style( 'wp-color-picker' );
250
wp_enqueue_script( 'my-script-handle', plugins_url('js/iris-script.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
251
}
252
+
253
/**
254
* Print the Section text
255
*/
257
{
258
echo __("Add nice modern sticky menu or header to any theme. Defaults works for Twenty Thirteen theme. <br />For other themes change 'Sticky Class' to div class desired to be sticky (div id can be used too).", 'mystickymenu');
259
}
260
+
261
/**
262
* Get the settings option array and print one of its values
263
*/
270
echo __("menu or header div class or id.", 'mystickymenu');
271
echo '</p>';
272
}
273
+
274
public function myfixed_zindex_callback()
275
{
276
printf(
277
+ '<p class="description"><input type="number" min="0" max="2147483647" step="1" id="myfixed_zindex" name="mysticky_option_name[myfixed_zindex]" value="%s" /></p>',
278
isset( $this->options['myfixed_zindex'] ) ? esc_attr( $this->options['myfixed_zindex']) : ''
279
);
280
}
282
public function myfixed_bgcolor_callback()
283
{
284
printf(
285
+ '<p class="description"><input type="text" id="myfixed_bgcolor" name="mysticky_option_name[myfixed_bgcolor]" class="my-color-field" value="%s" /></p> ' ,
286
isset( $this->options['myfixed_bgcolor'] ) ? esc_attr( $this->options['myfixed_bgcolor']) : ''
287
+ );
288
+ }
289
+
290
public function myfixed_opacity_callback()
291
{
292
printf(
293
+ '<p class="description"><input type="number" class="small-text" min="0" step="1" max="100" id="myfixed_opacity" name="mysticky_option_name[myfixed_opacity]" value="%s" /> ',
294
isset( $this->options['myfixed_opacity'] ) ? esc_attr( $this->options['myfixed_opacity']) : ''
295
);
296
echo __("numbers 1-100.", 'mystickymenu');
297
echo '</p>';
298
}
299
+
300
public function myfixed_transition_time_callback()
301
+ {
302
+ printf(
303
+ '<p class="description"><input type="number" class="small-text" min="0" step="0.1" id="myfixed_transition_time" name="mysticky_option_name[myfixed_transition_time]" value="%s" /> ',
304
+ isset( $this->options['myfixed_transition_time'] ) ? esc_attr( $this->options['myfixed_transition_time']) : ''
305
+ );
306
echo __("in seconds.", 'mystickymenu');
307
echo '</p>';
308
+ }
309
+
310
public function myfixed_disable_small_screen_callback()
311
{
312
printf(
314
);
315
echo __("less than", 'mystickymenu');
316
printf(
317
+ ' <input type="number" class="small-text" min="0" step="1" id="myfixed_disable_small_screen" name="mysticky_option_name[myfixed_disable_small_screen]" value="%s" />',
318
+ isset( $this->options['myfixed_disable_small_screen'] ) ? esc_attr( $this->options['myfixed_disable_small_screen']) : ''
319
);
320
echo __("px width, 0 to disable.", 'mystickymenu');
321
echo '</p>';
322
}
323
+
324
public function mysticky_active_on_height_callback()
325
{
326
printf(
328
);
329
echo __("after", 'mystickymenu');
330
printf(
331
+ ' <input type="number" class="small-text" min="0" step="1" id="mysticky_active_on_height" name="mysticky_option_name[mysticky_active_on_height]" value="%s" />',
332
+ isset( $this->options['mysticky_active_on_height'] ) ? esc_attr( $this->options['mysticky_active_on_height']) : ''
333
);
334
echo __("px. (scroll)", 'mystickymenu');
335
echo '</p>';
336
}
337
+
338
+ public function mysticky_active_on_height_home_callback()
339
+ {
340
+ printf(
341
+ '<p class="description">'
342
+ );
343
+ echo __("after", 'mystickymenu');
344
+ printf(
345
+ ' <input type="number" class="small-text" min="0" step="1" id="mysticky_active_on_height_home" name="mysticky_option_name[mysticky_active_on_height_home]" value="%s" />',
346
+ isset( $this->options['mysticky_active_on_height_home'] ) ? esc_attr( $this->options['mysticky_active_on_height_home']) : ''
347
+ );
348
+ echo __("px. (scroll)", 'mystickymenu');
349
+ echo '</p>';
350
+ }
351
+
352
public function myfixed_fade_callback()
353
{
354
printf(
359
echo __("Checked is slide, unchecked is fade.", 'mystickymenu');
360
echo '</p>';
361
}
362
+
363
+ public function myfixed_cssstyle_callback()
364
{
365
printf(
366
'<p class="description">'
378
echo '.myfixed li a:hover {color:#000; background-color: #ccc;}<br />';
379
echo __("More examples <a href='http://wordpress.transformnews.com/tutorials/mystickymenu-extended-style-functionality-using-myfixed-sticky-class-403'>here</a>.", 'mystickymenu');
380
echo'</p>';
381
+ }
382
383
}
384
385
if( is_admin() )
386
+ $my_settings_page = new MyStickyMenuPage();
387
388
// end plugin admin settings
389
400
}
401
return $link;
402
}
403
+
404
add_filter('the_content_more_link', 'mysticky_remove_more_jump_link');
405
406
// Create style from options
407
408
function mysticky_build_stylesheet_content() {
409
+
410
$mysticky_options = get_option( 'mysticky_option_name' );
411
+
412
echo
413
'<style type="text/css">';
414
if ( is_user_logged_in() ) {
459
}
460
461
add_action('wp_head', 'mysticky_build_stylesheet_content');
462
+
463
function mystickymenu_script() {
464
465
$mysticky_options = get_option( 'mysticky_option_name' );
466
467
+ // needed for update 1.7 => 1.8 ... will be removed in the future ()
468
+ if (isset($mysticky_options['mysticky_active_on_height_home'])){
469
+ //do nothing
470
+ } else {
471
+ $mysticky_options['mysticky_active_on_height_home'] = $mysticky_options['mysticky_active_on_height'];
472
+ };
473
+
474
+ // if set to 0 => display default active_on_height
475
+ if ($mysticky_options['mysticky_active_on_height_home'] == 0 ){
476
+ $mysticky_options['mysticky_active_on_height_home'] = $mysticky_options['mysticky_active_on_height'];
477
+ };
478
+
479
+ if ( is_home() ) {
480
+ $mysticky_options['mysticky_active_on_height'] = $mysticky_options['mysticky_active_on_height_home'];
481
+ };
482
+
483
// Register scripts
484
wp_register_script('mystickymenu', WP_PLUGIN_URL. '/mystickymenu/js/mystickymenu.js', false,'1.0.0', true);
485
wp_enqueue_script( 'mystickymenu' );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wordpress.transformnews.com
4
Tags: sticky menu, twentythirteen, twenty-thirteen, plugin, menu, jquery, sticky header, header, sticky, sticky navigation
5
Requires at least: 3.5.1
6
Tested up to: 4.0
7
- Stable tag: 1.7
8
License: GPLv2 or later
9
10
This modern lightweight plugin will made your menu or header sticky on top of page, after desired number of pixels when scrolled.
@@ -39,6 +39,10 @@ Yes, just leave "Sticky Background Color" field blank (clear). Than if needed de
39
40
== Changelog ==
41
42
= 1.7 =
43
* Added multi language support (localization).
44
* Added languages - English (default), Spanish, Serbian and Croatian.
@@ -77,6 +81,9 @@ Yes, just leave "Sticky Background Color" field blank (clear). Than if needed de
77
78
== Upgrade Notice ==
79
80
= 1.7 =
81
* Added multi language support (localization).
82
* Added Iris color picker script.
4
Tags: sticky menu, twentythirteen, twenty-thirteen, plugin, menu, jquery, sticky header, header, sticky, sticky navigation
5
Requires at least: 3.5.1
6
Tested up to: 4.0
7
+ Stable tag: 1.8
8
License: GPLv2 or later
9
10
This modern lightweight plugin will made your menu or header sticky on top of page, after desired number of pixels when scrolled.
39
40
== Changelog ==
41
42
+ = 1.8 =
43
+ * Added: "Make visible when scrolled on Homepage" after number of pixels. Now it’s possible to have one activation height for home page and another for the rest of the pages.
44
+ * Added German language
45
+
46
= 1.7 =
47
* Added multi language support (localization).
48
* Added languages - English (default), Spanish, Serbian and Croatian.
81
82
== Upgrade Notice ==
83
84
+ = 1.8 =
85
+ * Added: "Make visible when scrolled on Homepage" after number of pixels. Now it’s possible to have one activation height for home page and another for the rest of the pages.
86
+
87
= 1.7 =
88
* Added multi language support (localization).
89
* Added Iris color picker script.