PhotoPage: move user actions inside photo description box
This commit is contained in:
parent
e374f7ed59
commit
d17d98a838
@ -24,8 +24,12 @@ class PhotoPage extends Template
|
|||||||
|
|
||||||
echo '
|
echo '
|
||||||
<div class="row mt-5">
|
<div class="row mt-5">
|
||||||
<div class="col-lg-8">
|
<div class="col-lg-9">
|
||||||
<div id="sub_photo" class="content-box">
|
<div id="sub_photo" class="content-box">';
|
||||||
|
|
||||||
|
$this->userActions();
|
||||||
|
|
||||||
|
echo '
|
||||||
<h2 class="entry-title">', $this->photo->getTitle(), '</h2>';
|
<h2 class="entry-title">', $this->photo->getTitle(), '</h2>';
|
||||||
|
|
||||||
$this->taggedPeople();
|
$this->taggedPeople();
|
||||||
@ -34,10 +38,9 @@ class PhotoPage extends Template
|
|||||||
echo '
|
echo '
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-4">';
|
<div class="col-lg-3">';
|
||||||
|
|
||||||
$this->photoMeta();
|
$this->photoMeta();
|
||||||
$this->userActions();
|
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
</div>
|
</div>
|
||||||
@ -218,13 +221,13 @@ class PhotoPage extends Template
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<div id="user_actions_box" class="content-box">
|
<div class="float-end">
|
||||||
<h3>Actions</h3>
|
<a class="btn btn-primary" href="', $this->photo->getEditUrl(), '">
|
||||||
<a class="btn btn-primary" href="', $this->photo->getEditUrl(), '">Edit photo</a>
|
<i class="bi bi-pencil"></i> Edit</a>
|
||||||
<a class="btn btn-danger" href="', $this->photo->getDeleteUrl(), '&',
|
<a class="btn btn-danger" href="', $this->photo->getDeleteUrl(), '&',
|
||||||
Session::getSessionTokenKey(), '=', Session::getSessionToken(),
|
Session::getSessionTokenKey(), '=', Session::getSessionToken(),
|
||||||
'" onclick="return confirm(\'Are you sure you want to delete this photo?\');"',
|
'" onclick="return confirm(\'Are you sure you want to delete this photo?\');"',
|
||||||
'">Delete photo</a>
|
'"><i class="bi bi-pencil"></i> Delete</a></a>
|
||||||
</div>';
|
</div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user