TinyMCE Templates - Version 3.0.1

Version Description

Download this release

Release Info

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

Code changes from version 3.0.0 to 3.0.1

includes/class-addrewriterules.php DELETED
@@ -1,57 +0,0 @@
1
- <?php
2
-
3
- if (!class_exists('WP_AddRewriteRules')):
4
- class WP_AddRewriteRules{
5
- private $rule = null;
6
- private $query = null;
7
- private $callback = null;
8
-
9
- function __construct($rule, $query, $callback)
10
- {
11
- $this->rule = $rule;
12
- $this->query = $query;
13
- $this->callback = $callback;
14
- add_filter('query_vars', array(&$this, 'query_vars'));
15
- add_action(
16
- 'generate_rewrite_rules',
17
- array(&$this, 'generate_rewrite_rules')
18
- );
19
- add_action('wp', array(&$this, 'wp'));
20
- }
21
-
22
- public function generate_rewrite_rules($wp_rewrite)
23
- {
24
- $new_rules[$this->rule] = $wp_rewrite->index . '?' . (
25
- strpos($this->query, '=') === FALSE
26
- ? $this->query . '=1'
27
- : $this->query
28
- );
29
- $wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
30
- }
31
-
32
- private function parse_query($query)
33
- {
34
- $query = explode('&', $query);
35
- $query = explode(
36
- '=',
37
- is_array($query) && isset($query[0]) ? $query[0] : $query
38
- );
39
- return (is_array($query) && isset($query[0]) ? $query[0] : $query);
40
- }
41
-
42
- public function query_vars($vars)
43
- {
44
- $vars[] = $this->parse_query($this->query);
45
- return $vars;
46
- }
47
-
48
- public function wp()
49
- {
50
- if (get_query_var($this->parse_query($this->query))) {
51
- call_user_func($this->callback);
52
- }
53
- }
54
- }
55
- endif;
56
-
57
- // eol
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/tinymce_templates-fil_PH.mo ADDED
Binary file
languages/tinymce_templates-fil_PH.po ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 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: 2012-05-24 17:44:29+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"
14
+ "Language: de\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=UTF-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+ "X-Generator: Poedit 1.5.4\n"
19
+
20
+ #: tinymce-templates.php:106 tinymce-templates.php:117
21
+ #: tinymce-templates.php:128
22
+ msgid "Copy to a new template"
23
+ msgstr "Kopyahin sa bagong padron"
24
+
25
+ #: tinymce-templates.php:228 tinymce-templates.php:366
26
+ #: tinymce-templates.php:368
27
+ msgid "Shared"
28
+ msgstr "Naibahagi na"
29
+
30
+ #: tinymce-templates.php:261 tinymce-templates.php:263
31
+ msgid "Templates"
32
+ msgstr "Mga Padron "
33
+
34
+ #: tinymce-templates.php:264
35
+ msgid "Add New Template"
36
+ msgstr "Magdagdag ng Bagong Padron"
37
+
38
+ #: tinymce-templates.php:265
39
+ msgid "Edit Template"
40
+ msgstr "Baguhin ang Padron"
41
+
42
+ #: tinymce-templates.php:266
43
+ msgid "Add New"
44
+ msgstr "Magdagdag ng bago"
45
+
46
+ #: tinymce-templates.php:267
47
+ msgid "New Template"
48
+ msgstr "Bagong Padron"
49
+
50
+ #: tinymce-templates.php:268
51
+ msgid "View Template"
52
+ msgstr "Tingnan ang Padron"
53
+
54
+ #: tinymce-templates.php:269
55
+ msgid "No templatess found."
56
+ msgstr "Walang natagpuang padron."
57
+
58
+ #: tinymce-templates.php:270
59
+ msgid "No templates found in Trash."
60
+ msgstr "Walang natagpuang padron sa Basura."
61
+
62
+ #: tinymce-templates.php:274
63
+ msgid "Search Templates"
64
+ msgstr "Hanapin ang mga Padron"
65
+
66
+ #: tinymce-templates.php:302
67
+ msgid "Share"
68
+ msgstr "Magbahagi"
69
+
70
+ #: tinymce-templates.php:311
71
+ msgid "Translators"
72
+ msgstr "Tagasalin"
73
+
74
+ #: tinymce-templates.php:320
75
+ msgid "Donate"
76
+ msgstr "Magbigay"
77
+
78
+ #: tinymce-templates.php:335
79
+ msgid ""
80
+ "It is hard to continue development and support for WordPress plugins without "
81
+ "contributions from users like you."
82
+ msgstr ""
83
+ "Mahirap magpatuloy sa pagbuo at suporta para sa WordPress plugins nang "
84
+ "walang kontribusyon mula sa mga gumagamit tulay mo."
85
+
86
+ #: tinymce-templates.php:364
87
+ msgid "Private"
88
+ msgstr "Pribado"
89
+
90
+ #. Plugin Name of the plugin/theme
91
+ msgid "TinyMCE Templates"
92
+ msgstr "TinyMCE-mga Padron"
93
+
94
+ #. Plugin URI of the plugin/theme
95
+ msgid "http://wpist.me/wp/tinymce-templates/"
96
+ msgstr "http://wpist.me/wp/tinymce-templates/"
97
+
98
+ #. Description of the plugin/theme
99
+ msgid ""
100
+ "TinyMCE Templates plugin will enable to use HTML template on WordPress "
101
+ "Visual Editor."
102
+ msgstr ""
103
+ "Ang TinyMCE Templates ay papaganahin ang padron na HTML para magamit sa "
104
+ "WordPress Visual Editor."
105
+
106
+ #. Author of the plugin/theme
107
+ msgid "Takayuki Miyauchi"
108
+ msgstr "Takayuki Miyauchi"
109
+
110
+ #. Author URI of the plugin/theme
111
+ msgid "http://wpist.me/"
112
+ msgstr "http://wpist.me/"
113
+
114
+ #~ msgid "Templates permanently deleted."
115
+ #~ msgstr "Vorlagen dauerhaft entfernt."
116
+
117
+ #~ msgid "Name"
118
+ #~ msgstr "Name"
119
+
120
+ #~ msgid "Description"
121
+ #~ msgstr "Beschreibung"
122
+
123
+ #~ msgid "Author"
124
+ #~ msgstr "Autor"
125
+
126
+ #~ msgid "Delete checked items"
127
+ #~ msgstr "Ausgewählte Elemente entfernen"
128
+
129
+ #~ msgid "Template saved."
130
+ #~ msgstr "Vorlagen gespeichert."
131
+
132
+ #~ msgid "All entry must not be blank."
133
+ #~ msgstr "Bitte füllen Sie alle Felder aus."
134
+
135
+ #~ msgid "Template Name"
136
+ #~ msgstr "Name der Vorlage"
137
+
138
+ #~ msgid "Template Description"
139
+ #~ msgstr "Beschreibung der Vorlage"
140
+
141
+ #~ msgid "Template Contents"
142
+ #~ msgstr "Inhalt der Vorlage"
143
+
144
+ #~ msgid "Edit"
145
+ #~ msgstr "Bearbeiten"
paypal.png DELETED
Binary file
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: tinymce, Visual Editor, template
5
  Requires at least: 3.5
6
  Tested up to: 3.5
7
- Stable tag: 3.0.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.
@@ -38,6 +38,7 @@ If you will install this plugin, You will be very easy to edit posts and pages.
38
  * Dutch(nl_NL) - [Frank Groeneveld](http://ivaldi.nl/)
39
  * French(fr_FR) - [HAROUY Jean-Michel](http://www.laposte.net/)
40
  * Brazilian Portuguese(pt_BR) - [Rafael Funchal](http://www.rafaelfunchal.com.br/)
 
41
 
42
  You can send your own language pack to me.
43
 
4
  Tags: tinymce, Visual Editor, template
5
  Requires at least: 3.5
6
  Tested up to: 3.5
7
+ Stable tag: 3.0.1
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.
38
  * Dutch(nl_NL) - [Frank Groeneveld](http://ivaldi.nl/)
39
  * French(fr_FR) - [HAROUY Jean-Michel](http://www.laposte.net/)
40
  * Brazilian Portuguese(pt_BR) - [Rafael Funchal](http://www.rafaelfunchal.com.br/)
41
+ * Filipino(fil_PH) - [Morten Elm](http://www.storbyfan.dk/)
42
 
43
  You can send your own language pack to me.
44
 
tinymce-templates.php CHANGED
@@ -4,7 +4,7 @@ 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.0.0
8
  Author URI: http://wpist.me/
9
  Domain Path: /languages
10
  Text Domain: tinymce_templates
@@ -77,6 +77,10 @@ private $translators = array(
77
  'lang' => 'Brazilian Portuguese',
78
  'url' => 'http://www.rafaelfunchal.com.br/',
79
  ),
 
 
 
 
80
  );
81
 
82
  function __construct()
@@ -456,7 +460,7 @@ public function wp_ajax()
456
  foreach ($posts as $p) {
457
  if (intval($u->ID) && (intval($u->ID) !== intval($p->post_author))) {
458
  $share = get_post_meta($p->ID, $this->meta_param, true);
459
- if (!$share) {
460
  continue;
461
  }
462
  }
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.0.1
8
  Author URI: http://wpist.me/
9
  Domain Path: /languages
10
  Text Domain: tinymce_templates
77
  'lang' => 'Brazilian Portuguese',
78
  'url' => 'http://www.rafaelfunchal.com.br/',
79
  ),
80
+ 'Morten Elm' => array(
81
+ 'lang' => 'Filipino',
82
+ 'url' => 'http://www.storbyfan.dk/',
83
+ ),
84
  );
85
 
86
  function __construct()
460
  foreach ($posts as $p) {
461
  if (intval($u->ID) && (intval($u->ID) !== intval($p->post_author))) {
462
  $share = get_post_meta($p->ID, $this->meta_param, true);
463
+ if (!$share && !current_user_can('administrator')) {
464
  continue;
465
  }
466
  }