PluginProbe
Edit Flow / 0.9.2
Edit Flow v0.9.2
0.11.1 0.11.0 0.7.2 0.7.3 0.7.4 0.7.5 0.7.6 0.8 0.8.1 0.8.2 0.9 0.9.1 0.9.2 0.9.3 0.9.4 0.9.5 0.9.6 0.9.7 0.9.8 0.9.9 trunk 0.1.5 0.10.0 0.10.1 0.10.2 All 44 releases
← All changes | modules/settings/settings.php +7 -12 0.8.20.9.2 View file →
@@ -50,16 +50,11 @@
50 50 * Add necessary things to the admin menu
51 51 */
52 52 function action_admin_menu() {
53 53 global $edit_flow;
54 +
55 + $ef_logo = 'lib/eflogo_s32w.png';
54 56
55 - // Select Edit Flow icon
56 - if ( defined( 'MP6' ) ) :
57 - $ef_logo = 'lib/eflogo_s32b.png';
58 - else :
59 - $ef_logo = 'lib/eflogo_s32.png';
60 - endif;
61 -
62 57 add_menu_page( $this->module->title, $this->module->title, 'manage_options', $this->module->settings_slug, array( $this, 'settings_page_controller' ), $this->module->module_url . $ef_logo ) ;
63 58
64 59 foreach ( $edit_flow->modules as $mod_name => $mod_data ) {
65 60 if ( isset( $mod_data->options->enabled ) && $mod_data->options->enabled == 'on'
@@ -229,20 +224,20 @@
229 224 </div>
230 225 <?php endif; ?>
231 226 <?php
232 227 }
233 -
228 +
234 229 function print_modules() {
235 230 global $edit_flow;
236 -
237 - if ( !count( $edit_flow->modules ) ) {
231 +
232 + if ( ! $edit_flow->modules_count ) {
238 233 echo '<div class="message error">' . __( 'There are no Edit Flow modules registered', 'edit-flow' ) . '</div>';
239 234 } else {
240 -
235 +
241 236 foreach ( $edit_flow->modules as $mod_name => $mod_data ) {
242 237 if ( $mod_data->autoload )
243 238 continue;
244 -
239 +
245 240 $classes = array(
246 241 'edit-flow-module',
247 242 );
248 243 if ( $mod_data->options->enabled == 'on' )