Nextgen styles, old vcard, nggallery templates
authorLaury GvR <laury@gaslightmedia.com>
Tue, 30 Dec 2014 21:12:29 +0000 (16:12 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 30 Dec 2014 21:12:29 +0000 (16:12 -0500)
assets/DashboardActivityLogo.png [new file with mode: 0644]
nggallery/album-glmalbums.php [new file with mode: 0644]
nggallery/gallery-glmphotos.php [new file with mode: 0644]
style.css
vcard.old.php [new file with mode: 0755]

diff --git a/assets/DashboardActivityLogo.png b/assets/DashboardActivityLogo.png
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/nggallery/album-glmalbums.php b/nggallery/album-glmalbums.php
new file mode 100644 (file)
index 0000000..b971e71
--- /dev/null
@@ -0,0 +1,64 @@
+<?php
+/**
+Template Page for the album overview
+
+Follow variables are useable :
+
+    $album              : Contain information about the first album
+    $albums             : Contain information about all albums
+       $galleries   : Contain all galleries inside this album
+       $pagination  : Contain the pagination content
+
+ You can check the content when you insert the tag <?php var_dump($variable) ?>
+ If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
+**/
+?>
+<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($galleries)) : ?>
+
+<div class="ngg-albumoverview">
+
+       <!-- List of galleries -->
+       <?php foreach ($galleries as $gallery) : ?>
+
+       <div class="ngg-glmalbums small-6 medium-4 large-3">
+               <div class="ngg-album-compactbox">
+                       <div class="ngg-album-link">
+                               <a class="Link" href="<?php echo nextgen_esc_url($gallery->pagelink) ?>">
+                                       <img class="Thumb" alt="<?php echo esc_attr($gallery->title) ?>" src="<?php echo nextgen_esc_url($gallery->previewurl) ?>"/>
+                               </a>
+                       </div>
+               </div>
+        <?php if (!empty($image_gen_params)) {
+            $max_width = 'style="max-width: ' . ($image_gen_params['width'] + 20) . 'px"';
+        } else {
+            $max_width = '';
+        } ?>
+        
+            
+            
+            <h4>
+                <a class="ngg-album-desc"
+                   title="<?php echo esc_attr($gallery->title); ?>"
+                   href="<?php echo nextgen_esc_url($gallery->pagelink); ?>"
+                   <?php echo $max_width; ?>>
+                   <?php echo_safe_html($gallery->title); ?>
+                </a>
+            </h4>
+            <p class="ngg-album-gallery-image-counter">
+                <?php if ($gallery->counter > 0) { ?>
+                    <strong><?php echo $gallery->counter; ?></strong>&nbsp;<?php _e('Photos', 'nggallery'); ?>
+                <?php } else { ?>
+                    &nbsp;
+                <?php } ?>
+            </p>
+               
+       </div>
+
+       <?php endforeach; ?>
+
+       <!-- Pagination -->
+    <br class="ngg-clear"/>
+       <?php echo $pagination ?>
+</div>
+
+<?php endif; ?>
diff --git a/nggallery/gallery-glmphotos.php b/nggallery/gallery-glmphotos.php
new file mode 100644 (file)
index 0000000..74ac570
--- /dev/null
@@ -0,0 +1,55 @@
+<?php 
+/**
+Template Page for the gallery overview
+
+Follow variables are useable :
+
+       $gallery     : Contain all about the gallery
+       $images      : Contain all images, path, title
+       $pagination  : Contain the pagination content
+
+ You can check the content when you insert the tag <?php var_dump($variable) ?>
+ If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
+**/
+?>
+<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
+
+       <!-- Thumbnails -->
+    <?php $i = 0; ?>
+        <ul class="gallery row small-block-grid-2 medium-block-grid-3 large-block-grid-4">
+       <?php foreach ( $images as $image ) : ?>
+        <li>
+            <div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box imgBorderMe" <?php echo $image->style ?> >
+
+                <div class="ngg-gallery-thumbnail" >
+                    <a href="<?php echo nextgen_esc_url($image->imageURL) ?>"
+                title="<?php echo esc_attr($image->description) ?>"
+                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); ?>"
+                <?php echo $image->thumbcode ?> >
+                            <?php if ( !$image->hidden ) { ?>
+                        
+                        <div class="image_overlay">
+                            <img title="<?php echo esc_attr($image->alttext) ?>" alt="<?php echo esc_attr($image->alttext) ?>" src="<?php echo nextgen_esc_url($image->thumbnailURL) ?>" <?php echo $image->size ?> />
+                        </div>
+                    <span class="photoTitle" title="<?php echo esc_attr($image->alttext) ?>"><?php if (!$image->hidden) { echo esc_attr($image->alttext); }?></span>
+                            <?php } ?>
+                    </a>
+                </div>
+                
+            </div>
+        </li>
+       <?php if ( $image->hidden ) continue; ?>
+       <?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?>
+       <br style="clear: both" />
+       <?php } ?>
+       <?php endforeach; ?>
+        </ul>
+       <!-- Pagination -->
+       <?php echo $pagination ?>
+</ul>
+
+<?php endif; ?>
index 0997acb..ab38fa7 100755 (executable)
--- a/style.css
+++ b/style.css
@@ -478,4 +478,15 @@ ul, ol, dl {
     margin-left: 0;
     overflow: hidden;
     padding: 0.5625rem 0.875rem;
-}
\ No newline at end of file
+}
+
+/* Nextgen Gallery */
+
+/* End Nextgen Gallery */
+.ngg-gallery-thumbnail-box,
+.ngg-gallery-thumbnail {
+    width: 100%;
+}
+/* */
+
+/* End */
\ No newline at end of file
diff --git a/vcard.old.php b/vcard.old.php
new file mode 100755 (executable)
index 0000000..e9038a8
--- /dev/null
@@ -0,0 +1,31 @@
+<div class="vcard">
+<h2 class="fn org"><?php echo glm_get_quicksite_option('businessName');?></h2>
+<p class="street-address"><?php echo glm_get_quicksite_option('address');?></p>
+<p>
+    <span flexy:if="city" class="locality"><?php echo glm_get_quicksite_option('city');?>,</span>
+    <abbr class="region" title="<?php echo glm_get_quicksite_option('stateFull');?>"><?php echo glm_get_quicksite_option('state');?></abbr>
+    <span class="postal-code"><?php echo glm_get_quicksite_option('zip');?></span>
+</p>
+
+<?php if (glm_get_quicksite_option('address2')):?>
+<p class="street-address"><?php echo glm_get_quicksite_option('address2');?></p>
+<p>
+    <span flexy:if="city" class="locality"><?php echo glm_get_quicksite_option('city2');?>,</span>
+    <abbr class="region" title="<?php echo glm_get_quicksite_option('state2Full');?>"><?php echo glm_get_quicksite_option('state2');?></abbr>
+    <span class="postal-code"><?php echo glm_get_quicksite_option('zip2');?></span>
+</p>
+<?php endif;?>
+
+<?php if (glm_get_quicksite_option('phone')):?>
+<p class="tel">
+    <span class="type">phone</span>:
+    <span class="value"><?php echo glm_get_quicksite_option('phone');?></span>
+</p>
+<?php endif;?>
+<?php if (glm_get_quicksite_option('fax')):?>
+<p class="tel">
+    <span class="type">fax</span>:
+    <span class="value"><?php echo glm_get_quicksite_option('fax');?></span>
+</p>
+<?php endif;?>
+</div><!-- /#address -->