<body onload="map_init()" id="top" class="bcsr-cal no-hero" itemscope itemtype="http://schema.org/WebPage"> <?php include 'head.php'; ?> <a name="top"></a> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <?php $crumbs = array_merge(array(cal_url() . '/index.php?com=digest' => 'Home', cal_url() => 'Calendar'), $crmbAdd); build_breadcrumb($crumbs); ?> <section> <article itemscope itemtype="http://schema.org/Place"> <header> <div class="social"> <div id="cmnt_cnt"><span class="arrow"><span> </span></span><?php get_comments_link($myLoc['CommentsID'], $myLoc['CommentsURL'], 1); ?> </div> <div class="socialT"> <a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php echo $myLoc['Link_This']; ?> " data-text="<?php
/** * Parses the contents of a page before outputting it. * * @param string The contents of the page. * @return string The parsed page. */ function parse_page($contents) { global $lang, $theme, $mybb, $htmldoctype, $archive_url, $error_handler; $contents = str_replace('<navigation>', build_breadcrumb(1), $contents); $contents = str_replace('<archive_url>', $archive_url, $contents); if ($htmldoctype) { $contents = $htmldoctype . $contents; } else { $contents = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" . $contents; } $contents = str_replace("<html", "<html xmlns=\"http://www.w3.org/1999/xhtml\"", $contents); if ($lang->settings['rtl'] == 1) { $contents = str_replace("<html", "<html dir=\"rtl\"", $contents); } if ($lang->settings['htmllang']) { $contents = str_replace("<html", "<html xml:lang=\"" . $lang->settings['htmllang'] . "\" lang=\"" . $lang->settings['htmllang'] . "\"", $contents); } if ($error_handler->warnings) { $contents = str_replace("<body>", "<body>\n" . $error_handler->show_warnings(), $contents); } return $contents; }
/** * Build breadcrumb * * Creates breadcrumb based on group (id or slug) and current item id * * @param mixed $group Group id or slug * @param int $item_id Current item id * @param array $attributes Any attributes * @param array &$tree Tree array * @param array &$output_tree Output tree array * * @return string */ function build_breadcrumb($group, $item_id, $attributes = array(), &$tree = array(), &$output_tree = array()) { if (empty($tree)) { $CI =& get_instance(); $CI->load->library('adjacency_list'); $tree = $CI->adjacency_list->get_all($group); } if (!empty($tree)) { foreach ($tree as &$leaf) { if ($item_id === (int) $leaf['id']) { array_push($output_tree, $leaf); build_breadcrumb($group, (int) $leaf['parent_id'], $attributes, $tree, $output_tree); } } return format_breadcrumb(array_reverse($output_tree), $item_id, $attributes); } return ''; }
<?php include 'head.php'; ?> <a name="top"></a> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <?php //$crumbs = array(cal_url().'/index.php?com=digest' => 'Events', cal_url() => 'Calendar',$myLnks['This'] => $myEvnt['Title']); $crumbs = array(cal_url() => 'Events', $myLnks['This'] => $myEvnt['Title']); build_breadcrumb($crumbs, 50); ?> <div class="container-fluid"> <div class="row-fluid"> <div class="col-md-8"> <section> <article itemscope itemtype="http://schema.org/Event"> <header> <h1 itemprop="name"><?php echo $myEvnt['Title']; ?> </h1> </header> <div id="evernote"> <div id="location" itemscope itemprop="location" itemtype="http://schema.org/Place">
</div> <div class="span8"> <pre><code> <ol> <?php echo build_tree_item('languages', 4, array('sub_start_tag' => '<ol>', 'sub_end_tag' => '</ol>')); ?> </ol> </code></pre> <ol> <?php echo build_tree_item('languages', 4, array('sub_start_tag' => '<ol>', 'sub_end_tag' => '</ol>')); ?> </ol> </div> </div> <div class="row"> <div class="span4"> <pre><code> <ul class="breadcrumb"> <?php echo build_breadcrumb('languages', 4); ?> </ul> </code></pre> <ul class="breadcrumb"> <?php echo build_breadcrumb('languages', 4); ?> </ul> </div> </div> <?php $this->load->view('partials/footer');