TinyMCE Templates - Version 4.0.0

Version Description

  • Remove sharing function.
  • Add function inserting as shortcode.
Download this release

Release Info

Developer miyauchi
Plugin Icon 128x128 TinyMCE Templates
Version 4.0.0
Comparing to
See all releases

Code changes from version 3.4.5 to 4.0.0

Files changed (49) hide show
  1. editor.css +5 -2
  2. img/amimoto.png +0 -0
  3. languages/tinymce_templates-de_DE.mo +0 -0
  4. languages/tinymce_templates-de_DE.po +40 -28
  5. languages/tinymce_templates-es_ES.mo +0 -0
  6. languages/tinymce_templates-es_ES.po +40 -28
  7. languages/tinymce_templates-fil_PH.mo +0 -0
  8. languages/tinymce_templates-fil_PH.po +45 -29
  9. languages/tinymce_templates-fr_FR.mo +0 -0
  10. languages/tinymce_templates-fr_FR.po +40 -28
  11. languages/tinymce_templates-it_IT.mo +0 -0
  12. languages/tinymce_templates-it_IT.po +40 -28
  13. languages/tinymce_templates-ja.mo +0 -0
  14. languages/tinymce_templates-ja.po +45 -30
  15. languages/tinymce_templates-nl_NL.mo +0 -0
  16. languages/tinymce_templates-nl_NL.po +40 -28
  17. languages/tinymce_templates-pt_BR.mo +0 -0
  18. languages/tinymce_templates-pt_BR.po +45 -29
  19. languages/tinymce_templates-ru_RU.mo +0 -0
  20. languages/tinymce_templates-ru_RU.po +45 -29
  21. languages/tinymce_templates-sk_SK.mo +0 -0
  22. languages/tinymce_templates-sk_SK.po +45 -29
  23. languages/tinymce_templates-sv_SE.mo +0 -0
  24. languages/tinymce_templates-sv_SE.po +40 -28
  25. languages/tinymce_templates.pot +31 -28
  26. mce_plugins/3.5/plugins/template/blank.htm +0 -12
  27. mce_plugins/3.5/plugins/template/css/template.css +0 -23
  28. mce_plugins/3.5/plugins/template/editor_plugin.js +0 -1
  29. mce_plugins/3.5/plugins/template/editor_plugin_src.js +0 -159
  30. mce_plugins/3.5/plugins/template/img/icon.png +0 -0
  31. mce_plugins/3.5/plugins/template/js/template.js +0 -106
  32. mce_plugins/3.5/plugins/template/langs/de_dlg.js +0 -15
  33. mce_plugins/3.5/plugins/template/langs/en_dlg.js +0 -1
  34. mce_plugins/3.5/plugins/template/langs/es_dlg.js +0 -15
  35. mce_plugins/3.5/plugins/template/langs/fr_dlg.js +0 -15
  36. mce_plugins/3.5/plugins/template/langs/it_dlg.js +0 -15
  37. mce_plugins/3.5/plugins/template/langs/ja_dlg.js +0 -15
  38. mce_plugins/3.5/plugins/template/langs/nl_dlg.js +0 -15
  39. mce_plugins/3.5/plugins/template/langs/pt_dlg.js +0 -15
  40. mce_plugins/3.5/plugins/template/langs/sv_dlg.js +0 -15
  41. mce_plugins/3.5/plugins/template/template.htm +0 -31
  42. mce_plugins/3.5/tiny_mce_popup.js +0 -5
  43. mce_plugins/3.5/utils/editable_selects.js +0 -70
  44. mce_plugins/3.5/utils/form_utils.js +0 -210
  45. mce_plugins/3.5/utils/mctabs.js +0 -162
  46. mce_plugins/3.5/utils/validate.js +0 -252
  47. mce_plugins/4.0/plugins/template/plugin.js +21 -118
  48. readme.txt +9 -11
  49. tinymce-templates.php +504 -502
editor.css CHANGED
@@ -1,8 +1,11 @@
1
- table {
2
  border: 1px dashed #cccccc;
3
  }
4
 
5
- th,td {
6
  border: 1px dashed #cccccc;
7
  }
8
 
 
 
 
1
+ body#tinymce.wp-editor table {
2
  border: 1px dashed #cccccc;
3
  }
4
 
5
+ body#tinymce.wp-editor th,td {
6
  border: 1px dashed #cccccc;
7
  }
8
 
9
+ body#tinymce.wp-editor strong {
10
+ color: #ff0000;
11
+ }
img/amimoto.png DELETED
Binary file
languages/tinymce_templates-de_DE.mo CHANGED
Binary file
languages/tinymce_templates-de_DE.po CHANGED
@@ -7,7 +7,7 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: TinyMCE Templates 1.1.1\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
10
- "POT-Creation-Date: 2014-03-20 17:29:51+00:00\n"
11
  "PO-Revision-Date: 2011-05-02 14:57+0100\n"
12
  "Last-Translator: Martin Lettner <m.lettner@gmail.com>\n"
13
  "Language-Team: \n"
@@ -17,78 +17,81 @@ msgstr ""
17
  "Content-Transfer-Encoding: 8bit\n"
18
  "X-Poedit-Language: German\n"
19
 
20
- #: tinymce-templates.php:127 tinymce-templates.php:147
21
- #: tinymce-templates.php:158
22
  msgid "Copy to a new template"
23
  msgstr ""
24
 
25
- #: tinymce-templates.php:135
26
  #, fuzzy
27
  msgid "Insert template"
28
  msgstr "Neue Vorlagen erstellen"
29
 
30
- #: tinymce-templates.php:136 tinymce-templates.php:320
31
- #: tinymce-templates.php:322
32
  msgid "Templates"
33
  msgstr "Vorlagen"
34
 
35
- #: tinymce-templates.php:137
36
  msgid "No templates defined"
37
  msgstr ""
38
 
39
- #: tinymce-templates.php:283 tinymce-templates.php:423
40
- #: tinymce-templates.php:425
41
- msgid "Shared"
42
- msgstr "Geteilt"
43
 
44
- #: tinymce-templates.php:323
45
  #, fuzzy
46
  msgid "Add New Template"
47
  msgstr "Neue Vorlagen erstellen"
48
 
49
- #: tinymce-templates.php:324
50
  #, fuzzy
51
  msgid "Edit Template"
52
  msgstr "Vorlagen bearbeiten"
53
 
54
- #: tinymce-templates.php:325
55
  msgid "Add New"
56
  msgstr "Erstellen"
57
 
58
- #: tinymce-templates.php:326
59
  #, fuzzy
60
  msgid "New Template"
61
  msgstr "Neue Vorlagen erstellen"
62
 
63
- #: tinymce-templates.php:327
64
  #, fuzzy
65
  msgid "View Template"
66
  msgstr "Vorlage speichern"
67
 
68
- #: tinymce-templates.php:328
69
  msgid "No templatess found."
70
  msgstr ""
71
 
72
- #: tinymce-templates.php:329
73
  msgid "No templates found in Trash."
74
  msgstr ""
75
 
76
- #: tinymce-templates.php:333
77
  #, fuzzy
78
  msgid "Search Templates"
79
  msgstr "Vorlage speichern"
80
 
81
- #: tinymce-templates.php:360
82
- msgid "Share"
83
- msgstr "Teilen"
84
 
85
- #: tinymce-templates.php:369
86
  msgid "Translators"
87
  msgstr ""
88
 
89
- #: tinymce-templates.php:421
90
- msgid "Private"
91
- msgstr "Privat"
 
 
 
 
92
 
93
  #. Plugin Name of the plugin/theme
94
  #, fuzzy
@@ -96,7 +99,7 @@ msgid "TinyMCE Templates"
96
  msgstr "TinyMCE-Vorlagen"
97
 
98
  #. Plugin URI of the plugin/theme
99
- msgid "http://wpist.me/wp/tinymce-templates/"
100
  msgstr ""
101
 
102
  #. Description of the plugin/theme
@@ -110,9 +113,18 @@ msgid "Takayuki Miyauchi"
110
  msgstr ""
111
 
112
  #. Author URI of the plugin/theme
113
- msgid "http://wpist.me/"
114
  msgstr ""
115
 
 
 
 
 
 
 
 
 
 
116
  #~ msgid "Templates permanently deleted."
117
  #~ msgstr "Vorlagen dauerhaft entfernt."
118
 
7
  msgstr ""
8
  "Project-Id-Version: TinyMCE Templates 1.1.1\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
10
+ "POT-Creation-Date: 2015-01-02 19:15:19+00:00\n"
11
  "PO-Revision-Date: 2011-05-02 14:57+0100\n"
12
  "Last-Translator: Martin Lettner <m.lettner@gmail.com>\n"
13
  "Language-Team: \n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
  "X-Poedit-Language: German\n"
19
 
20
+ #: tinymce-templates.php:136 tinymce-templates.php:157
21
+ #: tinymce-templates.php:168
22
  msgid "Copy to a new template"
23
  msgstr ""
24
 
25
+ #: tinymce-templates.php:144
26
  #, fuzzy
27
  msgid "Insert template"
28
  msgstr "Neue Vorlagen erstellen"
29
 
30
+ #: tinymce-templates.php:145 tinymce-templates.php:232
31
+ #: tinymce-templates.php:234
32
  msgid "Templates"
33
  msgstr "Vorlagen"
34
 
35
+ #: tinymce-templates.php:146
36
  msgid "No templates defined"
37
  msgstr ""
38
 
39
+ #: tinymce-templates.php:147
40
+ msgid "Note: The template will be inserted as shortcode."
41
+ msgstr ""
 
42
 
43
+ #: tinymce-templates.php:235
44
  #, fuzzy
45
  msgid "Add New Template"
46
  msgstr "Neue Vorlagen erstellen"
47
 
48
+ #: tinymce-templates.php:236
49
  #, fuzzy
50
  msgid "Edit Template"
51
  msgstr "Vorlagen bearbeiten"
52
 
53
+ #: tinymce-templates.php:237
54
  msgid "Add New"
55
  msgstr "Erstellen"
56
 
57
+ #: tinymce-templates.php:238
58
  #, fuzzy
59
  msgid "New Template"
60
  msgstr "Neue Vorlagen erstellen"
61
 
62
+ #: tinymce-templates.php:239
63
  #, fuzzy
64
  msgid "View Template"
65
  msgstr "Vorlage speichern"
66
 
67
+ #: tinymce-templates.php:240
68
  msgid "No templatess found."
69
  msgstr ""
70
 
71
+ #: tinymce-templates.php:241
72
  msgid "No templates found in Trash."
73
  msgstr ""
74
 
75
+ #: tinymce-templates.php:245
76
  #, fuzzy
77
  msgid "Search Templates"
78
  msgstr "Vorlage speichern"
79
 
80
+ #: tinymce-templates.php:272
81
+ msgid "Insert as Shortcode"
82
+ msgstr ""
83
 
84
+ #: tinymce-templates.php:281
85
  msgid "Translators"
86
  msgstr ""
87
 
88
+ #: tinymce-templates.php:293 tinymce-templates.php:296
89
+ msgid "Yes"
90
+ msgstr ""
91
+
92
+ #: tinymce-templates.php:294 tinymce-templates.php:297
93
+ msgid "No"
94
+ msgstr ""
95
 
96
  #. Plugin Name of the plugin/theme
97
  #, fuzzy
99
  msgstr "TinyMCE-Vorlagen"
100
 
101
  #. Plugin URI of the plugin/theme
102
+ msgid "https://github.com/miya0001/tinymce-templates"
103
  msgstr ""
104
 
105
  #. Description of the plugin/theme
113
  msgstr ""
114
 
115
  #. Author URI of the plugin/theme
116
+ msgid "https://github.com/miya0001/"
117
  msgstr ""
118
 
119
+ #~ msgid "Shared"
120
+ #~ msgstr "Geteilt"
121
+
122
+ #~ msgid "Share"
123
+ #~ msgstr "Teilen"
124
+
125
+ #~ msgid "Private"
126
+ #~ msgstr "Privat"
127
+
128
  #~ msgid "Templates permanently deleted."
129
  #~ msgstr "Vorlagen dauerhaft entfernt."
130
 
languages/tinymce_templates-es_ES.mo CHANGED
Binary file
languages/tinymce_templates-es_ES.po CHANGED
@@ -5,7 +5,7 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: PACKAGE VERSION\n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
8
- "POT-Creation-Date: 2014-03-20 17:29:51+00:00\n"
9
  "PO-Revision-Date: 2011-09-21 16:55+0100\n"
10
  "Last-Translator: David Bravo <dbravo@dimensionmultimedia.com>\n"
11
  "Language-Team: \n"
@@ -14,78 +14,81 @@ msgstr ""
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
 
17
- #: tinymce-templates.php:127 tinymce-templates.php:147
18
- #: tinymce-templates.php:158
19
  msgid "Copy to a new template"
20
  msgstr ""
21
 
22
- #: tinymce-templates.php:135
23
  #, fuzzy
24
  msgid "Insert template"
25
  msgstr "Añadir nuevas Plantillas"
26
 
27
- #: tinymce-templates.php:136 tinymce-templates.php:320
28
- #: tinymce-templates.php:322
29
  msgid "Templates"
30
  msgstr "Plantillas"
31
 
32
- #: tinymce-templates.php:137
33
  msgid "No templates defined"
34
  msgstr ""
35
 
36
- #: tinymce-templates.php:283 tinymce-templates.php:423
37
- #: tinymce-templates.php:425
38
- msgid "Shared"
39
- msgstr "Compartido"
40
 
41
- #: tinymce-templates.php:323
42
  #, fuzzy
43
  msgid "Add New Template"
44
  msgstr "Añadir nuevas Plantillas"
45
 
46
- #: tinymce-templates.php:324
47
  #, fuzzy
48
  msgid "Edit Template"
49
  msgstr "Editar Plantillas"
50
 
51
- #: tinymce-templates.php:325
52
  msgid "Add New"
53
  msgstr "Añadir Nueva"
54
 
55
- #: tinymce-templates.php:326
56
  #, fuzzy
57
  msgid "New Template"
58
  msgstr "Añadir nuevas Plantillas"
59
 
60
- #: tinymce-templates.php:327
61
  #, fuzzy
62
  msgid "View Template"
63
  msgstr "Guardar Plantilla"
64
 
65
- #: tinymce-templates.php:328
66
  msgid "No templatess found."
67
  msgstr ""
68
 
69
- #: tinymce-templates.php:329
70
  msgid "No templates found in Trash."
71
  msgstr ""
72
 
73
- #: tinymce-templates.php:333
74
  #, fuzzy
75
  msgid "Search Templates"
76
  msgstr "Guardar Plantilla"
77
 
78
- #: tinymce-templates.php:360
79
- msgid "Share"
80
- msgstr "Compartido"
81
 
82
- #: tinymce-templates.php:369
83
  msgid "Translators"
84
  msgstr ""
85
 
86
- #: tinymce-templates.php:421
87
- msgid "Private"
88
- msgstr "Privado"
 
 
 
 
89
 
90
  #. Plugin Name of the plugin/theme
91
  #, fuzzy
@@ -93,7 +96,7 @@ msgid "TinyMCE Templates"
93
  msgstr "Plantillas de tinyMCE"
94
 
95
  #. Plugin URI of the plugin/theme
96
- msgid "http://wpist.me/wp/tinymce-templates/"
97
  msgstr ""
98
 
99
  #. Description of the plugin/theme
@@ -107,9 +110,18 @@ msgid "Takayuki Miyauchi"
107
  msgstr ""
108
 
109
  #. Author URI of the plugin/theme
110
- msgid "http://wpist.me/"
111
  msgstr ""
112
 
 
 
 
 
 
 
 
 
 
113
  #~ msgid "Templates permanently deleted."
114
  #~ msgstr "Plantillas permanentemente borradas."
115
 
5
  msgstr ""
6
  "Project-Id-Version: PACKAGE VERSION\n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
8
+ "POT-Creation-Date: 2015-01-02 19:15:19+00:00\n"
9
  "PO-Revision-Date: 2011-09-21 16:55+0100\n"
10
  "Last-Translator: David Bravo <dbravo@dimensionmultimedia.com>\n"
11
  "Language-Team: \n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
 
17
+ #: tinymce-templates.php:136 tinymce-templates.php:157
18
+ #: tinymce-templates.php:168
19
  msgid "Copy to a new template"
20
  msgstr ""
21
 
22
+ #: tinymce-templates.php:144
23
  #, fuzzy
24
  msgid "Insert template"
25
  msgstr "Añadir nuevas Plantillas"
26
 
27
+ #: tinymce-templates.php:145 tinymce-templates.php:232
28
+ #: tinymce-templates.php:234
29
  msgid "Templates"
30
  msgstr "Plantillas"
31
 
32
+ #: tinymce-templates.php:146
33
  msgid "No templates defined"
34
  msgstr ""
35
 
36
+ #: tinymce-templates.php:147
37
+ msgid "Note: The template will be inserted as shortcode."
38
+ msgstr ""
 
39
 
40
+ #: tinymce-templates.php:235
41
  #, fuzzy
42
  msgid "Add New Template"
43
  msgstr "Añadir nuevas Plantillas"
44
 
45
+ #: tinymce-templates.php:236
46
  #, fuzzy
47
  msgid "Edit Template"
48
  msgstr "Editar Plantillas"
49
 
50
+ #: tinymce-templates.php:237
51
  msgid "Add New"
52
  msgstr "Añadir Nueva"
53
 
54
+ #: tinymce-templates.php:238
55
  #, fuzzy
56
  msgid "New Template"
57
  msgstr "Añadir nuevas Plantillas"
58
 
59
+ #: tinymce-templates.php:239
60
  #, fuzzy
61
  msgid "View Template"
62
  msgstr "Guardar Plantilla"
63
 
64
+ #: tinymce-templates.php:240
65
  msgid "No templatess found."
66
  msgstr ""
67
 
68
+ #: tinymce-templates.php:241
69
  msgid "No templates found in Trash."
70
  msgstr ""
71
 
72
+ #: tinymce-templates.php:245
73
  #, fuzzy
74
  msgid "Search Templates"
75
  msgstr "Guardar Plantilla"
76
 
77
+ #: tinymce-templates.php:272
78
+ msgid "Insert as Shortcode"
79
+ msgstr ""
80
 
81
+ #: tinymce-templates.php:281
82
  msgid "Translators"
83
  msgstr ""
84
 
85
+ #: tinymce-templates.php:293 tinymce-templates.php:296
86
+ msgid "Yes"
87
+ msgstr ""
88
+
89
+ #: tinymce-templates.php:294 tinymce-templates.php:297
90
+ msgid "No"
91
+ msgstr ""
92
 
93
  #. Plugin Name of the plugin/theme
94
  #, fuzzy
96
  msgstr "Plantillas de tinyMCE"
97
 
98
  #. Plugin URI of the plugin/theme
99
+ msgid "https://github.com/miya0001/tinymce-templates"
100
  msgstr ""
101
 
102
  #. Description of the plugin/theme
110
  msgstr ""
111
 
112
  #. Author URI of the plugin/theme
113
+ msgid "https://github.com/miya0001/"
114
  msgstr ""
115
 
116
+ #~ msgid "Shared"
117
+ #~ msgstr "Compartido"
118
+
119
+ #~ msgid "Share"
120
+ #~ msgstr "Compartido"
121
+
122
+ #~ msgid "Private"
123
+ #~ msgstr "Privado"
124
+
125
  #~ msgid "Templates permanently deleted."
126
  #~ msgstr "Plantillas permanentemente borradas."
127
 
languages/tinymce_templates-fil_PH.mo CHANGED
Binary file
languages/tinymce_templates-fil_PH.po CHANGED
@@ -7,7 +7,7 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: TinyMCE Templates 1.1.1\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
10
- "POT-Creation-Date: 2014-03-20 17:29:51+00:00\n"
11
  "PO-Revision-Date: 2013-01-12 20:51+0800\n"
12
  "Last-Translator: Martin Lettner <m.lettner@gmail.com>\n"
13
  "Language-Team: \n"
@@ -17,81 +17,85 @@ msgstr ""
17
  "Content-Transfer-Encoding: 8bit\n"
18
  "X-Generator: Poedit 1.5.4\n"
19
 
20
- #: tinymce-templates.php:127 tinymce-templates.php:147
21
- #: tinymce-templates.php:158
22
  msgid "Copy to a new template"
23
  msgstr "Kopyahin sa bagong padron"
24
 
25
- #: tinymce-templates.php:135
26
  #, fuzzy
27
  msgid "Insert template"
28
  msgstr "Bagong Padron"
29
 
30
- #: tinymce-templates.php:136 tinymce-templates.php:320
31
- #: tinymce-templates.php:322
32
  msgid "Templates"
33
  msgstr "Mga Padron "
34
 
35
- #: tinymce-templates.php:137
36
  #, fuzzy
37
  msgid "No templates defined"
38
  msgstr "Walang natagpuang padron."
39
 
40
- #: tinymce-templates.php:283 tinymce-templates.php:423
41
- #: tinymce-templates.php:425
42
- msgid "Shared"
43
- msgstr "Naibahagi na"
44
 
45
- #: tinymce-templates.php:323
46
  msgid "Add New Template"
47
  msgstr "Magdagdag ng Bagong Padron"
48
 
49
- #: tinymce-templates.php:324
50
  msgid "Edit Template"
51
  msgstr "Baguhin ang Padron"
52
 
53
- #: tinymce-templates.php:325
54
  msgid "Add New"
55
  msgstr "Magdagdag ng bago"
56
 
57
- #: tinymce-templates.php:326
58
  msgid "New Template"
59
  msgstr "Bagong Padron"
60
 
61
- #: tinymce-templates.php:327
62
  msgid "View Template"
63
  msgstr "Tingnan ang Padron"
64
 
65
- #: tinymce-templates.php:328
66
  msgid "No templatess found."
67
  msgstr "Walang natagpuang padron."
68
 
69
- #: tinymce-templates.php:329
70
  msgid "No templates found in Trash."
71
  msgstr "Walang natagpuang padron sa Basura."
72
 
73
- #: tinymce-templates.php:333
74
  msgid "Search Templates"
75
  msgstr "Hanapin ang mga Padron"
76
 
77
- #: tinymce-templates.php:360
78
- msgid "Share"
79
- msgstr "Magbahagi"
80
 
81
- #: tinymce-templates.php:369
82
  msgid "Translators"
83
  msgstr "Tagasalin"
84
 
85
- #: tinymce-templates.php:421
86
- msgid "Private"
87
- msgstr "Pribado"
 
 
 
 
88
 
89
  #. Plugin Name of the plugin/theme
90
  msgid "TinyMCE Templates"
91
  msgstr "TinyMCE-mga Padron"
92
 
93
  #. Plugin URI of the plugin/theme
94
- msgid "http://wpist.me/wp/tinymce-templates/"
 
95
  msgstr "http://wpist.me/wp/tinymce-templates/"
96
 
97
  #. Description of the plugin/theme
@@ -107,8 +111,20 @@ msgid "Takayuki Miyauchi"
107
  msgstr "Takayuki Miyauchi"
108
 
109
  #. Author URI of the plugin/theme
110
- msgid "http://wpist.me/"
111
- msgstr "http://wpist.me/"
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
  #~ msgid "Donate"
114
  #~ msgstr "Magbigay"
7
  msgstr ""
8
  "Project-Id-Version: TinyMCE Templates 1.1.1\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
10
+ "POT-Creation-Date: 2015-01-02 19:15:19+00:00\n"
11
  "PO-Revision-Date: 2013-01-12 20:51+0800\n"
12
  "Last-Translator: Martin Lettner <m.lettner@gmail.com>\n"
13
  "Language-Team: \n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
  "X-Generator: Poedit 1.5.4\n"
19
 
20
+ #: tinymce-templates.php:136 tinymce-templates.php:157
21
+ #: tinymce-templates.php:168
22
  msgid "Copy to a new template"
23
  msgstr "Kopyahin sa bagong padron"
24
 
25
+ #: tinymce-templates.php:144
26
  #, fuzzy
27
  msgid "Insert template"
28
  msgstr "Bagong Padron"
29
 
30
+ #: tinymce-templates.php:145 tinymce-templates.php:232
31
+ #: tinymce-templates.php:234
32
  msgid "Templates"
33
  msgstr "Mga Padron "
34
 
35
+ #: tinymce-templates.php:146
36
  #, fuzzy
37
  msgid "No templates defined"
38
  msgstr "Walang natagpuang padron."
39
 
40
+ #: tinymce-templates.php:147
41
+ msgid "Note: The template will be inserted as shortcode."
42
+ msgstr ""
 
43
 
44
+ #: tinymce-templates.php:235
45
  msgid "Add New Template"
46
  msgstr "Magdagdag ng Bagong Padron"
47
 
48
+ #: tinymce-templates.php:236
49
  msgid "Edit Template"
50
  msgstr "Baguhin ang Padron"
51
 
52
+ #: tinymce-templates.php:237
53
  msgid "Add New"
54
  msgstr "Magdagdag ng bago"
55
 
56
+ #: tinymce-templates.php:238
57
  msgid "New Template"
58
  msgstr "Bagong Padron"
59
 
60
+ #: tinymce-templates.php:239
61
  msgid "View Template"
62
  msgstr "Tingnan ang Padron"
63
 
64
+ #: tinymce-templates.php:240
65
  msgid "No templatess found."
66
  msgstr "Walang natagpuang padron."
67
 
68
+ #: tinymce-templates.php:241
69
  msgid "No templates found in Trash."
70
  msgstr "Walang natagpuang padron sa Basura."
71
 
72
+ #: tinymce-templates.php:245
73
  msgid "Search Templates"
74
  msgstr "Hanapin ang mga Padron"
75
 
76
+ #: tinymce-templates.php:272
77
+ msgid "Insert as Shortcode"
78
+ msgstr ""
79
 
80
+ #: tinymce-templates.php:281
81
  msgid "Translators"
82
  msgstr "Tagasalin"
83
 
84
+ #: tinymce-templates.php:293 tinymce-templates.php:296
85
+ msgid "Yes"
86
+ msgstr ""
87
+
88
+ #: tinymce-templates.php:294 tinymce-templates.php:297
89
+ msgid "No"
90
+ msgstr ""
91
 
92
  #. Plugin Name of the plugin/theme
93
  msgid "TinyMCE Templates"
94
  msgstr "TinyMCE-mga Padron"
95
 
96
  #. Plugin URI of the plugin/theme
97
+ #, fuzzy
98
+ msgid "https://github.com/miya0001/tinymce-templates"
99
  msgstr "http://wpist.me/wp/tinymce-templates/"
100
 
101
  #. Description of the plugin/theme
111
  msgstr "Takayuki Miyauchi"
112
 
113
  #. Author URI of the plugin/theme
114
+ msgid "https://github.com/miya0001/"
115
+ msgstr ""
116
+
117
+ #~ msgid "Shared"
118
+ #~ msgstr "Naibahagi na"
119
+
120
+ #~ msgid "Share"
121
+ #~ msgstr "Magbahagi"
122
+
123
+ #~ msgid "Private"
124
+ #~ msgstr "Pribado"
125
+
126
+ #~ msgid "http://wpist.me/"
127
+ #~ msgstr "http://wpist.me/"
128
 
129
  #~ msgid "Donate"
130
  #~ msgstr "Magbigay"
languages/tinymce_templates-fr_FR.mo CHANGED
Binary file
languages/tinymce_templates-fr_FR.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: tinyMCE-templates\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
5
- "POT-Creation-Date: 2014-03-20 17:29:51+00:00\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: HAROUY Jean-Michel <jean-michel.harouy@laposte.net>\n"
8
  "Language-Team: HAROUY Jean-Michel <jean-michel.harouy@laposte.net>\n"
@@ -13,78 +13,81 @@ msgstr ""
13
  "X-Poedit-Language: French\n"
14
  "X-Poedit-Country: FRANCE\n"
15
 
16
- #: tinymce-templates.php:127 tinymce-templates.php:147
17
- #: tinymce-templates.php:158
18
  msgid "Copy to a new template"
19
  msgstr ""
20
 
21
- #: tinymce-templates.php:135
22
  #, fuzzy
23
  msgid "Insert template"
24
  msgstr "Ajouter un nouveau modèle"
25
 
26
- #: tinymce-templates.php:136 tinymce-templates.php:320
27
- #: tinymce-templates.php:322
28
  msgid "Templates"
29
  msgstr "Modèles"
30
 
31
- #: tinymce-templates.php:137
32
  msgid "No templates defined"
33
  msgstr ""
34
 
35
- #: tinymce-templates.php:283 tinymce-templates.php:423
36
- #: tinymce-templates.php:425
37
- msgid "Shared"
38
- msgstr "Partagé"
39
 
40
- #: tinymce-templates.php:323
41
  #, fuzzy
42
  msgid "Add New Template"
43
  msgstr "Ajouter un nouveau modèle"
44
 
45
- #: tinymce-templates.php:324
46
  #, fuzzy
47
  msgid "Edit Template"
48
  msgstr "Éditer les modèles"
49
 
50
- #: tinymce-templates.php:325
51
  msgid "Add New"
52
  msgstr "Ajouter un nouveau"
53
 
54
- #: tinymce-templates.php:326
55
  #, fuzzy
56
  msgid "New Template"
57
  msgstr "Ajouter un nouveau modèle"
58
 
59
- #: tinymce-templates.php:327
60
  #, fuzzy
61
  msgid "View Template"
62
  msgstr "Enregistrer le modèle"
63
 
64
- #: tinymce-templates.php:328
65
  msgid "No templatess found."
66
  msgstr ""
67
 
68
- #: tinymce-templates.php:329
69
  msgid "No templates found in Trash."
70
  msgstr ""
71
 
72
- #: tinymce-templates.php:333
73
  #, fuzzy
74
  msgid "Search Templates"
75
  msgstr "Enregistrer le modèle"
76
 
77
- #: tinymce-templates.php:360
78
- msgid "Share"
79
- msgstr "Partager"
80
 
81
- #: tinymce-templates.php:369
82
  msgid "Translators"
83
  msgstr ""
84
 
85
- #: tinymce-templates.php:421
86
- msgid "Private"
87
- msgstr "Personnel"
 
 
 
 
88
 
89
  #. Plugin Name of the plugin/theme
90
  #, fuzzy
@@ -92,7 +95,7 @@ msgid "TinyMCE Templates"
92
  msgstr "tinyMCE modèles"
93
 
94
  #. Plugin URI of the plugin/theme
95
- msgid "http://wpist.me/wp/tinymce-templates/"
96
  msgstr ""
97
 
98
  #. Description of the plugin/theme
@@ -106,9 +109,18 @@ msgid "Takayuki Miyauchi"
106
  msgstr ""
107
 
108
  #. Author URI of the plugin/theme
109
- msgid "http://wpist.me/"
110
  msgstr ""
111
 
 
 
 
 
 
 
 
 
 
112
  #~ msgid "Templates permanently deleted."
113
  #~ msgstr "Modèles définitivement supprimés"
114
 
2
  msgstr ""
3
  "Project-Id-Version: tinyMCE-templates\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
5
+ "POT-Creation-Date: 2015-01-02 19:15:19+00:00\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: HAROUY Jean-Michel <jean-michel.harouy@laposte.net>\n"
8
  "Language-Team: HAROUY Jean-Michel <jean-michel.harouy@laposte.net>\n"
13
  "X-Poedit-Language: French\n"
14
  "X-Poedit-Country: FRANCE\n"
15
 
16
+ #: tinymce-templates.php:136 tinymce-templates.php:157
17
+ #: tinymce-templates.php:168
18
  msgid "Copy to a new template"
19
  msgstr ""
20
 
21
+ #: tinymce-templates.php:144
22
  #, fuzzy
23
  msgid "Insert template"
24
  msgstr "Ajouter un nouveau modèle"
25
 
26
+ #: tinymce-templates.php:145 tinymce-templates.php:232
27
+ #: tinymce-templates.php:234
28
  msgid "Templates"
29
  msgstr "Modèles"
30
 
31
+ #: tinymce-templates.php:146
32
  msgid "No templates defined"
33
  msgstr ""
34
 
35
+ #: tinymce-templates.php:147
36
+ msgid "Note: The template will be inserted as shortcode."
37
+ msgstr ""
 
38
 
39
+ #: tinymce-templates.php:235
40
  #, fuzzy
41
  msgid "Add New Template"
42
  msgstr "Ajouter un nouveau modèle"
43
 
44
+ #: tinymce-templates.php:236
45
  #, fuzzy
46
  msgid "Edit Template"
47
  msgstr "Éditer les modèles"
48
 
49
+ #: tinymce-templates.php:237
50
  msgid "Add New"
51
  msgstr "Ajouter un nouveau"
52
 
53
+ #: tinymce-templates.php:238
54
  #, fuzzy
55
  msgid "New Template"
56
  msgstr "Ajouter un nouveau modèle"
57
 
58
+ #: tinymce-templates.php:239
59
  #, fuzzy
60
  msgid "View Template"
61
  msgstr "Enregistrer le modèle"
62
 
63
+ #: tinymce-templates.php:240
64
  msgid "No templatess found."
65
  msgstr ""
66
 
67
+ #: tinymce-templates.php:241
68
  msgid "No templates found in Trash."
69
  msgstr ""
70
 
71
+ #: tinymce-templates.php:245
72
  #, fuzzy
73
  msgid "Search Templates"
74
  msgstr "Enregistrer le modèle"
75
 
76
+ #: tinymce-templates.php:272
77
+ msgid "Insert as Shortcode"
78
+ msgstr ""
79
 
80
+ #: tinymce-templates.php:281
81
  msgid "Translators"
82
  msgstr ""
83
 
84
+ #: tinymce-templates.php:293 tinymce-templates.php:296
85
+ msgid "Yes"
86
+ msgstr ""
87
+
88
+ #: tinymce-templates.php:294 tinymce-templates.php:297
89
+ msgid "No"
90
+ msgstr ""
91
 
92
  #. Plugin Name of the plugin/theme
93
  #, fuzzy
95
  msgstr "tinyMCE modèles"
96
 
97
  #. Plugin URI of the plugin/theme
98
+ msgid "https://github.com/miya0001/tinymce-templates"
99
  msgstr ""
100
 
101
  #. Description of the plugin/theme
109
  msgstr ""
110
 
111
  #. Author URI of the plugin/theme
112
+ msgid "https://github.com/miya0001/"
113
  msgstr ""
114
 
115
+ #~ msgid "Shared"
116
+ #~ msgstr "Partagé"
117
+
118
+ #~ msgid "Share"
119
+ #~ msgstr "Partager"
120
+
121
+ #~ msgid "Private"
122
+ #~ msgstr "Personnel"
123
+
124
  #~ msgid "Templates permanently deleted."
125
  #~ msgstr "Modèles définitivement supprimés"
126
 
languages/tinymce_templates-it_IT.mo CHANGED
Binary file
languages/tinymce_templates-it_IT.po CHANGED
@@ -7,7 +7,7 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: PACKAGE VERSION\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
10
- "POT-Creation-Date: 2014-03-20 17:29:51+00:00\n"
11
  "PO-Revision-Date: 2010-12-19 17:45+0100\n"
12
  "Last-Translator: Andrea Bersi\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -16,78 +16,81 @@ msgstr ""
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
- #: tinymce-templates.php:127 tinymce-templates.php:147
20
- #: tinymce-templates.php:158
21
  msgid "Copy to a new template"
22
  msgstr ""
23
 
24
- #: tinymce-templates.php:135
25
  #, fuzzy
26
  msgid "Insert template"
27
  msgstr "Aggiungi nuovo modello"
28
 
29
- #: tinymce-templates.php:136 tinymce-templates.php:320
30
- #: tinymce-templates.php:322
31
  msgid "Templates"
32
  msgstr "Modelli"
33
 
34
- #: tinymce-templates.php:137
35
  msgid "No templates defined"
36
  msgstr ""
37
 
38
- #: tinymce-templates.php:283 tinymce-templates.php:423
39
- #: tinymce-templates.php:425
40
- msgid "Shared"
41
- msgstr "Condiviso"
42
 
43
- #: tinymce-templates.php:323
44
  #, fuzzy
45
  msgid "Add New Template"
46
  msgstr "Aggiungi nuovo modello"
47
 
48
- #: tinymce-templates.php:324
49
  #, fuzzy
50
  msgid "Edit Template"
51
  msgstr "Modifica modello"
52
 
53
- #: tinymce-templates.php:325
54
  msgid "Add New"
55
  msgstr "Aggiungi"
56
 
57
- #: tinymce-templates.php:326
58
  #, fuzzy
59
  msgid "New Template"
60
  msgstr "Aggiungi nuovo modello"
61
 
62
- #: tinymce-templates.php:327
63
  #, fuzzy
64
  msgid "View Template"
65
  msgstr "Salva modello"
66
 
67
- #: tinymce-templates.php:328
68
  msgid "No templatess found."
69
  msgstr ""
70
 
71
- #: tinymce-templates.php:329
72
  msgid "No templates found in Trash."
73
  msgstr ""
74
 
75
- #: tinymce-templates.php:333
76
  #, fuzzy
77
  msgid "Search Templates"
78
  msgstr "Salva modello"
79
 
80
- #: tinymce-templates.php:360
81
- msgid "Share"
82
- msgstr "Condividi"
83
 
84
- #: tinymce-templates.php:369
85
  msgid "Translators"
86
  msgstr ""
87
 
88
- #: tinymce-templates.php:421
89
- msgid "Private"
90
- msgstr "Privato"
 
 
 
 
91
 
92
  #. Plugin Name of the plugin/theme
93
  #, fuzzy
@@ -95,7 +98,7 @@ msgid "TinyMCE Templates"
95
  msgstr "tinyMCE Modelli"
96
 
97
  #. Plugin URI of the plugin/theme
98
- msgid "http://wpist.me/wp/tinymce-templates/"
99
  msgstr ""
100
 
101
  #. Description of the plugin/theme
@@ -109,9 +112,18 @@ msgid "Takayuki Miyauchi"
109
  msgstr ""
110
 
111
  #. Author URI of the plugin/theme
112
- msgid "http://wpist.me/"
113
  msgstr ""
114
 
 
 
 
 
 
 
 
 
 
115
  #~ msgid "Templates permanently deleted."
116
  #~ msgstr "Modello cancellato"
117
 
7
  msgstr ""
8
  "Project-Id-Version: PACKAGE VERSION\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
10
+ "POT-Creation-Date: 2015-01-02 19:15:19+00:00\n"
11
  "PO-Revision-Date: 2010-12-19 17:45+0100\n"
12
  "Last-Translator: Andrea Bersi\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
+ #: tinymce-templates.php:136 tinymce-templates.php:157
20
+ #: tinymce-templates.php:168
21
  msgid "Copy to a new template"
22
  msgstr ""
23
 
24
+ #: tinymce-templates.php:144
25
  #, fuzzy
26
  msgid "Insert template"
27
  msgstr "Aggiungi nuovo modello"
28
 
29
+ #: tinymce-templates.php:145 tinymce-templates.php:232
30
+ #: tinymce-templates.php:234
31
  msgid "Templates"
32
  msgstr "Modelli"
33
 
34
+ #: tinymce-templates.php:146
35
  msgid "No templates defined"
36
  msgstr ""
37
 
38
+ #: tinymce-templates.php:147
39
+ msgid "Note: The template will be inserted as shortcode."
40
+ msgstr ""
 
41
 
42
+ #: tinymce-templates.php:235
43
  #, fuzzy
44
  msgid "Add New Template"
45
  msgstr "Aggiungi nuovo modello"
46
 
47
+ #: tinymce-templates.php:236
48
  #, fuzzy
49
  msgid "Edit Template"
50
  msgstr "Modifica modello"
51
 
52
+ #: tinymce-templates.php:237
53
  msgid "Add New"
54
  msgstr "Aggiungi"
55
 
56
+ #: tinymce-templates.php:238
57
  #, fuzzy
58
  msgid "New Template"
59
  msgstr "Aggiungi nuovo modello"
60
 
61
+ #: tinymce-templates.php:239
62
  #, fuzzy
63
  msgid "View Template"
64
  msgstr "Salva modello"
65
 
66
+ #: tinymce-templates.php:240
67
  msgid "No templatess found."
68
  msgstr ""
69
 
70
+ #: tinymce-templates.php:241
71
  msgid "No templates found in Trash."
72
  msgstr ""
73
 
74
+ #: tinymce-templates.php:245
75
  #, fuzzy
76
  msgid "Search Templates"
77
  msgstr "Salva modello"
78
 
79
+ #: tinymce-templates.php:272
80
+ msgid "Insert as Shortcode"
81
+ msgstr ""
82
 
83
+ #: tinymce-templates.php:281
84
  msgid "Translators"
85
  msgstr ""
86
 
87
+ #: tinymce-templates.php:293 tinymce-templates.php:296
88
+ msgid "Yes"
89
+ msgstr ""
90
+
91
+ #: tinymce-templates.php:294 tinymce-templates.php:297
92
+ msgid "No"
93
+ msgstr ""
94
 
95
  #. Plugin Name of the plugin/theme
96
  #, fuzzy
98
  msgstr "tinyMCE Modelli"
99
 
100
  #. Plugin URI of the plugin/theme
101
+ msgid "https://github.com/miya0001/tinymce-templates"
102
  msgstr ""
103
 
104
  #. Description of the plugin/theme
112
  msgstr ""
113
 
114
  #. Author URI of the plugin/theme
115
+ msgid "https://github.com/miya0001/"
116
  msgstr ""
117
 
118
+ #~ msgid "Shared"
119
+ #~ msgstr "Condiviso"
120
+
121
+ #~ msgid "Share"
122
+ #~ msgstr "Condividi"
123
+
124
+ #~ msgid "Private"
125
+ #~ msgstr "Privato"
126
+
127
  #~ msgid "Templates permanently deleted."
128
  #~ msgstr "Modello cancellato"
129
 
languages/tinymce_templates-ja.mo CHANGED
Binary file
languages/tinymce_templates-ja.po CHANGED
@@ -8,7 +8,7 @@ msgid ""
8
  msgstr ""
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
11
- "POT-Creation-Date: 2014-03-20 17:29:51+00:00\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,80 +17,83 @@ msgstr ""
17
  "Content-Type: text/plain; charset=UTF-8\n"
18
  "Content-Transfer-Encoding: 8bit\n"
19
 
20
- #: tinymce-templates.php:127 tinymce-templates.php:147
21
- #: tinymce-templates.php:158
22
  msgid "Copy to a new template"
23
  msgstr "新規テンプレートにコピー"
24
 
25
- #: tinymce-templates.php:135
26
  msgid "Insert template"
27
  msgstr "テンプレートを挿入"
28
 
29
- #: tinymce-templates.php:136 tinymce-templates.php:320
30
- #: tinymce-templates.php:322
31
  msgid "Templates"
32
  msgstr "テンプレート"
33
 
34
- #: tinymce-templates.php:137
35
  msgid "No templates defined"
36
  msgstr "テンプレートが見つかりませんでした。"
37
 
38
- #: tinymce-templates.php:283 tinymce-templates.php:423
39
- #: tinymce-templates.php:425
40
- msgid "Shared"
41
- msgstr "共有"
42
 
43
- #: tinymce-templates.php:323
44
  msgid "Add New Template"
45
  msgstr "テンプレートの新規登録"
46
 
47
- #: tinymce-templates.php:324
48
  msgid "Edit Template"
49
  msgstr "テンプレートを編集"
50
 
51
- #: tinymce-templates.php:325
52
  msgid "Add New"
53
  msgstr "新規追加"
54
 
55
- #: tinymce-templates.php:326
56
  msgid "New Template"
57
  msgstr "新しいテンプレート"
58
 
59
- #: tinymce-templates.php:327
60
  msgid "View Template"
61
  msgstr "テンプレートを表示"
62
 
63
- #: tinymce-templates.php:328
64
  msgid "No templatess found."
65
  msgstr "テンプレートが見つかりませんでした。"
66
 
67
- #: tinymce-templates.php:329
68
  msgid "No templates found in Trash."
69
  msgstr "ゴミ箱内にテンプレートが見つかりませんでした。"
70
 
71
- #: tinymce-templates.php:333
72
  msgid "Search Templates"
73
  msgstr "テンプレートを検索"
74
 
75
- #: tinymce-templates.php:360
76
- msgid "Share"
77
- msgstr "共有"
78
 
79
- #: tinymce-templates.php:369
80
  msgid "Translators"
81
  msgstr "翻訳者"
82
 
83
- #: tinymce-templates.php:421
84
- msgid "Private"
85
- msgstr "個人"
 
 
 
 
86
 
87
  #. Plugin Name of the plugin/theme
88
  msgid "TinyMCE Templates"
89
  msgstr "TinyMCE テンプレート"
90
 
91
  #. Plugin URI of the plugin/theme
92
- msgid "http://wpist.me/wp/tinymce-templates/"
93
- msgstr "http://firegoby.theta.ne.jp/wp/tinymce_templates"
94
 
95
  #. Description of the plugin/theme
96
  msgid ""
@@ -105,8 +108,20 @@ msgid "Takayuki Miyauchi"
105
  msgstr "Takayuki Miyauchi"
106
 
107
  #. Author URI of the plugin/theme
108
- msgid "http://wpist.me/"
109
- msgstr "http://firegoby.jp/"
 
 
 
 
 
 
 
 
 
 
 
 
110
 
111
  #~ msgid "Donate"
112
  #~ msgstr "寄付"
8
  msgstr ""
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
11
+ "POT-Creation-Date: 2015-01-02 19:15:19+00:00\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
17
  "Content-Type: text/plain; charset=UTF-8\n"
18
  "Content-Transfer-Encoding: 8bit\n"
19
 
20
+ #: tinymce-templates.php:136 tinymce-templates.php:157
21
+ #: tinymce-templates.php:168
22
  msgid "Copy to a new template"
23
  msgstr "新規テンプレートにコピー"
24
 
25
+ #: tinymce-templates.php:144
26
  msgid "Insert template"
27
  msgstr "テンプレートを挿入"
28
 
29
+ #: tinymce-templates.php:145 tinymce-templates.php:232
30
+ #: tinymce-templates.php:234
31
  msgid "Templates"
32
  msgstr "テンプレート"
33
 
34
+ #: tinymce-templates.php:146
35
  msgid "No templates defined"
36
  msgstr "テンプレートが見つかりませんでした。"
37
 
38
+ #: tinymce-templates.php:147
39
+ msgid "Note: The template will be inserted as shortcode."
40
+ msgstr "備考: このテンプレートはショートコードとして挿入されます。"
 
41
 
42
+ #: tinymce-templates.php:235
43
  msgid "Add New Template"
44
  msgstr "テンプレートの新規登録"
45
 
46
+ #: tinymce-templates.php:236
47
  msgid "Edit Template"
48
  msgstr "テンプレートを編集"
49
 
50
+ #: tinymce-templates.php:237
51
  msgid "Add New"
52
  msgstr "新規追加"
53
 
54
+ #: tinymce-templates.php:238
55
  msgid "New Template"
56
  msgstr "新しいテンプレート"
57
 
58
+ #: tinymce-templates.php:239
59
  msgid "View Template"
60
  msgstr "テンプレートを表示"
61
 
62
+ #: tinymce-templates.php:240
63
  msgid "No templatess found."
64
  msgstr "テンプレートが見つかりませんでした。"
65
 
66
+ #: tinymce-templates.php:241
67
  msgid "No templates found in Trash."
68
  msgstr "ゴミ箱内にテンプレートが見つかりませんでした。"
69
 
70
+ #: tinymce-templates.php:245
71
  msgid "Search Templates"
72
  msgstr "テンプレートを検索"
73
 
74
+ #: tinymce-templates.php:272
75
+ msgid "Insert as Shortcode"
76
+ msgstr "ショートコードとして挿入"
77
 
78
+ #: tinymce-templates.php:281
79
  msgid "Translators"
80
  msgstr "翻訳者"
81
 
82
+ #: tinymce-templates.php:293 tinymce-templates.php:296
83
+ msgid "Yes"
84
+ msgstr ""
85
+
86
+ #: tinymce-templates.php:294 tinymce-templates.php:297
87
+ msgid "No"
88
+ msgstr ""
89
 
90
  #. Plugin Name of the plugin/theme
91
  msgid "TinyMCE Templates"
92
  msgstr "TinyMCE テンプレート"
93
 
94
  #. Plugin URI of the plugin/theme
95
+ msgid "https://github.com/miya0001/tinymce-templates"
96
+ msgstr ""
97
 
98
  #. Description of the plugin/theme
99
  msgid ""
108
  msgstr "Takayuki Miyauchi"
109
 
110
  #. Author URI of the plugin/theme
111
+ msgid "https://github.com/miya0001/"
112
+ msgstr ""
113
+
114
+ #~ msgid "Shared"
115
+ #~ msgstr "共有"
116
+
117
+ #~ msgid "Share"
118
+ #~ msgstr "共有"
119
+
120
+ #~ msgid "Private"
121
+ #~ msgstr "個人"
122
+
123
+ #~ msgid "http://wpist.me/"
124
+ #~ msgstr "http://firegoby.jp/"
125
 
126
  #~ msgid "Donate"
127
  #~ msgstr "寄付"
languages/tinymce_templates-nl_NL.mo CHANGED
Binary file
languages/tinymce_templates-nl_NL.po CHANGED
@@ -7,7 +7,7 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: \n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
10
- "POT-Creation-Date: 2014-03-20 17:29:51+00:00\n"
11
  "PO-Revision-Date: 2011-04-15 08:54+0100\n"
12
  "Last-Translator: Frank Groeneveld <frank@ivaldi.nl>\n"
13
  "Language-Team: nl_NL <info@ivaldi.nl>\n"
@@ -16,78 +16,81 @@ msgstr ""
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
- #: tinymce-templates.php:127 tinymce-templates.php:147
20
- #: tinymce-templates.php:158
21
  msgid "Copy to a new template"
22
  msgstr ""
23
 
24
- #: tinymce-templates.php:135
25
  #, fuzzy
26
  msgid "Insert template"
27
  msgstr "Nieuwe template toevoegen"
28
 
29
- #: tinymce-templates.php:136 tinymce-templates.php:320
30
- #: tinymce-templates.php:322
31
  msgid "Templates"
32
  msgstr "Templates"
33
 
34
- #: tinymce-templates.php:137
35
  msgid "No templates defined"
36
  msgstr ""
37
 
38
- #: tinymce-templates.php:283 tinymce-templates.php:423
39
- #: tinymce-templates.php:425
40
- msgid "Shared"
41
- msgstr "Gedeeld"
42
 
43
- #: tinymce-templates.php:323
44
  #, fuzzy
45
  msgid "Add New Template"
46
  msgstr "Nieuwe template toevoegen"
47
 
48
- #: tinymce-templates.php:324
49
  #, fuzzy
50
  msgid "Edit Template"
51
  msgstr "Bewerk templates"
52
 
53
- #: tinymce-templates.php:325
54
  msgid "Add New"
55
  msgstr "Nieuwe template"
56
 
57
- #: tinymce-templates.php:326
58
  #, fuzzy
59
  msgid "New Template"
60
  msgstr "Nieuwe template toevoegen"
61
 
62
- #: tinymce-templates.php:327
63
  #, fuzzy
64
  msgid "View Template"
65
  msgstr "Template opslaan"
66
 
67
- #: tinymce-templates.php:328
68
  msgid "No templatess found."
69
  msgstr ""
70
 
71
- #: tinymce-templates.php:329
72
  msgid "No templates found in Trash."
73
  msgstr ""
74
 
75
- #: tinymce-templates.php:333
76
  #, fuzzy
77
  msgid "Search Templates"
78
  msgstr "Template opslaan"
79
 
80
- #: tinymce-templates.php:360
81
- msgid "Share"
82
- msgstr "Delen"
83
 
84
- #: tinymce-templates.php:369
85
  msgid "Translators"
86
  msgstr ""
87
 
88
- #: tinymce-templates.php:421
89
- msgid "Private"
90
- msgstr "Privé"
 
 
 
 
91
 
92
  #. Plugin Name of the plugin/theme
93
  #, fuzzy
@@ -95,7 +98,7 @@ msgid "TinyMCE Templates"
95
  msgstr "tinyMCE Templates"
96
 
97
  #. Plugin URI of the plugin/theme
98
- msgid "http://wpist.me/wp/tinymce-templates/"
99
  msgstr ""
100
 
101
  #. Description of the plugin/theme
@@ -109,9 +112,18 @@ msgid "Takayuki Miyauchi"
109
  msgstr ""
110
 
111
  #. Author URI of the plugin/theme
112
- msgid "http://wpist.me/"
113
  msgstr ""
114
 
 
 
 
 
 
 
 
 
 
115
  #~ msgid "Templates permanently deleted."
116
  #~ msgstr "Templates permanent verwijderd."
117
 
7
  msgstr ""
8
  "Project-Id-Version: \n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
10
+ "POT-Creation-Date: 2015-01-02 19:15:19+00:00\n"
11
  "PO-Revision-Date: 2011-04-15 08:54+0100\n"
12
  "Last-Translator: Frank Groeneveld <frank@ivaldi.nl>\n"
13
  "Language-Team: nl_NL <info@ivaldi.nl>\n"
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
+ #: tinymce-templates.php:136 tinymce-templates.php:157
20
+ #: tinymce-templates.php:168
21
  msgid "Copy to a new template"
22
  msgstr ""
23
 
24
+ #: tinymce-templates.php:144
25
  #, fuzzy
26
  msgid "Insert template"
27
  msgstr "Nieuwe template toevoegen"
28
 
29
+ #: tinymce-templates.php:145 tinymce-templates.php:232
30
+ #: tinymce-templates.php:234
31
  msgid "Templates"
32
  msgstr "Templates"
33
 
34
+ #: tinymce-templates.php:146
35
  msgid "No templates defined"
36
  msgstr ""
37
 
38
+ #: tinymce-templates.php:147
39
+ msgid "Note: The template will be inserted as shortcode."
40
+ msgstr ""
 
41
 
42
+ #: tinymce-templates.php:235
43
  #, fuzzy
44
  msgid "Add New Template"
45
  msgstr "Nieuwe template toevoegen"
46
 
47
+ #: tinymce-templates.php:236
48
  #, fuzzy
49
  msgid "Edit Template"
50
  msgstr "Bewerk templates"
51
 
52
+ #: tinymce-templates.php:237
53
  msgid "Add New"
54
  msgstr "Nieuwe template"
55
 
56
+ #: tinymce-templates.php:238
57
  #, fuzzy
58
  msgid "New Template"
59
  msgstr "Nieuwe template toevoegen"
60
 
61
+ #: tinymce-templates.php:239
62
  #, fuzzy
63
  msgid "View Template"
64
  msgstr "Template opslaan"
65
 
66
+ #: tinymce-templates.php:240
67
  msgid "No templatess found."
68
  msgstr ""
69
 
70
+ #: tinymce-templates.php:241
71
  msgid "No templates found in Trash."
72
  msgstr ""
73
 
74
+ #: tinymce-templates.php:245
75
  #, fuzzy
76
  msgid "Search Templates"
77
  msgstr "Template opslaan"
78
 
79
+ #: tinymce-templates.php:272
80
+ msgid "Insert as Shortcode"
81
+ msgstr ""
82
 
83
+ #: tinymce-templates.php:281
84
  msgid "Translators"
85
  msgstr ""
86
 
87
+ #: tinymce-templates.php:293 tinymce-templates.php:296
88
+ msgid "Yes"
89
+ msgstr ""
90
+
91
+ #: tinymce-templates.php:294 tinymce-templates.php:297
92
+ msgid "No"
93
+ msgstr ""
94
 
95
  #. Plugin Name of the plugin/theme
96
  #, fuzzy
98
  msgstr "tinyMCE Templates"
99
 
100
  #. Plugin URI of the plugin/theme
101
+ msgid "https://github.com/miya0001/tinymce-templates"
102
  msgstr ""
103
 
104
  #. Description of the plugin/theme
112
  msgstr ""
113
 
114
  #. Author URI of the plugin/theme
115
+ msgid "https://github.com/miya0001/"
116
  msgstr ""
117
 
118
+ #~ msgid "Shared"
119
+ #~ msgstr "Gedeeld"
120
+
121
+ #~ msgid "Share"
122
+ #~ msgstr "Delen"
123
+
124
+ #~ msgid "Private"
125
+ #~ msgstr "Privé"
126
+
127
  #~ msgid "Templates permanently deleted."
128
  #~ msgstr "Templates permanent verwijderd."
129
 
languages/tinymce_templates-pt_BR.mo CHANGED
Binary file
languages/tinymce_templates-pt_BR.po CHANGED
@@ -5,7 +5,7 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: PACKAGE VERSION\n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
8
- "POT-Creation-Date: 2014-03-20 17:29:51+00:00\n"
9
  "PO-Revision-Date: 2012-05-17 11:53-0300\n"
10
  "Last-Translator: Funchal <funchal@nomer.com.br>\n"
11
  "Language-Team: \n"
@@ -14,81 +14,85 @@ msgstr ""
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
 
17
- #: tinymce-templates.php:127 tinymce-templates.php:147
18
- #: tinymce-templates.php:158
19
  msgid "Copy to a new template"
20
  msgstr ""
21
 
22
- #: tinymce-templates.php:135
23
  #, fuzzy
24
  msgid "Insert template"
25
  msgstr "Novo modelo"
26
 
27
- #: tinymce-templates.php:136 tinymce-templates.php:320
28
- #: tinymce-templates.php:322
29
  msgid "Templates"
30
  msgstr "Modelos"
31
 
32
- #: tinymce-templates.php:137
33
  #, fuzzy
34
  msgid "No templates defined"
35
  msgstr "Nenhum modelo encontrado."
36
 
37
- #: tinymce-templates.php:283 tinymce-templates.php:423
38
- #: tinymce-templates.php:425
39
- msgid "Shared"
40
- msgstr "Compartilhar"
41
 
42
- #: tinymce-templates.php:323
43
  msgid "Add New Template"
44
  msgstr "Adicionar um novo modelo"
45
 
46
- #: tinymce-templates.php:324
47
  msgid "Edit Template"
48
  msgstr "Editar modelo"
49
 
50
- #: tinymce-templates.php:325
51
  msgid "Add New"
52
  msgstr "Adicionar novo"
53
 
54
- #: tinymce-templates.php:326
55
  msgid "New Template"
56
  msgstr "Novo modelo"
57
 
58
- #: tinymce-templates.php:327
59
  msgid "View Template"
60
  msgstr "Visualizar modelo"
61
 
62
- #: tinymce-templates.php:328
63
  msgid "No templatess found."
64
  msgstr "Nenhum modelo encontrado."
65
 
66
- #: tinymce-templates.php:329
67
  msgid "No templates found in Trash."
68
  msgstr "Nenhum modelo na lixeira."
69
 
70
- #: tinymce-templates.php:333
71
  msgid "Search Templates"
72
  msgstr "Pesquisar modelos disponíveis"
73
 
74
- #: tinymce-templates.php:360
75
- msgid "Share"
76
- msgstr "Compartilhar"
77
 
78
- #: tinymce-templates.php:369
79
  msgid "Translators"
80
  msgstr "Tradutores"
81
 
82
- #: tinymce-templates.php:421
83
- msgid "Private"
84
- msgstr "Privado"
 
 
 
 
85
 
86
  #. Plugin Name of the plugin/theme
87
  msgid "TinyMCE Templates"
88
  msgstr "TinyMCE Templates"
89
 
90
  #. Plugin URI of the plugin/theme
91
- msgid "http://wpist.me/wp/tinymce-templates/"
 
92
  msgstr "http://wpist.me/wp/tinymce-templates/"
93
 
94
  #. Description of the plugin/theme
@@ -104,8 +108,20 @@ msgid "Takayuki Miyauchi"
104
  msgstr "Takayuki Miyauchi"
105
 
106
  #. Author URI of the plugin/theme
107
- msgid "http://wpist.me/"
108
- msgstr "http://wpist.me/"
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
  #~ msgid "Donate"
111
  #~ msgstr "Faça uma doação"
5
  msgstr ""
6
  "Project-Id-Version: PACKAGE VERSION\n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
8
+ "POT-Creation-Date: 2015-01-02 19:15:19+00:00\n"
9
  "PO-Revision-Date: 2012-05-17 11:53-0300\n"
10
  "Last-Translator: Funchal <funchal@nomer.com.br>\n"
11
  "Language-Team: \n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
 
17
+ #: tinymce-templates.php:136 tinymce-templates.php:157
18
+ #: tinymce-templates.php:168
19
  msgid "Copy to a new template"
20
  msgstr ""
21
 
22
+ #: tinymce-templates.php:144
23
  #, fuzzy
24
  msgid "Insert template"
25
  msgstr "Novo modelo"
26
 
27
+ #: tinymce-templates.php:145 tinymce-templates.php:232
28
+ #: tinymce-templates.php:234
29
  msgid "Templates"
30
  msgstr "Modelos"
31
 
32
+ #: tinymce-templates.php:146
33
  #, fuzzy
34
  msgid "No templates defined"
35
  msgstr "Nenhum modelo encontrado."
36
 
37
+ #: tinymce-templates.php:147
38
+ msgid "Note: The template will be inserted as shortcode."
39
+ msgstr ""
 
40
 
41
+ #: tinymce-templates.php:235
42
  msgid "Add New Template"
43
  msgstr "Adicionar um novo modelo"
44
 
45
+ #: tinymce-templates.php:236
46
  msgid "Edit Template"
47
  msgstr "Editar modelo"
48
 
49
+ #: tinymce-templates.php:237
50
  msgid "Add New"
51
  msgstr "Adicionar novo"
52
 
53
+ #: tinymce-templates.php:238
54
  msgid "New Template"
55
  msgstr "Novo modelo"
56
 
57
+ #: tinymce-templates.php:239
58
  msgid "View Template"
59
  msgstr "Visualizar modelo"
60
 
61
+ #: tinymce-templates.php:240
62
  msgid "No templatess found."
63
  msgstr "Nenhum modelo encontrado."
64
 
65
+ #: tinymce-templates.php:241
66
  msgid "No templates found in Trash."
67
  msgstr "Nenhum modelo na lixeira."
68
 
69
+ #: tinymce-templates.php:245
70
  msgid "Search Templates"
71
  msgstr "Pesquisar modelos disponíveis"
72
 
73
+ #: tinymce-templates.php:272
74
+ msgid "Insert as Shortcode"
75
+ msgstr ""
76
 
77
+ #: tinymce-templates.php:281
78
  msgid "Translators"
79
  msgstr "Tradutores"
80
 
81
+ #: tinymce-templates.php:293 tinymce-templates.php:296
82
+ msgid "Yes"
83
+ msgstr ""
84
+
85
+ #: tinymce-templates.php:294 tinymce-templates.php:297
86
+ msgid "No"
87
+ msgstr ""
88
 
89
  #. Plugin Name of the plugin/theme
90
  msgid "TinyMCE Templates"
91
  msgstr "TinyMCE Templates"
92
 
93
  #. Plugin URI of the plugin/theme
94
+ #, fuzzy
95
+ msgid "https://github.com/miya0001/tinymce-templates"
96
  msgstr "http://wpist.me/wp/tinymce-templates/"
97
 
98
  #. Description of the plugin/theme
108
  msgstr "Takayuki Miyauchi"
109
 
110
  #. Author URI of the plugin/theme
111
+ msgid "https://github.com/miya0001/"
112
+ msgstr ""
113
+
114
+ #~ msgid "Shared"
115
+ #~ msgstr "Compartilhar"
116
+
117
+ #~ msgid "Share"
118
+ #~ msgstr "Compartilhar"
119
+
120
+ #~ msgid "Private"
121
+ #~ msgstr "Privado"
122
+
123
+ #~ msgid "http://wpist.me/"
124
+ #~ msgstr "http://wpist.me/"
125
 
126
  #~ msgid "Donate"
127
  #~ msgstr "Faça uma doação"
languages/tinymce_templates-ru_RU.mo CHANGED
Binary file
languages/tinymce_templates-ru_RU.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
5
- "POT-Creation-Date: 2014-03-20 17:29:51+00:00\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: ihtimir <ihtimir@gmail.com>\n"
8
  "Language-Team: \n"
@@ -14,81 +14,85 @@ msgstr ""
14
  "X-Poedit-Country: RUSSIAN FEDERATION\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
 
17
- #: tinymce-templates.php:127 tinymce-templates.php:147
18
- #: tinymce-templates.php:158
19
  msgid "Copy to a new template"
20
  msgstr "Скопировать в новый шаблон"
21
 
22
- #: tinymce-templates.php:135
23
  #, fuzzy
24
  msgid "Insert template"
25
  msgstr "Новый шаблон"
26
 
27
- #: tinymce-templates.php:136 tinymce-templates.php:320
28
- #: tinymce-templates.php:322
29
  msgid "Templates"
30
  msgstr "Шаблоны"
31
 
32
- #: tinymce-templates.php:137
33
  #, fuzzy
34
  msgid "No templates defined"
35
  msgstr "Шаблоны не найдены."
36
 
37
- #: tinymce-templates.php:283 tinymce-templates.php:423
38
- #: tinymce-templates.php:425
39
- msgid "Shared"
40
- msgstr "Общедоступный"
41
 
42
- #: tinymce-templates.php:323
43
  msgid "Add New Template"
44
  msgstr "Добавить новый шаблон"
45
 
46
- #: tinymce-templates.php:324
47
  msgid "Edit Template"
48
  msgstr "Редактировать шаблон"
49
 
50
- #: tinymce-templates.php:325
51
  msgid "Add New"
52
  msgstr "Добавить новый"
53
 
54
- #: tinymce-templates.php:326
55
  msgid "New Template"
56
  msgstr "Новый шаблон"
57
 
58
- #: tinymce-templates.php:327
59
  msgid "View Template"
60
  msgstr "Просмотреть шаблон"
61
 
62
- #: tinymce-templates.php:328
63
  msgid "No templatess found."
64
  msgstr "Шаблоны не найдены."
65
 
66
- #: tinymce-templates.php:329
67
  msgid "No templates found in Trash."
68
  msgstr "В корзине не найдено шаблонов."
69
 
70
- #: tinymce-templates.php:333
71
  msgid "Search Templates"
72
  msgstr "Поиск шаблонов"
73
 
74
- #: tinymce-templates.php:360
75
- msgid "Share"
76
- msgstr "Поделиться"
77
 
78
- #: tinymce-templates.php:369
79
  msgid "Translators"
80
  msgstr "Переводчики"
81
 
82
- #: tinymce-templates.php:421
83
- msgid "Private"
84
- msgstr "Частный"
 
 
 
 
85
 
86
  #. Plugin Name of the plugin/theme
87
  msgid "TinyMCE Templates"
88
  msgstr "Шаблоны TinyMCE"
89
 
90
  #. Plugin URI of the plugin/theme
91
- msgid "http://wpist.me/wp/tinymce-templates/"
 
92
  msgstr "http://wpist.me/wp/tinymce-templates/"
93
 
94
  #. Description of the plugin/theme
@@ -102,8 +106,20 @@ msgid "Takayuki Miyauchi"
102
  msgstr "Takayuki Miyauchi"
103
 
104
  #. Author URI of the plugin/theme
105
- msgid "http://wpist.me/"
106
- msgstr "http://wpist.me/"
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
  #~ msgid "Donate"
109
  #~ msgstr "Отблагодарить"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
5
+ "POT-Creation-Date: 2015-01-02 19:15:19+00:00\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: ihtimir <ihtimir@gmail.com>\n"
8
  "Language-Team: \n"
14
  "X-Poedit-Country: RUSSIAN FEDERATION\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
 
17
+ #: tinymce-templates.php:136 tinymce-templates.php:157
18
+ #: tinymce-templates.php:168
19
  msgid "Copy to a new template"
20
  msgstr "Скопировать в новый шаблон"
21
 
22
+ #: tinymce-templates.php:144
23
  #, fuzzy
24
  msgid "Insert template"
25
  msgstr "Новый шаблон"
26
 
27
+ #: tinymce-templates.php:145 tinymce-templates.php:232
28
+ #: tinymce-templates.php:234
29
  msgid "Templates"
30
  msgstr "Шаблоны"
31
 
32
+ #: tinymce-templates.php:146
33
  #, fuzzy
34
  msgid "No templates defined"
35
  msgstr "Шаблоны не найдены."
36
 
37
+ #: tinymce-templates.php:147
38
+ msgid "Note: The template will be inserted as shortcode."
39
+ msgstr ""
 
40
 
41
+ #: tinymce-templates.php:235
42
  msgid "Add New Template"
43
  msgstr "Добавить новый шаблон"
44
 
45
+ #: tinymce-templates.php:236
46
  msgid "Edit Template"
47
  msgstr "Редактировать шаблон"
48
 
49
+ #: tinymce-templates.php:237
50
  msgid "Add New"
51
  msgstr "Добавить новый"
52
 
53
+ #: tinymce-templates.php:238
54
  msgid "New Template"
55
  msgstr "Новый шаблон"
56
 
57
+ #: tinymce-templates.php:239
58
  msgid "View Template"
59
  msgstr "Просмотреть шаблон"
60
 
61
+ #: tinymce-templates.php:240
62
  msgid "No templatess found."
63
  msgstr "Шаблоны не найдены."
64
 
65
+ #: tinymce-templates.php:241
66
  msgid "No templates found in Trash."
67
  msgstr "В корзине не найдено шаблонов."
68
 
69
+ #: tinymce-templates.php:245
70
  msgid "Search Templates"
71
  msgstr "Поиск шаблонов"
72
 
73
+ #: tinymce-templates.php:272
74
+ msgid "Insert as Shortcode"
75
+ msgstr ""
76
 
77
+ #: tinymce-templates.php:281
78
  msgid "Translators"
79
  msgstr "Переводчики"
80
 
81
+ #: tinymce-templates.php:293 tinymce-templates.php:296
82
+ msgid "Yes"
83
+ msgstr ""
84
+
85
+ #: tinymce-templates.php:294 tinymce-templates.php:297
86
+ msgid "No"
87
+ msgstr ""
88
 
89
  #. Plugin Name of the plugin/theme
90
  msgid "TinyMCE Templates"
91
  msgstr "Шаблоны TinyMCE"
92
 
93
  #. Plugin URI of the plugin/theme
94
+ #, fuzzy
95
+ msgid "https://github.com/miya0001/tinymce-templates"
96
  msgstr "http://wpist.me/wp/tinymce-templates/"
97
 
98
  #. Description of the plugin/theme
106
  msgstr "Takayuki Miyauchi"
107
 
108
  #. Author URI of the plugin/theme
109
+ msgid "https://github.com/miya0001/"
110
+ msgstr ""
111
+
112
+ #~ msgid "Shared"
113
+ #~ msgstr "Общедоступный"
114
+
115
+ #~ msgid "Share"
116
+ #~ msgstr "Поделиться"
117
+
118
+ #~ msgid "Private"
119
+ #~ msgstr "Частный"
120
+
121
+ #~ msgid "http://wpist.me/"
122
+ #~ msgstr "http://wpist.me/"
123
 
124
  #~ msgid "Donate"
125
  #~ msgstr "Отблагодарить"
languages/tinymce_templates-sk_SK.mo CHANGED
Binary file
languages/tinymce_templates-sk_SK.po CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: TinyMCE Templates 2.8.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
7
- "POT-Creation-Date: 2014-03-20 17:29:51+00:00\n"
8
  "PO-Revision-Date: 2013-01-23 12:50+0300\n"
9
  "Last-Translator: Serg\n"
10
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -14,81 +14,85 @@ msgstr ""
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Generator: Poedit 1.5.4\n"
16
 
17
- #: tinymce-templates.php:127 tinymce-templates.php:147
18
- #: tinymce-templates.php:158
19
  msgid "Copy to a new template"
20
  msgstr "Kopírovanie nové šablóny"
21
 
22
- #: tinymce-templates.php:135
23
  #, fuzzy
24
  msgid "Insert template"
25
  msgstr "Nová šablóna"
26
 
27
- #: tinymce-templates.php:136 tinymce-templates.php:320
28
- #: tinymce-templates.php:322
29
  msgid "Templates"
30
  msgstr "Šablóny"
31
 
32
- #: tinymce-templates.php:137
33
  #, fuzzy
34
  msgid "No templates defined"
35
  msgstr "Žiadne templatess našiel."
36
 
37
- #: tinymce-templates.php:283 tinymce-templates.php:423
38
- #: tinymce-templates.php:425
39
- msgid "Shared"
40
- msgstr "Zdieľané"
41
 
42
- #: tinymce-templates.php:323
43
  msgid "Add New Template"
44
  msgstr "Pridať novú šablónu"
45
 
46
- #: tinymce-templates.php:324
47
  msgid "Edit Template"
48
  msgstr "Upraviť šablónu"
49
 
50
- #: tinymce-templates.php:325
51
  msgid "Add New"
52
  msgstr "Pridať nové"
53
 
54
- #: tinymce-templates.php:326
55
  msgid "New Template"
56
  msgstr "Nová šablóna"
57
 
58
- #: tinymce-templates.php:327
59
  msgid "View Template"
60
  msgstr "Zobrazenie šablóny"
61
 
62
- #: tinymce-templates.php:328
63
  msgid "No templatess found."
64
  msgstr "Žiadne templatess našiel."
65
 
66
- #: tinymce-templates.php:329
67
  msgid "No templates found in Trash."
68
  msgstr "Žiadne šablóny, nachádza v koši."
69
 
70
- #: tinymce-templates.php:333
71
  msgid "Search Templates"
72
  msgstr "Hľadať šablóny"
73
 
74
- #: tinymce-templates.php:360
75
- msgid "Share"
76
- msgstr "Podiel"
77
 
78
- #: tinymce-templates.php:369
79
  msgid "Translators"
80
  msgstr "Prekladatelia"
81
 
82
- #: tinymce-templates.php:421
83
- msgid "Private"
84
- msgstr "Súkromné"
 
 
 
 
85
 
86
  #. Plugin Name of the plugin/theme
87
  msgid "TinyMCE Templates"
88
  msgstr "TinyMCE šablóny"
89
 
90
  #. Plugin URI of the plugin/theme
91
- msgid "http://wpist.me/wp/tinymce-templates/"
 
92
  msgstr "http://wpist.me/WP/TinyMCE-templates/"
93
 
94
  #. Description of the plugin/theme
@@ -104,8 +108,20 @@ msgid "Takayuki Miyauchi"
104
  msgstr "Takayuki Miyauchi"
105
 
106
  #. Author URI of the plugin/theme
107
- msgid "http://wpist.me/"
108
- msgstr "http://wpist.me/"
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
  #~ msgid "Donate"
111
  #~ msgstr "Darovať"
4
  msgstr ""
5
  "Project-Id-Version: TinyMCE Templates 2.8.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
7
+ "POT-Creation-Date: 2015-01-02 19:15:19+00:00\n"
8
  "PO-Revision-Date: 2013-01-23 12:50+0300\n"
9
  "Last-Translator: Serg\n"
10
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Generator: Poedit 1.5.4\n"
16
 
17
+ #: tinymce-templates.php:136 tinymce-templates.php:157
18
+ #: tinymce-templates.php:168
19
  msgid "Copy to a new template"
20
  msgstr "Kopírovanie nové šablóny"
21
 
22
+ #: tinymce-templates.php:144
23
  #, fuzzy
24
  msgid "Insert template"
25
  msgstr "Nová šablóna"
26
 
27
+ #: tinymce-templates.php:145 tinymce-templates.php:232
28
+ #: tinymce-templates.php:234
29
  msgid "Templates"
30
  msgstr "Šablóny"
31
 
32
+ #: tinymce-templates.php:146
33
  #, fuzzy
34
  msgid "No templates defined"
35
  msgstr "Žiadne templatess našiel."
36
 
37
+ #: tinymce-templates.php:147
38
+ msgid "Note: The template will be inserted as shortcode."
39
+ msgstr ""
 
40
 
41
+ #: tinymce-templates.php:235
42
  msgid "Add New Template"
43
  msgstr "Pridať novú šablónu"
44
 
45
+ #: tinymce-templates.php:236
46
  msgid "Edit Template"
47
  msgstr "Upraviť šablónu"
48
 
49
+ #: tinymce-templates.php:237
50
  msgid "Add New"
51
  msgstr "Pridať nové"
52
 
53
+ #: tinymce-templates.php:238
54
  msgid "New Template"
55
  msgstr "Nová šablóna"
56
 
57
+ #: tinymce-templates.php:239
58
  msgid "View Template"
59
  msgstr "Zobrazenie šablóny"
60
 
61
+ #: tinymce-templates.php:240
62
  msgid "No templatess found."
63
  msgstr "Žiadne templatess našiel."
64
 
65
+ #: tinymce-templates.php:241
66
  msgid "No templates found in Trash."
67
  msgstr "Žiadne šablóny, nachádza v koši."
68
 
69
+ #: tinymce-templates.php:245
70
  msgid "Search Templates"
71
  msgstr "Hľadať šablóny"
72
 
73
+ #: tinymce-templates.php:272
74
+ msgid "Insert as Shortcode"
75
+ msgstr ""
76
 
77
+ #: tinymce-templates.php:281
78
  msgid "Translators"
79
  msgstr "Prekladatelia"
80
 
81
+ #: tinymce-templates.php:293 tinymce-templates.php:296
82
+ msgid "Yes"
83
+ msgstr ""
84
+
85
+ #: tinymce-templates.php:294 tinymce-templates.php:297
86
+ msgid "No"
87
+ msgstr ""
88
 
89
  #. Plugin Name of the plugin/theme
90
  msgid "TinyMCE Templates"
91
  msgstr "TinyMCE šablóny"
92
 
93
  #. Plugin URI of the plugin/theme
94
+ #, fuzzy
95
+ msgid "https://github.com/miya0001/tinymce-templates"
96
  msgstr "http://wpist.me/WP/TinyMCE-templates/"
97
 
98
  #. Description of the plugin/theme
108
  msgstr "Takayuki Miyauchi"
109
 
110
  #. Author URI of the plugin/theme
111
+ msgid "https://github.com/miya0001/"
112
+ msgstr ""
113
+
114
+ #~ msgid "Shared"
115
+ #~ msgstr "Zdieľané"
116
+
117
+ #~ msgid "Share"
118
+ #~ msgstr "Podiel"
119
+
120
+ #~ msgid "Private"
121
+ #~ msgstr "Súkromné"
122
+
123
+ #~ msgid "http://wpist.me/"
124
+ #~ msgstr "http://wpist.me/"
125
 
126
  #~ msgid "Donate"
127
  #~ msgstr "Darovať"
languages/tinymce_templates-sv_SE.mo CHANGED
Binary file
languages/tinymce_templates-sv_SE.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: PACKAGE VERSION\n"
8
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
9
- "POT-Creation-Date: 2014-03-20 17:29:51+00:00\n"
10
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
11
  "Last-Translator: Tobias Bergius <bergius.tobias@gmail.com>\n"
12
  "Language: Swedish\n"
@@ -14,78 +14,81 @@ msgstr ""
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
 
17
- #: tinymce-templates.php:127 tinymce-templates.php:147
18
- #: tinymce-templates.php:158
19
  msgid "Copy to a new template"
20
  msgstr ""
21
 
22
- #: tinymce-templates.php:135
23
  #, fuzzy
24
  msgid "Insert template"
25
  msgstr "Skapa ny mall"
26
 
27
- #: tinymce-templates.php:136 tinymce-templates.php:320
28
- #: tinymce-templates.php:322
29
  msgid "Templates"
30
  msgstr "Mallar"
31
 
32
- #: tinymce-templates.php:137
33
  msgid "No templates defined"
34
  msgstr ""
35
 
36
- #: tinymce-templates.php:283 tinymce-templates.php:423
37
- #: tinymce-templates.php:425
38
- msgid "Shared"
39
- msgstr "Delad"
40
 
41
- #: tinymce-templates.php:323
42
  #, fuzzy
43
  msgid "Add New Template"
44
  msgstr "Skapa ny mall"
45
 
46
- #: tinymce-templates.php:324
47
  #, fuzzy
48
  msgid "Edit Template"
49
  msgstr "Redigera mallar"
50
 
51
- #: tinymce-templates.php:325
52
  msgid "Add New"
53
  msgstr "Skapa ny"
54
 
55
- #: tinymce-templates.php:326
56
  #, fuzzy
57
  msgid "New Template"
58
  msgstr "Skapa ny mall"
59
 
60
- #: tinymce-templates.php:327
61
  #, fuzzy
62
  msgid "View Template"
63
  msgstr "Spara mall"
64
 
65
- #: tinymce-templates.php:328
66
  msgid "No templatess found."
67
  msgstr ""
68
 
69
- #: tinymce-templates.php:329
70
  msgid "No templates found in Trash."
71
  msgstr ""
72
 
73
- #: tinymce-templates.php:333
74
  #, fuzzy
75
  msgid "Search Templates"
76
  msgstr "Spara mall"
77
 
78
- #: tinymce-templates.php:360
79
- msgid "Share"
80
- msgstr "Dela"
81
 
82
- #: tinymce-templates.php:369
83
  msgid "Translators"
84
  msgstr ""
85
 
86
- #: tinymce-templates.php:421
87
- msgid "Private"
88
- msgstr "Privat"
 
 
 
 
89
 
90
  #. Plugin Name of the plugin/theme
91
  #, fuzzy
@@ -93,7 +96,7 @@ msgid "TinyMCE Templates"
93
  msgstr "tinyMCE-mallar"
94
 
95
  #. Plugin URI of the plugin/theme
96
- msgid "http://wpist.me/wp/tinymce-templates/"
97
  msgstr ""
98
 
99
  #. Description of the plugin/theme
@@ -107,9 +110,18 @@ msgid "Takayuki Miyauchi"
107
  msgstr ""
108
 
109
  #. Author URI of the plugin/theme
110
- msgid "http://wpist.me/"
111
  msgstr ""
112
 
 
 
 
 
 
 
 
 
 
113
  #~ msgid "Templates permanently deleted."
114
  #~ msgstr "Mallarna permanent borttagna."
115
 
6
  msgstr ""
7
  "Project-Id-Version: PACKAGE VERSION\n"
8
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
9
+ "POT-Creation-Date: 2015-01-02 19:15:19+00:00\n"
10
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
11
  "Last-Translator: Tobias Bergius <bergius.tobias@gmail.com>\n"
12
  "Language: Swedish\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
 
17
+ #: tinymce-templates.php:136 tinymce-templates.php:157
18
+ #: tinymce-templates.php:168
19
  msgid "Copy to a new template"
20
  msgstr ""
21
 
22
+ #: tinymce-templates.php:144
23
  #, fuzzy
24
  msgid "Insert template"
25
  msgstr "Skapa ny mall"
26
 
27
+ #: tinymce-templates.php:145 tinymce-templates.php:232
28
+ #: tinymce-templates.php:234
29
  msgid "Templates"
30
  msgstr "Mallar"
31
 
32
+ #: tinymce-templates.php:146
33
  msgid "No templates defined"
34
  msgstr ""
35
 
36
+ #: tinymce-templates.php:147
37
+ msgid "Note: The template will be inserted as shortcode."
38
+ msgstr ""
 
39
 
40
+ #: tinymce-templates.php:235
41
  #, fuzzy
42
  msgid "Add New Template"
43
  msgstr "Skapa ny mall"
44
 
45
+ #: tinymce-templates.php:236
46
  #, fuzzy
47
  msgid "Edit Template"
48
  msgstr "Redigera mallar"
49
 
50
+ #: tinymce-templates.php:237
51
  msgid "Add New"
52
  msgstr "Skapa ny"
53
 
54
+ #: tinymce-templates.php:238
55
  #, fuzzy
56
  msgid "New Template"
57
  msgstr "Skapa ny mall"
58
 
59
+ #: tinymce-templates.php:239
60
  #, fuzzy
61
  msgid "View Template"
62
  msgstr "Spara mall"
63
 
64
+ #: tinymce-templates.php:240
65
  msgid "No templatess found."
66
  msgstr ""
67
 
68
+ #: tinymce-templates.php:241
69
  msgid "No templates found in Trash."
70
  msgstr ""
71
 
72
+ #: tinymce-templates.php:245
73
  #, fuzzy
74
  msgid "Search Templates"
75
  msgstr "Spara mall"
76
 
77
+ #: tinymce-templates.php:272
78
+ msgid "Insert as Shortcode"
79
+ msgstr ""
80
 
81
+ #: tinymce-templates.php:281
82
  msgid "Translators"
83
  msgstr ""
84
 
85
+ #: tinymce-templates.php:293 tinymce-templates.php:296
86
+ msgid "Yes"
87
+ msgstr ""
88
+
89
+ #: tinymce-templates.php:294 tinymce-templates.php:297
90
+ msgid "No"
91
+ msgstr ""
92
 
93
  #. Plugin Name of the plugin/theme
94
  #, fuzzy
96
  msgstr "tinyMCE-mallar"
97
 
98
  #. Plugin URI of the plugin/theme
99
+ msgid "https://github.com/miya0001/tinymce-templates"
100
  msgstr ""
101
 
102
  #. Description of the plugin/theme
110
  msgstr ""
111
 
112
  #. Author URI of the plugin/theme
113
+ msgid "https://github.com/miya0001/"
114
  msgstr ""
115
 
116
+ #~ msgid "Shared"
117
+ #~ msgstr "Delad"
118
+
119
+ #~ msgid "Share"
120
+ #~ msgstr "Dela"
121
+
122
+ #~ msgid "Private"
123
+ #~ msgstr "Privat"
124
+
125
  #~ msgid "Templates permanently deleted."
126
  #~ msgstr "Mallarna permanent borttagna."
127
 
languages/tinymce_templates.pot CHANGED
@@ -1,82 +1,85 @@
1
- # Copyright (C) 2014 TinyMCE Templates
2
  # This file is distributed under the same license as the TinyMCE Templates package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: TinyMCE Templates 3.4.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
7
- "POT-Creation-Date: 2014-03-20 17:29:51+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: tinymce-templates.php:127 tinymce-templates.php:147
16
- #: tinymce-templates.php:158
17
  msgid "Copy to a new template"
18
  msgstr ""
19
 
20
- #: tinymce-templates.php:135
21
  msgid "Insert template"
22
  msgstr ""
23
 
24
- #: tinymce-templates.php:136 tinymce-templates.php:320
25
- #: tinymce-templates.php:322
26
  msgid "Templates"
27
  msgstr ""
28
 
29
- #: tinymce-templates.php:137
30
  msgid "No templates defined"
31
  msgstr ""
32
 
33
- #: tinymce-templates.php:283 tinymce-templates.php:423
34
- #: tinymce-templates.php:425
35
- msgid "Shared"
36
  msgstr ""
37
 
38
- #: tinymce-templates.php:323
39
  msgid "Add New Template"
40
  msgstr ""
41
 
42
- #: tinymce-templates.php:324
43
  msgid "Edit Template"
44
  msgstr ""
45
 
46
- #: tinymce-templates.php:325
47
  msgid "Add New"
48
  msgstr ""
49
 
50
- #: tinymce-templates.php:326
51
  msgid "New Template"
52
  msgstr ""
53
 
54
- #: tinymce-templates.php:327
55
  msgid "View Template"
56
  msgstr ""
57
 
58
- #: tinymce-templates.php:328
59
  msgid "No templatess found."
60
  msgstr ""
61
 
62
- #: tinymce-templates.php:329
63
  msgid "No templates found in Trash."
64
  msgstr ""
65
 
66
- #: tinymce-templates.php:333
67
  msgid "Search Templates"
68
  msgstr ""
69
 
70
- #: tinymce-templates.php:360
71
- msgid "Share"
72
  msgstr ""
73
 
74
- #: tinymce-templates.php:369
75
  msgid "Translators"
76
  msgstr ""
77
 
78
- #: tinymce-templates.php:421
79
- msgid "Private"
 
 
 
 
80
  msgstr ""
81
 
82
  #. Plugin Name of the plugin/theme
@@ -84,7 +87,7 @@ msgid "TinyMCE Templates"
84
  msgstr ""
85
 
86
  #. Plugin URI of the plugin/theme
87
- msgid "http://wpist.me/wp/tinymce-templates/"
88
  msgstr ""
89
 
90
  #. Description of the plugin/theme
@@ -98,5 +101,5 @@ msgid "Takayuki Miyauchi"
98
  msgstr ""
99
 
100
  #. Author URI of the plugin/theme
101
- msgid "http://wpist.me/"
102
  msgstr ""
1
+ # Copyright (C) 2015 TinyMCE Templates
2
  # This file is distributed under the same license as the TinyMCE Templates package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: TinyMCE Templates 4.0.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
7
+ "POT-Creation-Date: 2015-01-02 19:15:19+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: tinymce-templates.php:136 tinymce-templates.php:157
16
+ #: tinymce-templates.php:168
17
  msgid "Copy to a new template"
18
  msgstr ""
19
 
20
+ #: tinymce-templates.php:144
21
  msgid "Insert template"
22
  msgstr ""
23
 
24
+ #: tinymce-templates.php:145 tinymce-templates.php:232
25
+ #: tinymce-templates.php:234
26
  msgid "Templates"
27
  msgstr ""
28
 
29
+ #: tinymce-templates.php:146
30
  msgid "No templates defined"
31
  msgstr ""
32
 
33
+ #: tinymce-templates.php:147
34
+ msgid "Note: The template will be inserted as shortcode."
 
35
  msgstr ""
36
 
37
+ #: tinymce-templates.php:235
38
  msgid "Add New Template"
39
  msgstr ""
40
 
41
+ #: tinymce-templates.php:236
42
  msgid "Edit Template"
43
  msgstr ""
44
 
45
+ #: tinymce-templates.php:237
46
  msgid "Add New"
47
  msgstr ""
48
 
49
+ #: tinymce-templates.php:238
50
  msgid "New Template"
51
  msgstr ""
52
 
53
+ #: tinymce-templates.php:239
54
  msgid "View Template"
55
  msgstr ""
56
 
57
+ #: tinymce-templates.php:240
58
  msgid "No templatess found."
59
  msgstr ""
60
 
61
+ #: tinymce-templates.php:241
62
  msgid "No templates found in Trash."
63
  msgstr ""
64
 
65
+ #: tinymce-templates.php:245
66
  msgid "Search Templates"
67
  msgstr ""
68
 
69
+ #: tinymce-templates.php:272
70
+ msgid "Insert as Shortcode"
71
  msgstr ""
72
 
73
+ #: tinymce-templates.php:281
74
  msgid "Translators"
75
  msgstr ""
76
 
77
+ #: tinymce-templates.php:293 tinymce-templates.php:296
78
+ msgid "Yes"
79
+ msgstr ""
80
+
81
+ #: tinymce-templates.php:294 tinymce-templates.php:297
82
+ msgid "No"
83
  msgstr ""
84
 
85
  #. Plugin Name of the plugin/theme
87
  msgstr ""
88
 
89
  #. Plugin URI of the plugin/theme
90
+ msgid "https://github.com/miya0001/tinymce-templates"
91
  msgstr ""
92
 
93
  #. Description of the plugin/theme
101
  msgstr ""
102
 
103
  #. Author URI of the plugin/theme
104
+ msgid "https://github.com/miya0001/"
105
  msgstr ""
mce_plugins/3.5/plugins/template/blank.htm DELETED
@@ -1,12 +0,0 @@
1
- <html xmlns="http://www.w3.org/1999/xhtml">
2
- <head>
3
- <title>blank_page</title>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5
- <script type="text/javascript">
6
- parent.TemplateDialog.loadCSSFiles(document);
7
- </script>
8
- </head>
9
- <body id="mceTemplatePreview" class="mceContentBody">
10
-
11
- </body>
12
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/plugins/template/css/template.css DELETED
@@ -1,23 +0,0 @@
1
- #frmbody {
2
- padding: 10px;
3
- background-color: #FFF;
4
- border: 1px solid #CCC;
5
- }
6
-
7
- .frmRow {
8
- margin-bottom: 10px;
9
- }
10
-
11
- #templatesrc {
12
- border: none;
13
- width: 320px;
14
- height: 240px;
15
- }
16
-
17
- .title {
18
- padding-bottom: 5px;
19
- }
20
-
21
- .mceActionPanel {
22
- padding-top: 5px;
23
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/plugins/template/editor_plugin.js DELETED
@@ -1 +0,0 @@
1
- (function(){var a=tinymce.each;tinymce.create("tinymce.plugins.TemplatePlugin",{init:function(b,c){var d=this;d.editor=b;b.addCommand("mceTemplate",function(e){b.windowManager.open({file:c+"/template.htm",width:b.getParam("template_popup_width",750),height:b.getParam("template_popup_height",600),inline:1},{plugin_url:c})});b.addCommand("mceInsertTemplate",d._insertTemplate,d);b.addButton("template",{title:"template.desc",cmd:"mceTemplate"});b.onPreProcess.add(function(e,g){var f=e.dom;a(f.select("div",g.node),function(h){if(f.hasClass(h,"mceTmpl")){a(f.select("*",h),function(i){if(f.hasClass(i,e.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))){i.innerHTML=d._getDateTime(new Date(),e.getParam("template_mdate_format",e.getLang("template.mdate_format")))}});d._replaceVals(h)}})})},getInfo:function(){return{longname:"Template plugin",author:"Moxiecode Systems AB",authorurl:"http://www.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/template",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_insertTemplate:function(i,j){var k=this,g=k.editor,f,c,d=g.dom,b=g.selection.getContent();f=j.content;a(k.editor.getParam("template_replace_values"),function(l,h){if(typeof(l)!="function"){f=f.replace(new RegExp("\\{\\$"+h+"\\}","g"),l)}});c=d.create("div",null,f);n=d.select(".mceTmpl",c);if(n&&n.length>0){c=d.create("div",null);c.appendChild(n[0].cloneNode(true))}function e(l,h){return new RegExp("\\b"+h+"\\b","g").test(l.className)}a(d.select("*",c),function(h){if(e(h,g.getParam("template_cdate_classes","cdate").replace(/\s+/g,"|"))){h.innerHTML=k._getDateTime(new Date(),g.getParam("template_cdate_format",g.getLang("template.cdate_format")))}if(e(h,g.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))){h.innerHTML=k._getDateTime(new Date(),g.getParam("template_mdate_format",g.getLang("template.mdate_format")))}if(e(h,g.getParam("template_selected_content_classes","selcontent").replace(/\s+/g,"|"))){h.innerHTML=b}});k._replaceVals(c);g.execCommand("mceInsertContent",false,c.innerHTML);g.addVisual()},_replaceVals:function(c){var d=this.editor.dom,b=this.editor.getParam("template_replace_values");a(d.select("*",c),function(f){a(b,function(g,e){if(d.hasClass(f,e)){if(typeof(b[e])=="function"){b[e](f)}}})})},_getDateTime:function(e,b){if(!b){return""}function c(g,d){var f;g=""+g;if(g.length<d){for(f=0;f<(d-g.length);f++){g="0"+g}}return g}b=b.replace("%D","%m/%d/%y");b=b.replace("%r","%I:%M:%S %p");b=b.replace("%Y",""+e.getFullYear());b=b.replace("%y",""+e.getYear());b=b.replace("%m",c(e.getMonth()+1,2));b=b.replace("%d",c(e.getDate(),2));b=b.replace("%H",""+c(e.getHours(),2));b=b.replace("%M",""+c(e.getMinutes(),2));b=b.replace("%S",""+c(e.getSeconds(),2));b=b.replace("%I",""+((e.getHours()+11)%12+1));b=b.replace("%p",""+(e.getHours()<12?"AM":"PM"));b=b.replace("%B",""+this.editor.getLang("template_months_long").split(",")[e.getMonth()]);b=b.replace("%b",""+this.editor.getLang("template_months_short").split(",")[e.getMonth()]);b=b.replace("%A",""+this.editor.getLang("template_day_long").split(",")[e.getDay()]);b=b.replace("%a",""+this.editor.getLang("template_day_short").split(",")[e.getDay()]);b=b.replace("%%","%");return b}});tinymce.PluginManager.add("template",tinymce.plugins.TemplatePlugin)})();
 
mce_plugins/3.5/plugins/template/editor_plugin_src.js DELETED
@@ -1,159 +0,0 @@
1
- /**
2
- * editor_plugin_src.js
3
- *
4
- * Copyright 2009, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://tinymce.moxiecode.com/license
8
- * Contributing: http://tinymce.moxiecode.com/contributing
9
- */
10
-
11
- (function() {
12
- var each = tinymce.each;
13
-
14
- tinymce.create('tinymce.plugins.TemplatePlugin', {
15
- init : function(ed, url) {
16
- var t = this;
17
-
18
- t.editor = ed;
19
-
20
- // Register commands
21
- ed.addCommand('mceTemplate', function(ui) {
22
- ed.windowManager.open({
23
- file : url + '/template.htm',
24
- width : ed.getParam('template_popup_width', 750),
25
- height : ed.getParam('template_popup_height', 600),
26
- inline : 1
27
- }, {
28
- plugin_url : url
29
- });
30
- });
31
-
32
- ed.addCommand('mceInsertTemplate', t._insertTemplate, t);
33
-
34
- // Register buttons
35
- ed.addButton('template', {title : 'template.desc', cmd : 'mceTemplate'});
36
-
37
- ed.onPreProcess.add(function(ed, o) {
38
- var dom = ed.dom;
39
-
40
- each(dom.select('div', o.node), function(e) {
41
- if (dom.hasClass(e, 'mceTmpl')) {
42
- each(dom.select('*', e), function(e) {
43
- if (dom.hasClass(e, ed.getParam('template_mdate_classes', 'mdate').replace(/\s+/g, '|')))
44
- e.innerHTML = t._getDateTime(new Date(), ed.getParam("template_mdate_format", ed.getLang("template.mdate_format")));
45
- });
46
-
47
- t._replaceVals(e);
48
- }
49
- });
50
- });
51
- },
52
-
53
- getInfo : function() {
54
- return {
55
- longname : 'Template plugin',
56
- author : 'Moxiecode Systems AB',
57
- authorurl : 'http://www.moxiecode.com',
58
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/template',
59
- version : tinymce.majorVersion + "." + tinymce.minorVersion
60
- };
61
- },
62
-
63
- _insertTemplate : function(ui, v) {
64
- var t = this, ed = t.editor, h, el, dom = ed.dom, sel = ed.selection.getContent();
65
-
66
- h = v.content;
67
-
68
- each(t.editor.getParam('template_replace_values'), function(v, k) {
69
- if (typeof(v) != 'function')
70
- h = h.replace(new RegExp('\\{\\$' + k + '\\}', 'g'), v);
71
- });
72
-
73
- el = dom.create('div', null, h);
74
-
75
- // Find template element within div
76
- n = dom.select('.mceTmpl', el);
77
- if (n && n.length > 0) {
78
- el = dom.create('div', null);
79
- el.appendChild(n[0].cloneNode(true));
80
- }
81
-
82
- function hasClass(n, c) {
83
- return new RegExp('\\b' + c + '\\b', 'g').test(n.className);
84
- };
85
-
86
- each(dom.select('*', el), function(n) {
87
- // Replace cdate
88
- if (hasClass(n, ed.getParam('template_cdate_classes', 'cdate').replace(/\s+/g, '|')))
89
- n.innerHTML = t._getDateTime(new Date(), ed.getParam("template_cdate_format", ed.getLang("template.cdate_format")));
90
-
91
- // Replace mdate
92
- if (hasClass(n, ed.getParam('template_mdate_classes', 'mdate').replace(/\s+/g, '|')))
93
- n.innerHTML = t._getDateTime(new Date(), ed.getParam("template_mdate_format", ed.getLang("template.mdate_format")));
94
-
95
- // Replace selection
96
- if (hasClass(n, ed.getParam('template_selected_content_classes', 'selcontent').replace(/\s+/g, '|')))
97
- n.innerHTML = sel;
98
- });
99
-
100
- t._replaceVals(el);
101
-
102
- ed.execCommand('mceInsertContent', false, el.innerHTML);
103
- ed.addVisual();
104
- },
105
-
106
- _replaceVals : function(e) {
107
- var dom = this.editor.dom, vl = this.editor.getParam('template_replace_values');
108
-
109
- each(dom.select('*', e), function(e) {
110
- each(vl, function(v, k) {
111
- if (dom.hasClass(e, k)) {
112
- if (typeof(vl[k]) == 'function')
113
- vl[k](e);
114
- }
115
- });
116
- });
117
- },
118
-
119
- _getDateTime : function(d, fmt) {
120
- if (!fmt)
121
- return "";
122
-
123
- function addZeros(value, len) {
124
- var i;
125
-
126
- value = "" + value;
127
-
128
- if (value.length < len) {
129
- for (i=0; i<(len-value.length); i++)
130
- value = "0" + value;
131
- }
132
-
133
- return value;
134
- }
135
-
136
- fmt = fmt.replace("%D", "%m/%d/%y");
137
- fmt = fmt.replace("%r", "%I:%M:%S %p");
138
- fmt = fmt.replace("%Y", "" + d.getFullYear());
139
- fmt = fmt.replace("%y", "" + d.getYear());
140
- fmt = fmt.replace("%m", addZeros(d.getMonth()+1, 2));
141
- fmt = fmt.replace("%d", addZeros(d.getDate(), 2));
142
- fmt = fmt.replace("%H", "" + addZeros(d.getHours(), 2));
143
- fmt = fmt.replace("%M", "" + addZeros(d.getMinutes(), 2));
144
- fmt = fmt.replace("%S", "" + addZeros(d.getSeconds(), 2));
145
- fmt = fmt.replace("%I", "" + ((d.getHours() + 11) % 12 + 1));
146
- fmt = fmt.replace("%p", "" + (d.getHours() < 12 ? "AM" : "PM"));
147
- fmt = fmt.replace("%B", "" + this.editor.getLang("template_months_long").split(',')[d.getMonth()]);
148
- fmt = fmt.replace("%b", "" + this.editor.getLang("template_months_short").split(',')[d.getMonth()]);
149
- fmt = fmt.replace("%A", "" + this.editor.getLang("template_day_long").split(',')[d.getDay()]);
150
- fmt = fmt.replace("%a", "" + this.editor.getLang("template_day_short").split(',')[d.getDay()]);
151
- fmt = fmt.replace("%%", "%");
152
-
153
- return fmt;
154
- }
155
- });
156
-
157
- // Register plugin
158
- tinymce.PluginManager.add('template', tinymce.plugins.TemplatePlugin);
159
- })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/plugins/template/img/icon.png DELETED
Binary file
mce_plugins/3.5/plugins/template/js/template.js DELETED
@@ -1,106 +0,0 @@
1
- tinyMCEPopup.requireLangPack();
2
-
3
- var TemplateDialog = {
4
- preInit : function() {
5
- var url = tinyMCEPopup.getParam("template_external_list_url");
6
-
7
- if (url != null)
8
- document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></sc'+'ript>');
9
- },
10
-
11
- init : function() {
12
- var ed = tinyMCEPopup.editor, tsrc, sel, x, u;
13
-
14
- tsrc = ed.getParam("template_templates", false);
15
- sel = document.getElementById('tpath');
16
-
17
- // Setup external template list
18
- if (!tsrc && typeof(tinyMCETemplateList) != 'undefined') {
19
- for (x=0, tsrc = []; x<tinyMCETemplateList.length; x++)
20
- tsrc.push({title : tinyMCETemplateList[x][0], src : tinyMCETemplateList[x][1], description : tinyMCETemplateList[x][2]});
21
- }
22
-
23
- for (x=0; x<tsrc.length; x++)
24
- sel.options[sel.options.length] = new Option(tsrc[x].title, tinyMCEPopup.editor.documentBaseURI.toAbsolute(tsrc[x].src));
25
-
26
- this.resize();
27
- this.tsrc = tsrc;
28
- },
29
-
30
- resize : function() {
31
- var w, h, e;
32
-
33
- if (!self.innerWidth) {
34
- w = document.body.clientWidth - 50;
35
- h = document.body.clientHeight - 160;
36
- } else {
37
- w = self.innerWidth - 50;
38
- h = self.innerHeight - 170;
39
- }
40
-
41
- e = document.getElementById('templatesrc');
42
-
43
- if (e) {
44
- e.style.height = Math.abs(h) + 'px';
45
- e.style.width = Math.abs(w - 5) + 'px';
46
- }
47
- },
48
-
49
- loadCSSFiles : function(d) {
50
- var ed = tinyMCEPopup.editor;
51
-
52
- tinymce.each(ed.getParam("content_css", '').split(','), function(u) {
53
- d.write('<link href="' + ed.documentBaseURI.toAbsolute(u) + '" rel="stylesheet" type="text/css" />');
54
- });
55
- },
56
-
57
- selectTemplate : function(u, ti) {
58
- var d = window.frames['templatesrc'].document, x, tsrc = this.tsrc;
59
-
60
- if (!u)
61
- return;
62
-
63
- d.body.innerHTML = this.templateHTML = this.getFileContents(u);
64
-
65
- for (x=0; x<tsrc.length; x++) {
66
- if (tsrc[x].title == ti)
67
- document.getElementById('tmpldesc').innerHTML = tsrc[x].description || '';
68
- }
69
- },
70
-
71
- insert : function() {
72
- tinyMCEPopup.execCommand('mceInsertTemplate', false, {
73
- content : this.templateHTML,
74
- selection : tinyMCEPopup.editor.selection.getContent()
75
- });
76
-
77
- tinyMCEPopup.close();
78
- },
79
-
80
- getFileContents : function(u) {
81
- var x, d, t = 'text/plain';
82
-
83
- function g(s) {
84
- x = 0;
85
-
86
- try {
87
- x = new ActiveXObject(s);
88
- } catch (s) {
89
- }
90
-
91
- return x;
92
- };
93
-
94
- x = window.ActiveXObject ? g('Msxml2.XMLHTTP') || g('Microsoft.XMLHTTP') : new XMLHttpRequest();
95
-
96
- // Synchronous AJAX load file
97
- x.overrideMimeType && x.overrideMimeType(t);
98
- x.open("GET", u, false);
99
- x.send(null);
100
-
101
- return x.responseText;
102
- }
103
- };
104
-
105
- TemplateDialog.preInit();
106
- tinyMCEPopup.onInit.add(TemplateDialog.init, TemplateDialog);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/plugins/template/langs/de_dlg.js DELETED
@@ -1,15 +0,0 @@
1
- tinyMCE.addI18n('de.template_dlg',{
2
- title:"Vorlagen",
3
- label:"Vorlage",
4
- desc_label:"Beschreibung",
5
- desc:"Eine vordefinierte Vorlage einfügen",
6
- select:"Vorlage auswählen",
7
- preview:"Vorschau",
8
- warning:"Warnung: Updating a template with a different one may cause data loss.",
9
- mdate_format:"%d.%m.%Y %H:%M:%S",
10
- cdate_format:"%d.%m.%Y %H:%M:%S",
11
- months_long:"Jänner,Februar,Märy,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember",
12
- months_short:"Jän,Feb,Mär,Apr,Mai,Jun,Jul,Aug,Sep,Okt,Nov,Dez",
13
- day_long:"Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag,Sonntag",
14
- day_short:"Son,Mon,Die,Mit,Don,Fre,Sam,Son"
15
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/plugins/template/langs/en_dlg.js DELETED
@@ -1 +0,0 @@
1
- tinyMCE.addI18n('en.template_dlg',{title:"Templates",label:"Template","desc_label":"Description",desc:"Insert Predefined Template Content",select:"Select a Template",preview:"Preview",warning:"Warning: Updating a template with a different one may cause data loss.","mdate_format":"%Y-%m-%d %H:%M:%S","cdate_format":"%Y-%m-%d %H:%M:%S","months_long":"January,February,March,April,May,June,July,August,September,October,November,December","months_short":"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec","day_long":"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday","day_short":"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"});
 
mce_plugins/3.5/plugins/template/langs/es_dlg.js DELETED
@@ -1,15 +0,0 @@
1
- tinyMCE.addI18n('es.template_dlg',{
2
- title:"Plantillas",
3
- label:"Plantilla",
4
- desc_label:"Descripci&oacute;n",
5
- desc:"Inserta el contenido predefinido de la plantilla",
6
- select:"Selecciona una plantilla",
7
- preview:"Previsualizar",
8
- warning:"Atencion: Actualizar una plantilla con otra diferente puede acarrear p&eacute;rdida de datos.",
9
- mdate_format:"%Y-%m-%d %H:%M:%S",
10
- cdate_format:"%Y-%m-%d %H:%M:%S",
11
- months_long:"Enero,Febrero,Marzo,Abril,Mayo,Junio,Julio,Agosto,Septiembre,Octubre,Noviembre,Diciembre",
12
- months_short:"Ene,Feb,Mar,Abr,May,Jun,Jul,Ago,Sep,Oct,Nov,Dic",
13
- day_long:"Domingo,Lunes,Martes,Mi&eacute;rcoles,Jueves,Viernes,S&aacute;bado,Domingo",
14
- day_short:"Dom,Lun,Mar,Mi&eacute;,Jue,Vie,S&aacute;b,Dom"
15
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/plugins/template/langs/fr_dlg.js DELETED
@@ -1,15 +0,0 @@
1
- tinyMCE.addI18n('fr.template_dlg',{
2
- title:"Modèles",
3
- label:"Modele",
4
- desc_label:"Description",
5
- desc:"Insérer le contenu d'un modèle prédéfini",
6
- select:"Sélectionner un modèle",
7
- preview:"Aperçu",
8
- warning:"Attention ! Mettre à jour un modèle avec un autre peut provoquer une perte de données.",
9
- mdate_format:"%d-%m-%Y %H:%M:%S",
10
- cdate_format:"%d-%m-%Y %H:%M:%S",
11
- months_long:"Janvier,Février,Mars,Avril,Mai,Juin,Juillet,Août,Septembre,Octobre,Novembre,Décembre",
12
- months_short:"Janv,Fevr,Mars,Avr,Mai,Juin,Juil,Aout,Sept,Oct,Nov,Dec",
13
- day_long:"Dimanche,Lundi,Mardi,Mercredi,Jeudi,Vendredi,Samedi,Dimanche",
14
- day_short:"Dim,Lun,Mar,Mer,Jeu,Ven,Sam,Dim"
15
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/plugins/template/langs/it_dlg.js DELETED
@@ -1,15 +0,0 @@
1
- tinyMCE.addI18n('it.template_dlg',{
2
- title:"Modelli",
3
- label:"Modello",
4
- desc_label:"Descrizione",
5
- desc:"Insert predefined template content",
6
- select:"Seleziona modello",
7
- preview:"Preview",
8
- warning:"Warning: Updating a template with a different one may cause data loss.",
9
- mdate_format:"%Y-%m-%d %H:%M:%S",
10
- cdate_format:"%Y-%m-%d %H:%M:%S",
11
- months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
12
- months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
13
- day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
14
- day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"
15
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/plugins/template/langs/ja_dlg.js DELETED
@@ -1,15 +0,0 @@
1
- tinyMCE.addI18n('ja.template_dlg',{
2
- title:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8",
3
- label:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8",
4
- desc_label:"\u8AAC\u660E",
5
- desc:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u633F\u5165",
6
- select:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E",
7
- preview:"\u30D7\u30EC\u30D3\u30E5\u30FC",
8
- warning:"\u8B66\u544A\uFF1A\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4E0A\u66F8\u304D\u3059\u308B\u3068\u4EE5\u524D\u306E\u30C7\u30FC\u30BF\u306F\u5931\u308F\u308C\u307E\u3059\u3002",
9
- mdate_format:"%Y-%m-%d %H:%M:%S",
10
- cdate_format:"%Y-%m-%d %H:%M:%S",
11
- months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
12
- months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
13
- day_long:"\u65E5\u66DC\u65E5,\u6708\u66DC\u65E5,\u706B\u66DC\u65E5,\u6C34\u66DC\u65E5,\u6728\u66DC\u65E5,\u91D1\u66DC\u65E5,\u571F\u66DC\u65E5,\u65E5\u66DC\u65E5",
14
- day_short:"(\u65E5),(\u6708),(\u706B),(\u6C34),(\u6728),(\u91D1),(\u571F),(\u65E5)"
15
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/plugins/template/langs/nl_dlg.js DELETED
@@ -1,15 +0,0 @@
1
- tinyMCE.addI18n('nl.template_dlg',{
2
- title:"Templates",
3
- label:"Template",
4
- desc_label:"Omschrijving",
5
- desc:"Template invoegen",
6
- select:"Selecteer een template",
7
- preview:"Preview",
8
- warning:"Warning: Updating a template with a different one may cause data loss.",
9
- mdate_format:"%Y-%m-%d %H:%M:%S",
10
- cdate_format:"%Y-%m-%d %H:%M:%S",
11
- months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
12
- months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
13
- day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
14
- day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"
15
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/plugins/template/langs/pt_dlg.js DELETED
@@ -1,15 +0,0 @@
1
- tinyMCE.addI18n('pt.template_dlg',{
2
- title:"Modelos",
3
- label:"Modelos",
4
- desc_label:"Descri&ccedil;&atilde;o",
5
- desc:"Inserir um modelo pr&eacute; definido",
6
- select:"Selecione um modelo",
7
- preview:"Pr&eacute; visualizar",
8
- warning:"Aten&ccedil;&atilde;o: Atualizar um modelo com outro existe pode ocasionar perda de dados.",
9
- mdate_format:"%d-%m-%Y %H:%M:%S",
10
- cdate_format:"%d-%m-%Y %H:%M:%S",
11
- months_long:"Janeiro,Fevereiro,Mar&ccedil;o,Abril,Maio,Junho,Julho,Agosto,Setembro,Outubro,Novembro,Dezembro",
12
- months_short:"Jan,Fev,Mar,Abr,Mai,Jun,Jul,Ago,Set,Out,Nov,Dez",
13
- day_long:"Domingo,Segunda,Ter&ccedil;a,Quarta,Quinta,Sexta,S&aacute;bado,Domingo",
14
- day_short:"Dom,Seg,Ter,Qua,Qui,Sex,S&aacute;b,Dom"
15
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/plugins/template/langs/sv_dlg.js DELETED
@@ -1,15 +0,0 @@
1
- tinyMCE.addI18n('sv.template_dlg',{
2
- title:"Mallar",
3
- label:"Mall",
4
- desc_label:"Beskrivning",
5
- desc:"Infoga mall",
6
- select:"Välj mall",
7
- preview:"Förhandsgranska",
8
- warning:"Varning: Att uppdatera en mall med en annan kan göra att du förlorar innehåll.",
9
- mdate_format:"%Y-%m-%d %H:%M:%S",
10
- cdate_format:"%Y-%m-%d %H:%M:%S",
11
- months_long:"januari,februari,mars,april,maj,juni,juli,augusti,september,oktober,november,december",
12
- months_short:"jan,feb,mar,apr,maj,jun,jul,aug,sep,okt,nov,dev",
13
- day_long:"söndag,måndag,tisdag,onsdag,torsdag,fredag,lördag,söndag",
14
- day_short:"sön,mån,tis,ons,tors,fre,lör,sön"
15
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/plugins/template/template.htm DELETED
@@ -1,31 +0,0 @@
1
- <html xmlns="http://www.w3.org/1999/xhtml">
2
- <head>
3
- <title>{#template_dlg.title}</title>
4
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
5
- <script type="text/javascript" src="js/template.js"></script>
6
- <link href="css/template.css" rel="stylesheet" type="text/css" />
7
- </head>
8
- <body onresize="TemplateDialog.resize();">
9
- <form onsubmit="TemplateDialog.insert();return false;">
10
- <div id="frmbody">
11
- <div class="title">{#template_dlg.desc}</div>
12
- <div class="frmRow"><label for="tpath" title="{#template_dlg.select}">{#template_dlg.label}:</label>
13
- <select id="tpath" name="tpath" onchange="TemplateDialog.selectTemplate(this.options[this.selectedIndex].value, this.options[this.selectedIndex].text);" class="mceFocus">
14
- <option value="">{#template_dlg.select}...</option>
15
- </select>
16
- <span id="warning"></span></div>
17
- <div class="frmRow"><label for="tdesc">{#template_dlg.desc_label}:</label>
18
- <span id="tmpldesc"></span></div>
19
- <fieldset>
20
- <legend>{#template_dlg.preview}</legend>
21
- <iframe id="templatesrc" name="templatesrc" src="blank.htm" width="690" height="400" frameborder="0"></iframe>
22
- </fieldset>
23
- </div>
24
-
25
- <div class="mceActionPanel">
26
- <input type="submit" id="insert" name="insert" value="{#insert}" />
27
- <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
28
- </div>
29
- </form>
30
- </body>
31
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/tiny_mce_popup.js DELETED
@@ -1,5 +0,0 @@
1
-
2
- // Uncomment and change this document.domain value if you are loading the script cross subdomains
3
- // document.domain = 'moxiecode.com';
4
-
5
- var tinymce=null,tinyMCEPopup,tinyMCE;tinyMCEPopup={init:function(){var b=this,a,c;a=b.getWin();tinymce=a.tinymce;tinyMCE=a.tinyMCE;b.editor=tinymce.EditorManager.activeEditor;b.params=b.editor.windowManager.params;b.features=b.editor.windowManager.features;b.dom=b.editor.windowManager.createInstance("tinymce.dom.DOMUtils",document,{ownEvents:true,proxy:tinyMCEPopup._eventProxy});b.dom.bind(window,"ready",b._onDOMLoaded,b);if(b.features.popup_css!==false){b.dom.loadCSS(b.features.popup_css||b.editor.settings.popup_css)}b.listeners=[];b.onInit={add:function(e,d){b.listeners.push({func:e,scope:d})}};b.isWindow=!b.getWindowArg("mce_inline");b.id=b.getWindowArg("mce_window_id");b.editor.windowManager.onOpen.dispatch(b.editor.windowManager,window)},getWin:function(){return(!window.frameElement&&window.dialogArguments)||opener||parent||top},getWindowArg:function(c,b){var a=this.params[c];return tinymce.is(a)?a:b},getParam:function(b,a){return this.editor.getParam(b,a)},getLang:function(b,a){return this.editor.getLang(b,a)},execCommand:function(d,c,e,b){b=b||{};b.skip_focus=1;this.restoreSelection();return this.editor.execCommand(d,c,e,b)},resizeToInnerSize:function(){var a=this;setTimeout(function(){var b=a.dom.getViewPort(window);a.editor.windowManager.resizeBy(a.getWindowArg("mce_width")-b.w,a.getWindowArg("mce_height")-b.h,a.id||window)},10)},executeOnLoad:function(s){this.onInit.add(function(){eval(s)})},storeSelection:function(){this.editor.windowManager.bookmark=tinyMCEPopup.editor.selection.getBookmark(1)},restoreSelection:function(){var a=tinyMCEPopup;if(!a.isWindow&&tinymce.isIE){a.editor.selection.moveToBookmark(a.editor.windowManager.bookmark)}},requireLangPack:function(){var b=this,a=b.getWindowArg("plugin_url")||b.getWindowArg("theme_url");if(a&&b.editor.settings.language&&b.features.translate_i18n!==false&&b.editor.settings.language_load!==false){a+="/langs/"+b.editor.settings.language+"_dlg.js";if(!tinymce.ScriptLoader.isDone(a)){document.write('<script type="text/javascript" src="'+tinymce._addVer(a)+'"><\/script>');tinymce.ScriptLoader.markDone(a)}}},pickColor:function(b,a){this.execCommand("mceColorPicker",true,{color:document.getElementById(a).value,func:function(e){document.getElementById(a).value=e;try{document.getElementById(a).onchange()}catch(d){}}})},openBrowser:function(a,c,b){tinyMCEPopup.restoreSelection();this.editor.execCallback("file_browser_callback",a,document.getElementById(a).value,c,window)},confirm:function(b,a,c){this.editor.windowManager.confirm(b,a,c,window)},alert:function(b,a,c){this.editor.windowManager.alert(b,a,c,window)},close:function(){var a=this;function b(){a.editor.windowManager.close(window);tinymce=tinyMCE=a.editor=a.params=a.dom=a.dom.doc=null}if(tinymce.isOpera){a.getWin().setTimeout(b,0)}else{b()}},_restoreSelection:function(){var a=window.event.srcElement;if(a.nodeName=="INPUT"&&(a.type=="submit"||a.type=="button")){tinyMCEPopup.restoreSelection()}},_onDOMLoaded:function(){var b=tinyMCEPopup,d=document.title,e,c,a;if(b.features.translate_i18n!==false){c=document.body.innerHTML;if(tinymce.isIE){c=c.replace(/ (value|title|alt)=([^"][^\s>]+)/gi,' $1="$2"')}document.dir=b.editor.getParam("directionality","");if((a=b.editor.translate(c))&&a!=c){document.body.innerHTML=a}if((a=b.editor.translate(d))&&a!=d){document.title=d=a}}if(!b.editor.getParam("browser_preferred_colors",false)||!b.isWindow){b.dom.addClass(document.body,"forceColors")}document.body.style.display="";if(tinymce.isIE){document.attachEvent("onmouseup",tinyMCEPopup._restoreSelection);b.dom.add(b.dom.select("head")[0],"base",{target:"_self"})}b.restoreSelection();b.resizeToInnerSize();if(!b.isWindow){b.editor.windowManager.setTitle(window,d)}else{window.focus()}if(!tinymce.isIE&&!b.isWindow){b.dom.bind(document,"focus",function(){b.editor.windowManager.focus(b.id)})}tinymce.each(b.dom.select("select"),function(f){f.onkeydown=tinyMCEPopup._accessHandler});tinymce.each(b.listeners,function(f){f.func.call(f.scope,b.editor)});if(b.getWindowArg("mce_auto_focus",true)){window.focus();tinymce.each(document.forms,function(g){tinymce.each(g.elements,function(f){if(b.dom.hasClass(f,"mceFocus")&&!f.disabled){f.focus();return false}})})}document.onkeyup=tinyMCEPopup._closeWinKeyHandler},_accessHandler:function(a){a=a||window.event;if(a.keyCode==13||a.keyCode==32){var b=a.target||a.srcElement;if(b.onchange){b.onchange()}return tinymce.dom.Event.cancel(a)}},_closeWinKeyHandler:function(a){a=a||window.event;if(a.keyCode==27){tinyMCEPopup.close()}},_eventProxy:function(a){return function(b){tinyMCEPopup.dom.events.callNativeHandler(a,b)}}};tinyMCEPopup.init();
 
 
 
 
 
mce_plugins/3.5/utils/editable_selects.js DELETED
@@ -1,70 +0,0 @@
1
- /**
2
- * editable_selects.js
3
- *
4
- * Copyright 2009, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://tinymce.moxiecode.com/license
8
- * Contributing: http://tinymce.moxiecode.com/contributing
9
- */
10
-
11
- var TinyMCE_EditableSelects = {
12
- editSelectElm : null,
13
-
14
- init : function() {
15
- var nl = document.getElementsByTagName("select"), i, d = document, o;
16
-
17
- for (i=0; i<nl.length; i++) {
18
- if (nl[i].className.indexOf('mceEditableSelect') != -1) {
19
- o = new Option(tinyMCEPopup.editor.translate('value'), '__mce_add_custom__');
20
-
21
- o.className = 'mceAddSelectValue';
22
-
23
- nl[i].options[nl[i].options.length] = o;
24
- nl[i].onchange = TinyMCE_EditableSelects.onChangeEditableSelect;
25
- }
26
- }
27
- },
28
-
29
- onChangeEditableSelect : function(e) {
30
- var d = document, ne, se = window.event ? window.event.srcElement : e.target;
31
-
32
- if (se.options[se.selectedIndex].value == '__mce_add_custom__') {
33
- ne = d.createElement("input");
34
- ne.id = se.id + "_custom";
35
- ne.name = se.name + "_custom";
36
- ne.type = "text";
37
-
38
- ne.style.width = se.offsetWidth + 'px';
39
- se.parentNode.insertBefore(ne, se);
40
- se.style.display = 'none';
41
- ne.focus();
42
- ne.onblur = TinyMCE_EditableSelects.onBlurEditableSelectInput;
43
- ne.onkeydown = TinyMCE_EditableSelects.onKeyDown;
44
- TinyMCE_EditableSelects.editSelectElm = se;
45
- }
46
- },
47
-
48
- onBlurEditableSelectInput : function() {
49
- var se = TinyMCE_EditableSelects.editSelectElm;
50
-
51
- if (se) {
52
- if (se.previousSibling.value != '') {
53
- addSelectValue(document.forms[0], se.id, se.previousSibling.value, se.previousSibling.value);
54
- selectByValue(document.forms[0], se.id, se.previousSibling.value);
55
- } else
56
- selectByValue(document.forms[0], se.id, '');
57
-
58
- se.style.display = 'inline';
59
- se.parentNode.removeChild(se.previousSibling);
60
- TinyMCE_EditableSelects.editSelectElm = null;
61
- }
62
- },
63
-
64
- onKeyDown : function(e) {
65
- e = e || window.event;
66
-
67
- if (e.keyCode == 13)
68
- TinyMCE_EditableSelects.onBlurEditableSelectInput();
69
- }
70
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/utils/form_utils.js DELETED
@@ -1,210 +0,0 @@
1
- /**
2
- * form_utils.js
3
- *
4
- * Copyright 2009, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://tinymce.moxiecode.com/license
8
- * Contributing: http://tinymce.moxiecode.com/contributing
9
- */
10
-
11
- var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme"));
12
-
13
- function getColorPickerHTML(id, target_form_element) {
14
- var h = "", dom = tinyMCEPopup.dom;
15
-
16
- if (label = dom.select('label[for=' + target_form_element + ']')[0]) {
17
- label.id = label.id || dom.uniqueId();
18
- }
19
-
20
- h += '<a role="button" aria-labelledby="' + id + '_label" id="' + id + '_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\'' + target_form_element +'\');" onmousedown="return false;" class="pickcolor">';
21
- h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '">&nbsp;<span id="' + id + '_label" class="mceVoiceLabel mceIconOnly" style="display:none;">' + tinyMCEPopup.getLang('browse') + '</span></span></a>';
22
-
23
- return h;
24
- }
25
-
26
- function updateColor(img_id, form_element_id) {
27
- document.getElementById(img_id).style.backgroundColor = document.forms[0].elements[form_element_id].value;
28
- }
29
-
30
- function setBrowserDisabled(id, state) {
31
- var img = document.getElementById(id);
32
- var lnk = document.getElementById(id + "_link");
33
-
34
- if (lnk) {
35
- if (state) {
36
- lnk.setAttribute("realhref", lnk.getAttribute("href"));
37
- lnk.removeAttribute("href");
38
- tinyMCEPopup.dom.addClass(img, 'disabled');
39
- } else {
40
- if (lnk.getAttribute("realhref"))
41
- lnk.setAttribute("href", lnk.getAttribute("realhref"));
42
-
43
- tinyMCEPopup.dom.removeClass(img, 'disabled');
44
- }
45
- }
46
- }
47
-
48
- function getBrowserHTML(id, target_form_element, type, prefix) {
49
- var option = prefix + "_" + type + "_browser_callback", cb, html;
50
-
51
- cb = tinyMCEPopup.getParam(option, tinyMCEPopup.getParam("file_browser_callback"));
52
-
53
- if (!cb)
54
- return "";
55
-
56
- html = "";
57
- html += '<a id="' + id + '_link" href="javascript:openBrowser(\'' + id + '\',\'' + target_form_element + '\', \'' + type + '\',\'' + option + '\');" onmousedown="return false;" class="browse">';
58
- html += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '">&nbsp;</span></a>';
59
-
60
- return html;
61
- }
62
-
63
- function openBrowser(img_id, target_form_element, type, option) {
64
- var img = document.getElementById(img_id);
65
-
66
- if (img.className != "mceButtonDisabled")
67
- tinyMCEPopup.openBrowser(target_form_element, type, option);
68
- }
69
-
70
- function selectByValue(form_obj, field_name, value, add_custom, ignore_case) {
71
- if (!form_obj || !form_obj.elements[field_name])
72
- return;
73
-
74
- if (!value)
75
- value = "";
76
-
77
- var sel = form_obj.elements[field_name];
78
-
79
- var found = false;
80
- for (var i=0; i<sel.options.length; i++) {
81
- var option = sel.options[i];
82
-
83
- if (option.value == value || (ignore_case && option.value.toLowerCase() == value.toLowerCase())) {
84
- option.selected = true;
85
- found = true;
86
- } else
87
- option.selected = false;
88
- }
89
-
90
- if (!found && add_custom && value != '') {
91
- var option = new Option(value, value);
92
- option.selected = true;
93
- sel.options[sel.options.length] = option;
94
- sel.selectedIndex = sel.options.length - 1;
95
- }
96
-
97
- return found;
98
- }
99
-
100
- function getSelectValue(form_obj, field_name) {
101
- var elm = form_obj.elements[field_name];
102
-
103
- if (elm == null || elm.options == null || elm.selectedIndex === -1)
104
- return "";
105
-
106
- return elm.options[elm.selectedIndex].value;
107
- }
108
-
109
- function addSelectValue(form_obj, field_name, name, value) {
110
- var s = form_obj.elements[field_name];
111
- var o = new Option(name, value);
112
- s.options[s.options.length] = o;
113
- }
114
-
115
- function addClassesToList(list_id, specific_option) {
116
- // Setup class droplist
117
- var styleSelectElm = document.getElementById(list_id);
118
- var styles = tinyMCEPopup.getParam('theme_advanced_styles', false);
119
- styles = tinyMCEPopup.getParam(specific_option, styles);
120
-
121
- if (styles) {
122
- var stylesAr = styles.split(';');
123
-
124
- for (var i=0; i<stylesAr.length; i++) {
125
- if (stylesAr != "") {
126
- var key, value;
127
-
128
- key = stylesAr[i].split('=')[0];
129
- value = stylesAr[i].split('=')[1];
130
-
131
- styleSelectElm.options[styleSelectElm.length] = new Option(key, value);
132
- }
133
- }
134
- } else {
135
- tinymce.each(tinyMCEPopup.editor.dom.getClasses(), function(o) {
136
- styleSelectElm.options[styleSelectElm.length] = new Option(o.title || o['class'], o['class']);
137
- });
138
- }
139
- }
140
-
141
- function isVisible(element_id) {
142
- var elm = document.getElementById(element_id);
143
-
144
- return elm && elm.style.display != "none";
145
- }
146
-
147
- function convertRGBToHex(col) {
148
- var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi");
149
-
150
- var rgb = col.replace(re, "$1,$2,$3").split(',');
151
- if (rgb.length == 3) {
152
- r = parseInt(rgb[0]).toString(16);
153
- g = parseInt(rgb[1]).toString(16);
154
- b = parseInt(rgb[2]).toString(16);
155
-
156
- r = r.length == 1 ? '0' + r : r;
157
- g = g.length == 1 ? '0' + g : g;
158
- b = b.length == 1 ? '0' + b : b;
159
-
160
- return "#" + r + g + b;
161
- }
162
-
163
- return col;
164
- }
165
-
166
- function convertHexToRGB(col) {
167
- if (col.indexOf('#') != -1) {
168
- col = col.replace(new RegExp('[^0-9A-F]', 'gi'), '');
169
-
170
- r = parseInt(col.substring(0, 2), 16);
171
- g = parseInt(col.substring(2, 4), 16);
172
- b = parseInt(col.substring(4, 6), 16);
173
-
174
- return "rgb(" + r + "," + g + "," + b + ")";
175
- }
176
-
177
- return col;
178
- }
179
-
180
- function trimSize(size) {
181
- return size.replace(/([0-9\.]+)(px|%|in|cm|mm|em|ex|pt|pc)/i, '$1$2');
182
- }
183
-
184
- function getCSSSize(size) {
185
- size = trimSize(size);
186
-
187
- if (size == "")
188
- return "";
189
-
190
- // Add px
191
- if (/^[0-9]+$/.test(size))
192
- size += 'px';
193
- // Sanity check, IE doesn't like broken values
194
- else if (!(/^[0-9\.]+(px|%|in|cm|mm|em|ex|pt|pc)$/i.test(size)))
195
- return "";
196
-
197
- return size;
198
- }
199
-
200
- function getStyle(elm, attrib, style) {
201
- var val = tinyMCEPopup.dom.getAttrib(elm, attrib);
202
-
203
- if (val != '')
204
- return '' + val;
205
-
206
- if (typeof(style) == 'undefined')
207
- style = attrib;
208
-
209
- return tinyMCEPopup.dom.getStyle(elm, style);
210
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/utils/mctabs.js DELETED
@@ -1,162 +0,0 @@
1
- /**
2
- * mctabs.js
3
- *
4
- * Copyright 2009, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://tinymce.moxiecode.com/license
8
- * Contributing: http://tinymce.moxiecode.com/contributing
9
- */
10
-
11
- function MCTabs() {
12
- this.settings = [];
13
- this.onChange = tinyMCEPopup.editor.windowManager.createInstance('tinymce.util.Dispatcher');
14
- };
15
-
16
- MCTabs.prototype.init = function(settings) {
17
- this.settings = settings;
18
- };
19
-
20
- MCTabs.prototype.getParam = function(name, default_value) {
21
- var value = null;
22
-
23
- value = (typeof(this.settings[name]) == "undefined") ? default_value : this.settings[name];
24
-
25
- // Fix bool values
26
- if (value == "true" || value == "false")
27
- return (value == "true");
28
-
29
- return value;
30
- };
31
-
32
- MCTabs.prototype.showTab =function(tab){
33
- tab.className = 'current';
34
- tab.setAttribute("aria-selected", true);
35
- tab.setAttribute("aria-expanded", true);
36
- tab.tabIndex = 0;
37
- };
38
-
39
- MCTabs.prototype.hideTab =function(tab){
40
- var t=this;
41
-
42
- tab.className = '';
43
- tab.setAttribute("aria-selected", false);
44
- tab.setAttribute("aria-expanded", false);
45
- tab.tabIndex = -1;
46
- };
47
-
48
- MCTabs.prototype.showPanel = function(panel) {
49
- panel.className = 'current';
50
- panel.setAttribute("aria-hidden", false);
51
- };
52
-
53
- MCTabs.prototype.hidePanel = function(panel) {
54
- panel.className = 'panel';
55
- panel.setAttribute("aria-hidden", true);
56
- };
57
-
58
- MCTabs.prototype.getPanelForTab = function(tabElm) {
59
- return tinyMCEPopup.dom.getAttrib(tabElm, "aria-controls");
60
- };
61
-
62
- MCTabs.prototype.displayTab = function(tab_id, panel_id, avoid_focus) {
63
- var panelElm, panelContainerElm, tabElm, tabContainerElm, selectionClass, nodes, i, t = this;
64
-
65
- tabElm = document.getElementById(tab_id);
66
-
67
- if (panel_id === undefined) {
68
- panel_id = t.getPanelForTab(tabElm);
69
- }
70
-
71
- panelElm= document.getElementById(panel_id);
72
- panelContainerElm = panelElm ? panelElm.parentNode : null;
73
- tabContainerElm = tabElm ? tabElm.parentNode : null;
74
- selectionClass = t.getParam('selection_class', 'current');
75
-
76
- if (tabElm && tabContainerElm) {
77
- nodes = tabContainerElm.childNodes;
78
-
79
- // Hide all other tabs
80
- for (i = 0; i < nodes.length; i++) {
81
- if (nodes[i].nodeName == "LI") {
82
- t.hideTab(nodes[i]);
83
- }
84
- }
85
-
86
- // Show selected tab
87
- t.showTab(tabElm);
88
- }
89
-
90
- if (panelElm && panelContainerElm) {
91
- nodes = panelContainerElm.childNodes;
92
-
93
- // Hide all other panels
94
- for (i = 0; i < nodes.length; i++) {
95
- if (nodes[i].nodeName == "DIV")
96
- t.hidePanel(nodes[i]);
97
- }
98
-
99
- if (!avoid_focus) {
100
- tabElm.focus();
101
- }
102
-
103
- // Show selected panel
104
- t.showPanel(panelElm);
105
- }
106
- };
107
-
108
- MCTabs.prototype.getAnchor = function() {
109
- var pos, url = document.location.href;
110
-
111
- if ((pos = url.lastIndexOf('#')) != -1)
112
- return url.substring(pos + 1);
113
-
114
- return "";
115
- };
116
-
117
-
118
- //Global instance
119
- var mcTabs = new MCTabs();
120
-
121
- tinyMCEPopup.onInit.add(function() {
122
- var tinymce = tinyMCEPopup.getWin().tinymce, dom = tinyMCEPopup.dom, each = tinymce.each;
123
-
124
- each(dom.select('div.tabs'), function(tabContainerElm) {
125
- var keyNav;
126
-
127
- dom.setAttrib(tabContainerElm, "role", "tablist");
128
-
129
- var items = tinyMCEPopup.dom.select('li', tabContainerElm);
130
- var action = function(id) {
131
- mcTabs.displayTab(id, mcTabs.getPanelForTab(id));
132
- mcTabs.onChange.dispatch(id);
133
- };
134
-
135
- each(items, function(item) {
136
- dom.setAttrib(item, 'role', 'tab');
137
- dom.bind(item, 'click', function(evt) {
138
- action(item.id);
139
- });
140
- });
141
-
142
- dom.bind(dom.getRoot(), 'keydown', function(evt) {
143
- if (evt.keyCode === 9 && evt.ctrlKey && !evt.altKey) { // Tab
144
- keyNav.moveFocus(evt.shiftKey ? -1 : 1);
145
- tinymce.dom.Event.cancel(evt);
146
- }
147
- });
148
-
149
- each(dom.select('a', tabContainerElm), function(a) {
150
- dom.setAttrib(a, 'tabindex', '-1');
151
- });
152
-
153
- keyNav = tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', {
154
- root: tabContainerElm,
155
- items: items,
156
- onAction: action,
157
- actOnFocus: true,
158
- enableLeftRight: true,
159
- enableUpDown: true
160
- }, tinyMCEPopup.dom);
161
- });
162
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/3.5/utils/validate.js DELETED
@@ -1,252 +0,0 @@
1
- /**
2
- * validate.js
3
- *
4
- * Copyright 2009, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://tinymce.moxiecode.com/license
8
- * Contributing: http://tinymce.moxiecode.com/contributing
9
- */
10
-
11
- /**
12
- // String validation:
13
-
14
- if (!Validator.isEmail('myemail'))
15
- alert('Invalid email.');
16
-
17
- // Form validation:
18
-
19
- var f = document.forms['myform'];
20
-
21
- if (!Validator.isEmail(f.myemail))
22
- alert('Invalid email.');
23
- */
24
-
25
- var Validator = {
26
- isEmail : function(s) {
27
- return this.test(s, '^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+@[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$');
28
- },
29
-
30
- isAbsUrl : function(s) {
31
- return this.test(s, '^(news|telnet|nttp|file|http|ftp|https)://[-A-Za-z0-9\\.]+\\/?.*$');
32
- },
33
-
34
- isSize : function(s) {
35
- return this.test(s, '^[0-9.]+(%|in|cm|mm|em|ex|pt|pc|px)?$');
36
- },
37
-
38
- isId : function(s) {
39
- return this.test(s, '^[A-Za-z_]([A-Za-z0-9_])*$');
40
- },
41
-
42
- isEmpty : function(s) {
43
- var nl, i;
44
-
45
- if (s.nodeName == 'SELECT' && s.selectedIndex < 1)
46
- return true;
47
-
48
- if (s.type == 'checkbox' && !s.checked)
49
- return true;
50
-
51
- if (s.type == 'radio') {
52
- for (i=0, nl = s.form.elements; i<nl.length; i++) {
53
- if (nl[i].type == "radio" && nl[i].name == s.name && nl[i].checked)
54
- return false;
55
- }
56
-
57
- return true;
58
- }
59
-
60
- return new RegExp('^\\s*$').test(s.nodeType == 1 ? s.value : s);
61
- },
62
-
63
- isNumber : function(s, d) {
64
- return !isNaN(s.nodeType == 1 ? s.value : s) && (!d || !this.test(s, '^-?[0-9]*\\.[0-9]*$'));
65
- },
66
-
67
- test : function(s, p) {
68
- s = s.nodeType == 1 ? s.value : s;
69
-
70
- return s == '' || new RegExp(p).test(s);
71
- }
72
- };
73
-
74
- var AutoValidator = {
75
- settings : {
76
- id_cls : 'id',
77
- int_cls : 'int',
78
- url_cls : 'url',
79
- number_cls : 'number',
80
- email_cls : 'email',
81
- size_cls : 'size',
82
- required_cls : 'required',
83
- invalid_cls : 'invalid',
84
- min_cls : 'min',
85
- max_cls : 'max'
86
- },
87
-
88
- init : function(s) {
89
- var n;
90
-
91
- for (n in s)
92
- this.settings[n] = s[n];
93
- },
94
-
95
- validate : function(f) {
96
- var i, nl, s = this.settings, c = 0;
97
-
98
- nl = this.tags(f, 'label');
99
- for (i=0; i<nl.length; i++) {
100
- this.removeClass(nl[i], s.invalid_cls);
101
- nl[i].setAttribute('aria-invalid', false);
102
- }
103
-
104
- c += this.validateElms(f, 'input');
105
- c += this.validateElms(f, 'select');
106
- c += this.validateElms(f, 'textarea');
107
-
108
- return c == 3;
109
- },
110
-
111
- invalidate : function(n) {
112
- this.mark(n.form, n);
113
- },
114
-
115
- getErrorMessages : function(f) {
116
- var nl, i, s = this.settings, field, msg, values, messages = [], ed = tinyMCEPopup.editor;
117
- nl = this.tags(f, "label");
118
- for (i=0; i<nl.length; i++) {
119
- if (this.hasClass(nl[i], s.invalid_cls)) {
120
- field = document.getElementById(nl[i].getAttribute("for"));
121
- values = { field: nl[i].textContent };
122
- if (this.hasClass(field, s.min_cls, true)) {
123
- message = ed.getLang('invalid_data_min');
124
- values.min = this.getNum(field, s.min_cls);
125
- } else if (this.hasClass(field, s.number_cls)) {
126
- message = ed.getLang('invalid_data_number');
127
- } else if (this.hasClass(field, s.size_cls)) {
128
- message = ed.getLang('invalid_data_size');
129
- } else {
130
- message = ed.getLang('invalid_data');
131
- }
132
-
133
- message = message.replace(/{\#([^}]+)\}/g, function(a, b) {
134
- return values[b] || '{#' + b + '}';
135
- });
136
- messages.push(message);
137
- }
138
- }
139
- return messages;
140
- },
141
-
142
- reset : function(e) {
143
- var t = ['label', 'input', 'select', 'textarea'];
144
- var i, j, nl, s = this.settings;
145
-
146
- if (e == null)
147
- return;
148
-
149
- for (i=0; i<t.length; i++) {
150
- nl = this.tags(e.form ? e.form : e, t[i]);
151
- for (j=0; j<nl.length; j++) {
152
- this.removeClass(nl[j], s.invalid_cls);
153
- nl[j].setAttribute('aria-invalid', false);
154
- }
155
- }
156
- },
157
-
158
- validateElms : function(f, e) {
159
- var nl, i, n, s = this.settings, st = true, va = Validator, v;
160
-
161
- nl = this.tags(f, e);
162
- for (i=0; i<nl.length; i++) {
163
- n = nl[i];
164
-
165
- this.removeClass(n, s.invalid_cls);
166
-
167
- if (this.hasClass(n, s.required_cls) && va.isEmpty(n))
168
- st = this.mark(f, n);
169
-
170
- if (this.hasClass(n, s.number_cls) && !va.isNumber(n))
171
- st = this.mark(f, n);
172
-
173
- if (this.hasClass(n, s.int_cls) && !va.isNumber(n, true))
174
- st = this.mark(f, n);
175
-
176
- if (this.hasClass(n, s.url_cls) && !va.isAbsUrl(n))
177
- st = this.mark(f, n);
178
-
179
- if (this.hasClass(n, s.email_cls) && !va.isEmail(n))
180
- st = this.mark(f, n);
181
-
182
- if (this.hasClass(n, s.size_cls) && !va.isSize(n))
183
- st = this.mark(f, n);
184
-
185
- if (this.hasClass(n, s.id_cls) && !va.isId(n))
186
- st = this.mark(f, n);
187
-
188
- if (this.hasClass(n, s.min_cls, true)) {
189
- v = this.getNum(n, s.min_cls);
190
-
191
- if (isNaN(v) || parseInt(n.value) < parseInt(v))
192
- st = this.mark(f, n);
193
- }
194
-
195
- if (this.hasClass(n, s.max_cls, true)) {
196
- v = this.getNum(n, s.max_cls);
197
-
198
- if (isNaN(v) || parseInt(n.value) > parseInt(v))
199
- st = this.mark(f, n);
200
- }
201
- }
202
-
203
- return st;
204
- },
205
-
206
- hasClass : function(n, c, d) {
207
- return new RegExp('\\b' + c + (d ? '[0-9]+' : '') + '\\b', 'g').test(n.className);
208
- },
209
-
210
- getNum : function(n, c) {
211
- c = n.className.match(new RegExp('\\b' + c + '([0-9]+)\\b', 'g'))[0];
212
- c = c.replace(/[^0-9]/g, '');
213
-
214
- return c;
215
- },
216
-
217
- addClass : function(n, c, b) {
218
- var o = this.removeClass(n, c);
219
- n.className = b ? c + (o != '' ? (' ' + o) : '') : (o != '' ? (o + ' ') : '') + c;
220
- },
221
-
222
- removeClass : function(n, c) {
223
- c = n.className.replace(new RegExp("(^|\\s+)" + c + "(\\s+|$)"), ' ');
224
- return n.className = c != ' ' ? c : '';
225
- },
226
-
227
- tags : function(f, s) {
228
- return f.getElementsByTagName(s);
229
- },
230
-
231
- mark : function(f, n) {
232
- var s = this.settings;
233
-
234
- this.addClass(n, s.invalid_cls);
235
- n.setAttribute('aria-invalid', 'true');
236
- this.markLabels(f, n, s.invalid_cls);
237
-
238
- return false;
239
- },
240
-
241
- markLabels : function(f, n, ic) {
242
- var nl, i;
243
-
244
- nl = this.tags(f, "label");
245
- for (i=0; i<nl.length; i++) {
246
- if (nl[i].getAttribute("for") == n.id || nl[i].htmlFor == n.id)
247
- this.addClass(nl[i], ic);
248
- }
249
-
250
- return null;
251
- }
252
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mce_plugins/4.0/plugins/template/plugin.js CHANGED
@@ -1,7 +1,6 @@
1
  /**
2
  * plugin.js
3
  *
4
- * Copyright, Moxiecode Systems AB
5
  * Released under LGPL License.
6
  *
7
  * License: http://www.tinymce.com/license
@@ -31,7 +30,7 @@ tinymce.PluginManager.add('template', function(editor) {
31
  }
32
 
33
  function showDialog(templateList) {
34
- var win, values = [], templateHtml;
35
 
36
  if (!templateList || templateList.length === 0) {
37
  editor.windowManager.alert('No templates defined');
@@ -43,9 +42,11 @@ tinymce.PluginManager.add('template', function(editor) {
43
  selected: !values.length,
44
  text: template.title,
45
  value: {
 
46
  url: template.url,
47
  content: template.content,
48
- description: template.description
 
49
  }
50
  });
51
  });
@@ -74,8 +75,6 @@ tinymce.PluginManager.add('template', function(editor) {
74
  );
75
  }
76
 
77
- html = replaceTemplateValues(html, 'template_preview_replace_values');
78
-
79
  var doc = win.find('iframe')[0].getEl().contentWindow.document;
80
  doc.open();
81
  doc.write(html);
@@ -88,6 +87,8 @@ tinymce.PluginManager.add('template', function(editor) {
88
  success: function(html) {
89
  templateHtml = html;
90
  insertIframeHtml(templateHtml);
 
 
91
  }
92
  });
93
  } else {
@@ -95,7 +96,14 @@ tinymce.PluginManager.add('template', function(editor) {
95
  insertIframeHtml(templateHtml);
96
  }
97
 
 
 
 
 
 
 
98
  win.find('#description')[0].text(e.control.value().description);
 
99
  }
100
 
101
  win = editor.windowManager.open({
@@ -113,11 +121,12 @@ tinymce.PluginManager.add('template', function(editor) {
113
  }}
114
  ]},
115
  {type: 'label', name: 'description', label: 'Description', text: '\u00a0'},
116
- {type: 'iframe', flex: 1, border: 1}
 
117
  ],
118
 
119
  onsubmit: function() {
120
- insertTemplate(false, templateHtml);
121
  },
122
 
123
  width: editor.getParam('template_popup_width', 600),
@@ -127,106 +136,16 @@ tinymce.PluginManager.add('template', function(editor) {
127
  win.find('listbox')[0].fire('select');
128
  }
129
 
130
- function getDateTime(fmt, date) {
131
- var daysShort = "Sun Mon Tue Wed Thu Fri Sat Sun".split(' ');
132
- var daysLong = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(' ');
133
- var monthsShort = "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(' ');
134
- var monthsLong = "January February March April May June July August September October November December".split(' ');
135
-
136
- function addZeros(value, len) {
137
- value = "" + value;
138
-
139
- if (value.length < len) {
140
- for (var i = 0; i < (len - value.length); i++) {
141
- value = "0" + value;
142
- }
143
- }
144
-
145
- return value;
146
  }
147
 
148
- date = date || new Date();
149
-
150
- fmt = fmt.replace("%D", "%m/%d/%Y");
151
- fmt = fmt.replace("%r", "%I:%M:%S %p");
152
- fmt = fmt.replace("%Y", "" + date.getFullYear());
153
- fmt = fmt.replace("%y", "" + date.getYear());
154
- fmt = fmt.replace("%m", addZeros(date.getMonth() + 1, 2));
155
- fmt = fmt.replace("%d", addZeros(date.getDate(), 2));
156
- fmt = fmt.replace("%H", "" + addZeros(date.getHours(), 2));
157
- fmt = fmt.replace("%M", "" + addZeros(date.getMinutes(), 2));
158
- fmt = fmt.replace("%S", "" + addZeros(date.getSeconds(), 2));
159
- fmt = fmt.replace("%I", "" + ((date.getHours() + 11) % 12 + 1));
160
- fmt = fmt.replace("%p", "" + (date.getHours() < 12 ? "AM" : "PM"));
161
- fmt = fmt.replace("%B", "" + editor.translate(monthsLong[date.getMonth()]));
162
- fmt = fmt.replace("%b", "" + editor.translate(monthsShort[date.getMonth()]));
163
- fmt = fmt.replace("%A", "" + editor.translate(daysLong[date.getDay()]));
164
- fmt = fmt.replace("%a", "" + editor.translate(daysShort[date.getDay()]));
165
- fmt = fmt.replace("%%", "%");
166
-
167
- return fmt;
168
- }
169
-
170
- function replaceVals(e) {
171
- var dom = editor.dom, vl = editor.getParam('template_replace_values');
172
-
173
- each(dom.select('*', e), function(e) {
174
- each(vl, function(v, k) {
175
- if (dom.hasClass(e, k)) {
176
- if (typeof(vl[k]) == 'function') {
177
- vl[k](e);
178
- }
179
- }
180
- });
181
- });
182
- }
183
-
184
- function replaceTemplateValues(html, templateValuesOptionName) {
185
- each(editor.getParam(templateValuesOptionName), function(v, k) {
186
- if (typeof(v) != 'function') {
187
- html = html.replace(new RegExp('\\{\\$' + k + '\\}', 'g'), v);
188
- }
189
- });
190
-
191
- return html;
192
- }
193
-
194
- function insertTemplate(ui, html) {
195
  var el, n, dom = editor.dom, sel = editor.selection.getContent();
196
-
197
- html = replaceTemplateValues(html, 'template_replace_values');
198
  el = dom.create('div', null, html);
199
 
200
- // Find template element within div
201
- n = dom.select('.mceTmpl', el);
202
- if (n && n.length > 0) {
203
- el = dom.create('div', null);
204
- el.appendChild(n[0].cloneNode(true));
205
- }
206
-
207
- function hasClass(n, c) {
208
- return new RegExp('\\b' + c + '\\b', 'g').test(n.className);
209
- }
210
-
211
- each(dom.select('*', el), function(n) {
212
- // Replace cdate
213
- if (hasClass(n, editor.getParam('template_cdate_classes', 'cdate').replace(/\s+/g, '|'))) {
214
- n.innerHTML = getDateTime(editor.getParam("template_cdate_format", editor.getLang("template.cdate_format")));
215
- }
216
-
217
- // Replace mdate
218
- if (hasClass(n, editor.getParam('template_mdate_classes', 'mdate').replace(/\s+/g, '|'))) {
219
- n.innerHTML = getDateTime(editor.getParam("template_mdate_format", editor.getLang("template.mdate_format")));
220
- }
221
-
222
- // Replace selection
223
- if (hasClass(n, editor.getParam('template_selected_content_classes', 'selcontent').replace(/\s+/g, '|'))) {
224
- n.innerHTML = sel;
225
- }
226
- });
227
-
228
- replaceVals(el);
229
-
230
  editor.execCommand('mceInsertContent', false, el.innerHTML);
231
  editor.addVisual();
232
  }
@@ -243,20 +162,4 @@ tinymce.PluginManager.add('template', function(editor) {
243
  onclick: createTemplateList(showDialog),
244
  context: 'insert'
245
  });
246
-
247
- editor.on('PreProcess', function(o) {
248
- var dom = editor.dom;
249
-
250
- each(dom.select('div', o.node), function(e) {
251
- if (dom.hasClass(e, 'mceTmpl')) {
252
- each(dom.select('*', e), function(e) {
253
- if (dom.hasClass(e, editor.getParam('template_mdate_classes', 'mdate').replace(/\s+/g, '|'))) {
254
- e.innerHTML = getDateTime(editor.getParam("template_mdate_format", editor.getLang("template.mdate_format")));
255
- }
256
- });
257
-
258
- replaceVals(e);
259
- }
260
- });
261
- });
262
  });
1
  /**
2
  * plugin.js
3
  *
 
4
  * Released under LGPL License.
5
  *
6
  * License: http://www.tinymce.com/license
30
  }
31
 
32
  function showDialog(templateList) {
33
+ var win, values = [], templateHtml, id, is_shortcode, label;
34
 
35
  if (!templateList || templateList.length === 0) {
36
  editor.windowManager.alert('No templates defined');
42
  selected: !values.length,
43
  text: template.title,
44
  value: {
45
+ id: template.id,
46
  url: template.url,
47
  content: template.content,
48
+ description: template.description,
49
+ is_shortcode: template.is_shortcode
50
  }
51
  });
52
  });
75
  );
76
  }
77
 
 
 
78
  var doc = win.find('iframe')[0].getEl().contentWindow.document;
79
  doc.open();
80
  doc.write(html);
87
  success: function(html) {
88
  templateHtml = html;
89
  insertIframeHtml(templateHtml);
90
+ id = value.id;
91
+ is_shortcode = value.is_shortcode;
92
  }
93
  });
94
  } else {
96
  insertIframeHtml(templateHtml);
97
  }
98
 
99
+ if (value.is_shortcode) {
100
+ label = "Note: The template will be inserted as shortcode.";
101
+ } else {
102
+ label = '\u00a0';
103
+ }
104
+
105
  win.find('#description')[0].text(e.control.value().description);
106
+ win.find('#is_shortcode')[0].text(label);
107
  }
108
 
109
  win = editor.windowManager.open({
121
  }}
122
  ]},
123
  {type: 'label', name: 'description', label: 'Description', text: '\u00a0'},
124
+ {type: 'iframe', flex: 1, border: 1},
125
+ {type: 'label', name: 'is_shortcode', label: '', text: '\u00a0'},
126
  ],
127
 
128
  onsubmit: function() {
129
+ insertTemplate(false, templateHtml, id, is_shortcode);
130
  },
131
 
132
  width: editor.getParam('template_popup_width', 600),
136
  win.find('listbox')[0].fire('select');
137
  }
138
 
139
+ function insertTemplate(ui, html, id, is_shortcode) {
140
+ if (is_shortcode) {
141
+ editor.execCommand('mceInsertContent', false, '<p>[template id="'+id+'"]</p>');
142
+ editor.addVisual();
143
+ return;
 
 
 
 
 
 
 
 
 
 
 
144
  }
145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  var el, n, dom = editor.dom, sel = editor.selection.getContent();
 
 
147
  el = dom.create('div', null, html);
148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  editor.execCommand('mceInsertContent', false, el.innerHTML);
150
  editor.addVisual();
151
  }
162
  onclick: createTemplateList(showDialog),
163
  context: 'insert'
164
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  });
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === TinyMCE Templates ===
2
  Contributors: miyauchi
3
  Tags: tinymce, Visual Editor, template
4
- Requires at least: 3.5
5
- Tested up to: 3.9
6
- Stable tag: 3.4.5
7
 
8
  TinyMCE Template plugin will enable to use HTML template on WordPress Visual Editor.
9
  You can edit and share this template with WordPress users.
@@ -11,21 +11,15 @@ You can edit and share this template with WordPress users.
11
  == Description ==
12
 
13
  TinyMCE Template plugin will enable to use HTML template on WordPress Visual Editor.
14
- You can edit and share this template with WordPress users.
15
-
16
- If you will install this plugin, You will be very easy to edit posts and pages.
17
 
18
  * [GitHub](https://github.com/miya0001/tinymce-templates)
19
- * [Plugin Homepage (en)](http://wpist.me/wp/tinymce-templates/)
20
- * [Plugin Homepage (ja)](http://firegoby.theta.ne.jp/wp/tinymce_templates)
21
- * [Support](http://wordpress.org/tags/tinymce-templates)
22
 
23
  = Some features: =
24
 
25
  * Add "Insert Template" button to Visual Editor.
26
  * You can edit template on WordPress admin.
27
- * Share template with WordPress Users.
28
  * Copy to template from posts & pages.
 
29
 
30
  = Translators: =
31
 
@@ -60,6 +54,11 @@ You can send your own language pack to me.
60
 
61
  == Changelog ==
62
 
 
 
 
 
 
63
  = 3.4.0 =
64
 
65
  * [Fix problem on the WordPress 3.9](https://github.com/miya0001/tinymce-templates/compare/3.3.0...3.4.0)
@@ -94,4 +93,3 @@ The author must acknowledge the thing that the operation guarantee and the suppo
94
  == Special Thanks ==
95
 
96
  * @kernfel on Twitter
97
-
1
  === TinyMCE Templates ===
2
  Contributors: miyauchi
3
  Tags: tinymce, Visual Editor, template
4
+ Requires at least: 4.0
5
+ Tested up to: 4.1
6
+ Stable tag: 4.0.0
7
 
8
  TinyMCE Template plugin will enable to use HTML template on WordPress Visual Editor.
9
  You can edit and share this template with WordPress users.
11
  == Description ==
12
 
13
  TinyMCE Template plugin will enable to use HTML template on WordPress Visual Editor.
 
 
 
14
 
15
  * [GitHub](https://github.com/miya0001/tinymce-templates)
 
 
 
16
 
17
  = Some features: =
18
 
19
  * Add "Insert Template" button to Visual Editor.
20
  * You can edit template on WordPress admin.
 
21
  * Copy to template from posts & pages.
22
+ * You can insert templates as shortcode.
23
 
24
  = Translators: =
25
 
54
 
55
  == Changelog ==
56
 
57
+ = 4.0.0 =
58
+
59
+ * Remove sharing function.
60
+ * Add function inserting as shortcode.
61
+
62
  = 3.4.0 =
63
 
64
  * [Fix problem on the WordPress 3.9](https://github.com/miya0001/tinymce-templates/compare/3.3.0...3.4.0)
93
  == Special Thanks ==
94
 
95
  * @kernfel on Twitter
 
tinymce-templates.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: TinyMCE Templates
4
- Plugin URI: http://wpist.me/wp/tinymce-templates/
5
  Description: TinyMCE Templates plugin will enable to use HTML template on WordPress Visual Editor.
6
  Author: Takayuki Miyauchi
7
- Version: 3.4.5
8
- Author URI: http://wpist.me/
9
  Domain Path: /languages
10
  Text Domain: tinymce_templates
11
  */
@@ -32,513 +32,515 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
32
  THE SOFTWARE.
33
  */
34
 
35
- require_once(dirname(__FILE__).'/includes/mceplugins.class.php');
36
-
37
  $tinymce_templates = new tinymceTemplates();
38
  $tinymce_templates->register();
39
 
40
  class tinymceTemplates {
41
 
42
- private $version = '2.9.0';
43
- private $db_version = '2';
44
- private $post_type = 'tinymcetemplates';
45
- private $meta_param = '_tinymcetemplates-share';
46
- private $table = 'mce_template';
47
- private $base_url;
48
- private $translators = array(
49
- 'Takayuki Miyauchi' => array(
50
- 'lang' => 'Japanese',
51
- 'url' => 'http://wpist.me/',
52
- ),
53
- 'Andrea Bersi' => array(
54
- 'lang' => 'Italian',
55
- 'url' => 'http://www.andreabersi.com/',
56
- ),
57
- 'Tobias Bergius' => array(
58
- 'lang' => 'Swedish',
59
- 'url' => '',
60
- ),
61
- 'Martin Lettner' => array(
62
- 'lang' => 'German',
63
- 'url' => 'http://www.martinlettner.info/',
64
- ),
65
- 'David Bravo' => array(
66
- 'lang' => 'Spanish',
67
- 'url' => 'http://www.dimensionmultimedia.com/',
68
- ),
69
- 'Frank Groeneveld' => array(
70
- 'lang' => 'Dutch',
71
- 'url' => 'http://ivaldi.nl/',
72
- ),
73
- 'HAROUY Jean-Michel' => array(
74
- 'lang' => 'French',
75
- 'url' => 'http://www.laposte.net/',
76
- ),
77
- 'Rafael Funchal' => array(
78
- 'lang' => 'Brazilian Portuguese',
79
- 'url' => 'http://www.rafaelfunchal.com.br/',
80
- ),
81
- 'Morten Elm' => array(
82
- 'lang' => 'Filipino',
83
- 'url' => 'http://www.storbyfan.dk/',
84
- ),
85
- 'ihtimir' => array(
86
- 'lang' => 'Russian',
87
- 'url' => '',
88
- ),
89
- 'Branco' => array(
90
- 'lang' => 'Slovak',
91
- 'url' => 'http://webhostinggeeks.com/user-reviews/',
92
- ),
93
- );
94
-
95
- public function register()
96
- {
97
- $this->base_url = plugins_url(dirname(plugin_basename(__FILE__)));
98
- register_activation_hook(__FILE__, array($this, 'activation'));
99
- add_action('plugins_loaded', array($this, 'plugins_loaded'));
100
- add_action('save_post', array($this, 'save_post'));
101
- add_filter('mce_css', array($this, 'mce_css'));
102
- add_action('admin_head', array($this, 'admin_head'));
103
- add_action('admin_footer-post-new.php', array($this, 'admin_footer'));
104
- add_action('wp_ajax_tinymce_templates', array($this, 'wp_ajax'));
105
- add_action('post_submitbox_start', array($this, 'post_submitbox_start'));
106
- add_filter('post_row_actions', array($this, 'row_actions'),10,2);
107
- add_filter('page_row_actions', array($this, 'row_actions'),10,2);
108
- add_filter('parse_query', array($this, 'parse_query'));
109
-
110
- global $wp_version;
111
- if (!(version_compare($wp_version, "3.9") < 0)) {
112
- add_filter('wp_mce_translation', array($this, 'wp_mce_translation'));
113
- }
114
-
115
- add_action(
116
- 'wp_before_admin_bar_render',
117
- array($this, 'wp_before_admin_bar_render')
118
- );
119
- }
120
-
121
- public function wp_before_admin_bar_render() {
122
- global $wp_admin_bar;
123
- if (is_single() || is_page()) {
124
- $wp_admin_bar->add_menu(array(
125
- 'parent' => 'edit',
126
- 'id' => 'new_template',
127
- 'title' => __('Copy to a new template', 'tinymce_templates'),
128
- 'href' => $this->get_copy_template_url(get_the_ID())
129
- ));
130
- }
131
- }
132
-
133
- public function wp_mce_translation($mce_translation)
134
- {
135
- $mce_translation['Insert template'] = __("Insert template", "tinymce_templates");
136
- $mce_translation['Templates'] = __("Templates", "tinymce_templates");
137
- $mce_translation['No templates defined'] = __("No templates defined", "tinymce_templates");
138
-
139
- return $mce_translation;
140
- }
141
-
142
- public function row_actions($actions, $post)
143
- {
144
- $actions['copy_to_template'] = sprintf(
145
- '<a href="%s">%s</a>',
146
- $this->get_copy_template_url($post->ID),
147
- __('Copy to a new template', 'tinymce_templates')
148
- );
149
- return $actions;
150
- }
151
-
152
- public function post_submitbox_start()
153
- {
154
- if (isset($_GET['post']) && intval($_GET['post'])) {
155
- ?>
156
- <div id="duplicate-action">
157
- <a class="submitduplicate duplication"
158
- href="<?php echo $this->get_copy_template_url($_GET['post']) ?>"><?php _e('Copy to a new template', 'tinymce_templates'); ?></a>
159
- </div>
160
- <?php
161
- }
162
- }
163
-
164
- public function activation()
165
- {
166
- if (get_option("tinymce_templates_db_version") == $this->db_version) {
167
- return;
168
- }
169
-
170
- global $wpdb;
171
- update_option("tinymce_templates_db_version", $this->db_version);
172
- $sql = $wpdb->prepare('show tables like %s', $wpdb->prefix.$this->table);
173
- if ($wpdb->get_var($sql)) {
174
- $sql = "select * from ".mysql_real_escape_string($wpdb->prefix.$this->table);
175
- $res = $wpdb->get_results($sql);
176
- foreach ($res as $tpl) {
177
- $post = array();
178
- $post['post_title'] = $tpl->name;
179
- $post['post_content'] = $tpl->html;
180
- $post['post_excerpt'] = $tpl->desc;
181
- $post['post_author'] = $tpl->author;
182
- $post['post_date'] = $tpl->modified;
183
- $post['post_type'] = $this->post_type;
184
- $post['post_status'] = 'publish';
185
- $id = wp_insert_post($post);
186
- if ($id) {
187
- update_post_meta($id, $this->meta_param, $tpl->share);
188
- }
189
- }
190
- $sql = 'drop table '.$wpdb->prefix.$this->table;
191
- $wpdb->query($sql);
192
- }
193
- }
194
-
195
- public function plugins_loaded()
196
- {
197
- load_plugin_textdomain(
198
- 'tinymce_templates',
199
- false,
200
- dirname(plugin_basename(__FILE__)).'/languages'
201
- );
202
- $this->addCustomPostType();
203
- }
204
-
205
- private function fixed_role_issue()
206
- {
207
- global $wp_roles;
208
- $roles = array('administrator', 'editor');
209
- foreach ($roles as $r) {
210
- $wp_roles->add_cap($r, "edit_others_posts");
211
- }
212
- }
213
-
214
- public function mce_css($css)
215
- {
216
- $files = preg_split("/,/", $css);
217
- $files[] = $this->base_url.'/editor.css';
218
- $files = array_map('trim', $files);
219
- return join(",", $files);
220
- }
221
-
222
- public function admin_head(){
223
- if (version_compare($this->version, get_option('tinymcetemplates-version', 0))) {
224
- // bug recovery for 2.8.0
225
- $this->fixed_role_issue();
226
- update_option("tinymcetemplates-version", $this->version);
227
- }
228
-
229
- global $wp_version;
230
- if (version_compare($wp_version, "3.9", '<')) {
231
- $plugin = $this->base_url.'/mce_plugins/3.5/plugins/template/editor_plugin.js';
232
- } else {
233
- $plugin = $this->base_url.'/mce_plugins/4.0/plugins/template/plugin.min.js';
234
- }
235
-
236
- $url = admin_url('admin-ajax.php');
237
- $url = add_query_arg('action', 'tinymce_templates', $url);
238
- $url = add_query_arg('action', 'tinymce_templates', $url);
239
- $nonce = wp_create_nonce("tinymce_templates");
240
- $url = add_query_arg('nonce', $nonce, $url);
241
-
242
- if (version_compare($wp_version, "3.9", '<')) {
243
- $inits['template_external_list_url'] = $url;
244
- } else {
245
- $inits['templates'] = $url;
246
- }
247
-
248
- new tinymcePlugins(
249
- 'template',
250
- $plugin,
251
- array($this, 'addButton'),
252
- $inits
253
- );
254
-
255
- echo '<style type="text/css">';
256
- printf(
257
- 'span.mceIcon.mce_template{background-image: url(%s) !important; background-position: center center !important;background-repeat: no-repeat;}',
258
- plugins_url('mce_plugins/3.5/plugins/template/img/icon.png', __FILE__)
259
- );
260
- echo '</style>';
261
-
262
- if (get_post_type() === $this->post_type) {
263
- if (get_option("tinymce_templates_db_version") != $this->db_version) {
264
- $this->activation();
265
- }
266
- global $hook_suffix;
267
- if ($hook_suffix === 'post.php' || $hook_suffix === 'post-new.php') {
268
- remove_meta_box('slugdiv', $this->post_type, 'normal');
269
- if (get_option("tinymce_templates_db_version") != $this->db_version) {
270
- $this->activation();
271
- }
272
- echo '<style>#visibility{display:none;}</style>';
273
- } elseif ($hook_suffix === 'edit.php') {
274
- add_filter("display_post_states", array($this, "display_post_states"));
275
- }
276
- }
277
- }
278
-
279
- public function display_post_states($stat)
280
- {
281
- $share = get_post_meta(get_the_ID(), $this->meta_param, true);
282
- if ($share) {
283
- $stat[] = __('Shared', 'tinymce_templates', 'tinymce_templates');
284
- }
285
- return $stat;
286
- }
287
-
288
- public function save_post($id)
289
- {
290
- if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
291
- return $id;
292
-
293
- if (isset($_POST['action']) && $_POST['action'] == 'inline-save')
294
- return $id;
295
-
296
- $p = get_post($id);
297
- if ($p->post_type === $this->post_type) {
298
- $me = wp_get_current_user();
299
- if ($p->post_author != $me->ID) {
300
- wp_die('Permission denied.');
301
- }
302
- if (isset($_POST[$this->meta_param]) && $_POST[$this->meta_param]) {
303
- update_post_meta($id, $this->meta_param, 1);
304
- } else {
305
- delete_post_meta($id, $this->meta_param);
306
- }
307
- }
308
- }
309
-
310
- public function addButton($buttons = array())
311
- {
312
- array_unshift($buttons, '|');
313
- array_unshift($buttons, 'template');
314
- return $buttons;
315
- }
316
-
317
- private function addCustomPostType()
318
- {
319
- $args = array(
320
- 'label' => __('Templates', 'tinymce_templates'),
321
- 'labels' => array(
322
- 'singular_name' => __('Templates', 'tinymce_templates'),
323
- 'add_new_item' => __('Add New Template', 'tinymce_templates'),
324
- 'edit_item' => __('Edit Template', 'tinymce_templates'),
325
- 'add_new' => __('Add New', 'tinymce_templates'),
326
- 'new_item' => __('New Template', 'tinymce_templates'),
327
- 'view_item' => __('View Template', 'tinymce_templates'),
328
- 'not_found' => __('No templatess found.', 'tinymce_templates'),
329
- 'not_found_in_trash' => __(
330
- 'No templates found in Trash.',
331
- 'tinymce_templates'
332
- ),
333
- 'search_items' => __('Search Templates', 'tinymce_templates'),
334
- ),
335
- 'public' => false,
336
- 'publicly_queryable' => false,
337
- 'exclude_from_search' => true,
338
- 'show_ui' => true,
339
- 'capability_type' => 'post',
340
- 'hierarchical' => false,
341
- 'menu_position' => 100,
342
- 'rewrite' => false,
343
- 'show_in_nav_menus' => false,
344
- 'register_meta_box_cb' => array($this, 'addMetaBox'),
345
- 'supports' => array(
346
- 'title',
347
- 'editor',
348
- 'excerpt',
349
- 'revisions',
350
- 'author',
351
- )
352
- );
353
- register_post_type($this->post_type, $args);
354
- }
355
-
356
- public function addMetaBox()
357
- {
358
- add_meta_box(
359
- 'tinymce_templates-share',
360
- __('Share', 'tinymce_templates'),
361
- array($this, 'sharedMetaBox'),
362
- $this->post_type,
363
- 'side',
364
- 'low'
365
- );
366
-
367
- add_meta_box(
368
- 'tinymce_templates-translators',
369
- __('Translators', 'tinymce_templates'),
370
- array($this, 'translatorsMetaBox'),
371
- $this->post_type,
372
- 'side',
373
- 'low'
374
- );
375
-
376
- add_meta_box(
377
- 'tinymce_templates-donate',
378
- 'High Performance WordPress Hosting',
379
- array($this, 'amimoto_metabox'),
380
- $this->post_type,
381
- 'side',
382
- 'low'
383
- );
384
- }
385
-
386
- public function amimoto_metabox($post, $box)
387
- {
388
- echo '<p>';
389
- echo '<a href="http://megumi-cloud.com/">';
390
- echo '<img src="'.$this->base_url.'/img/amimoto.png" style="display: block;margin: 0 auto;max-width: 100%;">';
391
- echo '</a>';
392
- echo '</p>';
393
- }
394
-
395
- public function translatorsMetaBox($post, $box)
396
- {
397
- echo '<ul>';
398
- foreach ($this->translators as $u => $p) {
399
- if ($p['url']) {
400
- printf(
401
- '<li><a href="%s">%s</a> (%s)</li>',
402
- esc_attr($p['url']),
403
- esc_html($u),
404
- esc_html($p['lang'])
405
- );
406
- } else {
407
- printf(
408
- '<li>%s (%s)</li>',
409
- esc_html($u),
410
- esc_html($p['lang'])
411
- );
412
- }
413
- }
414
- echo '</ul>';
415
- }
416
-
417
- public function sharedMetaBox($post, $box)
418
- {
419
- $share = get_post_meta($post->ID, $this->meta_param, true);
420
- echo '<select name="'.$this->meta_param.'">';
421
- echo '<option value="0">'.__('Private', 'tinymce_templates').'</option>';
422
- if ($share) {
423
- echo '<option value="1" selected="selected">'.__('Shared', 'tinymce_templates').'</option>';
424
- } else {
425
- echo '<option value="1">'.__('Shared', 'tinymce_templates').'</option>';
426
- }
427
- echo '</select>';
428
- }
429
-
430
- public function admin_footer()
431
- {
432
- if (get_post_type() === $this->post_type) {
433
- if (isset($_GET['origin']) && intval($_GET['origin'])) {
434
- $origin = get_post(intval($_GET['origin']));
435
- if ($origin) {
436
- $template = array(
437
- 'post_title' => $origin->post_title,
438
- 'post_content' => wpautop($origin->post_content),
439
- );
440
- $template = json_encode($template);
441
- echo <<<EOL
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
442
  <script type="text/javascript">
443
- var origin = {$template};
444
- jQuery('#title').val(origin.post_title);
445
- jQuery('#content').val(origin.post_content);
446
  </script>
447
  EOL;
448
- }
449
- }
450
- }
451
- }
452
-
453
- public function wp_ajax()
454
- {
455
- global $wp_version;
456
-
457
- nocache_headers();
458
- if (!wp_verify_nonce($_GET['nonce'], 'tinymce_templates')) {
459
- return;
460
- }
461
- $u = wp_get_current_user();
462
- header( 'Content-Type: application/javascript; charset=UTF-8' );
463
- if (isset($_GET['template_id']) && intval($_GET['template_id'])) {
464
- $p = get_post($_GET['template_id']);
465
- if ($p->post_status === 'publish') {
466
- if (intval($u->ID) && (intval($u->ID) === intval($p->post_author))) {
467
- echo apply_filters(
468
- "tinymce_templates",
469
- wpautop($p->post_content),
470
- stripslashes($p->post_content)
471
- );
472
- } else {
473
- $share = get_post_meta($p->ID, $this->meta_param, true);
474
- if ($share || current_user_can('administrator')) {
475
- echo apply_filters(
476
- "tinymce_templates",
477
- wpautop($p->post_content),
478
- stripslashes($p->post_content)
479
- );
480
- }
481
- }
482
- }
483
- exit;
484
- }
485
- $p = array(
486
- 'post_status' => 'publish',
487
- 'post_type' => $this->post_type,
488
- 'orderby' => 'date',
489
- 'order' => 'DESC',
490
- 'numberposts' => -1,
491
- );
492
- $posts = get_posts($p);
493
-
494
- $url = admin_url('admin-ajax.php');
495
- $url = add_query_arg('action', 'tinymce_templates', $url);
496
- $nonce = wp_create_nonce("tinymce_templates");
497
- $url = add_query_arg('nonce', $nonce, $url);
498
-
499
- $arr = array();
500
- foreach ($posts as $p) {
501
- if (intval($u->ID) && (intval($u->ID) !== intval($p->post_author))) {
502
- $share = get_post_meta($p->ID, $this->meta_param, true);
503
- if (!$share && !current_user_can('administrator')) {
504
- continue;
505
- }
506
- }
507
- $ID = intval($p->ID);
508
- $name = esc_html(apply_filters('tinymce_template_title', $p->post_title));
509
- $desc = esc_html(apply_filters('tinymce_template_excerpt', $p->post_excerpt));
510
- $url = add_query_arg('template_id', $ID, $url);
511
- if (version_compare($wp_version, "3.9", '<')) {
512
- $arr[] = array($name, $url, $desc);
513
- } else {
514
- $arr[] = array('title' => $name, 'url' => $url, 'description' => $desc);
515
- }
516
- }
517
-
518
- if (version_compare($wp_version, "3.9", '<')) {
519
- echo 'var tinyMCETemplateList = '.json_encode($arr);
520
- } else {
521
- echo json_encode($arr);
522
- }
523
-
524
- exit;
525
- }
526
-
527
- public function parse_query($q)
528
- {
529
- if (is_admin() && !current_user_can('administrator') && empty($q->query['suppress_filters']) && $q->query['post_type'] === $this->post_type) {
530
- $uid = get_current_user_id();
531
- $q->set('author', $uid);
532
- return $q;
533
- } else {
534
- return $q;
535
- }
536
- }
537
-
538
- private function get_copy_template_url($id)
539
- {
540
- return admin_url('post-new.php?post_type=tinymcetemplates&origin='.intval($id));
541
- }
542
 
543
 
544
  } // end class tinymceTemplates
1
  <?php
2
  /*
3
  Plugin Name: TinyMCE Templates
4
+ Plugin URI: https://github.com/miya0001/tinymce-templates
5
  Description: TinyMCE Templates plugin will enable to use HTML template on WordPress Visual Editor.
6
  Author: Takayuki Miyauchi
7
+ Version: 4.0.0
8
+ Author URI: https://github.com/miya0001/
9
  Domain Path: /languages
10
  Text Domain: tinymce_templates
11
  */
32
  THE SOFTWARE.
33
  */
34
 
 
 
35
  $tinymce_templates = new tinymceTemplates();
36
  $tinymce_templates->register();
37
 
38
  class tinymceTemplates {
39
 
40
+ private $version = '2.9.0';
41
+ private $post_type = 'tinymcetemplates';
42
+ private $table = 'mce_template';
43
+ private $base_url;
44
+ private $translators = array(
45
+ 'Takayuki Miyauchi' => array(
46
+ 'lang' => 'Japanese',
47
+ 'url' => 'http://wpist.me/',
48
+ ),
49
+ 'Andrea Bersi' => array(
50
+ 'lang' => 'Italian',
51
+ 'url' => 'http://www.andreabersi.com/',
52
+ ),
53
+ 'Tobias Bergius' => array(
54
+ 'lang' => 'Swedish',
55
+ 'url' => '',
56
+ ),
57
+ 'Martin Lettner' => array(
58
+ 'lang' => 'German',
59
+ 'url' => 'http://www.martinlettner.info/',
60
+ ),
61
+ 'David Bravo' => array(
62
+ 'lang' => 'Spanish',
63
+ 'url' => 'http://www.dimensionmultimedia.com/',
64
+ ),
65
+ 'Frank Groeneveld' => array(
66
+ 'lang' => 'Dutch',
67
+ 'url' => 'http://ivaldi.nl/',
68
+ ),
69
+ 'HAROUY Jean-Michel' => array(
70
+ 'lang' => 'French',
71
+ 'url' => 'http://www.laposte.net/',
72
+ ),
73
+ 'Rafael Funchal' => array(
74
+ 'lang' => 'Brazilian Portuguese',
75
+ 'url' => 'http://www.rafaelfunchal.com.br/',
76
+ ),
77
+ 'Morten Elm' => array(
78
+ 'lang' => 'Filipino',
79
+ 'url' => 'http://www.storbyfan.dk/',
80
+ ),
81
+ 'ihtimir' => array(
82
+ 'lang' => 'Russian',
83
+ 'url' => '',
84
+ ),
85
+ 'Branco' => array(
86
+ 'lang' => 'Slovak',
87
+ 'url' => 'http://webhostinggeeks.com/user-reviews/',
88
+ ),
89
+ );
90
+
91
+ /**
92
+ * Initializing the plugin.
93
+ *
94
+ * @param none
95
+ * @return none
96
+ */
97
+ public function register()
98
+ {
99
+ $this->base_url = plugins_url( dirname( plugin_basename( __FILE__ ) ) );
100
+ add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ) );
101
+ }
102
+
103
+ /**
104
+ * Fires on plugins_loaded hook.
105
+ *
106
+ * @param none
107
+ * @return none
108
+ */
109
+ public function plugins_loaded()
110
+ {
111
+ load_plugin_textdomain(
112
+ 'tinymce_templates',
113
+ false,
114
+ dirname(plugin_basename(__FILE__)).'/languages'
115
+ );
116
+
117
+ $this->register_post_type();
118
+
119
+ add_filter( 'post_row_actions', array( $this, 'row_actions' ), 10, 2 );
120
+ add_filter( 'page_row_actions', array( $this, 'row_actions' ), 10, 2 );
121
+ add_filter( 'wp_mce_translation', array( $this, 'wp_mce_translation' ) );
122
+
123
+ add_action( 'admin_head', array( $this, 'admin_head' ) );
124
+ add_action( 'admin_footer-post-new.php', array( $this, 'admin_footer' ) );
125
+ add_action( 'wp_ajax_tinymce_templates', array( $this, 'wp_ajax' ) );
126
+ add_action( 'post_submitbox_start', array( $this, 'post_submitbox_start' ) );
127
+ add_action( 'wp_before_admin_bar_render', array( $this, 'wp_before_admin_bar_render' ) );
128
+ add_action( 'save_post', array( $this, 'save_post' ) );
129
+
130
+ add_shortcode( 'template', array( $this, 'template_shortcode' ) );
131
+ }
132
+
133
+ /**
134
+ * Shortcode for templates.
135
+ *
136
+ * @param array $p Shortcode parameters.
137
+ * @return none Shortcode output.
138
+ */
139
+ public function template_shortcode( $p )
140
+ {
141
+ if ( isset( $p['id'] ) && $p['id'] ) {
142
+ $post = get_post( $p['id'] );
143
+ return apply_filters( 'the_content', $post->post_content );
144
+ }
145
+ }
146
+
147
+ /**
148
+ * Fires on wp_before_admin_bar_render hook.
149
+ *
150
+ * @param none
151
+ * @return none
152
+ */
153
+ public function wp_before_admin_bar_render() {
154
+ global $wp_admin_bar;
155
+ if ( is_single() || is_page() ) {
156
+ /*
157
+ * Adding menu to the admin bar.
158
+ */
159
+ $wp_admin_bar->add_menu( array(
160
+ 'parent' => 'edit',
161
+ 'id' => 'new_template',
162
+ 'title' => __( 'Copy to a new template', 'tinymce_templates' ),
163
+ 'href' => $this->get_copy_template_url( get_the_ID() )
164
+ ) );
165
+ }
166
+ }
167
+
168
+ /**
169
+ * Translates tinymce plugin.
170
+ *
171
+ * @param array $mce_translation Translates of the tinymce.
172
+ * @return array Translates of the tinymce templates plugin.
173
+ */
174
+ public function wp_mce_translation( $mce_translation )
175
+ {
176
+ $mce_translation['Insert template'] = __( "Insert template", "tinymce_templates" );
177
+ $mce_translation['Templates'] = __( "Templates", "tinymce_templates" );
178
+ $mce_translation['No templates defined'] = __( "No templates defined", "tinymce_templates" );
179
+ $mce_translation['Note: The template will be inserted as shortcode.'] = __( "Note: The template will be inserted as shortcode.", "tinymce_templates" );
180
+
181
+ return $mce_translation;
182
+ }
183
+
184
+ /**
185
+ * Filters the pages/posts list menu in admin.
186
+ *
187
+ * @param array $actions Menu items of the pages/posts list.
188
+ * @param object $post Current post object.
189
+ * @return array Menu items.
190
+ */
191
+ public function row_actions( $actions, $post )
192
+ {
193
+ $actions['copy_to_template'] = sprintf(
194
+ '<a href="%s">%s</a>',
195
+ $this->get_copy_template_url( $post->ID ),
196
+ __( 'Copy to a new template', 'tinymce_templates' )
197
+ );
198
+ return $actions;
199
+ }
200
+
201
+ /**
202
+ * Adding copy to temsplate link to post submit box.
203
+ *
204
+ * @param none
205
+ * @return none
206
+ */
207
+ public function post_submitbox_start()
208
+ {
209
+ if ( isset( $_GET['post'] ) && intval( $_GET['post'] ) ) {
210
+ ?>
211
+ <div id="duplicate-action">
212
+ <a class="submitduplicate duplication"
213
+ href="<?php echo $this->get_copy_template_url($_GET['post']) ?>"><?php _e('Copy to a new template', 'tinymce_templates'); ?></a>
214
+ </div>
215
+ <?php
216
+ }
217
+ }
218
+
219
+ /**
220
+ * Fires on admin_head hook.
221
+ *
222
+ * @param none
223
+ * @return none
224
+ */
225
+ public function admin_head()
226
+ {
227
+ /**
228
+ * Load and setup tinymce plugin.
229
+ */
230
+ $url = admin_url( 'admin-ajax.php' );
231
+ $nonce = wp_create_nonce( "tinymce_templates" );
232
+
233
+ $args = array(
234
+ 'action' => 'tinymce_templates',
235
+ 'nonce' => $nonce,
236
+ );
237
+
238
+ $url = add_query_arg( $args, $url);
239
+
240
+ $inits['templates'] = $url;
241
+
242
+ require_once( dirname(__FILE__) . '/includes/mceplugins.class.php' );
243
+
244
+ new tinymcePlugins(
245
+ 'template',
246
+ $this->base_url.'/mce_plugins/4.0/plugins/template/plugin.js',
247
+ array( $this, 'tinymce_add_button' ),
248
+ $inits
249
+ );
250
+
251
+ /**
252
+ * Setup admin menu icon
253
+ */
254
+ echo '<style type="text/css">';
255
+ printf(
256
+ 'span.mceIcon.mce_template{background-image: url(%s) !important; background-position: center center !important;background-repeat: no-repeat;}',
257
+ plugins_url('mce_plugins/3.5/plugins/template/img/icon.png', __FILE__)
258
+ );
259
+ echo '</style>';
260
+
261
+ /**
262
+ * Hide some stuff in the templates editor panel.
263
+ */
264
+ if ( get_post_type() === $this->post_type ) {
265
+ global $hook_suffix;
266
+ if ( $hook_suffix === 'post.php' || $hook_suffix === 'post-new.php' ) {
267
+ remove_meta_box( 'slugdiv', $this->post_type, 'normal' );
268
+ echo '<style>#visibility{display:none;} #message a{display: none;}</style>';
269
+ }
270
+ }
271
+
272
+ /**
273
+ * Add editor style to the editor.
274
+ */
275
+ add_editor_style( plugins_url( 'editor.css', __FILE__ ) );
276
+ }
277
+
278
+ /**
279
+ * Add `Template` button to the editor.
280
+ *
281
+ * @param none
282
+ * @return none
283
+ */
284
+ public function tinymce_add_button( $buttons = array() )
285
+ {
286
+ array_unshift( $buttons, '|' );
287
+ array_unshift( $buttons, 'template' );
288
+ return $buttons;
289
+ }
290
+
291
+ /**
292
+ * Register custom post type.
293
+ *
294
+ * @param none
295
+ * @return none
296
+ */
297
+ private function register_post_type()
298
+ {
299
+ $args = array(
300
+ 'label' => __( 'Templates', 'tinymce_templates' ),
301
+ 'labels' => array(
302
+ 'singular_name' => __( 'Templates', 'tinymce_templates' ),
303
+ 'add_new_item' => __( 'Add New Template', 'tinymce_templates' ),
304
+ 'edit_item' => __( 'Edit Template', 'tinymce_templates' ),
305
+ 'add_new' => __( 'Add New', 'tinymce_templates' ),
306
+ 'new_item' => __( 'New Template', 'tinymce_templates' ),
307
+ 'view_item' => __( 'View Template', 'tinymce_templates' ),
308
+ 'not_found' => __( 'No templatess found.', 'tinymce_templates' ),
309
+ 'not_found_in_trash' => __(
310
+ 'No templates found in Trash.',
311
+ 'tinymce_templates'
312
+ ),
313
+ 'search_items' => __('Search Templates', 'tinymce_templates'),
314
+ ),
315
+ 'public' => false,
316
+ 'publicly_queryable' => false,
317
+ 'exclude_from_search' => true,
318
+ 'show_ui' => true,
319
+ 'capability_type' => 'post',
320
+ 'hierarchical' => false,
321
+ 'menu_position' => 100,
322
+ 'rewrite' => false,
323
+ 'show_in_nav_menus' => false,
324
+ 'register_meta_box_cb' => array( $this, 'add_meta_box' ),
325
+ 'supports' => array(
326
+ 'title',
327
+ 'editor',
328
+ 'excerpt',
329
+ 'revisions',
330
+ 'author',
331
+ )
332
+ );
333
+ register_post_type( $this->post_type, $args );
334
+ }
335
+
336
+ /**
337
+ * Adding meta box callback function.
338
+ *
339
+ * @param none
340
+ * @return none
341
+ */
342
+ public function add_meta_box()
343
+ {
344
+ add_meta_box(
345
+ 'tinymce_templates-is-shortcode',
346
+ __('Insert as Shortcode', 'tinymce_templates'),
347
+ array($this, 'insert_as_shortcode_meta_box'),
348
+ $this->post_type,
349
+ 'side',
350
+ 'low'
351
+ );
352
+
353
+ add_meta_box(
354
+ 'tinymce_templates-translators',
355
+ __( 'Translators', 'tinymce_templates' ),
356
+ array( $this, 'translators_meta_box' ),
357
+ $this->post_type,
358
+ 'side',
359
+ 'low'
360
+ );
361
+ }
362
+
363
+ /**
364
+ * Adding meta box `Insert as shortcode`.
365
+ *
366
+ * @param none
367
+ * @return none
368
+ */
369
+ public function insert_as_shortcode_meta_box( $post, $box )
370
+ {
371
+ $res = get_post_meta($post->ID, 'insert_as_shortcode', true);
372
+ if ( $res ) {
373
+ echo '<label><input type="radio" name="is_shortcode" value="1" checked> '.__( 'Yes' ).'</label><br />';
374
+ echo '<label><input type="radio" name="is_shortcode" value="0"> '.__( 'No' ).'</label>';
375
+ } else {
376
+ echo '<label><input type="radio" name="is_shortcode" value="1"> '.__( 'Yes' ).'</label><br />';
377
+ echo '<label><input type="radio" name="is_shortcode" value="0" checked> '.__( 'No' ).'</label>';
378
+ }
379
+ }
380
+
381
+ /**
382
+ * Adding meta box `Translators`.
383
+ *
384
+ * @param none
385
+ * @return none
386
+ */
387
+ public function translators_meta_box( $post, $box )
388
+ {
389
+ echo '<ul>';
390
+ foreach ( $this->translators as $u => $p ) {
391
+ if ( $p['url'] ) {
392
+ printf(
393
+ '<li><a href="%s">%s</a> ( %s )</li>',
394
+ esc_attr( $p['url'] ),
395
+ esc_html( $u ),
396
+ esc_html( $p['lang'] )
397
+ );
398
+ } else {
399
+ printf(
400
+ '<li>%s ( %s )</li>',
401
+ esc_html( $u ),
402
+ esc_html( $p['lang'] )
403
+ );
404
+ }
405
+ }
406
+ echo '</ul>';
407
+ }
408
+
409
+ /**
410
+ * Saving post meta to template post type.
411
+ *
412
+ * @param int $id The ID of the post.
413
+ * @return none
414
+ */
415
+ public function save_post( $id )
416
+ {
417
+ if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
418
+ return $id;
419
+ }
420
+
421
+ if (isset($_POST['action']) && $_POST['action'] == 'inline-save') {
422
+ return $id;
423
+ }
424
+
425
+ $p = get_post($id);
426
+
427
+ /**
428
+ * Save post_meta
429
+ */
430
+ if ($p->post_type === $this->post_type) {
431
+ if ( isset( $_POST['is_shortcode'] ) && $_POST['is_shortcode'] ) {
432
+ update_post_meta( $id, 'insert_as_shortcode', 1 );
433
+ } else {
434
+ delete_post_meta( $id, 'insert_as_shortcode' );
435
+ }
436
+ }
437
+ }
438
+
439
+ /**
440
+ * Generate javascript for the copying to the template.
441
+ *
442
+ * @param none
443
+ * @return none
444
+ */
445
+ public function admin_footer()
446
+ {
447
+ if ( get_post_type() === $this->post_type ) {
448
+ if ( isset($_GET['origin']) && intval($_GET['origin']) ) {
449
+ $origin = get_post( intval($_GET['origin']) );
450
+ if ( $origin ) {
451
+ $template = array(
452
+ 'post_title' => $origin->post_title,
453
+ 'post_content' => wpautop( $origin->post_content ),
454
+ );
455
+ $template = json_encode( $template );
456
+ echo <<<EOL
457
  <script type="text/javascript">
458
+ var origin = {$template};
459
+ jQuery( '#title').val(origin.post_title );
460
+ jQuery( '#content').val(origin.post_content );
461
  </script>
462
  EOL;
463
+ }
464
+ }
465
+ }
466
+ }
467
+
468
+ /**
469
+ * Output json of the templates.
470
+ *
471
+ * @param none
472
+ * @return none
473
+ */
474
+ public function wp_ajax()
475
+ {
476
+ nocache_headers();
477
+
478
+ if ( ! wp_verify_nonce($_GET['nonce'], 'tinymce_templates') ) {
479
+ return;
480
+ }
481
+
482
+ header( 'Content-Type: application/javascript; charset=UTF-8' );
483
+
484
+ if ( isset($_GET['template_id']) && intval($_GET['template_id']) ) {
485
+ $p = get_post( $_GET['template_id'] );
486
+ if ( $p->post_status === 'publish' ) {
487
+ echo apply_filters(
488
+ "tinymce_templates",
489
+ wpautop( $p->post_content ),
490
+ stripslashes( $p->post_content )
491
+ );
492
+ }
493
+ exit;
494
+ }
495
+
496
+ $p = array(
497
+ 'post_status' => 'publish',
498
+ 'post_type' => $this->post_type,
499
+ 'orderby' => 'date',
500
+ 'order' => 'DESC',
501
+ 'numberposts' => -1,
502
+ );
503
+
504
+ $posts = get_posts( $p );
505
+ $url = admin_url( 'admin-ajax.php' );
506
+ $nonce = wp_create_nonce( "tinymce_templates" );
507
+
508
+ $arr = array();
509
+
510
+ foreach ( $posts as $p ) {
511
+ $ID = intval( $p->ID );
512
+ $name = esc_html( apply_filters('tinymce_template_title', $p->post_title) );
513
+ $desc = esc_html( apply_filters('tinymce_template_excerpt', $p->post_excerpt) );
514
+ $args = array(
515
+ 'action' => 'tinymce_templates',
516
+ 'template_id' => $ID,
517
+ 'nonce' => $nonce,
518
+ );
519
+ $url = add_query_arg( $args, $url );
520
+ $arr[] = array(
521
+ 'id' => $ID,
522
+ 'title' => $name,
523
+ 'url' => $url,
524
+ 'description' => $desc,
525
+ 'is_shortcode' => get_post_meta( $ID, 'insert_as_shortcode', true ),
526
+ );
527
+ }
528
+
529
+ echo json_encode( $arr );
530
+
531
+ exit;
532
+ }
533
+
534
+ /**
535
+ * Returns the url for copying templates.
536
+ *
537
+ * @param none
538
+ * @return none
539
+ */
540
+ private function get_copy_template_url( $id )
541
+ {
542
+ return admin_url( 'post-new.php?post_type=tinymcetemplates&origin='.intval($id) );
543
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
544
 
545
 
546
  } // end class tinymceTemplates