Changeset 11100

Show
Ignore:
Timestamp:
07/05/07 22:01:19 (1 year ago)
Author:
tarjei
Message:

Add create element item to edit element menu

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.admin.styleeditor/handler/edit.php

    r6089 r11100  
    8787        ); 
    8888 
     89 
    8990        $_MIDCOM->set_custom_context_data('midcom.helper.nav.breadcrumb', $tmp); 
    9091    } 
     
    170171    { 
    171172        $this->_topic->require_do('midcom.admin.styleeditor:template_management'); 
     173 
     174        $this->_view_toolbar->add_item 
     175        ( 
     176            array 
     177            ( 
     178                MIDCOM_TOOLBAR_URL => "__mfa/styleeditor/create/", 
     179                MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create new element', 'midcom.admin.styleeditor'), 
     180                MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 
     181            ) 
     182        );         
     183        $this->_view_toolbar->add_item 
     184        ( 
     185            array 
     186            ( 
     187                MIDCOM_TOOLBAR_URL => "__mfa/styleeditor/files/", 
     188                MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 
     189                MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', 
     190            ) 
     191        ); 
     192 
     193 
    172194             
    173195        $data['style_element'] = $args[0]; 
  • trunk/midcom/midcom.admin.styleeditor/handler/list.php

    r6089 r11100  
    114114            array 
    115115            ( 
     116                MIDCOM_TOOLBAR_URL => "__mfa/styleeditor/create/", 
     117                MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create new element', 'midcom.admin.styleeditor'), 
     118                MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 
     119            ) 
     120        );         
     121        $this->_view_toolbar->add_item 
     122        ( 
     123            array 
     124            ( 
    116125                MIDCOM_TOOLBAR_URL => "__mfa/styleeditor/files/", 
    117126                MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 
     
    120129        ); 
    121130 
    122         $this->_view_toolbar->add_item 
    123         ( 
    124             array 
    125             ( 
    126                 MIDCOM_TOOLBAR_URL => "__mfa/styleeditor/create/", 
    127                 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create new element', 'midcom.admin.styleeditor'), 
    128                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 
    129             ) 
    130         );         
     131 
    131132        // Set the variables 
    132133        $this->_component = $this->_topic->component;