]> git.mxchange.org Git - friendica.git/commitdiff
diabook-themes: bugfix (sry, necessary)
authortommy tomson <thomas.bierey@gmx.de>
Mon, 16 Apr 2012 17:23:11 +0000 (19:23 +0200)
committertommy tomson <thomas.bierey@gmx.de>
Mon, 16 Apr 2012 17:23:11 +0000 (19:23 +0200)
12 files changed:
view/theme/diabook-aerith/ch_directory_item.tpl [new file with mode: 0755]
view/theme/diabook-aerith/nav.tpl
view/theme/diabook-aerith/theme.php
view/theme/diabook-blue/ch_directory_item.tpl [new file with mode: 0755]
view/theme/diabook-blue/nav.tpl
view/theme/diabook-blue/theme.php
view/theme/diabook-red/ch_directory_item.tpl [new file with mode: 0755]
view/theme/diabook-red/nav.tpl
view/theme/diabook-red/theme.php
view/theme/diabook/ch_directory_item.tpl [new file with mode: 0755]
view/theme/diabook/nav.tpl
view/theme/diabook/theme.php

diff --git a/view/theme/diabook-aerith/ch_directory_item.tpl b/view/theme/diabook-aerith/ch_directory_item.tpl
new file mode 100755 (executable)
index 0000000..db1936e
--- /dev/null
@@ -0,0 +1,10 @@
+
+<div class="directory-item" id="directory-item-$id" >
+       <div class="directory-photo-wrapper" id="directory-photo-wrapper-$id" > 
+               <div class="directory-photo" id="directory-photo-$id" >
+                       <a href="$profile-link" class="directory-profile-link" id="directory-profile-link-$id" >
+                               <img class="directory-photo-img" src="$photo" alt="$alt-text" title="$alt-text" />
+                       </a>
+               </div>
+       </div>
+</div>
index 6559c49ea25c823cbb843a14bae8d6bc1a38c315..0453ec7ee1b131103537f7412e753f30858e346e 100644 (file)
                        </li>   
                {{ endif }}             
                
-      {{ if $nav.settings }}
+      {{ if $nav.home }}
                        <li id="nav-home-link" class="nav-menu $sel.home">
                                <a class="$nav.home.2" href="$nav.home.0" title="$nav.home.3" >$nav.home.1
                                <span id="home-update" class="nav-notify"></span></a>
index df93cbed846d41b41366828ee680c31d4bf0d46c..c798643b5c2ad8049ef2d0ec8ea545efc844eac0 100644 (file)
@@ -36,7 +36,7 @@ function diabook_aerith_community_info(){
                0,
                9
        );
-       $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
+       $tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
        if(count($r)) {
                $photo = 'thumb';
                foreach($r as $rr) {
@@ -115,7 +115,7 @@ function diabook_aerith_community_info(){
                                dbesc(t('Profile Photos'))
                                );
                if(count($r)) {
-               $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
+               $tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
                foreach($r as $rr) {
                        $photo_page = $a->get_baseurl() . '/photos/' . $rr['nickname'] . '/image/' . $rr['resource-id'];
                        $photo_url = $a->get_baseurl() . '/photo/' .  $rr['resource-id'] . '-' . $rr['scale'] .'.jpg';
diff --git a/view/theme/diabook-blue/ch_directory_item.tpl b/view/theme/diabook-blue/ch_directory_item.tpl
new file mode 100755 (executable)
index 0000000..db1936e
--- /dev/null
@@ -0,0 +1,10 @@
+
+<div class="directory-item" id="directory-item-$id" >
+       <div class="directory-photo-wrapper" id="directory-photo-wrapper-$id" > 
+               <div class="directory-photo" id="directory-photo-$id" >
+                       <a href="$profile-link" class="directory-profile-link" id="directory-profile-link-$id" >
+                               <img class="directory-photo-img" src="$photo" alt="$alt-text" title="$alt-text" />
+                       </a>
+               </div>
+       </div>
+</div>
index 6559c49ea25c823cbb843a14bae8d6bc1a38c315..0453ec7ee1b131103537f7412e753f30858e346e 100644 (file)
                        </li>   
                {{ endif }}             
                
-      {{ if $nav.settings }}
+      {{ if $nav.home }}
                        <li id="nav-home-link" class="nav-menu $sel.home">
                                <a class="$nav.home.2" href="$nav.home.0" title="$nav.home.3" >$nav.home.1
                                <span id="home-update" class="nav-notify"></span></a>
index 2257f8df056e908e364299b9f1aa9b2b60957dd9..9aac48c382eda50ab3eee6547f6713f8e859daff 100644 (file)
@@ -35,7 +35,7 @@ function diabook_blue_community_info(){
                0,
                9
        );
-       $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
+       $tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
        if(count($r)) {
                $photo = 'thumb';
                foreach($r as $rr) {
@@ -114,7 +114,7 @@ function diabook_blue_community_info(){
                                dbesc(t('Profile Photos'))
                                );
                if(count($r)) {
-               $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
+               $tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
                foreach($r as $rr) {
                        $photo_page = $a->get_baseurl() . '/photos/' . $rr['nickname'] . '/image/' . $rr['resource-id'];
                        $photo_url = $a->get_baseurl() . '/photo/' .  $rr['resource-id'] . '-' . $rr['scale'] .'.jpg';
diff --git a/view/theme/diabook-red/ch_directory_item.tpl b/view/theme/diabook-red/ch_directory_item.tpl
new file mode 100755 (executable)
index 0000000..db1936e
--- /dev/null
@@ -0,0 +1,10 @@
+
+<div class="directory-item" id="directory-item-$id" >
+       <div class="directory-photo-wrapper" id="directory-photo-wrapper-$id" > 
+               <div class="directory-photo" id="directory-photo-$id" >
+                       <a href="$profile-link" class="directory-profile-link" id="directory-profile-link-$id" >
+                               <img class="directory-photo-img" src="$photo" alt="$alt-text" title="$alt-text" />
+                       </a>
+               </div>
+       </div>
+</div>
index 6559c49ea25c823cbb843a14bae8d6bc1a38c315..0453ec7ee1b131103537f7412e753f30858e346e 100644 (file)
                        </li>   
                {{ endif }}             
                
-      {{ if $nav.settings }}
+      {{ if $nav.home }}
                        <li id="nav-home-link" class="nav-menu $sel.home">
                                <a class="$nav.home.2" href="$nav.home.0" title="$nav.home.3" >$nav.home.1
                                <span id="home-update" class="nav-notify"></span></a>
index fb2ad21fd41af12b47da11bc208d9d7d5b697253..1ef65d83e6dc39153c8d07c5d279afb9fea44457 100644 (file)
@@ -35,7 +35,7 @@ function diabook_red_community_info(){
                0,
                9
        );
-       $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
+       $tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
        if(count($r)) {
                $photo = 'thumb';
                foreach($r as $rr) {
@@ -114,7 +114,7 @@ function diabook_red_community_info(){
                                dbesc(t('Profile Photos'))
                                );
                if(count($r)) {
-               $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
+               $tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
                foreach($r as $rr) {
                        $photo_page = $a->get_baseurl() . '/photos/' . $rr['nickname'] . '/image/' . $rr['resource-id'];
                        $photo_url = $a->get_baseurl() . '/photo/' .  $rr['resource-id'] . '-' . $rr['scale'] .'.jpg';
diff --git a/view/theme/diabook/ch_directory_item.tpl b/view/theme/diabook/ch_directory_item.tpl
new file mode 100755 (executable)
index 0000000..db1936e
--- /dev/null
@@ -0,0 +1,10 @@
+
+<div class="directory-item" id="directory-item-$id" >
+       <div class="directory-photo-wrapper" id="directory-photo-wrapper-$id" > 
+               <div class="directory-photo" id="directory-photo-$id" >
+                       <a href="$profile-link" class="directory-profile-link" id="directory-profile-link-$id" >
+                               <img class="directory-photo-img" src="$photo" alt="$alt-text" title="$alt-text" />
+                       </a>
+               </div>
+       </div>
+</div>
index 6559c49ea25c823cbb843a14bae8d6bc1a38c315..0453ec7ee1b131103537f7412e753f30858e346e 100644 (file)
                        </li>   
                {{ endif }}             
                
-      {{ if $nav.settings }}
+      {{ if $nav.home }}
                        <li id="nav-home-link" class="nav-menu $sel.home">
                                <a class="$nav.home.2" href="$nav.home.0" title="$nav.home.3" >$nav.home.1
                                <span id="home-update" class="nav-notify"></span></a>
index 490a647f3dd43f42ab2e0777ab6efe16d28599a4..0fdcbf701eee91ad735e95ab6bb71be3e0314814 100755 (executable)
@@ -41,7 +41,7 @@ function diabook_community_info(){
                0,
                9
        );
-       $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
+       $tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
        if(count($r)) {
                $photo = 'thumb';
                foreach($r as $rr) {
@@ -120,7 +120,7 @@ function diabook_community_info(){
                                dbesc(t('Profile Photos'))
                                );
                if(count($r)) {
-               $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
+               $tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
                foreach($r as $rr) {
                        $photo_page = $a->get_baseurl() . '/photos/' . $rr['nickname'] . '/image/' . $rr['resource-id'];
                        $photo_url = $a->get_baseurl() . '/photo/' .  $rr['resource-id'] . '-' . $rr['scale'] .'.jpg';