Merge lp:~edb/quam-plures/plugins_no_subgroups into lp:quam-plures

Proposed by EdB
Status: Merged
Merged at revision: 7632
Proposed branch: lp:~edb/quam-plures/plugins_no_subgroups
Merge into: lp:quam-plures
Diff against target: 192 lines (+2/-75)
8 files modified
qp_inc/plugins/_plugin.class.php (+1/-5)
qp_inc/plugins/model/_plugins.class.php (+1/-23)
qp_inc/plugins/model/_plugins_admin.class.php (+0/-7)
qp_inc/plugins/views/_plugin_list_available.view.php (+0/-13)
qp_plugins/comment_gravatars_plugin/_comment_gravatars.plugin.php (+0/-1)
qp_plugins/test_plugin/_test.plugin.php (+0/-1)
qp_plugins/tinymce_plugin/_tinymce.plugin.php (+0/-1)
qp_view_admin/admin.global.css (+0/-24)
To merge this branch: bzr merge lp:~edb/quam-plures/plugins_no_subgroups
Reviewer Review Type Date Requested Status
Lee Turner (community) Approve
Tilman Blumenbach (community) Approve
Review via email: mp+73238@code.launchpad.net

Description of the change

http://forums.quamplures.net/viewtopic.php?f=6&t=900

2) Get rid of sub-group. Just not bother to have it or use it.

To post a comment you must log in.
Revision history for this message
Tilman Blumenbach (tblue) wrote :

Looks and works fine, but please remove the PluginsSubGroup CSS rules from qp_view_admin/admin.global.css as well (lines 217-237).

review: Approve
Revision history for this message
EdB (edb) wrote :

will do. needs fixin till then as I'd hate to forget I need to tidy up something.

I believe we have lots of styles that have no value anymore. unrelated example is the idea of forms with less room for labels and more for the other side. I think we have the styles but never use them. So yeah cleanup of css needs to be part of the branch.

Good catch :)

7620. By EdB

core to 7620, removed the PluginsSubGroup CSS rules

7621. By EdB

core to 7624

Revision history for this message
Lee Turner (leeturner) wrote :

Can't see any problems with this one

review: Approve
Revision history for this message
EdB (edb) wrote :

I am adding core updates AND retesting everything I have in merge just to be sure, but it is taking a long time due to many conflicts this time around. Will send another comment when I got them back up to speed.

7622. By EdB

core to 7628

Revision history for this message
EdB (edb) wrote :

Okay cool. This one is good to go - no issues when re-testing after merging from core.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qp_inc/plugins/_plugin.class.php'
2--- qp_inc/plugins/_plugin.class.php 2011-09-04 02:17:13 +0000
3+++ qp_inc/plugins/_plugin.class.php 2011-09-04 22:28:35 +0000
4@@ -104,10 +104,6 @@
5 * Accepts any value you want, but please pick from the following:
6 * "toolbars, widgets, renderers, antispam, pingers, tools, comments, other"
7 *
8- * When there is a sub_group under 'other' with more than one plugin we
9- * will add that to the list of choices above. That way each 'group' will
10- * have at least 2 plugins in it ... and no subgroup will ever have 2 :)
11- *
12 * @var string
13 */
14 var $group;
15@@ -115,7 +111,7 @@
16 /**
17 * Sub-Group of the plugin.
18 *
19- * Use only if sub_group if group is "other"
20+ * OBSOLETE AND UN-USED! Left here only to not cause havoc with existing plugins
21 *
22 * @var string
23 */
24
25=== modified file 'qp_inc/plugins/model/_plugins.class.php'
26--- qp_inc/plugins/model/_plugins.class.php 2011-08-31 20:47:52 +0000
27+++ qp_inc/plugins/model/_plugins.class.php 2011-09-04 22:28:35 +0000
28@@ -194,7 +194,7 @@
29
30
31 /**
32- * Will return an array that contents are references to plugins that have the same group, regardless of the sub_group.
33+ * Will return an array that contents are references to plugins that have the same group.
34 *
35 * @return array
36 */
37@@ -216,28 +216,6 @@
38
39
40 /**
41- * Will return an array that contents are references to plugins that have the same group and sub_group.
42- *
43- * @return array
44- */
45- function get_Plugins_in_sub_group( $group, $sub_group = '' )
46- {
47- $result = array();
48-
49- foreach( $this->sorted_IDs as $plugin_ID )
50- {
51- $Plugin = & $this->get_by_ID( $plugin_ID );
52- if( $Plugin->group == $group && $Plugin->sub_group == $sub_group )
53- {
54- $result[] = & $Plugin;
55- }
56- }
57-
58- return $result;
59- }
60-
61-
62- /**
63 * Sets the status of a Plugin in DB and registers it into the internal indices when "enabled".
64 * Otherwise it gets unregistered, but only when we're not in {@link Plugins_admin}, because we
65 * want to keep it in then in our indices.
66
67=== modified file 'qp_inc/plugins/model/_plugins_admin.class.php'
68--- qp_inc/plugins/model/_plugins_admin.class.php 2011-09-03 13:05:37 +0000
69+++ qp_inc/plugins/model/_plugins_admin.class.php 2011-09-04 22:28:35 +0000
70@@ -1135,13 +1135,6 @@
71 return $r;
72 }
73
74- // Compare Sub Group
75- $r = strcasecmp( $a_Plugin->sub_group, $b_Plugin->sub_group );
76- if( $r != 0 )
77- {
78- return $r;
79- }
80-
81 // Compare Name
82 return strcasecmp( $a_Plugin->name, $b_Plugin->name );
83 }
84
85=== modified file 'qp_inc/plugins/views/_plugin_list_available.view.php'
86--- qp_inc/plugins/views/_plugin_list_available.view.php 2011-09-03 13:05:37 +0000
87+++ qp_inc/plugins/views/_plugin_list_available.view.php 2011-09-04 22:28:35 +0000
88@@ -80,7 +80,6 @@
89 $AvailablePlugins->sort('group');
90 // Grouping
91 $current_group = false; // False so it does the header once
92-$current_sub_group = '';
93
94 $number_of_groups = count($AvailablePlugins->get_plugin_groups());
95
96@@ -90,7 +89,6 @@
97 if( $loop_Plugin->group !== $current_group && $number_of_groups )
98 { // Reason why $current_group is false
99 $current_group = $loop_Plugin->group;
100- $current_sub_group = '';
101 ?>
102 <tr class="group">
103 <td colspan="5" class="first"><?php
104@@ -107,17 +105,6 @@
105 <?php
106 }
107
108- if( $loop_Plugin->sub_group != $current_sub_group )
109- {
110- $current_sub_group = $loop_Plugin->sub_group;
111- ?>
112- <tr class="PluginsSubGroup">
113- <th colspan="5"><?php echo $current_sub_group; ?></th>
114- </tr>
115- <?php
116- }
117-
118- // fp> TODO: support for table.grouped tr.PluginsSubGroup td.firstcol (maybe... subgroups seem crazy anyway - where does it stop?).
119 $Table->display_line_start();
120
121 $Table->display_col_start();
122
123=== modified file 'qp_plugins/comment_gravatars_plugin/_comment_gravatars.plugin.php'
124--- qp_plugins/comment_gravatars_plugin/_comment_gravatars.plugin.php 2011-07-20 06:26:28 +0000
125+++ qp_plugins/comment_gravatars_plugin/_comment_gravatars.plugin.php 2011-09-04 22:28:35 +0000
126@@ -31,7 +31,6 @@
127 var $author_url = 'http://www.bushleaguecritic.com/';
128 var $code = 'comment_gravatars';
129 var $group = 'comments';
130- var $sub_group; // used if $group is 'other'
131 var $number_of_installs = 1;
132 var $priority = 50;
133 var $version = '0.1';
134
135=== modified file 'qp_plugins/test_plugin/_test.plugin.php'
136--- qp_plugins/test_plugin/_test.plugin.php 2011-06-18 22:22:09 +0000
137+++ qp_plugins/test_plugin/_test.plugin.php 2011-09-04 22:28:35 +0000
138@@ -55,7 +55,6 @@
139 var $author_url = 'http://yourdomain.tld/';
140 var $code = 'test';
141 var $group = 'other';
142- var $sub_group = 'plugin demo'; // used if $group is 'other'
143 var $number_of_installs = 1;
144 var $priority = 50;
145 var $version = '0.2';
146
147=== modified file 'qp_plugins/tinymce_plugin/_tinymce.plugin.php'
148--- qp_plugins/tinymce_plugin/_tinymce.plugin.php 2011-03-14 09:38:23 +0000
149+++ qp_plugins/tinymce_plugin/_tinymce.plugin.php 2011-09-04 22:28:35 +0000
150@@ -28,7 +28,6 @@
151 {
152 var $code = 'tinymce';
153 var $group = 'other';
154- var $sub_group = 'editor'; // used if $group is 'other'
155 var $number_of_installs = 1;
156 var $priority = 10;
157 var $version = '0.1';
158
159=== modified file 'qp_view_admin/admin.global.css'
160--- qp_view_admin/admin.global.css 2010-09-07 07:48:45 +0000
161+++ qp_view_admin/admin.global.css 2011-09-04 22:28:35 +0000
162@@ -213,30 +213,6 @@
163 color: #FF0000;
164 }
165
166-
167-/*
168- * Grouping of plugins:
169- */
170-table.grouped tr.PluginsSubGroup {
171- text-align:left;
172-}
173-
174-table.grouped tr.PluginsSubGroup th {
175- border-left:none;
176- border-bottom: 1px solid #9e9286;
177- border-top: 1px solid #9e9286;
178- background-color: #efede0;
179- color:#666666;
180-}
181-
182-table.grouped tr.PluginsSubGroup th,
183-table.grouped tr.PluginsSubGroup td.firstcol {
184- padding-left:15px;
185-}
186-
187-/* / Grouping of plugins */
188-
189-
190 /* Template screenshots */
191 div.screenshot {
192 float: left;

Subscribers

People subscribed via source and target branches