| @@ -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' ) |