Changeset 13450

Show
Ignore:
Timestamp:
11/15/07 23:07:12 (1 year ago)
Author:
solt
Message:

added navigation - shortcut to elements

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.admin.styleeditor/static/style-editor.css

    r11341 r13450  
    9393} 
    9494 
     95 
     96 
    9597#container a:hover, 
    9698#container a:visited:hover 
     
    285287  color: red; 
    286288} 
     289#navigation div.section ul.midgard_admin_asgard_navigation a 
     290{ 
     291    font-weight:normal; 
     292} 
  • trunk/midcom/midcom.admin.styleeditor/viewer.php

    r11346 r13450  
    108108        ); 
    109109    } 
     110    function navigation() 
     111    { 
     112        $prefix = $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX); 
     113 
     114        // Get list of style elements related to this component 
     115        $style_elements = $_MIDCOM->style->get_component_default_elements($this->_request_data['topic']->component); 
     116        ksort($style_elements); 
     117        echo "<ul class=\"midgard_admin_asgard_navigation\">"; 
     118        foreach ($style_elements as $style_element => $filename) 
     119        { 
     120            echo "<li class='midcom_baseclasses_database_style'><a href=\"{$prefix}__mfa/asgard_midcom.admin.styleeditor/edit/{$style_element}/\">&lt;({$style_element})&gt;</a></li>"; 
     121        } 
     122        echo "</ul>"; 
     123 
     124    } 
     125 
    110126} 
    111127?>