TinyMCE Templates - Version 2.4.0

Version Description

Download this release

Release Info

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

Code changes from version 2.3.0 to 2.4.0

img/paypal.png ADDED
Binary file
includes/mceplugins.class.php CHANGED
@@ -4,27 +4,21 @@ Add TinyMCE plugis easily
4
 
5
  Parameters
6
  $plugin_url: url of editor_plugin.js
7
- $lang_path: path of langs.php
8
  $plugin_name: name of plugin
9
  */
10
- if (!class_exists('mcePlugins')) {
11
- class mcePlugins{
12
 
13
  private $name = null;
14
  private $url = null;
15
- private $lang_path = null;
16
  private $inits = array();
17
 
18
  function __construct($plugin_name, $plugin_url,
19
- $lang_path = null, $button_callback = null, $inits = array())
20
  {
21
  $this->name = $plugin_name;
22
  $this->url = $plugin_url;
23
  add_filter('mce_external_plugins', array(&$this, 'external_plugins'));
24
- if ($lang_path) {
25
- $this->lang_path = $lang_path;
26
- add_filter('mce_external_languages', array(&$this, 'external_languages'));
27
- }
28
  if ($inits) {
29
  $this->inits = $inits;
30
  add_filter('tiny_mce_before_init', array(&$this, 'before_init'));
@@ -46,13 +40,6 @@ class mcePlugins{
46
  $plugins[$this->name] = $this->url;
47
  return $plugins;
48
  }
49
-
50
- public function external_languages($langs)
51
- {
52
- $langs[$this->name] = $this->lang_path;
53
- return $langs;
54
- }
55
-
56
  }
57
  }
58
 
4
 
5
  Parameters
6
  $plugin_url: url of editor_plugin.js
 
7
  $plugin_name: name of plugin
8
  */
9
+ if (!class_exists('tinymcePlugins')) {
10
+ class tinymcePlugins{
11
 
12
  private $name = null;
13
  private $url = null;
 
14
  private $inits = array();
15
 
16
  function __construct($plugin_name, $plugin_url,
17
+ $button_callback = null, $inits = array())
18
  {
19
  $this->name = $plugin_name;
20
  $this->url = $plugin_url;
21
  add_filter('mce_external_plugins', array(&$this, 'external_plugins'));
 
 
 
 
22
  if ($inits) {
23
  $this->inits = $inits;
24
  add_filter('tiny_mce_before_init', array(&$this, 'before_init'));
40
  $plugins[$this->name] = $this->url;
41
  return $plugins;
42
  }
 
 
 
 
 
 
 
43
  }
44
  }
45
 
languages/tinymce_templates-de_DE.mo CHANGED
Binary file
languages/tinymce_templates-de_DE.po CHANGED
@@ -6,8 +6,8 @@
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: TinyMCE Templates 1.1.1\n"
9
- "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2010-11-21 05:10+0900\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,95 +17,126 @@ msgstr ""
17
  "Content-Transfer-Encoding: 8bit\n"
18
  "X-Poedit-Language: German\n"
19
 
20
- #: ../includes/MceTemplatesAdmin.class.php:34
21
- #: ../includes/MceTemplatesAdmin.class.php:156
22
- #: ../tinymce_templates.php:103
23
- msgid "Edit Templates"
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  msgstr "Vorlagen bearbeiten"
25
 
26
- #: ../includes/MceTemplatesAdmin.class.php:38
27
- msgid "Templates permanently deleted."
28
- msgstr "Vorlagen dauerhaft entfernt."
29
-
30
- #: ../includes/MceTemplatesAdmin.class.php:46
31
- #: ../includes/MceTemplatesAdmin.class.php:55
32
- msgid "Name"
33
- msgstr "Name"
34
-
35
- #: ../includes/MceTemplatesAdmin.class.php:47
36
- #: ../includes/MceTemplatesAdmin.class.php:56
37
- msgid "Description"
38
- msgstr "Beschreibung"
39
-
40
- #: ../includes/MceTemplatesAdmin.class.php:48
41
- #: ../includes/MceTemplatesAdmin.class.php:57
42
- msgid "Author"
43
- msgstr "Autor"
44
-
45
- #: ../includes/MceTemplatesAdmin.class.php:49
46
- #: ../includes/MceTemplatesAdmin.class.php:58
47
- #: ../includes/MceTemplatesAdmin.class.php:169
48
- #: ../includes/MceTemplatesAdmin.class.php:172
49
- #: ../includes/MceTemplatesAdmin.class.php:175
 
 
 
 
50
  msgid "Share"
51
  msgstr "Teilen"
52
 
53
- #: ../includes/MceTemplatesAdmin.class.php:94
54
- msgid "Shared"
55
- msgstr "Geteilt"
 
 
 
 
 
 
 
 
 
 
56
 
57
- #: ../includes/MceTemplatesAdmin.class.php:96
58
- #: ../includes/MceTemplatesAdmin.class.php:173
59
- #: ../includes/MceTemplatesAdmin.class.php:176
60
  msgid "Private"
61
  msgstr "Privat"
62
 
63
- #: ../includes/MceTemplatesAdmin.class.php:103
64
- msgid "Delete checked items"
65
- msgstr "Ausgewählte Elemente entfernen"
 
66
 
67
- #: ../includes/MceTemplatesAdmin.class.php:113
68
- msgid "Template saved."
69
- msgstr "Vorlagen gespeichert."
70
 
71
- #: ../includes/MceTemplatesAdmin.class.php:124
72
- msgid "All entry must not be blank."
73
- msgstr "Bitte füllen Sie alle Felder aus."
 
 
74
 
75
- #: ../includes/MceTemplatesAdmin.class.php:158
76
- #: ../tinymce_templates.php:111
77
- msgid "Add New Templates"
78
- msgstr "Neue Vorlagen erstellen"
79
 
80
- #: ../includes/MceTemplatesAdmin.class.php:163
81
- msgid "Template Name"
82
- msgstr "Name der Vorlage"
83
 
84
- #: ../includes/MceTemplatesAdmin.class.php:165
85
- msgid "Template Description"
86
- msgstr "Beschreibung der Vorlage"
87
 
88
- #: ../includes/MceTemplatesAdmin.class.php:167
89
- msgid "Template Contents"
90
- msgstr "Inhalt der Vorlage"
91
 
92
- #: ../includes/MceTemplatesAdmin.class.php:180
93
- msgid "Save Template"
94
- msgstr "Vorlage speichern"
95
 
96
- #: ../tinymce_templates.php:94
97
- msgid "tinyMCE Templates"
98
- msgstr "TinyMCE-Vorlagen"
99
 
100
- #: ../tinymce_templates.php:95
101
- msgid "Templates"
102
- msgstr "Vorlagen"
103
 
104
- #: ../tinymce_templates.php:104
105
- msgid "Edit"
106
- msgstr "Bearbeiten"
107
 
108
- #: ../tinymce_templates.php:112
109
- msgid "Add New"
110
- msgstr "Erstellen"
 
 
 
 
 
 
 
 
111
 
 
 
6
  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: 2011-11-18 17:15:39+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:179 tinymce-templates.php:317
21
+ #: tinymce-templates.php:319
22
+ msgid "Shared"
23
+ msgstr "Geteilt"
24
+
25
+ #: tinymce-templates.php:212 tinymce-templates.php:214
26
+ msgid "Templates"
27
+ msgstr "Vorlagen"
28
+
29
+ #: tinymce-templates.php:215
30
+ #, fuzzy
31
+ msgid "Add New Template"
32
+ msgstr "Neue Vorlagen erstellen"
33
+
34
+ #: tinymce-templates.php:216
35
+ #, fuzzy
36
+ msgid "Edit Template"
37
  msgstr "Vorlagen bearbeiten"
38
 
39
+ #: tinymce-templates.php:217
40
+ msgid "Add New"
41
+ msgstr "Erstellen"
42
+
43
+ #: tinymce-templates.php:218
44
+ #, fuzzy
45
+ msgid "New Template"
46
+ msgstr "Neue Vorlagen erstellen"
47
+
48
+ #: tinymce-templates.php:219
49
+ #, fuzzy
50
+ msgid "View Template"
51
+ msgstr "Vorlage speichern"
52
+
53
+ #: tinymce-templates.php:220
54
+ msgid "No templatess found."
55
+ msgstr ""
56
+
57
+ #: tinymce-templates.php:221
58
+ msgid "No templates found in Trash."
59
+ msgstr ""
60
+
61
+ #: tinymce-templates.php:225
62
+ #, fuzzy
63
+ msgid "Search Templates"
64
+ msgstr "Vorlage speichern"
65
+
66
+ #: tinymce-templates.php:253
67
  msgid "Share"
68
  msgstr "Teilen"
69
 
70
+ #: tinymce-templates.php:262
71
+ msgid "Translators"
72
+ msgstr ""
73
+
74
+ #: tinymce-templates.php:271
75
+ msgid "Donate"
76
+ msgstr ""
77
+
78
+ #: tinymce-templates.php:286
79
+ msgid ""
80
+ "It is hard to continue development and support for WordPress plugins without "
81
+ "contributions from users like you."
82
+ msgstr ""
83
 
84
+ #: tinymce-templates.php:315
 
 
85
  msgid "Private"
86
  msgstr "Privat"
87
 
88
+ #. Plugin Name of the plugin/theme
89
+ #, fuzzy
90
+ msgid "TinyMCE Templates"
91
+ msgstr "TinyMCE-Vorlagen"
92
 
93
+ #. Plugin URI of the plugin/theme
94
+ msgid "http://wpist.me/wp/tinymce-templates/"
95
+ msgstr ""
96
 
97
+ #. Description of the plugin/theme
98
+ msgid ""
99
+ "TinyMCE Templates plugin will enable to use HTML template on WordPress "
100
+ "Visual Editor."
101
+ msgstr ""
102
 
103
+ #. Author of the plugin/theme
104
+ msgid "Takayuki Miyauchi"
105
+ msgstr ""
 
106
 
107
+ #. Author URI of the plugin/theme
108
+ msgid "http://wpist.me/"
109
+ msgstr ""
110
 
111
+ #~ msgid "Templates permanently deleted."
112
+ #~ msgstr "Vorlagen dauerhaft entfernt."
 
113
 
114
+ #~ msgid "Name"
115
+ #~ msgstr "Name"
 
116
 
117
+ #~ msgid "Description"
118
+ #~ msgstr "Beschreibung"
 
119
 
120
+ #~ msgid "Author"
121
+ #~ msgstr "Autor"
 
122
 
123
+ #~ msgid "Delete checked items"
124
+ #~ msgstr "Ausgewählte Elemente entfernen"
 
125
 
126
+ #~ msgid "Template saved."
127
+ #~ msgstr "Vorlagen gespeichert."
 
128
 
129
+ #~ msgid "All entry must not be blank."
130
+ #~ msgstr "Bitte füllen Sie alle Felder aus."
131
+
132
+ #~ msgid "Template Name"
133
+ #~ msgstr "Name der Vorlage"
134
+
135
+ #~ msgid "Template Description"
136
+ #~ msgstr "Beschreibung der Vorlage"
137
+
138
+ #~ msgid "Template Contents"
139
+ #~ msgstr "Inhalt der Vorlage"
140
 
141
+ #~ msgid "Edit"
142
+ #~ msgstr "Bearbeiten"
languages/tinymce_templates-es_ES.mo CHANGED
Binary file
languages/tinymce_templates-es_ES.po CHANGED
@@ -4,105 +4,136 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: PACKAGE VERSION\n"
7
- "Report-Msgid-Bugs-To: \n"
8
- "POT-Creation-Date: 2010-11-21 05:10+0900\n"
9
  "PO-Revision-Date: 2011-09-21 16:55+0100\n"
10
  "Last-Translator: David Bravo <dbravo@dimensionmultimedia.com>\n"
 
11
  "Language: Swedish\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "Language-Team: \n"
16
 
17
- #: ../includes/MceTemplatesAdmin.class.php:34
18
- #: ../includes/MceTemplatesAdmin.class.php:156
19
- #: ../tinymce_templates.php:103
20
- msgid "Edit Templates"
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  msgstr "Editar Plantillas"
22
 
23
- #: ../includes/MceTemplatesAdmin.class.php:38
24
- msgid "Templates permanently deleted."
25
- msgstr "Plantillas permanentemente borradas."
26
-
27
- #: ../includes/MceTemplatesAdmin.class.php:46
28
- #: ../includes/MceTemplatesAdmin.class.php:55
29
- msgid "Name"
30
- msgstr "Nombre"
31
-
32
- #: ../includes/MceTemplatesAdmin.class.php:47
33
- #: ../includes/MceTemplatesAdmin.class.php:56
34
- msgid "Description"
35
- msgstr "Descripción"
36
-
37
- #: ../includes/MceTemplatesAdmin.class.php:48
38
- #: ../includes/MceTemplatesAdmin.class.php:57
39
- msgid "Author"
40
- msgstr "Autor"
41
-
42
- #: ../includes/MceTemplatesAdmin.class.php:49
43
- #: ../includes/MceTemplatesAdmin.class.php:58
44
- #: ../includes/MceTemplatesAdmin.class.php:169
45
- #: ../includes/MceTemplatesAdmin.class.php:172
46
- #: ../includes/MceTemplatesAdmin.class.php:175
 
 
 
 
47
  msgid "Share"
48
  msgstr "Compartido"
49
 
50
- #: ../includes/MceTemplatesAdmin.class.php:94
51
- msgid "Shared"
52
- msgstr "Compartido"
 
 
 
 
 
 
 
 
 
 
53
 
54
- #: ../includes/MceTemplatesAdmin.class.php:96
55
- #: ../includes/MceTemplatesAdmin.class.php:173
56
- #: ../includes/MceTemplatesAdmin.class.php:176
57
  msgid "Private"
58
  msgstr "Privado"
59
 
60
- #: ../includes/MceTemplatesAdmin.class.php:103
61
- msgid "Delete checked items"
62
- msgstr "Borrar elementos seleccionados"
 
63
 
64
- #: ../includes/MceTemplatesAdmin.class.php:113
65
- msgid "Template saved."
66
- msgstr "Plantilla guardada."
67
 
68
- #: ../includes/MceTemplatesAdmin.class.php:124
69
- msgid "All entry must not be blank."
70
- msgstr "No puede haber ningún campo en blanco."
 
 
71
 
72
- #: ../includes/MceTemplatesAdmin.class.php:158
73
- #: ../tinymce_templates.php:111
74
- msgid "Add New Templates"
75
- msgstr "Añadir nuevas Plantillas"
76
 
77
- #: ../includes/MceTemplatesAdmin.class.php:163
78
- msgid "Template Name"
79
- msgstr "Nombre de la Plantilla"
80
 
81
- #: ../includes/MceTemplatesAdmin.class.php:165
82
- msgid "Template Description"
83
- msgstr "Descripción de la Plantilla"
84
 
85
- #: ../includes/MceTemplatesAdmin.class.php:167
86
- msgid "Template Contents"
87
- msgstr "Contenidos de la Plantilla"
88
 
89
- #: ../includes/MceTemplatesAdmin.class.php:180
90
- msgid "Save Template"
91
- msgstr "Guardar Plantilla"
92
 
93
- #: ../tinymce_templates.php:94
94
- msgid "tinyMCE Templates"
95
- msgstr "Plantillas de tinyMCE"
96
 
97
- #: ../tinymce_templates.php:95
98
- msgid "Templates"
99
- msgstr "Plantillas"
100
 
101
- #: ../tinymce_templates.php:104
102
- msgid "Edit"
103
- msgstr "Editar"
104
 
105
- #: ../tinymce_templates.php:112
106
- msgid "Add New"
107
- msgstr "Añadir Nueva"
 
 
 
 
 
 
 
 
108
 
 
 
4
  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: 2011-11-18 17:15:39+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"
12
  "Language: Swedish\n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
 
16
 
17
+ #: tinymce-templates.php:179 tinymce-templates.php:317
18
+ #: tinymce-templates.php:319
19
+ msgid "Shared"
20
+ msgstr "Compartido"
21
+
22
+ #: tinymce-templates.php:212 tinymce-templates.php:214
23
+ msgid "Templates"
24
+ msgstr "Plantillas"
25
+
26
+ #: tinymce-templates.php:215
27
+ #, fuzzy
28
+ msgid "Add New Template"
29
+ msgstr "Añadir nuevas Plantillas"
30
+
31
+ #: tinymce-templates.php:216
32
+ #, fuzzy
33
+ msgid "Edit Template"
34
  msgstr "Editar Plantillas"
35
 
36
+ #: tinymce-templates.php:217
37
+ msgid "Add New"
38
+ msgstr "Añadir Nueva"
39
+
40
+ #: tinymce-templates.php:218
41
+ #, fuzzy
42
+ msgid "New Template"
43
+ msgstr "Añadir nuevas Plantillas"
44
+
45
+ #: tinymce-templates.php:219
46
+ #, fuzzy
47
+ msgid "View Template"
48
+ msgstr "Guardar Plantilla"
49
+
50
+ #: tinymce-templates.php:220
51
+ msgid "No templatess found."
52
+ msgstr ""
53
+
54
+ #: tinymce-templates.php:221
55
+ msgid "No templates found in Trash."
56
+ msgstr ""
57
+
58
+ #: tinymce-templates.php:225
59
+ #, fuzzy
60
+ msgid "Search Templates"
61
+ msgstr "Guardar Plantilla"
62
+
63
+ #: tinymce-templates.php:253
64
  msgid "Share"
65
  msgstr "Compartido"
66
 
67
+ #: tinymce-templates.php:262
68
+ msgid "Translators"
69
+ msgstr ""
70
+
71
+ #: tinymce-templates.php:271
72
+ msgid "Donate"
73
+ msgstr ""
74
+
75
+ #: tinymce-templates.php:286
76
+ msgid ""
77
+ "It is hard to continue development and support for WordPress plugins without "
78
+ "contributions from users like you."
79
+ msgstr ""
80
 
81
+ #: tinymce-templates.php:315
 
 
82
  msgid "Private"
83
  msgstr "Privado"
84
 
85
+ #. Plugin Name of the plugin/theme
86
+ #, fuzzy
87
+ msgid "TinyMCE Templates"
88
+ msgstr "Plantillas de tinyMCE"
89
 
90
+ #. Plugin URI of the plugin/theme
91
+ msgid "http://wpist.me/wp/tinymce-templates/"
92
+ msgstr ""
93
 
94
+ #. Description of the plugin/theme
95
+ msgid ""
96
+ "TinyMCE Templates plugin will enable to use HTML template on WordPress "
97
+ "Visual Editor."
98
+ msgstr ""
99
 
100
+ #. Author of the plugin/theme
101
+ msgid "Takayuki Miyauchi"
102
+ msgstr ""
 
103
 
104
+ #. Author URI of the plugin/theme
105
+ msgid "http://wpist.me/"
106
+ msgstr ""
107
 
108
+ #~ msgid "Templates permanently deleted."
109
+ #~ msgstr "Plantillas permanentemente borradas."
 
110
 
111
+ #~ msgid "Name"
112
+ #~ msgstr "Nombre"
 
113
 
114
+ #~ msgid "Description"
115
+ #~ msgstr "Descripción"
 
116
 
117
+ #~ msgid "Author"
118
+ #~ msgstr "Autor"
 
119
 
120
+ #~ msgid "Delete checked items"
121
+ #~ msgstr "Borrar elementos seleccionados"
 
122
 
123
+ #~ msgid "Template saved."
124
+ #~ msgstr "Plantilla guardada."
 
125
 
126
+ #~ msgid "All entry must not be blank."
127
+ #~ msgstr "No puede haber ningún campo en blanco."
128
+
129
+ #~ msgid "Template Name"
130
+ #~ msgstr "Nombre de la Plantilla"
131
+
132
+ #~ msgid "Template Description"
133
+ #~ msgstr "Descripción de la Plantilla"
134
+
135
+ #~ msgid "Template Contents"
136
+ #~ msgstr "Contenidos de la Plantilla"
137
 
138
+ #~ msgid "Edit"
139
+ #~ msgstr "Editar"
languages/tinymce_templates-fr_FR.mo CHANGED
Binary file
languages/tinymce_templates-fr_FR.po CHANGED
@@ -1,106 +1,138 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: tinyMCE-templates\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2010-11-21 05:10+0900\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"
 
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-Language: French\n"
13
  "X-Poedit-Country: FRANCE\n"
14
 
15
- #: ../includes/MceTemplatesAdmin.class.php:34
16
- #: ../includes/MceTemplatesAdmin.class.php:156
17
- #: ../tinymce_templates.php:103
18
- msgid "Edit Templates"
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  msgstr "Éditer les modèles"
20
 
21
- #: ../includes/MceTemplatesAdmin.class.php:38
22
- msgid "Templates permanently deleted."
23
- msgstr "Modèles définitivement supprimés"
24
-
25
- #: ../includes/MceTemplatesAdmin.class.php:46
26
- #: ../includes/MceTemplatesAdmin.class.php:55
27
- msgid "Name"
28
- msgstr "Nom"
29
-
30
- #: ../includes/MceTemplatesAdmin.class.php:47
31
- #: ../includes/MceTemplatesAdmin.class.php:56
32
- msgid "Description"
33
- msgstr "Description"
34
-
35
- #: ../includes/MceTemplatesAdmin.class.php:48
36
- #: ../includes/MceTemplatesAdmin.class.php:57
37
- msgid "Author"
38
- msgstr "Auteur"
39
-
40
- #: ../includes/MceTemplatesAdmin.class.php:49
41
- #: ../includes/MceTemplatesAdmin.class.php:58
42
- #: ../includes/MceTemplatesAdmin.class.php:169
43
- #: ../includes/MceTemplatesAdmin.class.php:172
44
- #: ../includes/MceTemplatesAdmin.class.php:175
 
 
 
 
45
  msgid "Share"
46
  msgstr "Partager"
47
 
48
- #: ../includes/MceTemplatesAdmin.class.php:94
49
- msgid "Shared"
50
- msgstr "Partagé"
 
 
 
 
 
 
 
 
 
 
51
 
52
- #: ../includes/MceTemplatesAdmin.class.php:96
53
- #: ../includes/MceTemplatesAdmin.class.php:173
54
- #: ../includes/MceTemplatesAdmin.class.php:176
55
  msgid "Private"
56
  msgstr "Personnel"
57
 
58
- #: ../includes/MceTemplatesAdmin.class.php:103
59
- msgid "Delete checked items"
60
- msgstr "Supprimer les entrées cochées"
 
61
 
62
- #: ../includes/MceTemplatesAdmin.class.php:113
63
- msgid "Template saved."
64
- msgstr "Modèle enregistré"
65
 
66
- #: ../includes/MceTemplatesAdmin.class.php:124
67
- msgid "All entry must not be blank."
68
- msgstr "Aucun champ ne doit être vide"
 
 
69
 
70
- #: ../includes/MceTemplatesAdmin.class.php:158
71
- #: ../tinymce_templates.php:111
72
- msgid "Add New Templates"
73
- msgstr "Ajouter un nouveau modèle"
74
 
75
- #: ../includes/MceTemplatesAdmin.class.php:163
76
- msgid "Template Name"
77
- msgstr "Nom du modèle"
78
 
79
- #: ../includes/MceTemplatesAdmin.class.php:165
80
- msgid "Template Description"
81
- msgstr "Description du modèle"
82
 
83
- #: ../includes/MceTemplatesAdmin.class.php:167
84
- msgid "Template Contents"
85
- msgstr "Contenu du modèle"
86
 
87
- #: ../includes/MceTemplatesAdmin.class.php:180
88
- msgid "Save Template"
89
- msgstr "Enregistrer le modèle"
90
 
91
- #: ../tinymce_templates.php:94
92
- msgid "tinyMCE Templates"
93
- msgstr "tinyMCE modèles"
94
 
95
- #: ../tinymce_templates.php:95
96
- msgid "Templates"
97
- msgstr "Modèles"
98
 
99
- #: ../tinymce_templates.php:104
100
- msgid "Edit"
101
- msgstr "Éditer"
102
 
103
- #: ../tinymce_templates.php:112
104
- msgid "Add New"
105
- msgstr "Ajouter un nouveau"
 
 
 
 
 
 
 
 
106
 
 
 
1
  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: 2011-11-18 17:15:39+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"
9
+ "Language: \n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "X-Poedit-Language: French\n"
14
  "X-Poedit-Country: FRANCE\n"
15
 
16
+ #: tinymce-templates.php:179 tinymce-templates.php:317
17
+ #: tinymce-templates.php:319
18
+ msgid "Shared"
19
+ msgstr "Partagé"
20
+
21
+ #: tinymce-templates.php:212 tinymce-templates.php:214
22
+ msgid "Templates"
23
+ msgstr "Modèles"
24
+
25
+ #: tinymce-templates.php:215
26
+ #, fuzzy
27
+ msgid "Add New Template"
28
+ msgstr "Ajouter un nouveau modèle"
29
+
30
+ #: tinymce-templates.php:216
31
+ #, fuzzy
32
+ msgid "Edit Template"
33
  msgstr "Éditer les modèles"
34
 
35
+ #: tinymce-templates.php:217
36
+ msgid "Add New"
37
+ msgstr "Ajouter un nouveau"
38
+
39
+ #: tinymce-templates.php:218
40
+ #, fuzzy
41
+ msgid "New Template"
42
+ msgstr "Ajouter un nouveau modèle"
43
+
44
+ #: tinymce-templates.php:219
45
+ #, fuzzy
46
+ msgid "View Template"
47
+ msgstr "Enregistrer le modèle"
48
+
49
+ #: tinymce-templates.php:220
50
+ msgid "No templatess found."
51
+ msgstr ""
52
+
53
+ #: tinymce-templates.php:221
54
+ msgid "No templates found in Trash."
55
+ msgstr ""
56
+
57
+ #: tinymce-templates.php:225
58
+ #, fuzzy
59
+ msgid "Search Templates"
60
+ msgstr "Enregistrer le modèle"
61
+
62
+ #: tinymce-templates.php:253
63
  msgid "Share"
64
  msgstr "Partager"
65
 
66
+ #: tinymce-templates.php:262
67
+ msgid "Translators"
68
+ msgstr ""
69
+
70
+ #: tinymce-templates.php:271
71
+ msgid "Donate"
72
+ msgstr ""
73
+
74
+ #: tinymce-templates.php:286
75
+ msgid ""
76
+ "It is hard to continue development and support for WordPress plugins without "
77
+ "contributions from users like you."
78
+ msgstr ""
79
 
80
+ #: tinymce-templates.php:315
 
 
81
  msgid "Private"
82
  msgstr "Personnel"
83
 
84
+ #. Plugin Name of the plugin/theme
85
+ #, fuzzy
86
+ msgid "TinyMCE Templates"
87
+ msgstr "tinyMCE modèles"
88
 
89
+ #. Plugin URI of the plugin/theme
90
+ msgid "http://wpist.me/wp/tinymce-templates/"
91
+ msgstr ""
92
 
93
+ #. Description of the plugin/theme
94
+ msgid ""
95
+ "TinyMCE Templates plugin will enable to use HTML template on WordPress "
96
+ "Visual Editor."
97
+ msgstr ""
98
 
99
+ #. Author of the plugin/theme
100
+ msgid "Takayuki Miyauchi"
101
+ msgstr ""
 
102
 
103
+ #. Author URI of the plugin/theme
104
+ msgid "http://wpist.me/"
105
+ msgstr ""
106
 
107
+ #~ msgid "Templates permanently deleted."
108
+ #~ msgstr "Modèles définitivement supprimés"
 
109
 
110
+ #~ msgid "Name"
111
+ #~ msgstr "Nom"
 
112
 
113
+ #~ msgid "Description"
114
+ #~ msgstr "Description"
 
115
 
116
+ #~ msgid "Author"
117
+ #~ msgstr "Auteur"
 
118
 
119
+ #~ msgid "Delete checked items"
120
+ #~ msgstr "Supprimer les entrées cochées"
 
121
 
122
+ #~ msgid "Template saved."
123
+ #~ msgstr "Modèle enregistré"
 
124
 
125
+ #~ msgid "All entry must not be blank."
126
+ #~ msgstr "Aucun champ ne doit être vide"
127
+
128
+ #~ msgid "Template Name"
129
+ #~ msgstr "Nom du modèle"
130
+
131
+ #~ msgid "Template Description"
132
+ #~ msgstr "Description du modèle"
133
+
134
+ #~ msgid "Template Contents"
135
+ #~ msgstr "Contenu du modèle"
136
 
137
+ #~ msgid "Edit"
138
+ #~ msgstr "Éditer"
languages/tinymce_templates-it_IT.mo CHANGED
Binary file
languages/tinymce_templates-it_IT.po CHANGED
@@ -6,8 +6,8 @@
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: PACKAGE VERSION\n"
9
- "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2010-11-21 05:06+0900\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,95 +16,126 @@ msgstr ""
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
- #: ..//includes/MceTemplatesAdmin.class.php:34
20
- #: ..//includes/MceTemplatesAdmin.class.php:156
21
- #: ..//tinymce_templates.php:103
22
- msgid "Edit Templates"
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  msgstr "Modifica modello"
24
 
25
- #: ..//includes/MceTemplatesAdmin.class.php:38
26
- msgid "Templates permanently deleted."
27
- msgstr "Modello cancellato"
28
-
29
- #: ..//includes/MceTemplatesAdmin.class.php:46
30
- #: ..//includes/MceTemplatesAdmin.class.php:55
31
- msgid "Name"
32
- msgstr "Nome"
33
-
34
- #: ..//includes/MceTemplatesAdmin.class.php:47
35
- #: ..//includes/MceTemplatesAdmin.class.php:56
36
- msgid "Description"
37
- msgstr "Descrizione"
38
-
39
- #: ..//includes/MceTemplatesAdmin.class.php:48
40
- #: ..//includes/MceTemplatesAdmin.class.php:57
41
- msgid "Author"
42
- msgstr "Autore"
43
-
44
- #: ..//includes/MceTemplatesAdmin.class.php:49
45
- #: ..//includes/MceTemplatesAdmin.class.php:58
46
- #: ..//includes/MceTemplatesAdmin.class.php:169
47
- #: ..//includes/MceTemplatesAdmin.class.php:172
48
- #: ..//includes/MceTemplatesAdmin.class.php:175
 
 
 
 
49
  msgid "Share"
50
  msgstr "Condividi"
51
 
52
- #: ..//includes/MceTemplatesAdmin.class.php:94
53
- msgid "Shared"
54
- msgstr "Condiviso"
 
 
 
 
 
 
 
 
 
 
55
 
56
- #: ..//includes/MceTemplatesAdmin.class.php:96
57
- #: ..//includes/MceTemplatesAdmin.class.php:173
58
- #: ..//includes/MceTemplatesAdmin.class.php:176
59
  msgid "Private"
60
  msgstr "Privato"
61
 
62
- #: ..//includes/MceTemplatesAdmin.class.php:103
63
- msgid "Delete checked items"
64
- msgstr "Cancella selezionati"
 
65
 
66
- #: ..//includes/MceTemplatesAdmin.class.php:113
67
- msgid "Template saved."
68
- msgstr "Modello salvato"
69
 
70
- #: ..//includes/MceTemplatesAdmin.class.php:124
71
- msgid "All entry must not be blank."
72
- msgstr "Tutti i campi sono abbligatori"
 
 
73
 
74
- #: ..//includes/MceTemplatesAdmin.class.php:158
75
- #: ..//tinymce_templates.php:111
76
- msgid "Add New Templates"
77
- msgstr "Aggiungi nuovo modello"
78
 
79
- #: ..//includes/MceTemplatesAdmin.class.php:163
80
- msgid "Template Name"
81
- msgstr "Nome modello"
82
 
83
- #: ..//includes/MceTemplatesAdmin.class.php:165
84
- msgid "Template Description"
85
- msgstr "Descrizione modello"
86
 
87
- #: ..//includes/MceTemplatesAdmin.class.php:167
88
- msgid "Template Contents"
89
- msgstr "Contenuto modello"
90
 
91
- #: ..//includes/MceTemplatesAdmin.class.php:180
92
- msgid "Save Template"
93
- msgstr "Salva modello"
94
 
95
- #: ..//tinymce_templates.php:94
96
- msgid "tinyMCE Templates"
97
- msgstr "tinyMCE Modelli"
98
 
99
- #: ..//tinymce_templates.php:95
100
- msgid "Templates"
101
- msgstr "Modelli"
102
 
103
- #: ..//tinymce_templates.php:104
104
- msgid "Edit"
105
- msgstr "Modifica"
106
 
107
- #: ..//tinymce_templates.php:112
108
- msgid "Add New"
109
- msgstr "Aggiungi"
 
 
 
 
 
 
 
 
110
 
 
 
6
  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: 2011-11-18 17:15:39+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:179 tinymce-templates.php:317
20
+ #: tinymce-templates.php:319
21
+ msgid "Shared"
22
+ msgstr "Condiviso"
23
+
24
+ #: tinymce-templates.php:212 tinymce-templates.php:214
25
+ msgid "Templates"
26
+ msgstr "Modelli"
27
+
28
+ #: tinymce-templates.php:215
29
+ #, fuzzy
30
+ msgid "Add New Template"
31
+ msgstr "Aggiungi nuovo modello"
32
+
33
+ #: tinymce-templates.php:216
34
+ #, fuzzy
35
+ msgid "Edit Template"
36
  msgstr "Modifica modello"
37
 
38
+ #: tinymce-templates.php:217
39
+ msgid "Add New"
40
+ msgstr "Aggiungi"
41
+
42
+ #: tinymce-templates.php:218
43
+ #, fuzzy
44
+ msgid "New Template"
45
+ msgstr "Aggiungi nuovo modello"
46
+
47
+ #: tinymce-templates.php:219
48
+ #, fuzzy
49
+ msgid "View Template"
50
+ msgstr "Salva modello"
51
+
52
+ #: tinymce-templates.php:220
53
+ msgid "No templatess found."
54
+ msgstr ""
55
+
56
+ #: tinymce-templates.php:221
57
+ msgid "No templates found in Trash."
58
+ msgstr ""
59
+
60
+ #: tinymce-templates.php:225
61
+ #, fuzzy
62
+ msgid "Search Templates"
63
+ msgstr "Salva modello"
64
+
65
+ #: tinymce-templates.php:253
66
  msgid "Share"
67
  msgstr "Condividi"
68
 
69
+ #: tinymce-templates.php:262
70
+ msgid "Translators"
71
+ msgstr ""
72
+
73
+ #: tinymce-templates.php:271
74
+ msgid "Donate"
75
+ msgstr ""
76
+
77
+ #: tinymce-templates.php:286
78
+ msgid ""
79
+ "It is hard to continue development and support for WordPress plugins without "
80
+ "contributions from users like you."
81
+ msgstr ""
82
 
83
+ #: tinymce-templates.php:315
 
 
84
  msgid "Private"
85
  msgstr "Privato"
86
 
87
+ #. Plugin Name of the plugin/theme
88
+ #, fuzzy
89
+ msgid "TinyMCE Templates"
90
+ msgstr "tinyMCE Modelli"
91
 
92
+ #. Plugin URI of the plugin/theme
93
+ msgid "http://wpist.me/wp/tinymce-templates/"
94
+ msgstr ""
95
 
96
+ #. Description of the plugin/theme
97
+ msgid ""
98
+ "TinyMCE Templates plugin will enable to use HTML template on WordPress "
99
+ "Visual Editor."
100
+ msgstr ""
101
 
102
+ #. Author of the plugin/theme
103
+ msgid "Takayuki Miyauchi"
104
+ msgstr ""
 
105
 
106
+ #. Author URI of the plugin/theme
107
+ msgid "http://wpist.me/"
108
+ msgstr ""
109
 
110
+ #~ msgid "Templates permanently deleted."
111
+ #~ msgstr "Modello cancellato"
 
112
 
113
+ #~ msgid "Name"
114
+ #~ msgstr "Nome"
 
115
 
116
+ #~ msgid "Description"
117
+ #~ msgstr "Descrizione"
 
118
 
119
+ #~ msgid "Author"
120
+ #~ msgstr "Autore"
 
121
 
122
+ #~ msgid "Delete checked items"
123
+ #~ msgstr "Cancella selezionati"
 
124
 
125
+ #~ msgid "Template saved."
126
+ #~ msgstr "Modello salvato"
 
127
 
128
+ #~ msgid "All entry must not be blank."
129
+ #~ msgstr "Tutti i campi sono abbligatori"
130
+
131
+ #~ msgid "Template Name"
132
+ #~ msgstr "Nome modello"
133
+
134
+ #~ msgid "Template Description"
135
+ #~ msgstr "Descrizione modello"
136
+
137
+ #~ msgid "Template Contents"
138
+ #~ msgstr "Contenuto modello"
139
 
140
+ #~ msgid "Edit"
141
+ #~ msgstr "Modifica"
languages/tinymce_templates-ja.mo CHANGED
Binary file
languages/tinymce_templates-ja.po CHANGED
@@ -7,67 +7,104 @@
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
- "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2011-11-12 03:24+0900\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"
15
- "Language: \n"
16
  "MIME-Version: 1.0\n"
17
  "Content-Type: text/plain; charset=UTF-8\n"
18
  "Content-Transfer-Encoding: 8bit\n"
19
 
20
- #: ../tinymce-templates.php:203 ../tinymce-templates.php:205
 
 
 
 
 
21
  msgid "Templates"
22
  msgstr "テンプレート"
23
 
24
- #: ../tinymce-templates.php:206
25
  msgid "Add New Template"
26
  msgstr "テンプレートの新規登録"
27
 
28
- #: ../tinymce-templates.php:207
29
  msgid "Edit Template"
30
  msgstr "テンプレートを編集"
31
 
32
- #: ../tinymce-templates.php:208
33
  msgid "Add New"
34
  msgstr "新規追加"
35
 
36
- #: ../tinymce-templates.php:209
37
  msgid "New Template"
38
  msgstr "新しいテンプレート"
39
 
40
- #: ../tinymce-templates.php:210
41
  msgid "View Template"
42
  msgstr "テンプレートを表示"
43
 
44
- #: ../tinymce-templates.php:211
45
  msgid "No templatess found."
46
  msgstr "テンプレートが見つかりませんでした。"
47
 
48
- #: ../tinymce-templates.php:213
49
  msgid "No templates found in Trash."
50
  msgstr "ゴミ箱内にテンプレートが見つかりませんでした。"
51
 
52
- #: ../tinymce-templates.php:216
53
  msgid "Search Templates"
54
  msgstr "テンプレートを検索"
55
 
56
- #: ../tinymce-templates.php:244
57
  msgid "Share"
58
  msgstr "共有"
59
 
60
- #: ../tinymce-templates.php:252
61
  msgid "Translators"
62
  msgstr "翻訳者"
63
 
64
- #: ../tinymce-templates.php:291
 
 
 
 
 
 
 
 
 
 
 
 
65
  msgid "Private"
66
  msgstr "個人"
67
 
68
- #: ../tinymce-templates.php:293 ../tinymce-templates.php:295
69
- msgid "Shared"
70
- msgstr "共有"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
  #~ msgid "Templates permanently deleted."
73
  #~ msgstr "テンプレートを削除しました。"
@@ -99,8 +136,5 @@ msgstr "共有"
99
  #~ msgid "Template Contents"
100
  #~ msgstr "テンプレート"
101
 
102
- #~ msgid "tinyMCE Templates"
103
- #~ msgstr "テンプレートを編集"
104
-
105
  #~ msgid "Edit"
106
  #~ msgstr "編集"
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: 2011-11-18 17:15:39+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"
15
+ "Language: ja\n"
16
  "MIME-Version: 1.0\n"
17
  "Content-Type: text/plain; charset=UTF-8\n"
18
  "Content-Transfer-Encoding: 8bit\n"
19
 
20
+ #: tinymce-templates.php:179 tinymce-templates.php:317
21
+ #: tinymce-templates.php:319
22
+ msgid "Shared"
23
+ msgstr "共有"
24
+
25
+ #: tinymce-templates.php:212 tinymce-templates.php:214
26
  msgid "Templates"
27
  msgstr "テンプレート"
28
 
29
+ #: tinymce-templates.php:215
30
  msgid "Add New Template"
31
  msgstr "テンプレートの新規登録"
32
 
33
+ #: tinymce-templates.php:216
34
  msgid "Edit Template"
35
  msgstr "テンプレートを編集"
36
 
37
+ #: tinymce-templates.php:217
38
  msgid "Add New"
39
  msgstr "新規追加"
40
 
41
+ #: tinymce-templates.php:218
42
  msgid "New Template"
43
  msgstr "新しいテンプレート"
44
 
45
+ #: tinymce-templates.php:219
46
  msgid "View Template"
47
  msgstr "テンプレートを表示"
48
 
49
+ #: tinymce-templates.php:220
50
  msgid "No templatess found."
51
  msgstr "テンプレートが見つかりませんでした。"
52
 
53
+ #: tinymce-templates.php:221
54
  msgid "No templates found in Trash."
55
  msgstr "ゴミ箱内にテンプレートが見つかりませんでした。"
56
 
57
+ #: tinymce-templates.php:225
58
  msgid "Search Templates"
59
  msgstr "テンプレートを検索"
60
 
61
+ #: tinymce-templates.php:253
62
  msgid "Share"
63
  msgstr "共有"
64
 
65
+ #: tinymce-templates.php:262
66
  msgid "Translators"
67
  msgstr "翻訳者"
68
 
69
+ #: tinymce-templates.php:271
70
+ msgid "Donate"
71
+ msgstr "寄付"
72
+
73
+ #: tinymce-templates.php:286
74
+ msgid ""
75
+ "It is hard to continue development and support for WordPress plugins without "
76
+ "contributions from users like you."
77
+ msgstr ""
78
+ "このプラグインの開発やメンテナンスを継続するにはみなさんのサポートが必要で"
79
+ "す。"
80
+
81
+ #: tinymce-templates.php:315
82
  msgid "Private"
83
  msgstr "個人"
84
 
85
+ #. Plugin Name of the plugin/theme
86
+ msgid "TinyMCE Templates"
87
+ msgstr "TinyMCE Templates"
88
+
89
+ #. Plugin URI of the plugin/theme
90
+ msgid "http://wpist.me/wp/tinymce-templates/"
91
+ msgstr "http://firegoby.theta.ne.jp/wp/tinymce_templates"
92
+
93
+ #. Description of the plugin/theme
94
+ msgid ""
95
+ "TinyMCE Templates plugin will enable to use HTML template on WordPress "
96
+ "Visual Editor."
97
+ msgstr ""
98
+ "WordPressのビジュアルエディターでテンプレートを利用できるようにするためのプラ"
99
+ "グインです。"
100
+
101
+ #. Author of the plugin/theme
102
+ msgid "Takayuki Miyauchi"
103
+ msgstr "Takayuki Miyauchi"
104
+
105
+ #. Author URI of the plugin/theme
106
+ msgid "http://wpist.me/"
107
+ msgstr "http://firegoby.theta.ne.jp/"
108
 
109
  #~ msgid "Templates permanently deleted."
110
  #~ msgstr "テンプレートを削除しました。"
136
  #~ msgid "Template Contents"
137
  #~ msgstr "テンプレート"
138
 
 
 
 
139
  #~ msgid "Edit"
140
  #~ msgstr "編集"
languages/tinymce_templates-nl_NL.mo CHANGED
Binary file
languages/tinymce_templates-nl_NL.po CHANGED
@@ -6,8 +6,8 @@
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: \n"
9
- "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2010-11-21 05:10+0900\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,95 +16,126 @@ msgstr ""
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
- #: ../includes/MceTemplatesAdmin.class.php:34
20
- #: ../includes/MceTemplatesAdmin.class.php:156
21
- #: ../tinymce_templates.php:103
22
- msgid "Edit Templates"
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  msgstr "Bewerk templates"
24
 
25
- #: ../includes/MceTemplatesAdmin.class.php:38
26
- msgid "Templates permanently deleted."
27
- msgstr "Templates permanent verwijderd."
28
-
29
- #: ../includes/MceTemplatesAdmin.class.php:46
30
- #: ../includes/MceTemplatesAdmin.class.php:55
31
- msgid "Name"
32
- msgstr "Naam"
33
-
34
- #: ../includes/MceTemplatesAdmin.class.php:47
35
- #: ../includes/MceTemplatesAdmin.class.php:56
36
- msgid "Description"
37
- msgstr "Omschrijving"
38
-
39
- #: ../includes/MceTemplatesAdmin.class.php:48
40
- #: ../includes/MceTemplatesAdmin.class.php:57
41
- msgid "Author"
42
- msgstr "Auteur"
43
-
44
- #: ../includes/MceTemplatesAdmin.class.php:49
45
- #: ../includes/MceTemplatesAdmin.class.php:58
46
- #: ../includes/MceTemplatesAdmin.class.php:169
47
- #: ../includes/MceTemplatesAdmin.class.php:172
48
- #: ../includes/MceTemplatesAdmin.class.php:175
 
 
 
 
49
  msgid "Share"
50
  msgstr "Delen"
51
 
52
- #: ../includes/MceTemplatesAdmin.class.php:94
53
- msgid "Shared"
54
- msgstr "Gedeeld"
 
 
 
 
 
 
 
 
 
 
55
 
56
- #: ../includes/MceTemplatesAdmin.class.php:96
57
- #: ../includes/MceTemplatesAdmin.class.php:173
58
- #: ../includes/MceTemplatesAdmin.class.php:176
59
  msgid "Private"
60
  msgstr "Privé"
61
 
62
- #: ../includes/MceTemplatesAdmin.class.php:103
63
- msgid "Delete checked items"
64
- msgstr "Verwijder geselecteerde items"
 
65
 
66
- #: ../includes/MceTemplatesAdmin.class.php:113
67
- msgid "Template saved."
68
- msgstr "Template opgeslagen"
69
 
70
- #: ../includes/MceTemplatesAdmin.class.php:124
71
- msgid "All entry must not be blank."
72
- msgstr "Alle invoervelden moeten gevuld zijn."
 
 
73
 
74
- #: ../includes/MceTemplatesAdmin.class.php:158
75
- #: ../tinymce_templates.php:111
76
- msgid "Add New Templates"
77
- msgstr "Nieuwe template toevoegen"
78
 
79
- #: ../includes/MceTemplatesAdmin.class.php:163
80
- msgid "Template Name"
81
- msgstr "Naam template"
82
 
83
- #: ../includes/MceTemplatesAdmin.class.php:165
84
- msgid "Template Description"
85
- msgstr "Omschrijving template"
86
 
87
- #: ../includes/MceTemplatesAdmin.class.php:167
88
- msgid "Template Contents"
89
- msgstr "Inhoud template"
90
 
91
- #: ../includes/MceTemplatesAdmin.class.php:180
92
- msgid "Save Template"
93
- msgstr "Template opslaan"
94
 
95
- #: ../tinymce_templates.php:94
96
- msgid "tinyMCE Templates"
97
- msgstr "tinyMCE Templates"
98
 
99
- #: ../tinymce_templates.php:95
100
- msgid "Templates"
101
- msgstr "Templates"
102
 
103
- #: ../tinymce_templates.php:104
104
- msgid "Edit"
105
- msgstr "Templates"
106
 
107
- #: ../tinymce_templates.php:112
108
- msgid "Add New"
109
- msgstr "Nieuwe template"
 
 
 
 
 
 
 
 
110
 
 
 
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: \n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
10
+ "POT-Creation-Date: 2011-11-18 17:15:39+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:179 tinymce-templates.php:317
20
+ #: tinymce-templates.php:319
21
+ msgid "Shared"
22
+ msgstr "Gedeeld"
23
+
24
+ #: tinymce-templates.php:212 tinymce-templates.php:214
25
+ msgid "Templates"
26
+ msgstr "Templates"
27
+
28
+ #: tinymce-templates.php:215
29
+ #, fuzzy
30
+ msgid "Add New Template"
31
+ msgstr "Nieuwe template toevoegen"
32
+
33
+ #: tinymce-templates.php:216
34
+ #, fuzzy
35
+ msgid "Edit Template"
36
  msgstr "Bewerk templates"
37
 
38
+ #: tinymce-templates.php:217
39
+ msgid "Add New"
40
+ msgstr "Nieuwe template"
41
+
42
+ #: tinymce-templates.php:218
43
+ #, fuzzy
44
+ msgid "New Template"
45
+ msgstr "Nieuwe template toevoegen"
46
+
47
+ #: tinymce-templates.php:219
48
+ #, fuzzy
49
+ msgid "View Template"
50
+ msgstr "Template opslaan"
51
+
52
+ #: tinymce-templates.php:220
53
+ msgid "No templatess found."
54
+ msgstr ""
55
+
56
+ #: tinymce-templates.php:221
57
+ msgid "No templates found in Trash."
58
+ msgstr ""
59
+
60
+ #: tinymce-templates.php:225
61
+ #, fuzzy
62
+ msgid "Search Templates"
63
+ msgstr "Template opslaan"
64
+
65
+ #: tinymce-templates.php:253
66
  msgid "Share"
67
  msgstr "Delen"
68
 
69
+ #: tinymce-templates.php:262
70
+ msgid "Translators"
71
+ msgstr ""
72
+
73
+ #: tinymce-templates.php:271
74
+ msgid "Donate"
75
+ msgstr ""
76
+
77
+ #: tinymce-templates.php:286
78
+ msgid ""
79
+ "It is hard to continue development and support for WordPress plugins without "
80
+ "contributions from users like you."
81
+ msgstr ""
82
 
83
+ #: tinymce-templates.php:315
 
 
84
  msgid "Private"
85
  msgstr "Privé"
86
 
87
+ #. Plugin Name of the plugin/theme
88
+ #, fuzzy
89
+ msgid "TinyMCE Templates"
90
+ msgstr "tinyMCE Templates"
91
 
92
+ #. Plugin URI of the plugin/theme
93
+ msgid "http://wpist.me/wp/tinymce-templates/"
94
+ msgstr ""
95
 
96
+ #. Description of the plugin/theme
97
+ msgid ""
98
+ "TinyMCE Templates plugin will enable to use HTML template on WordPress "
99
+ "Visual Editor."
100
+ msgstr ""
101
 
102
+ #. Author of the plugin/theme
103
+ msgid "Takayuki Miyauchi"
104
+ msgstr ""
 
105
 
106
+ #. Author URI of the plugin/theme
107
+ msgid "http://wpist.me/"
108
+ msgstr ""
109
 
110
+ #~ msgid "Templates permanently deleted."
111
+ #~ msgstr "Templates permanent verwijderd."
 
112
 
113
+ #~ msgid "Name"
114
+ #~ msgstr "Naam"
 
115
 
116
+ #~ msgid "Description"
117
+ #~ msgstr "Omschrijving"
 
118
 
119
+ #~ msgid "Author"
120
+ #~ msgstr "Auteur"
 
121
 
122
+ #~ msgid "Delete checked items"
123
+ #~ msgstr "Verwijder geselecteerde items"
 
124
 
125
+ #~ msgid "Template saved."
126
+ #~ msgstr "Template opgeslagen"
 
127
 
128
+ #~ msgid "All entry must not be blank."
129
+ #~ msgstr "Alle invoervelden moeten gevuld zijn."
130
+
131
+ #~ msgid "Template Name"
132
+ #~ msgstr "Naam template"
133
+
134
+ #~ msgid "Template Description"
135
+ #~ msgstr "Omschrijving template"
136
+
137
+ #~ msgid "Template Contents"
138
+ #~ msgstr "Inhoud template"
139
 
140
+ #~ msgid "Edit"
141
+ #~ msgstr "Templates"
languages/tinymce_templates-sv_SE.mo CHANGED
Binary file
languages/tinymce_templates-sv_SE.po CHANGED
@@ -5,8 +5,8 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: PACKAGE VERSION\n"
8
- "Report-Msgid-Bugs-To: \n"
9
- "POT-Creation-Date: 2010-11-21 05:10+0900\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,92 +14,126 @@ msgstr ""
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
 
17
- #: ../includes/MceTemplatesAdmin.class.php:34
18
- #: ../includes/MceTemplatesAdmin.class.php:156 ../tinymce_templates.php:103
19
- msgid "Edit Templates"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  msgstr "Redigera mallar"
21
 
22
- #: ../includes/MceTemplatesAdmin.class.php:38
23
- msgid "Templates permanently deleted."
24
- msgstr "Mallarna permanent borttagna."
25
-
26
- #: ../includes/MceTemplatesAdmin.class.php:46
27
- #: ../includes/MceTemplatesAdmin.class.php:55
28
- msgid "Name"
29
- msgstr "Namn"
30
-
31
- #: ../includes/MceTemplatesAdmin.class.php:47
32
- #: ../includes/MceTemplatesAdmin.class.php:56
33
- msgid "Description"
34
- msgstr "Beskrivning"
35
-
36
- #: ../includes/MceTemplatesAdmin.class.php:48
37
- #: ../includes/MceTemplatesAdmin.class.php:57
38
- msgid "Author"
39
- msgstr "Författare"
40
-
41
- #: ../includes/MceTemplatesAdmin.class.php:49
42
- #: ../includes/MceTemplatesAdmin.class.php:58
43
- #: ../includes/MceTemplatesAdmin.class.php:169
44
- #: ../includes/MceTemplatesAdmin.class.php:172
45
- #: ../includes/MceTemplatesAdmin.class.php:175
 
 
 
 
46
  msgid "Share"
47
  msgstr "Dela"
48
 
49
- #: ../includes/MceTemplatesAdmin.class.php:94
50
- msgid "Shared"
51
- msgstr "Delad"
52
 
53
- #: ../includes/MceTemplatesAdmin.class.php:96
54
- #: ../includes/MceTemplatesAdmin.class.php:173
55
- #: ../includes/MceTemplatesAdmin.class.php:176
 
 
 
 
 
 
 
 
56
  msgid "Private"
57
  msgstr "Privat"
58
 
59
- #: ../includes/MceTemplatesAdmin.class.php:103
60
- msgid "Delete checked items"
61
- msgstr "Ta bort markerade"
 
 
 
 
 
 
 
 
 
 
 
62
 
63
- #: ../includes/MceTemplatesAdmin.class.php:113
64
- msgid "Template saved."
65
- msgstr "Mall sparad."
66
 
67
- #: ../includes/MceTemplatesAdmin.class.php:124
68
- msgid "All entry must not be blank."
69
- msgstr "Alla fält måste fyllas i."
70
 
71
- #: ../includes/MceTemplatesAdmin.class.php:158 ../tinymce_templates.php:111
72
- msgid "Add New Templates"
73
- msgstr "Skapa ny mall"
74
 
75
- #: ../includes/MceTemplatesAdmin.class.php:163
76
- msgid "Template Name"
77
- msgstr "Namn"
78
 
79
- #: ../includes/MceTemplatesAdmin.class.php:165
80
- msgid "Template Description"
81
- msgstr "Beskrivning"
82
 
83
- #: ../includes/MceTemplatesAdmin.class.php:167
84
- msgid "Template Contents"
85
- msgstr "Innehåll"
86
 
87
- #: ../includes/MceTemplatesAdmin.class.php:180
88
- msgid "Save Template"
89
- msgstr "Spara mall"
90
 
91
- #: ../tinymce_templates.php:94
92
- msgid "tinyMCE Templates"
93
- msgstr "tinyMCE-mallar"
94
 
95
- #: ../tinymce_templates.php:95
96
- msgid "Templates"
97
- msgstr "Mallar"
98
 
99
- #: ../tinymce_templates.php:104
100
- msgid "Edit"
101
- msgstr "Redigera"
102
 
103
- #: ../tinymce_templates.php:112
104
- msgid "Add New"
105
- msgstr "Skapa ny"
 
 
 
 
 
5
  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: 2011-11-18 17:15:39+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:179 tinymce-templates.php:317
18
+ #: tinymce-templates.php:319
19
+ msgid "Shared"
20
+ msgstr "Delad"
21
+
22
+ #: tinymce-templates.php:212 tinymce-templates.php:214
23
+ msgid "Templates"
24
+ msgstr "Mallar"
25
+
26
+ #: tinymce-templates.php:215
27
+ #, fuzzy
28
+ msgid "Add New Template"
29
+ msgstr "Skapa ny mall"
30
+
31
+ #: tinymce-templates.php:216
32
+ #, fuzzy
33
+ msgid "Edit Template"
34
  msgstr "Redigera mallar"
35
 
36
+ #: tinymce-templates.php:217
37
+ msgid "Add New"
38
+ msgstr "Skapa ny"
39
+
40
+ #: tinymce-templates.php:218
41
+ #, fuzzy
42
+ msgid "New Template"
43
+ msgstr "Skapa ny mall"
44
+
45
+ #: tinymce-templates.php:219
46
+ #, fuzzy
47
+ msgid "View Template"
48
+ msgstr "Spara mall"
49
+
50
+ #: tinymce-templates.php:220
51
+ msgid "No templatess found."
52
+ msgstr ""
53
+
54
+ #: tinymce-templates.php:221
55
+ msgid "No templates found in Trash."
56
+ msgstr ""
57
+
58
+ #: tinymce-templates.php:225
59
+ #, fuzzy
60
+ msgid "Search Templates"
61
+ msgstr "Spara mall"
62
+
63
+ #: tinymce-templates.php:253
64
  msgid "Share"
65
  msgstr "Dela"
66
 
67
+ #: tinymce-templates.php:262
68
+ msgid "Translators"
69
+ msgstr ""
70
 
71
+ #: tinymce-templates.php:271
72
+ msgid "Donate"
73
+ msgstr ""
74
+
75
+ #: tinymce-templates.php:286
76
+ msgid ""
77
+ "It is hard to continue development and support for WordPress plugins without "
78
+ "contributions from users like you."
79
+ msgstr ""
80
+
81
+ #: tinymce-templates.php:315
82
  msgid "Private"
83
  msgstr "Privat"
84
 
85
+ #. Plugin Name of the plugin/theme
86
+ #, fuzzy
87
+ msgid "TinyMCE Templates"
88
+ msgstr "tinyMCE-mallar"
89
+
90
+ #. Plugin URI of the plugin/theme
91
+ msgid "http://wpist.me/wp/tinymce-templates/"
92
+ msgstr ""
93
+
94
+ #. Description of the plugin/theme
95
+ msgid ""
96
+ "TinyMCE Templates plugin will enable to use HTML template on WordPress "
97
+ "Visual Editor."
98
+ msgstr ""
99
 
100
+ #. Author of the plugin/theme
101
+ msgid "Takayuki Miyauchi"
102
+ msgstr ""
103
 
104
+ #. Author URI of the plugin/theme
105
+ msgid "http://wpist.me/"
106
+ msgstr ""
107
 
108
+ #~ msgid "Templates permanently deleted."
109
+ #~ msgstr "Mallarna permanent borttagna."
 
110
 
111
+ #~ msgid "Name"
112
+ #~ msgstr "Namn"
 
113
 
114
+ #~ msgid "Description"
115
+ #~ msgstr "Beskrivning"
 
116
 
117
+ #~ msgid "Author"
118
+ #~ msgstr "Författare"
 
119
 
120
+ #~ msgid "Delete checked items"
121
+ #~ msgstr "Ta bort markerade"
 
122
 
123
+ #~ msgid "Template saved."
124
+ #~ msgstr "Mall sparad."
 
125
 
126
+ #~ msgid "All entry must not be blank."
127
+ #~ msgstr "Alla fält måste fyllas i."
 
128
 
129
+ #~ msgid "Template Name"
130
+ #~ msgstr "Namn"
 
131
 
132
+ #~ msgid "Template Description"
133
+ #~ msgstr "Beskrivning"
134
+
135
+ #~ msgid "Template Contents"
136
+ #~ msgstr "Innehåll"
137
+
138
+ #~ msgid "Edit"
139
+ #~ msgstr "Redigera"
languages/tinymce_templates.pot CHANGED
@@ -1,70 +1,98 @@
1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the PACKAGE package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
- #
6
- #, fuzzy
7
  msgid ""
8
  msgstr ""
9
- "Project-Id-Version: PACKAGE VERSION\n"
10
- "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2011-11-12 03:24+0900\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"
15
- "Language: \n"
16
  "MIME-Version: 1.0\n"
17
- "Content-Type: text/plain; charset=CHARSET\n"
18
  "Content-Transfer-Encoding: 8bit\n"
 
 
 
19
 
20
- #: ../tinymce-templates.php:203 ../tinymce-templates.php:205
 
 
 
 
 
21
  msgid "Templates"
22
  msgstr ""
23
 
24
- #: ../tinymce-templates.php:206
25
  msgid "Add New Template"
26
  msgstr ""
27
 
28
- #: ../tinymce-templates.php:207
29
  msgid "Edit Template"
30
  msgstr ""
31
 
32
- #: ../tinymce-templates.php:208
33
  msgid "Add New"
34
  msgstr ""
35
 
36
- #: ../tinymce-templates.php:209
37
  msgid "New Template"
38
  msgstr ""
39
 
40
- #: ../tinymce-templates.php:210
41
  msgid "View Template"
42
  msgstr ""
43
 
44
- #: ../tinymce-templates.php:211
45
  msgid "No templatess found."
46
  msgstr ""
47
 
48
- #: ../tinymce-templates.php:213
49
  msgid "No templates found in Trash."
50
  msgstr ""
51
 
52
- #: ../tinymce-templates.php:216
53
  msgid "Search Templates"
54
  msgstr ""
55
 
56
- #: ../tinymce-templates.php:244
57
  msgid "Share"
58
  msgstr ""
59
 
60
- #: ../tinymce-templates.php:252
61
  msgid "Translators"
62
  msgstr ""
63
 
64
- #: ../tinymce-templates.php:291
 
 
 
 
 
 
 
 
 
 
65
  msgid "Private"
66
  msgstr ""
67
 
68
- #: ../tinymce-templates.php:293 ../tinymce-templates.php:295
69
- msgid "Shared"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  msgstr ""
1
+ # Copyright (C) 2010 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 2.4.0\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/tinymce-templates\n"
7
+ "POT-Creation-Date: 2011-11-18 17:15:39+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: 2010-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:179 tinymce-templates.php:317
16
+ #: tinymce-templates.php:319
17
+ msgid "Shared"
18
+ msgstr ""
19
+
20
+ #: tinymce-templates.php:212 tinymce-templates.php:214
21
  msgid "Templates"
22
  msgstr ""
23
 
24
+ #: tinymce-templates.php:215
25
  msgid "Add New Template"
26
  msgstr ""
27
 
28
+ #: tinymce-templates.php:216
29
  msgid "Edit Template"
30
  msgstr ""
31
 
32
+ #: tinymce-templates.php:217
33
  msgid "Add New"
34
  msgstr ""
35
 
36
+ #: tinymce-templates.php:218
37
  msgid "New Template"
38
  msgstr ""
39
 
40
+ #: tinymce-templates.php:219
41
  msgid "View Template"
42
  msgstr ""
43
 
44
+ #: tinymce-templates.php:220
45
  msgid "No templatess found."
46
  msgstr ""
47
 
48
+ #: tinymce-templates.php:221
49
  msgid "No templates found in Trash."
50
  msgstr ""
51
 
52
+ #: tinymce-templates.php:225
53
  msgid "Search Templates"
54
  msgstr ""
55
 
56
+ #: tinymce-templates.php:253
57
  msgid "Share"
58
  msgstr ""
59
 
60
+ #: tinymce-templates.php:262
61
  msgid "Translators"
62
  msgstr ""
63
 
64
+ #: tinymce-templates.php:271
65
+ msgid "Donate"
66
+ msgstr ""
67
+
68
+ #: tinymce-templates.php:286
69
+ msgid ""
70
+ "It is hard to continue development and support for WordPress plugins without "
71
+ "contributions from users like you."
72
+ msgstr ""
73
+
74
+ #: tinymce-templates.php:315
75
  msgid "Private"
76
  msgstr ""
77
 
78
+ #. Plugin Name of the plugin/theme
79
+ msgid "TinyMCE Templates"
80
+ msgstr ""
81
+
82
+ #. Plugin URI of the plugin/theme
83
+ msgid "http://wpist.me/wp/tinymce-templates/"
84
+ msgstr ""
85
+
86
+ #. Description of the plugin/theme
87
+ msgid ""
88
+ "TinyMCE Templates plugin will enable to use HTML template on WordPress "
89
+ "Visual Editor."
90
+ msgstr ""
91
+
92
+ #. Author of the plugin/theme
93
+ msgid "Takayuki Miyauchi"
94
+ msgstr ""
95
+
96
+ #. Author URI of the plugin/theme
97
+ msgid "http://wpist.me/"
98
  msgstr ""
mce_plugins/plugins/template/editor_plugin.js CHANGED
@@ -1 +1 @@
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",400),height:b.getParam("template_popup_height",300),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)})();
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/plugins/template/editor_plugin_src.js CHANGED
@@ -1,8 +1,11 @@
1
  /**
2
- * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
3
  *
4
- * @author Moxiecode
5
- * @copyright Copyright 2004-2008, Moxiecode Systems AB, All rights reserved.
 
 
 
6
  */
7
 
8
  (function() {
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() {
mce_plugins/plugins/template/js/template.js CHANGED
@@ -42,7 +42,7 @@ var TemplateDialog = {
42
 
43
  if (e) {
44
  e.style.height = Math.abs(h) + 'px';
45
- e.style.width = Math.abs(w - 5) + 'px';
46
  }
47
  },
48
 
42
 
43
  if (e) {
44
  e.style.height = Math.abs(h) + 'px';
45
+ e.style.width = Math.abs(w - 5) + 'px';
46
  }
47
  },
48
 
mce_plugins/plugins/template/langs/en_dlg.js CHANGED
@@ -1,15 +1 @@
1
- tinyMCE.addI18n('en.template_dlg',{
2
- title:"Templates",
3
- label:"Template",
4
- desc_label:"Description",
5
- desc:"Insert predefined template content",
6
- select:"Select a 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
- });
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/plugins/template/langs/langs.php DELETED
@@ -1,6 +0,0 @@
1
- <?php
2
-
3
- $path = dirname(__FILE__).'/'.$mce_locale.'_dlg.js';
4
- $strings = file_get_contents($path);
5
-
6
- ?>
 
 
 
 
 
 
mce_plugins/plugins/template/template.htm CHANGED
@@ -23,15 +23,8 @@
23
  </div>
24
 
25
  <div class="mceActionPanel">
26
- <div style="float: left">
27
- <input type="submit" id="insert" name="insert" value="{#insert}" />
28
- </div>
29
-
30
- <div style="float: right">
31
- <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
32
- </div>
33
-
34
- <br style="clear:both" />
35
  </div>
36
  </form>
37
  </body>
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>
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === TinyMCE Templates ===
2
  Contributors: miyauchi
3
- Donate link: https://www.paypal.com/jp/cgi-bin/webscr?cmd=_flow&SESSION=vVwWrw6VVHF22np9_GU0-V40_AQGlVgFMJBcwaUbLfZPzirnfNd92OY6dV0&dispatch=50a222a57771920b6a3d7b606239e4d529b525e0b7e69bf0224adecfb0124e9b61f737ba21b0819838956b846fa597911f234fb937456ea7
4
  Tags: tinymce, Visual Editor, template
5
  Requires at least: 3.0
6
  Tested up to: 3.2
7
- Stable tag: 2.3.0
8
 
9
  TinyMCE Template plugin will enable to use HTML template on WordPress Visual Editor.
10
  You can edit and share this template with WordPress users.
@@ -54,7 +54,9 @@ You can send your own language pack to me.
54
 
55
  == Changelog ==
56
 
57
- * http://wpist.me/tag/tinymce-templates/
 
 
58
 
59
  == Credits ==
60
 
1
  === TinyMCE Templates ===
2
  Contributors: miyauchi
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CTUKCMFHF79K2
4
  Tags: tinymce, Visual Editor, template
5
  Requires at least: 3.0
6
  Tested up to: 3.2
7
+ Stable tag: 2.4.0
8
 
9
  TinyMCE Template plugin will enable to use HTML template on WordPress Visual Editor.
10
  You can edit and share this template with WordPress users.
54
 
55
  == Changelog ==
56
 
57
+ * [2.4.0](http://wpist.me/2011/11/14/tinymce-templates-2-4-0/)
58
+ * [2.3.0](http://wpist.me/2011/11/14/tinymce-templates-2-3-0/)
59
+ * [2.2.0](http://wpist.me/2011/11/13/tinymce-templates-2-2-0/)
60
 
61
  == Credits ==
62
 
tinymce-templates.php CHANGED
@@ -2,10 +2,12 @@
2
  /*
3
  Plugin Name: TinyMCE Templates
4
  Plugin URI: http://wpist.me/wp/tinymce-templates/
5
- Description: Manage & Add Tiny MCE template.
6
  Author: Takayuki Miyauchi
7
- Version: 2.3.0
8
  Author URI: http://wpist.me/
 
 
9
  */
10
 
11
  /*
@@ -30,15 +32,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30
  THE SOFTWARE.
31
  */
32
 
33
- require_once(dirname(__FILE__).'/includes/class-addrewriterules.php');
34
  require_once(dirname(__FILE__).'/includes/mceplugins.class.php');
35
 
36
- define('TINYMCE_TEMPLATES_DOMAIN', 'tinymce_templates');
37
-
38
  new tinymceTemplates();
39
 
40
-
41
  class tinymceTemplates {
 
42
  private $db_version = '2';
43
  private $post_type = 'tinymcetemplates';
44
  private $meta_param = '_tinymcetemplates-share';
@@ -77,18 +76,13 @@ private $translators = array(
77
 
78
  function __construct()
79
  {
80
- register_activation_hook(__FILE__, array(&$this, 'activation'));
81
  $this->base_url = WP_PLUGIN_URL.'/'.dirname(plugin_basename(__FILE__));
 
82
  add_action('plugins_loaded', array(&$this, 'plugins_loaded'));
83
- add_action('admin_menu', array(&$this, 'admin_menu'));
84
  add_action('save_post', array(&$this, 'save_post'));
85
  add_filter('mce_css', array(&$this, 'mce_css'));
86
  add_action('admin_head', array(&$this, 'admin_head'));
87
- new WP_AddRewriteRules(
88
- 'wp-admin/mce_templates.js$',
89
- 'mce_templates',
90
- array(&$this, 'get_templates')
91
- );
92
  }
93
 
94
  public function activation()
@@ -120,14 +114,12 @@ public function activation()
120
  $sql = 'drop table '.$wpdb->prefix.$this->table;
121
  $wpdb->query($sql);
122
  }
123
- // do flush rewrite rules
124
- flush_rewrite_rules();
125
  }
126
 
127
  public function plugins_loaded()
128
  {
129
  load_plugin_textdomain(
130
- TINYMCE_TEMPLATES_DOMAIN,
131
  false,
132
  dirname(plugin_basename(__FILE__)).'/languages'
133
  );
@@ -136,42 +128,57 @@ public function plugins_loaded()
136
 
137
  public function mce_css($css)
138
  {
139
- $files = preg_split("/,/", $css);
140
  $files[] = $this->base_url.'/editor.css';
141
- $files = array_map('trim', $files);
142
  return join(",", $files);
143
  }
144
 
145
  public function admin_head(){
146
  $plugin = $this->base_url.'/mce_plugins/plugins/template/editor_plugin.js';
147
- $lang = dirname(__FILE__).'/mce_plugins/plugins/template/langs/langs.php';
148
- $url = home_url();
149
- $list_url = add_query_arg('mce_templates', 1, home_url('/'));
150
- $inits['template_external_list_url'] = $list_url;
151
- new mcePlugins(
 
 
 
 
 
 
 
152
  'template',
153
  $plugin,
154
- $lang,
155
  array(&$this, 'addButton'),
156
  $inits
157
  );
 
158
  if (get_post_type() === $this->post_type) {
159
  if (get_option("tinymce_templates_db_version") != $this->db_version) {
160
  $this->activation();
161
  }
162
  global $hook_suffix;
163
  if ($hook_suffix === 'post.php' || $hook_suffix === 'post-new.php') {
 
164
  if (get_option("tinymce_templates_db_version") != $this->db_version) {
165
  $this->activation();
166
  }
167
  echo '<style>#visibility{display:none;}</style>';
 
 
168
  }
169
  }
170
  }
171
 
172
- public function admin_menu()
173
  {
174
- remove_meta_box('slugdiv', $this->post_type, 'normal');
 
 
 
 
 
175
  }
176
 
177
  public function save_post($id)
@@ -202,20 +209,20 @@ public function addButton($buttons = array())
202
  private function addCustomPostType()
203
  {
204
  $args = array(
205
- 'label' => __('Templates', TINYMCE_TEMPLATES_DOMAIN),
206
  'labels' => array(
207
- 'singular_name' => __('Templates', TINYMCE_TEMPLATES_DOMAIN),
208
- 'add_new_item' => __('Add New Template', TINYMCE_TEMPLATES_DOMAIN),
209
- 'edit_item' => __('Edit Template', TINYMCE_TEMPLATES_DOMAIN),
210
- 'add_new' => __('Add New', TINYMCE_TEMPLATES_DOMAIN),
211
- 'new_item' => __('New Template', TINYMCE_TEMPLATES_DOMAIN),
212
- 'view_item' => __('View Template', TINYMCE_TEMPLATES_DOMAIN),
213
- 'not_found' => __('No templatess found.', TINYMCE_TEMPLATES_DOMAIN),
214
  'not_found_in_trash' => __(
215
  'No templates found in Trash.',
216
- TINYMCE_TEMPLATES_DOMAIN
217
  ),
218
- 'search_items' => __('Search Templates', TINYMCE_TEMPLATES_DOMAIN),
219
  ),
220
  'public' => false,
221
  'publicly_queryable' => false,
@@ -243,20 +250,40 @@ public function addMetaBox()
243
  {
244
  add_meta_box(
245
  'tinymce_templates-share',
246
- __('Share', TINYMCE_TEMPLATES_DOMAIN),
247
  array(&$this, 'sharedMetaBox'),
248
  $this->post_type,
249
  'side',
250
  'low'
251
  );
 
252
  add_meta_box(
253
  'tinymce_templates-translators',
254
- __('Translators', TINYMCE_TEMPLATES_DOMAIN),
255
  array(&$this, 'translatorsMetaBox'),
256
  $this->post_type,
257
  'side',
258
  'low'
259
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
  }
261
 
262
  public function translatorsMetaBox($post, $box)
@@ -279,80 +306,81 @@ public function translatorsMetaBox($post, $box)
279
  }
280
  }
281
  echo '</ul>';
282
- echo '<p>';
283
- echo '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CU8N3N2Q9DA8U">';
284
- echo '<img src="'.$this->base_url.'/paypal.png">';
285
- echo '</a>';
286
- echo '</p>';
287
  }
288
 
289
  public function sharedMetaBox($post, $box)
290
  {
291
  $share = get_post_meta($post->ID, $this->meta_param, true);
292
  echo '<select name="'.$this->meta_param.'">';
293
- echo '<option value="0">'.__('Private', TINYMCE_TEMPLATES_DOMAIN).'</option>';
294
  if ($share) {
295
- echo '<option value="1" selected="selected">'.__('Shared', TINYMCE_TEMPLATES_DOMAIN).'</option>';
296
  } else {
297
- echo '<option value="1">'.__('Shared', TINYMCE_TEMPLATES_DOMAIN).'</option>';
298
  }
299
  echo '</select>';
300
  }
301
 
302
- public function get_templates(){
303
- if (is_user_logged_in() && get_query_var('mce_templates')) {
304
- $u = wp_get_current_user();
305
- header( 'Content-Type: application/x-javascript; charset=UTF-8' );
306
- if (isset($_GET['template_id']) && intval($_GET['template_id'])) {
307
- $p = get_post($_GET['template_id']);
308
- if ($p->post_status === 'publish') {
309
- if ($u->ID === $p->post_author) {
 
 
 
 
 
 
 
 
 
 
 
310
  echo apply_filters(
311
  "tinymce_templates",
312
  wpautop($p->post_content),
313
  stripslashes($p->post_content)
314
  );
315
- } else {
316
- $share = get_post_meta($p->ID, $this->meta_param, true);
317
- if ($share) {
318
- echo apply_filters(
319
- "tinymce_templates",
320
- wpautop($p->post_content),
321
- stripslashes($p->post_content)
322
- );
323
- }
324
  }
325
  }
326
- exit;
327
  }
328
- $p = array(
329
- 'post_status' => 'publish',
330
- 'post_type' => $this->post_type,
331
- 'orderby' => 'date',
332
- 'order' => 'DESC',
333
- 'numberposts' => -1,
334
- );
335
- $posts = get_posts($p);
336
- echo 'var tinyMCETemplateList = [';
337
- $arr = array();
338
- $list_url = add_query_arg('mce_templates', 1, home_url('/'));
339
- foreach ($posts as $p) {
340
- if ($u->ID !== $p->post_author) {
341
- $share = get_post_meta($p->ID, $this->meta_param, true);
342
- if (!$share) {
343
- continue;
344
- }
 
 
 
 
 
 
345
  }
346
- $ID = esc_html($p->ID);
347
- $name = esc_html($p->post_title);
348
- $desc = esc_html($p->post_excerpt);
349
- $url = add_query_arg('template_id', $ID, $list_url);
350
- $arr[] = "[\"{$name}\", \"{$url}\", \"{$desc}\"]";
351
  }
352
- echo join(',', $arr);
353
- echo ']';
354
- exit;
 
 
355
  }
 
 
356
  }
357
 
358
  } // end class tinymceTemplates
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: 2.4.0
8
  Author URI: http://wpist.me/
9
+ Domain Path: /languages
10
+ Text Domain: tinymce_templates
11
  */
12
 
13
  /*
32
  THE SOFTWARE.
33
  */
34
 
 
35
  require_once(dirname(__FILE__).'/includes/mceplugins.class.php');
36
 
 
 
37
  new tinymceTemplates();
38
 
 
39
  class tinymceTemplates {
40
+
41
  private $db_version = '2';
42
  private $post_type = 'tinymcetemplates';
43
  private $meta_param = '_tinymcetemplates-share';
76
 
77
  function __construct()
78
  {
 
79
  $this->base_url = WP_PLUGIN_URL.'/'.dirname(plugin_basename(__FILE__));
80
+ register_activation_hook(__FILE__, array(&$this, 'activation'));
81
  add_action('plugins_loaded', array(&$this, 'plugins_loaded'));
 
82
  add_action('save_post', array(&$this, 'save_post'));
83
  add_filter('mce_css', array(&$this, 'mce_css'));
84
  add_action('admin_head', array(&$this, 'admin_head'));
85
+ add_action('wp_ajax_tinymce_templates', array(&$this, 'wp_ajax'));
 
 
 
 
86
  }
87
 
88
  public function activation()
114
  $sql = 'drop table '.$wpdb->prefix.$this->table;
115
  $wpdb->query($sql);
116
  }
 
 
117
  }
118
 
119
  public function plugins_loaded()
120
  {
121
  load_plugin_textdomain(
122
+ 'tinymce_templates',
123
  false,
124
  dirname(plugin_basename(__FILE__)).'/languages'
125
  );
128
 
129
  public function mce_css($css)
130
  {
131
+ $files = preg_split("/,/", $css);
132
  $files[] = $this->base_url.'/editor.css';
133
+ $files = array_map('trim', $files);
134
  return join(",", $files);
135
  }
136
 
137
  public function admin_head(){
138
  $plugin = $this->base_url.'/mce_plugins/plugins/template/editor_plugin.js';
139
+
140
+ $url = admin_url('admin-ajax.php');
141
+ $url = add_query_arg('action', 'tinymce_templates', $url);
142
+ $url = add_query_arg('action', 'tinymce_templates', $url);
143
+ $nonce = wp_create_nonce("tinymce_templates");
144
+ $url = add_query_arg('nonce', $nonce, $url);
145
+
146
+ $inits['template_external_list_url'] = $url;
147
+ $inits['template_popup_width'] = 600;
148
+ $inits['template_popup_height'] = 500;
149
+
150
+ new tinymcePlugins(
151
  'template',
152
  $plugin,
 
153
  array(&$this, 'addButton'),
154
  $inits
155
  );
156
+
157
  if (get_post_type() === $this->post_type) {
158
  if (get_option("tinymce_templates_db_version") != $this->db_version) {
159
  $this->activation();
160
  }
161
  global $hook_suffix;
162
  if ($hook_suffix === 'post.php' || $hook_suffix === 'post-new.php') {
163
+ remove_meta_box('slugdiv', $this->post_type, 'normal');
164
  if (get_option("tinymce_templates_db_version") != $this->db_version) {
165
  $this->activation();
166
  }
167
  echo '<style>#visibility{display:none;}</style>';
168
+ } elseif ($hook_suffix === 'edit.php') {
169
+ add_filter("display_post_states", array(&$this, "display_post_states"));
170
  }
171
  }
172
  }
173
 
174
+ public function display_post_states($stat)
175
  {
176
+ global $post;
177
+ $share = get_post_meta($post->ID, $this->meta_param, true);
178
+ if ($share) {
179
+ $stat[] = __('Shared', 'tinymce_templates');
180
+ }
181
+ return $stat;
182
  }
183
 
184
  public function save_post($id)
209
  private function addCustomPostType()
210
  {
211
  $args = array(
212
+ 'label' => __('Templates', 'tinymce_templates'),
213
  'labels' => array(
214
+ 'singular_name' => __('Templates', 'tinymce_templates'),
215
+ 'add_new_item' => __('Add New Template', 'tinymce_templates'),
216
+ 'edit_item' => __('Edit Template', 'tinymce_templates'),
217
+ 'add_new' => __('Add New', 'tinymce_templates'),
218
+ 'new_item' => __('New Template', 'tinymce_templates'),
219
+ 'view_item' => __('View Template', 'tinymce_templates'),
220
+ 'not_found' => __('No templatess found.', 'tinymce_templates'),
221
  'not_found_in_trash' => __(
222
  'No templates found in Trash.',
223
+ 'tinymce_templates'
224
  ),
225
+ 'search_items' => __('Search Templates', 'tinymce_templates'),
226
  ),
227
  'public' => false,
228
  'publicly_queryable' => false,
250
  {
251
  add_meta_box(
252
  'tinymce_templates-share',
253
+ __('Share', 'tinymce_templates'),
254
  array(&$this, 'sharedMetaBox'),
255
  $this->post_type,
256
  'side',
257
  'low'
258
  );
259
+
260
  add_meta_box(
261
  'tinymce_templates-translators',
262
+ __('Translators', 'tinymce_templates'),
263
  array(&$this, 'translatorsMetaBox'),
264
  $this->post_type,
265
  'side',
266
  'low'
267
  );
268
+
269
+ add_meta_box(
270
+ 'tinymce_templates-donate',
271
+ __('Donate', 'tinymce_templates'),
272
+ array(&$this, 'donateMetaBox'),
273
+ $this->post_type,
274
+ 'side',
275
+ 'low'
276
+ );
277
+ }
278
+
279
+ public function donateMetaBox($post, $box)
280
+ {
281
+ echo '<p>';
282
+ echo '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CU8N3N2Q9DA8U">';
283
+ echo '<img src="'.$this->base_url.'/img/paypal.png">';
284
+ echo '</a>';
285
+ echo '</p>';
286
+ echo '<p>'.__('It is hard to continue development and support for WordPress plugins without contributions from users like you.', 'tinymce_templates').'</p>';
287
  }
288
 
289
  public function translatorsMetaBox($post, $box)
306
  }
307
  }
308
  echo '</ul>';
 
 
 
 
 
309
  }
310
 
311
  public function sharedMetaBox($post, $box)
312
  {
313
  $share = get_post_meta($post->ID, $this->meta_param, true);
314
  echo '<select name="'.$this->meta_param.'">';
315
+ echo '<option value="0">'.__('Private', 'tinymce_templates').'</option>';
316
  if ($share) {
317
+ echo '<option value="1" selected="selected">'.__('Shared', 'tinymce_templates').'</option>';
318
  } else {
319
+ echo '<option value="1">'.__('Shared', 'tinymce_templates').'</option>';
320
  }
321
  echo '</select>';
322
  }
323
 
324
+ public function wp_ajax(){
325
+ nocache_headers();
326
+ if (!wp_verify_nonce($_GET['nonce'], 'tinymce_templates')) {
327
+ return;
328
+ }
329
+ $u = wp_get_current_user();
330
+ header( 'Content-Type: application/x-javascript; charset=UTF-8' );
331
+ if (isset($_GET['template_id']) && intval($_GET['template_id'])) {
332
+ $p = get_post($_GET['template_id']);
333
+ if ($p->post_status === 'publish') {
334
+ if ($u->ID === $p->post_author) {
335
+ echo apply_filters(
336
+ "tinymce_templates",
337
+ wpautop($p->post_content),
338
+ stripslashes($p->post_content)
339
+ );
340
+ } else {
341
+ $share = get_post_meta($p->ID, $this->meta_param, true);
342
+ if ($share) {
343
  echo apply_filters(
344
  "tinymce_templates",
345
  wpautop($p->post_content),
346
  stripslashes($p->post_content)
347
  );
 
 
 
 
 
 
 
 
 
348
  }
349
  }
 
350
  }
351
+ exit;
352
+ }
353
+ $p = array(
354
+ 'post_status' => 'publish',
355
+ 'post_type' => $this->post_type,
356
+ 'orderby' => 'date',
357
+ 'order' => 'DESC',
358
+ 'numberposts' => -1,
359
+ );
360
+ $posts = get_posts($p);
361
+
362
+ $url = admin_url('admin-ajax.php');
363
+ $url = add_query_arg('action', 'tinymce_templates', $url);
364
+ $url = add_query_arg('action', 'tinymce_templates', $url);
365
+ $nonce = wp_create_nonce("tinymce_templates");
366
+ $url = add_query_arg('nonce', $nonce, $url);
367
+
368
+ $arr = array();
369
+ foreach ($posts as $p) {
370
+ if ($u->ID !== $p->post_author) {
371
+ $share = get_post_meta($p->ID, $this->meta_param, true);
372
+ if (!$share) {
373
+ continue;
374
  }
 
 
 
 
 
375
  }
376
+ $ID = intval($p->ID);
377
+ $name = esc_html($p->post_title);
378
+ $desc = esc_html($p->post_excerpt);
379
+ $url = add_query_arg('template_id', $ID, $url);
380
+ $arr[] = array($name, $url, $desc);
381
  }
382
+ echo 'var tinyMCETemplateList = '.json_encode($arr);
383
+ exit;
384
  }
385
 
386
  } // end class tinymceTemplates