summaryrefslogtreecommitdiff
path: root/modules/latestupdates/views
diff options
context:
space:
mode:
authorTristan Zur <tzur@webserver.ccwn.org>2015-06-20 23:56:17 +0200
committerTristan Zur <tzur@webserver.ccwn.org>2015-06-20 23:56:17 +0200
commit18a1d682ff18ee69d5c252b013a6a6935cd9b5fe (patch)
treeb1da62c8b7d03341a7b74b3fbb533e6391950be0 /modules/latestupdates/views
parentb69c03794f80aa811f0613cf4b802619e7ecdbdd (diff)
New modules added
Diffstat (limited to 'modules/latestupdates/views')
-rw-r--r--modules/latestupdates/views/latestupdates_block.html.php10
-rw-r--r--modules/latestupdates/views/latestupdates_user_profile_carousel.html.php37
-rw-r--r--modules/latestupdates/views/latestupdates_user_profile_info.html.php14
3 files changed, 61 insertions, 0 deletions
diff --git a/modules/latestupdates/views/latestupdates_block.html.php b/modules/latestupdates/views/latestupdates_block.html.php
new file mode 100644
index 0000000..b1dd907
--- /dev/null
+++ b/modules/latestupdates/views/latestupdates_block.html.php
@@ -0,0 +1,10 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<ul id="g-update-list">
+<? foreach($update_links as $title => $url): ?>
+ <li style="clear: both;">
+ <a href="<?= $url ?>">
+ <?= t($title) ?>
+ </a>
+ </li>
+<? endforeach ?>
+</ul>
diff --git a/modules/latestupdates/views/latestupdates_user_profile_carousel.html.php b/modules/latestupdates/views/latestupdates_user_profile_carousel.html.php
new file mode 100644
index 0000000..1a3ada2
--- /dev/null
+++ b/modules/latestupdates/views/latestupdates_user_profile_carousel.html.php
@@ -0,0 +1,37 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<? if (count($items) == 0): ?>
+ <center><?=t("This user hasn't uploaded anything yet."); ?></center>
+<? else: ?>
+<script>
+$(document).ready(function() { setTimeout(LoadCarousel, 100); });
+function LoadCarousel() {
+ $(".main .jCarouselLite").jCarouselLite({
+ btnNext: ".next",
+ btnPrev: ".prev",
+ visible: 4,
+ circular: false
+ });
+}
+</script>
+<div id="jCarouselLite" class="cEnd" style="width: 570px;">
+ <div class="carousel main">
+ <a href="#" class="prev">&nbsp</a>
+ <div class="jCarouselLite">
+ <ul>
+ <? foreach ($items as $photo): ?>
+ <li class="g-item g-photo">
+ <a href="<?= $photo->url() ?>" title="<?= html::purify($photo->title)->for_html_attr() ?>">
+ <img <?= photo::img_dimensions($photo->thumb_width, $photo->thumb_height, 100) ?>
+ src="<?= $photo->thumb_url() ?>" alt="<?= html::purify($photo->title)->for_html_attr() ?>" />
+ </a>
+ </li>
+ <? endforeach ?>
+ </ul>
+ </div>
+ <a href="#" class="next">&nbsp</a>
+ <div class="clear"></div>
+ </div>
+</div>
+<br />
+<div style="width: 510px; text-align: right;"><a href="<?=$str_view_more_url; ?>"><?=$str_view_more_title; ?> >></a></div>
+<? endif; ?>
diff --git a/modules/latestupdates/views/latestupdates_user_profile_info.html.php b/modules/latestupdates/views/latestupdates_user_profile_info.html.php
new file mode 100644
index 0000000..175d137
--- /dev/null
+++ b/modules/latestupdates/views/latestupdates_user_profile_info.html.php
@@ -0,0 +1,14 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<script>
+ $(function() {
+ $( "#tabs" ).tabs();
+ });
+</script>
+<br />
+<div id="tabs" style="height: 200px">
+ <ul>
+ <li><a class="g-menu-link" href="<?= url::site("latestupdates/user_profiles/popular/{$user_id}") ?>" title="<?= t("Most Viewed") ?>"><?= t("Most Viewed") ?></a></li>
+ <li><a class="g-menu-link" href="<?= url::site("latestupdates/user_profiles/recent/{$user_id}") ?>" title="<?= t("Recent Uploads") ?>"><?= t("Recent Uploads") ?></a></li>
+ <li><a class="g-menu-link" href="<?= url::site("latestupdates/user_profiles/albums/{$user_id}") ?>" title="<?= t("Recent Albums") ?>"><?= t("Recent Albums") ?></a></li>
+ </ul>
+</div>