-<style>
-.show-more {
- padding: 10px 0;
- text-align: center;
-}
-.show-more a {
- font-weight: bold;
- font-size: 16px;
-}
-.short-text {
- overflow: hidden;
- height: 16em;
-}
-
-.full-text{
- height: auto;
- overflow: visible;
-}
-</style>
<flexy:toJavascript
flexy:prefix="glm_"
base_url="base_url"
</div>
</div><!-- /.vcard -->
<div id="trail_desc" flexy:if="description">
- <div class="text-content short-text">
- {description:h}
- </div>
- <div class="show-more">
- <a href="#">Show More</a>
- </div>
+ {description:h}
</div>
</div><!--/#top_wrapper-->
- <div id="trail_guide_btn" flexy:if="guide" class="current">Trail Guide</div>
+ <div id="trail_gallery_btn" flexy:if="photos" class="current">Photos</div>
+ <div id="trail_guide_btn" flexy:if="guide" class="">Trail Guide</div>
<div id="trail_facilities_btn" flexy:if="facilities" class="">Facilities</div>
<div id="trail_directions_btn" flexy:if="directions" class="">Directions</div>
<div id="trail_hours_btn" flexy:if="hours" class="">Hours & fees</div>
<div id="trail_information_btn" flexy:if="information" class="">Information</div>
- <div id="trail_gallery_btn" flexy:if="photos" class="">Photos</div>
- <div id="trail_guide" flexy:if="guide">
- <h2>Trail Guide: </h2>{guide:h}
- </div>
- <div id="trail_facilities" flexy:if="facilities">
- <h2>Facilities: </h2>{facilities:h}
- </div>
- <div id="trail_hours" flexy:if="hours">
- <h2>Hours & Fees: </h2>{hours:h}
- </div>
- <div id="trail_directions" flexy:if="directions">
- <h2>Directions: </h2>{directions:h}
- </div>
- <div id="trail_information" flexy:if="information">
- <h2>Information: </h2>{information:h}
- </div>
<div id="trail_gallery" flexy:if="photos">
<div id="photo-gallery">
<ul id="Gallery" class="gallery">
</ul>
</div>
</div>
+ <div id="trail_guide" flexy:if="guide">
+ {guide:h}
+ </div>
+ <div id="trail_facilities" flexy:if="facilities">
+ {facilities:h}
+ </div>
+ <div id="trail_hours" flexy:if="hours">
+ {hours:h}
+ </div>
+ <div id="trail_directions" flexy:if="directions">
+ {directions:h}
+ </div>
+ <div id="trail_information" flexy:if="information">
+ {information:h}
+ </div>
+
</div>
<script type="text/javascript">
$(document).ready(function() {
- $(".show-more a").each(function() {
- var $link = $(this);
- var $content = $link.parent().prev("div.text-content");
-
- var visibleHeight = $content[0].clientHeight;
- var actualHide = $content[0].scrollHeight - 1;
-
- if (actualHide > visibleHeight) {
- $link.show();
- } else {
- $link.hide();
- }
- });
-
- $(".show-more a").on("click", function() {
- var $link = $(this);
- var $content = $link.parent().prev("div.text-content");
- var linkText = $link.text();
-
- $content.toggleClass("short-text, full-text");
-
- $link.text(getShowLinkText(linkText));
-
- return false;
- });
-
- function getShowLinkText(currentText) {
- var newText = '';
-
- if (currentText.toUpperCase() === "SHOW MORE") {
- newText = "Show Less";
- } else {
- newText = "Show More";
- }
-
- return newText;
- }
$("#member-logo1").fancybox({
helpers: {
title: {