diabook-themes: bugfix (sry, necessary)
This commit is contained in:
parent
15dc8f4b21
commit
f08844a8a5
12 changed files with 52 additions and 12 deletions
10
view/theme/diabook-aerith/ch_directory_item.tpl
Executable file
10
view/theme/diabook-aerith/ch_directory_item.tpl
Executable file
|
@ -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>
|
|
@ -103,7 +103,7 @@
|
||||||
</li>
|
</li>
|
||||||
{{ endif }}
|
{{ endif }}
|
||||||
|
|
||||||
{{ if $nav.settings }}
|
{{ if $nav.home }}
|
||||||
<li id="nav-home-link" class="nav-menu $sel.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
|
<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>
|
<span id="home-update" class="nav-notify"></span></a>
|
||||||
|
|
|
@ -36,7 +36,7 @@ function diabook_aerith_community_info(){
|
||||||
0,
|
0,
|
||||||
9
|
9
|
||||||
);
|
);
|
||||||
$tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
|
$tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
$photo = 'thumb';
|
$photo = 'thumb';
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
|
@ -115,7 +115,7 @@ function diabook_aerith_community_info(){
|
||||||
dbesc(t('Profile Photos'))
|
dbesc(t('Profile Photos'))
|
||||||
);
|
);
|
||||||
if(count($r)) {
|
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) {
|
foreach($r as $rr) {
|
||||||
$photo_page = $a->get_baseurl() . '/photos/' . $rr['nickname'] . '/image/' . $rr['resource-id'];
|
$photo_page = $a->get_baseurl() . '/photos/' . $rr['nickname'] . '/image/' . $rr['resource-id'];
|
||||||
$photo_url = $a->get_baseurl() . '/photo/' . $rr['resource-id'] . '-' . $rr['scale'] .'.jpg';
|
$photo_url = $a->get_baseurl() . '/photo/' . $rr['resource-id'] . '-' . $rr['scale'] .'.jpg';
|
||||||
|
|
10
view/theme/diabook-blue/ch_directory_item.tpl
Executable file
10
view/theme/diabook-blue/ch_directory_item.tpl
Executable file
|
@ -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>
|
|
@ -103,7 +103,7 @@
|
||||||
</li>
|
</li>
|
||||||
{{ endif }}
|
{{ endif }}
|
||||||
|
|
||||||
{{ if $nav.settings }}
|
{{ if $nav.home }}
|
||||||
<li id="nav-home-link" class="nav-menu $sel.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
|
<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>
|
<span id="home-update" class="nav-notify"></span></a>
|
||||||
|
|
|
@ -35,7 +35,7 @@ function diabook_blue_community_info(){
|
||||||
0,
|
0,
|
||||||
9
|
9
|
||||||
);
|
);
|
||||||
$tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
|
$tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
$photo = 'thumb';
|
$photo = 'thumb';
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
|
@ -114,7 +114,7 @@ function diabook_blue_community_info(){
|
||||||
dbesc(t('Profile Photos'))
|
dbesc(t('Profile Photos'))
|
||||||
);
|
);
|
||||||
if(count($r)) {
|
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) {
|
foreach($r as $rr) {
|
||||||
$photo_page = $a->get_baseurl() . '/photos/' . $rr['nickname'] . '/image/' . $rr['resource-id'];
|
$photo_page = $a->get_baseurl() . '/photos/' . $rr['nickname'] . '/image/' . $rr['resource-id'];
|
||||||
$photo_url = $a->get_baseurl() . '/photo/' . $rr['resource-id'] . '-' . $rr['scale'] .'.jpg';
|
$photo_url = $a->get_baseurl() . '/photo/' . $rr['resource-id'] . '-' . $rr['scale'] .'.jpg';
|
||||||
|
|
10
view/theme/diabook-red/ch_directory_item.tpl
Executable file
10
view/theme/diabook-red/ch_directory_item.tpl
Executable file
|
@ -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>
|
|
@ -103,7 +103,7 @@
|
||||||
</li>
|
</li>
|
||||||
{{ endif }}
|
{{ endif }}
|
||||||
|
|
||||||
{{ if $nav.settings }}
|
{{ if $nav.home }}
|
||||||
<li id="nav-home-link" class="nav-menu $sel.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
|
<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>
|
<span id="home-update" class="nav-notify"></span></a>
|
||||||
|
|
|
@ -35,7 +35,7 @@ function diabook_red_community_info(){
|
||||||
0,
|
0,
|
||||||
9
|
9
|
||||||
);
|
);
|
||||||
$tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
|
$tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
$photo = 'thumb';
|
$photo = 'thumb';
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
|
@ -114,7 +114,7 @@ function diabook_red_community_info(){
|
||||||
dbesc(t('Profile Photos'))
|
dbesc(t('Profile Photos'))
|
||||||
);
|
);
|
||||||
if(count($r)) {
|
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) {
|
foreach($r as $rr) {
|
||||||
$photo_page = $a->get_baseurl() . '/photos/' . $rr['nickname'] . '/image/' . $rr['resource-id'];
|
$photo_page = $a->get_baseurl() . '/photos/' . $rr['nickname'] . '/image/' . $rr['resource-id'];
|
||||||
$photo_url = $a->get_baseurl() . '/photo/' . $rr['resource-id'] . '-' . $rr['scale'] .'.jpg';
|
$photo_url = $a->get_baseurl() . '/photo/' . $rr['resource-id'] . '-' . $rr['scale'] .'.jpg';
|
||||||
|
|
10
view/theme/diabook/ch_directory_item.tpl
Executable file
10
view/theme/diabook/ch_directory_item.tpl
Executable file
|
@ -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>
|
|
@ -103,7 +103,7 @@
|
||||||
</li>
|
</li>
|
||||||
{{ endif }}
|
{{ endif }}
|
||||||
|
|
||||||
{{ if $nav.settings }}
|
{{ if $nav.home }}
|
||||||
<li id="nav-home-link" class="nav-menu $sel.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
|
<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>
|
<span id="home-update" class="nav-notify"></span></a>
|
||||||
|
|
|
@ -41,7 +41,7 @@ function diabook_community_info(){
|
||||||
0,
|
0,
|
||||||
9
|
9
|
||||||
);
|
);
|
||||||
$tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
|
$tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
$photo = 'thumb';
|
$photo = 'thumb';
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
|
@ -120,7 +120,7 @@ function diabook_community_info(){
|
||||||
dbesc(t('Profile Photos'))
|
dbesc(t('Profile Photos'))
|
||||||
);
|
);
|
||||||
if(count($r)) {
|
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) {
|
foreach($r as $rr) {
|
||||||
$photo_page = $a->get_baseurl() . '/photos/' . $rr['nickname'] . '/image/' . $rr['resource-id'];
|
$photo_page = $a->get_baseurl() . '/photos/' . $rr['nickname'] . '/image/' . $rr['resource-id'];
|
||||||
$photo_url = $a->get_baseurl() . '/photo/' . $rr['resource-id'] . '-' . $rr['scale'] .'.jpg';
|
$photo_url = $a->get_baseurl() . '/photo/' . $rr['resource-id'] . '-' . $rr['scale'] .'.jpg';
|
||||||
|
|
Loading…
Reference in a new issue