.gallery .ngg-fancybox:hover img {
opacity: 0.3; }
.gallery .ngg-fancybox .photoTitle {
- color: #0568b3;
- font-weight: bold;
+ /* color: $blue;
+ font-weight: bold;*/
max-width: 220px; }
.gallery .ngg-fancybox .photoHead {
color: white;
font-family: "Lato"; }
#gallery-glmphotos-light-3 .photoTitle, #gallery-glmphotos-light-5 .photoTitle {
overflow: hidden;
+ font-family: "Lato";
+ color: #f5822a;
width: 90%;
+ line-height: 18px;
text-transform: capitalize;
margin: 8px auto 0;
cursor: pointer; }
- #gallery-glmphotos-light-3 .photoTitle:hover a, #gallery-glmphotos-light-5 .photoTitle:hover a {
+ #gallery-glmphotos-light-3 .photoTitle:hover .photoTitleInner, #gallery-glmphotos-light-5 .photoTitle:hover .photoTitleInner {
color: #ec6c0b; }
- #gallery-glmphotos-light-3 .photoTitle:hover a.ngg-fancybox:before, #gallery-glmphotos-light-3 .photoTitle:hover a.ngg-fancybox:after, #gallery-glmphotos-light-5 .photoTitle:hover a.ngg-fancybox:before, #gallery-glmphotos-light-5 .photoTitle:hover a.ngg-fancybox:after {
+ #gallery-glmphotos-light-3 .photoTitle:hover .photoTitleInner:before, #gallery-glmphotos-light-3 .photoTitle:hover .photoTitleInner:after, #gallery-glmphotos-light-5 .photoTitle:hover .photoTitleInner:before, #gallery-glmphotos-light-5 .photoTitle:hover .photoTitleInner:after {
transform: scaleX(1);
border-color: #0568b3; }
@media only screen and (max-width: 40em) {
@media only screen and (min-width:40.063em) and (max-width:64em) {
#gallery-glmphotos-light-3 .photoTitle h4, #gallery-glmphotos-light-5 .photoTitle h4 {
font-size: 20px; } }
- #gallery-glmphotos-light-3 .photoTitle a.ngg-fancybox, #gallery-glmphotos-light-5 .photoTitle a.ngg-fancybox {
- max-height: 40px;
- padding: 8px 0;
+ #gallery-glmphotos-light-3 .photoTitle .photoTitleInner, #gallery-glmphotos-light-5 .photoTitle .photoTitleInner {
text-align: center; }
- #gallery-glmphotos-light-3 .photoTitle a.ngg-fancybox:after, #gallery-glmphotos-light-3 .photoTitle a.ngg-fancybox:before, #gallery-glmphotos-light-5 .photoTitle a.ngg-fancybox:after, #gallery-glmphotos-light-5 .photoTitle a.ngg-fancybox:before {
+ #gallery-glmphotos-light-3 .photoTitle .photoTitleInner:after, #gallery-glmphotos-light-3 .photoTitle .photoTitleInner:before, #gallery-glmphotos-light-5 .photoTitle .photoTitleInner:after, #gallery-glmphotos-light-5 .photoTitle .photoTitleInner:before {
display: block;
content: '';
border-width: 1px;
margin: 0 auto;
transform: scaleX(0.0001);
transition: transform 250ms ease-in-out; }
- #gallery-glmphotos-light-3 .photoTitle a.ngg-fancybox:after, #gallery-glmphotos-light-5 .photoTitle a.ngg-fancybox:after {
+ #gallery-glmphotos-light-3 .photoTitle .photoTitleInner:after, #gallery-glmphotos-light-5 .photoTitle .photoTitleInner:after {
margin-top: 5px; }
- #gallery-glmphotos-light-3 .photoTitle a.ngg-fancybox:before, #gallery-glmphotos-light-5 .photoTitle a.ngg-fancybox:before {
+ #gallery-glmphotos-light-3 .photoTitle .photoTitleInner:before, #gallery-glmphotos-light-5 .photoTitle .photoTitleInner:before {
margin-bottom: 5px; }
- #gallery-glmphotos-light-3 .photoTitle a:hover, #gallery-glmphotos-light-5 .photoTitle a:hover {
- text-decoration: none; }
+ #gallery-glmphotos-light-3 .photoTitle .photoTitleInner:hover, #gallery-glmphotos-light-5 .photoTitle .photoTitleInner:hover {
+ text-decoration: none; }
#gallery-glmphotos-light-5 a.ngg-fancybox {
font-size: 14px; }
$(document).foundation();
$(document).ready(function () {
'use strict';
- $("#metaslider_14").nivoSlider({
- pauseOnHover:true,
- effect: 'slideInLeft',
- pauseTime: 7000,
- afterLoad: function (){
- // $("#metaslider_11 .nivo-caption").fadeIn();
- $("#metaslider_14 .nivo-caption").addClass("open");
- },
- beforeChange: function () {
- $("#metaslider_14 .nivo-caption").removeClass("open");
- $("#metaslider_14 .nivo-caption").addClass("close");
- },
- afterChange: function () {
- $("#metaslider_14 .nivo-caption").removeClass("close");
- $("#metaslider_14 .nivo-caption").addClass("open");
- }
- });
+ var meta_id = "#metaslider_14";
+ if (document.domain === 'localhost') {
+ meta_id = "#metaslider_11";
+ }
+ meta_id.nivoSlider({
+ pauseOnHover:true,
+ effect: 'slideInLeft',
+ pauseTime: 7000,
+ afterLoad: function (){
+ // $("#metaslider_11 .nivo-caption").fadeIn();
+ meta_id_caption.addClass("open");
+ },
+ beforeChange: function () {
+ meta_id_caption.removeClass("open");
+ meta_id_caption.addClass("close");
+ },
+ afterChange: function () {
+ meta_id_caption.removeClass("close");
+ meta_id_caption.addClass("open");
+ }
+ });
- // remove this code before final push
- $("#metaslider_11").nivoSlider({
- pauseOnHover:true,
- effect: 'slideInLeft',
- pauseTime: 7000,
- afterLoad: function (){
- // $("#metaslider_11 .nivo-caption").fadeIn();
- $("#metaslider_11 .nivo-caption").addClass("open");
- },
- beforeChange: function () {
- $("#metaslider_11 .nivo-caption").removeClass("open");
- $("#metaslider_11 .nivo-caption").addClass("close");
- },
- afterChange: function () {
- $("#metaslider_11 .nivo-caption").removeClass("close");
- $("#metaslider_11 .nivo-caption").addClass("open");
- }
- });
});
</script>
<?php } ?>
});
},3100);
$(".photoTitle").each(function() {
- $(this).find(">:first-child").remove();
+ $(this).find("> a:first-of-type").remove();
});
});
},3100);
$(".photoTitle").each(function() {
- $(this).find(">:first-child").remove();
+ $(this).find("> a:first-of-type").remove();
});
<li>
<div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box imgBorderMe" <?php echo $image->style ?> >
-
+ <?php if (filter_var(esc_attr($image->description), FILTER_VALIDATE_URL) === FALSE) {
+ $innerdescription = "This Website is under construction - check back soon!";
+ $validlink = false;
+ } else {
+ $innerdescription = $image->description;
+ $validlink = true;
+ } ?>
<div class="ngg-gallery-thumbnail" >
<a href="<?php echo nextgen_esc_url($image->imageURL) ?>"
- title="Visit<a href='<?php echo esc_attr($image->description)?>' target='_blank'> <?php echo esc_attr($image->alttext) ?></a>"
+ <?php if ($validlink) { ?>
+ title="Visit the <a href='<?php echo $innerdescription ?>' target='_blank'> <?php echo esc_attr($image->alttext) ?></a> Website"
+ <?php } else { ?>
+ title="<?php echo $innerdescription ?>"
+ <?php } ?>
+
data-src="<?php echo nextgen_esc_url($image->imageURL) ?>"
data-thumbnail="<?php echo nextgen_esc_url($image->thumbnailURL); ?>"
data-image-id="<?php echo esc_attr($image->pid); ?>"
data-title="<?php echo esc_attr($image->alttext); ?>"
- data-description="<?php echo esc_attr($image->description); ?>"
+ data-description="<?php echo $innerdescription; ?>"
<?php echo $image->thumbcode ?> >
<?php if ( !$image->hidden ) { ?>
<?php
$imageTitle = !preg_match(';is\d{2,}-\d{10,}-\d{5,}$;', $image->alttext) ? $image->alttext: '';
?>
+ <?php if ($validlink) { ?>
<div class="photoTitle">
- <a href="<?php echo esc_attr($image->description) ?>" target="_blank">
- <div title="Visit the <?php echo esc_attr($image->alttext) ?> website!"
- alt="<?php echo esc_attr($image->alttext) ?>">
+ <a class="photoTitleInner" href="<?php echo $innerdescription ?>" target="_blank">
+ <div title="Visit the <?php echo esc_attr($image->alttext) ?> website!"
+ alt="<?php echo esc_attr($image->alttext) ?>">
+ <?php if (!$image->hidden) { echo esc_attr($imageTitle); }?>
+ </div>
+ </a>
+ <?php } else { ?>
+ </a><div class="photoTitle">
+ <div class="photoTitleInner" title="<?php echo $innerdescription ?>"
+ alt="<?php echo $innerdescription ?>">
<?php if (!$image->hidden) { echo esc_attr($imageTitle); }?>
</div>
- </a>
+ <?php } ?>
</div>
</div>
opacity: 0.3;
}
.ngg-fancybox .photoTitle {
- color: $blue;
- font-weight: bold;
+/* color: $blue;
+ font-weight: bold;*/
max-width: 220px;
}
.ngg-fancybox .photoHead {
}
.photoTitle {
overflow:hidden;
+ font-family: "Lato";
+ color: $orange;
width: 90%;
+ line-height: 18px;
text-transform: capitalize;
margin: 8px auto 0;
cursor: pointer;
&:hover {
- a {
+ .photoTitleInner {
color: #ec6c0b;
}
-
- a.ngg-fancybox:before,
- a.ngg-fancybox:after {
+ .photoTitleInner:before,
+ .photoTitleInner:after {
transform: scaleX(1);
border-color: rgba(5,104,179,1);
}
font-size: 20px;
}
}
- a.ngg-fancybox {
- max-height: 40px;
- padding: 8px 0;
+ .photoTitleInner {
text-align: center;
&:after,
&:before {
&:before {
margin-bottom: 5px;
}
- }
- a:hover {
- text-decoration: none;
+ &:hover {
+ text-decoration: none;
+ }
}
}