コード例 #1
0
ファイル: functions.php プロジェクト: RichardRanft/cash
/**
 * Returns the entire HTML code for the navigation sidebar
 * Calls getNavigationTitle and getNagivationItems
 *
 * @param SimpleXMLElement $contentXML
 *
 * @return string
 * @author Andrew Darwin <*****@*****.**>
 */
function getNavigation(SimpleXMLElement $contentXML)
{
    $output = "";
    $output .= getNavigationTitle($contentXML);
    $output .= getNavigationItems($contentXML);
    return $output;
}
コード例 #2
0
ファイル: index.php プロジェクト: RichardRanft/cash
    $navBarContent = getNavBarHTML($contentXML);
    echo $navBarContent;
}
?>
            <!--</ul>-->
      </div>

      <!--SIDEBAR NAVIGATION-->
      <div class="sidebar_container">
        <div class="left_block block_1">
          <div class="mysidebar sidebar_background">
            <ul class="menu">      
              <?php 
//parse files. get what we need
if ($contentXML != null) {
    $navigationTitle = getNavigationTitle($contentXML);
    $navigationItems = getNavigationItems($contentXML);
    //display what we received
    echo "<div><div id='someDivName'>{$navigationTitle}</div><div>{$navigationItems}</div></div>";
}
?>
            </ul> 
          </div>
        </div>
      </div>
      <!--END OF SIDEBAR NAVIGATION-->
      
      <!--CENTER PANE-->
      <div class="centerdiv background block_5 shadow centerdiv_background">
        <div style="position: absolute; top: 0; height: 80px; left: 0; right: 0; overflow:hidden;">
          <!--HEADER FOR CENTER PANE-->