myStickymenu - Version 1.7

Version Description

  • Added multi language support (localization).
  • Added languages - English (default), Spanish, Serbian and Croatian.
  • Added Iris color picker script.
  • Fixed jumping of page on scroll while menu is activated (height is defined before scroll event).
  • mystickymenu.js moved to js folder
Download this release

Release Info

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

Code changes from version 1.6 to 1.7

js/iris-script.js ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ jQuery(document).ready(function($){
2
+ $('.my-color-field').wpColorPicker();
3
+ });
mystickymenu.js → js/mystickymenu.js RENAMED
File without changes
languages/mystickymenu-es_ES.mo ADDED
Binary file
languages/mystickymenu-es_ES.po ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: myStickymenu\n"
4
+ "POT-Creation-Date: 2014-08-12 18:07+0100\n"
5
+ "PO-Revision-Date: 2014-08-12 18:07+0100\n"
6
+ "Last-Translator: Damir Babojelic <jahmirda@gmail.com>\n"
7
+ "Language-Team: TFN <jahmirda@gmail.com>\n"
8
+ "Language: English\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 " Configuraciones de myStickymenu "
23
+
24
+ #: ../mystickymenu.php:95
25
+ msgid "myStickymenu Options"
26
+ msgstr " Opciones de myStickymenu "
27
+
28
+ #: ../mystickymenu.php:102
29
+ msgid "Sticky Class"
30
+ msgstr " Clase de Sticky "
31
+
32
+ #: ../mystickymenu.php:110
33
+ msgid "Sticky z-index"
34
+ msgstr " z-index de Sticky "
35
+
36
+ #: ../mystickymenu.php:118
37
+ msgid "Sticky Background Color"
38
+ msgstr " Color de Fondo de Sticky "
39
+
40
+ #: ../mystickymenu.php:126
41
+ msgid "Sticky Opacity"
42
+ msgstr " Opacidad de Sticky "
43
+
44
+ #: ../mystickymenu.php:134
45
+ msgid "Sticky Transition Time"
46
+ msgstr " Tiempo de Transición de Sticky "
47
+
48
+ #: ../mystickymenu.php:142
49
+ msgid "Disable at Small Screen Sizes"
50
+ msgstr " Desabilitado en Tamaños Pequeños en la Pantalla"
51
+
52
+ #: ../mystickymenu.php:150
53
+ msgid "Make visible when Scrolled"
54
+ msgstr " Hacer visible cuando se hace scroll "
55
+
56
+ #: ../mystickymenu.php:158
57
+ msgid "Make visible when scrolled on Homepage"
58
+ msgstr " Hacer visible cuando se hace scroll on homepage"
59
+
60
+ #: ../mystickymenu.php:166
61
+ msgid "Fade or slide effect"
62
+ msgstr " Atenuar o deslizar efecto"
63
+
64
+ #: ../mystickymenu.php:174
65
+ msgid ".myfixed css class"
66
+ msgstr ".myfixed css class"
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
+ "Adiciona agradable menú o encabezado moderno a cualquier tema. Por defecto "
75
+ "trabaja con el tema Twenty Thirteen. <br/> Para otros temas cambie 'Sticky "
76
+ "Class' a la clase div que se quiere poner como sticky (el id del div puede "
77
+ "ser usado también)."
78
+
79
+ #: ../mystickymenu.php:270
80
+ msgid "menu or header div class or id."
81
+ msgstr "clase o id del div del menú o encabezado."
82
+
83
+ #: ../mystickymenu.php:296
84
+ msgid "numbers 1-100."
85
+ msgstr " números 1-100."
86
+
87
+ #: ../mystickymenu.php:306
88
+ msgid "in seconds."
89
+ msgstr "en cuestión de segundos."
90
+
91
+ #: ../mystickymenu.php:315
92
+ msgid "less than"
93
+ msgstr "menos que"
94
+
95
+ #: ../mystickymenu.php:320
96
+ msgid "px width, 0 to disable."
97
+ msgstr "ancho px, 0 para desactivarlo."
98
+
99
+ #: ../mystickymenu.php:329 ../mystickymenu.php:343
100
+ msgid "after"
101
+ msgstr "después"
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 "Checked es deslizar, sin control se desvanecen."
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
+ "Agregar / Editar. Myfixed clase CSS para cambiar el estilo de menú pegajoso. "
117
+ "Déjelo en blanco para el estilo predeterminado."
118
+
119
+ #: ../mystickymenu.php:375
120
+ msgid "Default style: "
121
+ msgstr "Estilo por defecto:"
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
+ "Si desea cambiar el color libración pegajosa primero añadir estilo por "
128
+ "defecto y que:"
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-"
134
+ "class-403'>here</a>."
135
+ msgstr ""
136
+ "Más ejemplos <unas href='http://wordpress.transformnews.com/tutorials/"
137
+ "mystickymenu-extended-style-functionality-using-myfixed-sticky-"
138
+ "class-403'>here</a>."
139
+
140
+ #~ msgid "mymessage2"
141
+ #~ msgstr "Bye"
languages/mystickymenu-hr_HR.mo ADDED
Binary file
languages/mystickymenu-hr_HR.po ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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"
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: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 "
68
+ "class desired to be sticky (div id can be used too)."
69
+ msgstr ""
70
+ "Dodajte moderan 'sticky' izbornik ili zaglavlje bilo kojem predlošku (temi). "
71
+ "Zadane postavke rade na Twenty Thirteen temi. Za ostale teme promijenite "
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-"
128
+ "class-403'>here</a>."
129
+ msgstr ""
130
+ "Više primjera <a href='http://wordpress.transformnews.com/tutorials/"
131
+ "mystickymenu-extended-style-functionality-using-myfixed-sticky-"
132
+ "class-403'>ovdje</a>."
133
+
134
+ #~ msgid "px"
135
+ #~ msgstr "px. (scroll)"
136
+
137
+ #~ msgid "sticky z-index."
138
+ #~ msgstr "sticky z-index."
139
+
140
+ #~ msgid "full width background color."
141
+ #~ msgstr "pozadinska boja"
142
+
143
+ #~ msgid "mymessage2"
144
+ #~ msgstr "Bye"
languages/mystickymenu-rs_RS.mo ADDED
Binary file
languages/mystickymenu-rs_RS.po ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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"
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: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 "
68
+ "class desired to be sticky (div id can be used too)."
69
+ msgstr ""
70
+ "Dodajte moderan 'sticky' meni ili zaglavlje bilo kojoj (temi). Zadate "
71
+ "postavke rade na Twenty Thirteen temi. Za ostale teme promenite 'Sticky "
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."
111
+ 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-"
130
+ "class-403'>here</a>."
131
+ msgstr ""
132
+ "Više primera <a href='http://wordpress.transformnews.com/tutorials/"
133
+ "mystickymenu-extended-style-functionality-using-myfixed-sticky-"
134
+ "class-403'>ovde</a>."
135
+
136
+ #~ msgid "mymessage2"
137
+ #~ msgstr "Bye"
languages/mystickymenu.mo ADDED
Binary file
languages/mystickymenu.po ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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"
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: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-"
122
+ "class-403'>here</a>."
123
+ msgstr ""
124
+
125
+ #~ msgid "mymessage2"
126
+ #~ msgstr "Bye"
mystickymenu.css DELETED
@@ -1 +0,0 @@
1
- /*Depracated*/
 
mystickymenu.php CHANGED
@@ -1,36 +1,52 @@
1
  <?php
2
- /*
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.6
7
- Author: m.r.d.a
8
- License: GPLv2 or later
9
- */
 
 
 
10
  // Block direct acess to the file
11
  defined('ABSPATH') or die("Cannot access pages directly.");
12
 
 
 
 
13
  // Add plugin admin settings by Otto
14
  class MyStickyMenuPage
15
  {
16
- /**
17
- * Holds the values to be used in the fields callbacks
18
- */
19
  private $options;
20
 
21
- /**
22
- * Start up
23
- */
24
  public function __construct()
25
  {
26
  add_action( 'admin_menu', array( $this, 'add_plugin_page' ) );
 
27
  add_action( 'admin_init', array( $this, 'page_init' ) );
28
  add_action( 'admin_init', array( $this, 'mysticky_default_options' ) );
29
- }
30
 
31
- /**
32
- * Add options page
33
- */
 
 
 
 
 
 
 
 
 
34
  public function add_plugin_page()
35
  {
36
  // This page will be under "Settings"
@@ -44,9 +60,9 @@ class MyStickyMenuPage
44
  );
45
  }
46
 
47
- /**
48
- * Options page callback
49
- */
50
  public function create_admin_page()
51
  {
52
  // Set class property
@@ -54,7 +70,7 @@ class MyStickyMenuPage
54
  ?>
55
  <div class="wrap">
56
  <?php screen_icon(); ?>
57
- <h2>myStickymenu Settings</h2>
58
  <form method="post" action="options.php">
59
  <?php
60
  // This prints out all hidden setting fields
@@ -67,9 +83,9 @@ class MyStickyMenuPage
67
  <?php
68
  }
69
 
70
- /**
71
- * Register and add settings
72
- */
73
  public function page_init()
74
  {
75
  global $id, $title, $callback, $page;
@@ -83,14 +99,14 @@ class MyStickyMenuPage
83
 
84
  add_settings_section(
85
  'setting_section_id', // ID
86
- 'myStickymenu Options', // Title
87
  array( $this, 'print_section_info' ), // Callback
88
  'my-stickymenu-settings' // Page
89
  );
90
 
91
  add_settings_field(
92
  'mysticky_class_selector', // ID
93
- 'Sticky Class', // Title
94
  array( $this, 'mysticky_class_selector_callback' ), // Callback
95
  'my-stickymenu-settings', // Page
96
  'setting_section_id' // Section
@@ -98,7 +114,7 @@ class MyStickyMenuPage
98
 
99
  add_settings_field(
100
  'myfixed_zindex',
101
- 'Sticky z-index',
102
  array( $this, 'myfixed_zindex_callback' ),
103
  'my-stickymenu-settings',
104
  'setting_section_id'
@@ -106,7 +122,7 @@ class MyStickyMenuPage
106
 
107
  add_settings_field(
108
  'myfixed_bgcolor',
109
- 'Sticky Background Color',
110
  array( $this, 'myfixed_bgcolor_callback' ),
111
  'my-stickymenu-settings',
112
  'setting_section_id'
@@ -114,7 +130,7 @@ class MyStickyMenuPage
114
 
115
  add_settings_field(
116
  'myfixed_opacity',
117
- 'Sticky Opacity',
118
  array( $this, 'myfixed_opacity_callback' ),
119
  'my-stickymenu-settings',
120
  'setting_section_id'
@@ -122,7 +138,7 @@ class MyStickyMenuPage
122
 
123
  add_settings_field(
124
  'myfixed_transition_time',
125
- 'Sticky Transition Time',
126
  array( $this, 'myfixed_transition_time_callback' ),
127
  'my-stickymenu-settings',
128
  'setting_section_id'
@@ -130,7 +146,7 @@ class MyStickyMenuPage
130
 
131
  add_settings_field(
132
  'myfixed_disable_small_screen',
133
- 'Disable at Small Screen Sizes',
134
  array( $this, 'myfixed_disable_small_screen_callback' ),
135
  'my-stickymenu-settings',
136
  'setting_section_id'
@@ -138,7 +154,7 @@ class MyStickyMenuPage
138
 
139
  add_settings_field(
140
  'mysticky_active_on_height',
141
- 'Make visible when scroled',
142
  array( $this, 'mysticky_active_on_height_callback' ),
143
  'my-stickymenu-settings',
144
  'setting_section_id'
@@ -146,7 +162,7 @@ class MyStickyMenuPage
146
 
147
  add_settings_field(
148
  'myfixed_fade',
149
- 'Fade or slide effect',
150
  array( $this, 'myfixed_fade_callback' ),
151
  'my-stickymenu-settings',
152
  'setting_section_id'
@@ -154,7 +170,7 @@ class MyStickyMenuPage
154
 
155
  add_settings_field(
156
  'myfixed_cssstyle',
157
- '.myfixed css class',
158
  array( $this, 'myfixed_cssstyle_callback' ),
159
  'my-stickymenu-settings',
160
  'setting_section_id'
@@ -162,11 +178,11 @@ class MyStickyMenuPage
162
  );
163
  }
164
 
165
- /**
166
- * Sanitize each setting field as needed
167
- *
168
- * @param array $input Contains all settings fields as array keys
169
- */
170
  public function sanitize( $input )
171
  {
172
  $new_input = array();
@@ -202,9 +218,9 @@ class MyStickyMenuPage
202
  return $new_input;
203
  }
204
 
205
- /**
206
- * Load Defaults
207
- */
208
  public function mysticky_default_options() {
209
 
210
  global $options;
@@ -241,95 +257,126 @@ class MyStickyMenuPage
241
  }
242
  */
243
  }
 
 
 
 
 
244
 
245
- /**
246
- * Print the Section text
247
- */
248
-
249
- public function print_section_info()
250
- {
251
- print '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).';
252
- }
253
- /**
254
- * Get the settings option array and print one of its values
255
- */
256
-
257
- public function mysticky_class_selector_callback()
258
- {
259
- printf(
260
- '<p class="description"><input type="text" size="8" id="mysticky_class_selector" name="mysticky_option_name[mysticky_class_selector]" value="%s" /> menu or header div class or id.</p>',
261
- isset( $this->options['mysticky_class_selector'] ) ? esc_attr( $this->options['mysticky_class_selector']) : ''
262
- );
263
  }
264
 
265
- public function myfixed_zindex_callback()
266
- {
267
- printf(
268
- '<p class="description"><input type="text" size="8" id="myfixed_zindex" name="mysticky_option_name[myfixed_zindex]" value="%s" /> sticky z-index.</p>',
269
- isset( $this->options['myfixed_zindex'] ) ? esc_attr( $this->options['myfixed_zindex']) : ''
270
- );
271
- }
 
 
 
 
 
272
 
 
 
 
 
 
 
 
 
273
  public function myfixed_bgcolor_callback()
274
- {
275
- printf(
276
- '<p class="description"><input type="text" size="8" id="myfixed_bgcolor" name="mysticky_option_name[myfixed_bgcolor]" value="%s" /> full width background color.</p>' ,
277
- isset( $this->options['myfixed_bgcolor'] ) ? esc_attr( $this->options['myfixed_bgcolor']) : ''
278
  );
279
  }
280
 
281
  public function myfixed_opacity_callback()
282
- {
283
- printf(
284
- '<p class="description"><input type="text" size="4" id="myfixed_opacity" name="mysticky_option_name[myfixed_opacity]" value="%s" /> numbers 1-100.</p>',
285
- isset( $this->options['myfixed_opacity'] ) ? esc_attr( $this->options['myfixed_opacity']) : ''
286
- );
287
- }
 
 
288
 
289
  public function myfixed_transition_time_callback()
290
  {
291
  printf(
292
- '<p class="description"><input type="text" size="4" id="myfixed_transition_time" name="mysticky_option_name[myfixed_transition_time]" value="%s" /> in seconds.</p>',
293
  isset( $this->options['myfixed_transition_time'] ) ? esc_attr( $this->options['myfixed_transition_time']) : ''
294
  );
 
 
295
  }
296
 
297
  public function myfixed_disable_small_screen_callback()
298
  {
299
  printf(
300
- '<p class="description">less than <input type="text" size="4" id="myfixed_disable_small_screen" name="mysticky_option_name[myfixed_disable_small_screen]" value="%s" />px width, 0 to disable.</p>',
 
 
 
 
301
  isset( $this->options['myfixed_disable_small_screen'] ) ? esc_attr( $this->options['myfixed_disable_small_screen']) : ''
302
  );
 
 
303
  }
304
 
305
  public function mysticky_active_on_height_callback()
306
  {
307
  printf(
308
- '<p class="description">after <input type="text" size="4" id="mysticky_active_on_height" name="mysticky_option_name[mysticky_active_on_height]" value="%s" />px, </p>',
 
 
 
 
309
  isset( $this->options['mysticky_active_on_height'] ) ? esc_attr( $this->options['mysticky_active_on_height']) : ''
310
  );
 
 
311
  }
312
 
313
  public function myfixed_fade_callback()
314
  {
315
  printf(
316
- '<p class="description"><input id="%1$s" name="mysticky_option_name[myfixed_fade]" type="checkbox" %2$s /> Checked is slide, unchecked is fade.</p>',
317
  'myfixed_fade',
318
  checked( isset( $this->options['myfixed_fade'] ), true, false )
319
  );
320
-
 
321
  }
322
 
323
  public function myfixed_cssstyle_callback()
324
-
325
- {
326
- printf(
327
- '
328
- <p class="description">Add/Edit .myfixed css class to change sticky menu style. Leave it blank for default style.</p> <textarea type="text" rows="4" cols="60" id="myfixed_cssstyle" name="mysticky_option_name[myfixed_cssstyle]">%s</textarea> <br />
329
- ' ,
330
- isset( $this->options['myfixed_cssstyle'] ) ? esc_attr( $this->options['myfixed_cssstyle']) : ''
331
- );
332
- echo '<p class="description">Default style: .myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; }<br /><br />If you want to change sticky hover color first add default style and than: .myfixed li a:hover {color:#000; background-color: #ccc;} .<br /> More examples <a href="http://wordpress.transformnews.com/tutorials/mystickymenu-extended-style-functionality-using-myfixed-sticky-class-403" target="blank">here</a>.</p>';
 
 
 
 
 
 
 
 
333
  }
334
 
335
  }
@@ -337,29 +384,25 @@ class MyStickyMenuPage
337
  if( is_admin() )
338
  $my_settings_page = new MyStickyMenuPage();
339
 
340
- // end plugin admin settings
341
 
342
- // Remove default option for more link that jumps at the midle of page and its covered by menu
343
 
344
  function mysticky_remove_more_jump_link($link)
345
  {
346
-
347
  $offset = strpos($link, '#more-');
348
-
349
  if ($offset) {
350
  $end = strpos($link, '"',$offset);
351
  }
352
-
353
  if ($end) {
354
  $link = substr_replace($link, '', $offset, $end-$offset);
355
  }
356
-
357
  return $link;
358
  }
359
 
360
  add_filter('the_content_more_link', 'mysticky_remove_more_jump_link');
361
 
362
- // Create style from options
363
 
364
  function mysticky_build_stylesheet_content() {
365
 
@@ -368,18 +411,19 @@ class MyStickyMenuPage
368
  echo
369
  '<style type="text/css">';
370
  if ( is_user_logged_in() ) {
 
371
  echo '#wpadminbar { position: absolute !important; top: 0px !important;}';
372
  }
 
373
  if ( $mysticky_options['myfixed_cssstyle'] == "" ) {
374
  echo '.myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; }';
375
  }
376
  echo
377
- $mysticky_options ['myfixed_cssstyle'] ;
378
-
379
  echo
380
  '
381
  #mysticky-nav { width:100%!important; position: static;';
382
-
383
  if (isset($mysticky_options['myfixed_fade'])){
384
 
385
  echo
@@ -389,21 +433,21 @@ class MyStickyMenuPage
389
  '}';
390
 
391
  if ($mysticky_options ['myfixed_opacity'] == 100 ){
392
-
393
-
394
  echo
395
  '.wrapfixed { position: fixed!important; top:0px!important; left: 0px!important; margin-top:0px!important; z-index: '. $mysticky_options ['myfixed_zindex'] .'; -webkit-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -moz-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -o-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; background-color: ' . $mysticky_options ['myfixed_bgcolor'] . '!important; }
396
  ';
397
  }
 
398
  if ($mysticky_options ['myfixed_opacity'] < 100 ){
399
 
400
-
401
  echo
402
  '.wrapfixed { position: fixed!important; top:0px!important; left: 0px!important; margin-top:0px!important; z-index: '. $mysticky_options ['myfixed_zindex'] .'; -webkit-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -moz-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -o-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=' . $mysticky_options ['myfixed_opacity'] . ')"; filter: alpha(opacity=' . $mysticky_options ['myfixed_opacity'] . '); opacity:.' . $mysticky_options ['myfixed_opacity'] . '; background-color: ' . $mysticky_options ['myfixed_bgcolor'] . '!important; }
403
  ';
404
  }
405
 
406
  if ($mysticky_options ['myfixed_disable_small_screen'] > 0 ){
 
407
  echo
408
  '@media (max-width: ' . $mysticky_options ['myfixed_disable_small_screen'] . 'px) {.wrapfixed {position: static!important; display: none!important;}}
409
  ';
@@ -421,7 +465,7 @@ class MyStickyMenuPage
421
  $mysticky_options = get_option( 'mysticky_option_name' );
422
 
423
  // Register scripts
424
- wp_register_script('mystickymenu', WP_PLUGIN_URL. '/mystickymenu/mystickymenu.js', false,'1.0.0', true);
425
  wp_enqueue_script( 'mystickymenu' );
426
 
427
  // Localize mystickymenu.js script with myStickymenu options
1
  <?php
2
+ /*
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
10
+ License: GPLv2 or later
11
+ */
12
+
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
  {
22
+ /**
23
+ * Holds the values to be used in the fields callbacks
24
+ */
25
  private $options;
26
 
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"
60
  );
61
  }
62
 
63
+ /**
64
+ * Options page callback
65
+ */
66
  public function create_admin_page()
67
  {
68
  // Set class property
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
83
  <?php
84
  }
85
 
86
+ /**
87
+ * Register and add settings
88
+ */
89
  public function page_init()
90
  {
91
  global $id, $title, $callback, $page;
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
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'
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'
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'
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'
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'
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'
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'
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'
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();
218
  return $new_input;
219
  }
220
 
221
+ /**
222
+ * Load Defaults
223
+ */
224
  public function mysticky_default_options() {
225
 
226
  global $options;
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
+ */
269
+ public function print_section_info()
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
+ */
277
+ public function mysticky_class_selector_callback()
278
+ {
279
+ printf(
280
+ '<p class="description"><input type="text" size="8" id="mysticky_class_selector" name="mysticky_option_name[mysticky_class_selector]" value="%s" /> ',
281
+ isset( $this->options['mysticky_class_selector'] ) ? esc_attr( $this->options['mysticky_class_selector']) : ''
282
+ );
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
+ }
294
+
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(
326
+ '<p class="description">'
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(
340
+ '<p class="description">'
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(
354
+ '<p class="description"><input id="%1$s" name="mysticky_option_name[myfixed_fade]" type="checkbox" %2$s /> ',
355
  'myfixed_fade',
356
  checked( isset( $this->options['myfixed_fade'] ), true, false )
357
  );
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">'
366
+ );
367
+ echo __("Add/Edit .myfixed css class to change sticky menu style. Leave it blank for default style.", 'mystickymenu');
368
+ echo '</p>';
369
+ printf(
370
+ '<textarea type="text" rows="4" cols="60" id="myfixed_cssstyle" name="mysticky_option_name[myfixed_cssstyle]">%s</textarea> <br />',
371
+ isset( $this->options['myfixed_cssstyle'] ) ? esc_attr( $this->options['myfixed_cssstyle']) : ''
372
+ );
373
+ echo '<p class="description">';
374
+ echo __("Default style: ", 'mystickymenu');
375
+ echo '.myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; }<br /><br />';
376
+ echo __("If you want to change sticky hover color first add default style and than: ", 'mystickymenu');
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
  }
384
  if( is_admin() )
385
  $my_settings_page = new MyStickyMenuPage();
386
 
387
+ // end plugin admin settings
388
 
389
+ // Remove default option for more link that jumps at the midle of page and its covered by menu
390
 
391
  function mysticky_remove_more_jump_link($link)
392
  {
 
393
  $offset = strpos($link, '#more-');
 
394
  if ($offset) {
395
  $end = strpos($link, '"',$offset);
396
  }
 
397
  if ($end) {
398
  $link = substr_replace($link, '', $offset, $end-$offset);
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
 
411
  echo
412
  '<style type="text/css">';
413
  if ( is_user_logged_in() ) {
414
+
415
  echo '#wpadminbar { position: absolute !important; top: 0px !important;}';
416
  }
417
+
418
  if ( $mysticky_options['myfixed_cssstyle'] == "" ) {
419
  echo '.myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; }';
420
  }
421
  echo
422
+ $mysticky_options ['myfixed_cssstyle'] ;
 
423
  echo
424
  '
425
  #mysticky-nav { width:100%!important; position: static;';
426
+
427
  if (isset($mysticky_options['myfixed_fade'])){
428
 
429
  echo
433
  '}';
434
 
435
  if ($mysticky_options ['myfixed_opacity'] == 100 ){
436
+
 
437
  echo
438
  '.wrapfixed { position: fixed!important; top:0px!important; left: 0px!important; margin-top:0px!important; z-index: '. $mysticky_options ['myfixed_zindex'] .'; -webkit-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -moz-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -o-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; background-color: ' . $mysticky_options ['myfixed_bgcolor'] . '!important; }
439
  ';
440
  }
441
+
442
  if ($mysticky_options ['myfixed_opacity'] < 100 ){
443
 
 
444
  echo
445
  '.wrapfixed { position: fixed!important; top:0px!important; left: 0px!important; margin-top:0px!important; z-index: '. $mysticky_options ['myfixed_zindex'] .'; -webkit-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -moz-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -o-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=' . $mysticky_options ['myfixed_opacity'] . ')"; filter: alpha(opacity=' . $mysticky_options ['myfixed_opacity'] . '); opacity:.' . $mysticky_options ['myfixed_opacity'] . '; background-color: ' . $mysticky_options ['myfixed_bgcolor'] . '!important; }
446
  ';
447
  }
448
 
449
  if ($mysticky_options ['myfixed_disable_small_screen'] > 0 ){
450
+
451
  echo
452
  '@media (max-width: ' . $mysticky_options ['myfixed_disable_small_screen'] . 'px) {.wrapfixed {position: static!important; display: none!important;}}
453
  ';
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' );
470
 
471
  // Localize mystickymenu.js script with myStickymenu options
readme.txt CHANGED
@@ -1,20 +1,20 @@
1
  === myStickymenu ===
2
  Contributors: damiroquai
3
  Donate link: http://wordpress.transformnews.com
4
- Tags: sticky menu, twentythirteen, twenty-thirteen, plugin, menu, jquery
5
  Requires at least: 3.5.1
6
- Tested up to: 3.9.1
7
- Stable tag: 1.6
8
  License: GPLv2 or later
9
 
10
- This lightweight plugin will made your menu or header sticky on top of page, after desired number of pixels when scrolled.
11
 
12
  == Description ==
13
- Plugin is designed for Twenty Thirteen template but should work on any theme. By default, it uses Twenty Thirteen navigation css class ".navbar" under "Sticky Class" setting field and that should be modified for other themes (if different) to make it work. Do not forget this, it is a mandatory field.
14
 
15
- Plugin is responsive as far as your theme is. Also there is possibility to add custom css code which make this plugin very flexible, customizable and user friendly.
16
 
17
- Another advancement of this simple plugin is that increases usability and page views of your WordPress site since menu is available to the user all the time.
18
 
19
  Plugin Home + Demo URL: http://wordpress.transformnews.com/plugins/mystickymenu-simple-sticky-fixed-on-top-menu-implementation-for-twentythirteen-menu-269
20
 
@@ -25,7 +25,10 @@ Install like any other plugin. After install activate. If using template other t
25
  == Frequently Asked Questions ==
26
 
27
  = How to find Sticky Class, what should I enter here? =
28
- So this depends on what you want to make sticky and what theme do you use, but for example if you want your menu to be sticky, than you can examine the code (in firefox right click and “View page source”) and find div in which your menu is situated. This div have some class or id, and that’s the Sticky Class we need. If using class than don’t forget to ad dot (.) in front of class name, or hash (#) in front of id name in Sticky Class field. Twenty Thirteen default working class is “.navbar without of quotes.
 
 
 
29
 
30
 
31
  == Screenshots ==
@@ -36,12 +39,19 @@ So this depends on what you want to make sticky and what theme do you use, but f
36
 
37
  == Changelog ==
38
 
 
 
 
 
 
 
 
39
  = 1.6 =
40
- * Added: Make visible when scroled after number of pixels option.
41
  * Fixed opacity 100 bug.
42
 
43
  = 1.5 =
44
- * Added option to enter exact width in px when sticky menu should be disabled Disable at Small Screen Sizes”.
45
  * Added “.myfixed css class” setting field – edit .myfixed css style via plugin settings to create custom style.
46
  * Fixed google adsense clash and undefined index notice.
47
  * is_user_logged_in instead of old “Remove CSS Rules for Static Admin Bar while Sticky” option
@@ -51,7 +61,7 @@ So this depends on what you want to make sticky and what theme do you use, but f
51
  * Added new wrapped div around selected sticky class with id mysticky_wrap which should make menu works smoother and extend theme support.
52
 
53
  = 1.3 =
54
- * Added block direct access to the mystickymenu plugin file (for security sake).
55
  * Added Enable / Disable at small screen sizes and Remove not necessary css for all themes without admin bar on front page.
56
  * Added “margin-top :0px” to .myfixed class in head which should extend theme support.
57
 
@@ -66,25 +76,32 @@ So this depends on what you want to make sticky and what theme do you use, but f
66
  * First release of myStickymenu plugin
67
 
68
  == Upgrade Notice ==
 
 
 
 
 
 
 
69
  = 1.6 =
70
  * After plugin update go to mystickymenu plugin settings and save changes with desired value for a new parameters. Clear cache if some cache system used on your site.
71
  * Added: “Make visible when scroled” after number of pixels option.
72
  * Fixed opacity 100 bug.
73
 
74
  = 1.5 =
75
- * Added option to enter exact width in px when sticky menu should be disabled Disable at Small Screen Sizes”.
76
  * Added “.myfixed css class” setting field – edit .myfixed css style via plugin settings to create custom style.
77
  * Fixed google adsense clash and undefined index notice.
78
- * is_user_logged_in instead of old Remove CSS Rules for Static Admin Bar while Sticky option
79
 
80
  = 1.4 =
81
  * Added fade in or slide down effect settings field for sticky class.
82
  * Added new wrapped div around selected sticky class with id mysticky_wrap.
83
 
84
  = 1.3 =
85
- * Added block direct access to the mystickymenu plugin file.
86
  * Added Enable / Disable at small screen sizes and Remove not necessary css.
87
- * Added margin-top :0px to .myfixed class in head which should extend theme support.
88
 
89
  = 1.2 =
90
  * Fixed mystickymenu.js for IE browsers, so myStickymenu is now compatible with IE 10, 11
1
  === myStickymenu ===
2
  Contributors: damiroquai
3
  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.
11
 
12
  == Description ==
13
+ Plugin is designed for Twenty Thirteen template but should work on any theme. By default, it uses Twenty Thirteen navigation css class ".navbar" under "Sticky Class" setting field and that should be modified for other themes (if different) to make it work. Don’t forget this, it’s a mandatory field.
14
 
15
+ Plugin is localized (multi language support) and responsive (as far as your theme is). Also there is possibility to add custom css code which make this plugin very flexible, customizable and user friendly.
16
 
17
+ Another advancement of this simple plugin is that increases usability and page views of your WordPress site since menu is available to the user all the time.
18
 
19
  Plugin Home + Demo URL: http://wordpress.transformnews.com/plugins/mystickymenu-simple-sticky-fixed-on-top-menu-implementation-for-twentythirteen-menu-269
20
 
25
  == Frequently Asked Questions ==
26
 
27
  = How to find Sticky Class, what should I enter here? =
28
+ So this depends on what you want to make sticky and what theme do you use, but for example if you want your menu to be sticky, than you can examine the code (in firefox right click and “View page source”) and find div in which your menu is situated. This div have some class or id, and that’s the Sticky Class we need. If using class than don’t forget to ad dot (.) in front of class name, or hash (#) in front of id name in Sticky Class field. Twenty Thirteen default working class is ".navbar" without of quotes.
29
+
30
+ = Is there any way to restrict the width to the width of the header, rather than it being full width? =
31
+ Yes, just leave "Sticky Background Color" field blank (clear). Than if needed define custom background color for sticky header inside ".myfixed css class" field using .myfixed class.
32
 
33
 
34
  == Screenshots ==
39
 
40
  == Changelog ==
41
 
42
+ = 1.7 =
43
+ * Added multi language support (localization).
44
+ * Added languages - English (default), Spanish, Serbian and Croatian.
45
+ * Added Iris color picker script.
46
+ * Fixed jumping of page on scroll while menu is activated (height is defined before scroll event).
47
+ * mystickymenu.js moved to js folder
48
+
49
  = 1.6 =
50
+ * Added: "Make visible when scroled" after number of pixels option.
51
  * Fixed opacity 100 bug.
52
 
53
  = 1.5 =
54
+ * Added option to enter exact width in px when sticky menu should be disabled "Disable at Small Screen Sizes".
55
  * Added “.myfixed css class” setting field – edit .myfixed css style via plugin settings to create custom style.
56
  * Fixed google adsense clash and undefined index notice.
57
  * is_user_logged_in instead of old “Remove CSS Rules for Static Admin Bar while Sticky” option
61
  * Added new wrapped div around selected sticky class with id mysticky_wrap which should make menu works smoother and extend theme support.
62
 
63
  = 1.3 =
64
+ * Added "block direct access" to the mystickymenu plugin file (for security sake).
65
  * Added Enable / Disable at small screen sizes and Remove not necessary css for all themes without admin bar on front page.
66
  * Added “margin-top :0px” to .myfixed class in head which should extend theme support.
67
 
76
  * First release of myStickymenu plugin
77
 
78
  == Upgrade Notice ==
79
+
80
+ = 1.7 =
81
+ * Added multi language support (localization).
82
+ * Added Iris color picker script.
83
+ * Fixed jumping of page on scroll while menu is activated (height defined before scroll event).
84
+ * mystickymenu.js moved to js folder
85
+
86
  = 1.6 =
87
  * After plugin update go to mystickymenu plugin settings and save changes with desired value for a new parameters. Clear cache if some cache system used on your site.
88
  * Added: “Make visible when scroled” after number of pixels option.
89
  * Fixed opacity 100 bug.
90
 
91
  = 1.5 =
92
+ * Added option to enter exact width in px when sticky menu should be disabled "Disable at Small Screen Sizes".
93
  * Added “.myfixed css class” setting field – edit .myfixed css style via plugin settings to create custom style.
94
  * Fixed google adsense clash and undefined index notice.
95
+ * is_user_logged_in instead of old "Remove CSS Rules for Static Admin Bar while Sticky" option
96
 
97
  = 1.4 =
98
  * Added fade in or slide down effect settings field for sticky class.
99
  * Added new wrapped div around selected sticky class with id mysticky_wrap.
100
 
101
  = 1.3 =
102
+ * Added "block direct access" to the mystickymenu plugin file.
103
  * Added Enable / Disable at small screen sizes and Remove not necessary css.
104
+ * Added "margin-top :0px" to .myfixed class in head which should extend theme support.
105
 
106
  = 1.2 =
107
  * Fixed mystickymenu.js for IE browsers, so myStickymenu is now compatible with IE 10, 11