CMS Tree Page View - Version 0.4.8

Version Description

  • added russian translation by Alexufo (www.serebniti.ru)
  • fixed a link that didn't change color on mouse over
Download this release

Release Info

Developer eskapism
Plugin Icon wp plugin CMS Tree Page View
Version 0.4.8
Comparing to
See all releases

Code changes from version 0.4.7 to 0.4.8

functions.php CHANGED
@@ -306,7 +306,7 @@ function cms_tpv_get_childs() {
306
  // what to search: since all we see in the GUI is the title, just search that
307
  global $wpdb;
308
  $sqlsearch = "%{$search}%";
309
- // fells bad to leave out the "'" in the query, but prepare seems to add it..??
310
  $sql = $wpdb->prepare("SELECT id, post_parent FROM $wpdb->posts WHERE post_type = 'page' AND post_title LIKE %s", $sqlsearch);
311
  $hits = $wpdb->get_results($sql);
312
  $arrNodesToOpen = array();
@@ -480,7 +480,6 @@ function cms_tpv_move_page() {
480
  } elseif ( "before" == $type ) {
481
 
482
  // post_node is placed before ref_post_node
483
- // @todo: check how this works with revisions
484
 
485
  // update menu_order of all pages with a meny order more than or equal ref_node_post and with the same parent as ref_node_post
486
  $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET menu_order = menu_order+1 WHERE post_parent = %d", $post_ref_node->post_parent ) );
@@ -506,10 +505,8 @@ function cms_tpv_move_page() {
506
 
507
  #echo "ok"; // I'm done here!
508
 
509
-
510
  } else {
511
  // error
512
-
513
  }
514
 
515
  exit;
306
  // what to search: since all we see in the GUI is the title, just search that
307
  global $wpdb;
308
  $sqlsearch = "%{$search}%";
309
+ // feels bad to leave out the "'" in the query, but prepare seems to add it..??
310
  $sql = $wpdb->prepare("SELECT id, post_parent FROM $wpdb->posts WHERE post_type = 'page' AND post_title LIKE %s", $sqlsearch);
311
  $hits = $wpdb->get_results($sql);
312
  $arrNodesToOpen = array();
480
  } elseif ( "before" == $type ) {
481
 
482
  // post_node is placed before ref_post_node
 
483
 
484
  // update menu_order of all pages with a meny order more than or equal ref_node_post and with the same parent as ref_node_post
485
  $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET menu_order = menu_order+1 WHERE post_parent = %d", $post_ref_node->post_parent ) );
505
 
506
  #echo "ok"; // I'm done here!
507
 
 
508
  } else {
509
  // error
 
510
  }
511
 
512
  exit;
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: CMS Tree Page View
4
  Plugin URI: http://eskapism.se/code-playground/cms-tree-page-view/
5
  Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. By using the tree you can edit, view, add pages and even search pages (useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
6
- Version: 0.4.7
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
@@ -30,7 +30,7 @@ require("functions.php");
30
 
31
  define( "CMS_TPV_URL", WP_PLUGIN_URL . '/cms-tree-page-view/');
32
  define( "CMS_TPV_NAME", "CMS Tree Page View");
33
- define( "CMS_TPV_VERSION", "0.4.5");
34
  define( "CMS_TPV_PAGE_FILE", "edit-pages.php?page=cms-tpv-pages-page"); // this feels nasty
35
 
36
  // on admin init: add styles and scripts
3
  Plugin Name: CMS Tree Page View
4
  Plugin URI: http://eskapism.se/code-playground/cms-tree-page-view/
5
  Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. By using the tree you can edit, view, add pages and even search pages (useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
6
+ Version: 0.4.8
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
30
 
31
  define( "CMS_TPV_URL", WP_PLUGIN_URL . '/cms-tree-page-view/');
32
  define( "CMS_TPV_NAME", "CMS Tree Page View");
33
+ define( "CMS_TPV_VERSION", "0.4.8");
34
  define( "CMS_TPV_PAGE_FILE", "edit-pages.php?page=cms-tpv-pages-page"); // this feels nasty
35
 
36
  // on admin init: add styles and scripts
languages/cms-tree-page-view-ru_RU.mo ADDED
Binary file
languages/cms-tree-page-view-ru_RU.po ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin by .
2
+ # Copyright (C) 2010
3
+ # This file is distributed under the same license as the package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: CTPV\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
10
+ "POT-Creation-Date: 2010-04-09 11:39+0000\n"
11
+ "PO-Revision-Date: 2010-05-24 15:24+0300\n"
12
+ "Last-Translator: Александр <alexufo@mail.ru>\n"
13
+ "Language-Team: Marcis G. <alexufo@mail.ru>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=utf-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-Language: Russian\n"
18
+ "X-Poedit-Country: RUSSIAN FEDERATION\n"
19
+ "X-Poedit-SourceCharset: utf8\n"
20
+
21
+ #: functions.php:84
22
+ msgid "settings"
23
+ msgstr "Настройки"
24
+
25
+ #: functions.php:91
26
+ msgid "Show tree"
27
+ msgstr "Показывать плагин"
28
+
29
+ #: functions.php:95
30
+ msgid "on the dashboard"
31
+ msgstr "на панел"
32
+
33
+ #: functions.php:98
34
+ msgid "under the pages menu"
35
+ msgstr " в разделе \"Страницы\""
36
+
37
+ #: functions.php:105
38
+ msgid "Save Changes"
39
+ msgstr "Сохранить изменения"
40
+
41
+ #: functions.php:127
42
+ msgid "All"
43
+ msgstr "Все"
44
+
45
+ #: functions.php:128
46
+ msgid "Public"
47
+ msgstr "Опубликованные"
48
+
49
+ #: functions.php:130
50
+ msgid "Expand"
51
+ msgstr "Раскрыть"
52
+
53
+ #: functions.php:131
54
+ msgid "Collapse"
55
+ msgstr "Собрать"
56
+
57
+ #: functions.php:136
58
+ msgid "Search"
59
+ msgstr "Поиск"
60
+
61
+ #: functions.php:137
62
+ msgid "Searching..."
63
+ msgstr "Поиск..."
64
+
65
+ #: functions.php:142
66
+ msgid "Loading..."
67
+ msgstr "Загрузка..."
68
+
69
+ #: functions.php:144
70
+ msgid "Search: no pages found"
71
+ msgstr "Поиск: страниц не найдено"
72
+
73
+ #: functions.php:146
74
+ msgid "Loading tree"
75
+ msgstr "Загрузка дерева"
76
+
77
+ #: functions.php:248
78
+ msgid "<Untitled page>"
79
+ msgstr "<Без имени>"
80
+
81
+ #: functions.php:264
82
+ msgid "Click to edit. Drag to move."
83
+ msgstr "Щелчок для правки. Схватить для перемещения."
84
+
85
+ #: functions.php:380
86
+ msgid "New page"
87
+ msgstr "Новая страница"
88
+
89
+ #: scripts/cms_tree_page_view.php:85
90
+ #: scripts/cms_tree_page_view.php:102
91
+ msgid "Enter title of new page"
92
+ msgstr "Введите имя новой страницы"
93
+
94
+ #: scripts/cms_tree_page_view.php:283
95
+ msgid "child pages"
96
+ msgstr "Дочерние сраницы"
97
+
98
+ #: scripts/cms_tree_page_view.php:293
99
+ msgid "Edit page"
100
+ msgstr "Править страницу"
101
+
102
+ #: scripts/cms_tree_page_view.php:293
103
+ msgid "Edit"
104
+ msgstr "Правка"
105
+
106
+ #: scripts/cms_tree_page_view.php:294
107
+ msgid "View page"
108
+ msgstr "Смотреть страницу"
109
+
110
+ #: scripts/cms_tree_page_view.php:294
111
+ msgid "View"
112
+ msgstr "Смотреть"
113
+
114
+ #: scripts/cms_tree_page_view.php:296
115
+ msgid "Add page"
116
+ msgstr "Добавить страницу"
117
+
118
+ #: scripts/cms_tree_page_view.php:297
119
+ msgid "Add new page after"
120
+ msgstr "Добавить новую страницу ниже"
121
+
122
+ #: scripts/cms_tree_page_view.php:297
123
+ msgid "after"
124
+ msgstr "ниже"
125
+
126
+ #: scripts/cms_tree_page_view.php:298
127
+ msgid "Add new page inside"
128
+ msgstr "Добавить новую страницу внутри"
129
+
130
+ #: scripts/cms_tree_page_view.php:298
131
+ msgid "inside"
132
+ msgstr "внутри"
133
+
readme.txt CHANGED
@@ -44,6 +44,10 @@ Now the tree with the pages will be visible both on the dashboard and in the men
44
 
45
  == Changelog ==
46
 
 
 
 
 
47
  = 0.4.7 =
48
  - remove some code that did not belong...
49
  - does not show auto-draft-posts in wp3
44
 
45
  == Changelog ==
46
 
47
+ = 0.4.8 =
48
+ - added russian translation by Alexufo (www.serebniti.ru)
49
+ - fixed a link that didn't change color on mouse over
50
+
51
  = 0.4.7 =
52
  - remove some code that did not belong...
53
  - does not show auto-draft-posts in wp3
styles/styles.css CHANGED
@@ -80,8 +80,8 @@
80
  .cms_tpv_action_edit:hover,
81
  .cms_tpv_action_view:hover,
82
  .cms_tpv_action_add_page_after:hover,
83
- cms_tpv_action_add_page_inside:hover
84
- {
85
  color: #d54e21 !important;
86
  }
87
 
80
  .cms_tpv_action_edit:hover,
81
  .cms_tpv_action_view:hover,
82
  .cms_tpv_action_add_page_after:hover,
83
+ .cms_tpv_action_add_page_inside:hover
84
+ {
85
  color: #d54e21 !important;
86
  }
87