Add a permalink to book (the little linkish thingy)
fix the image zoom in the book detail Add book title to the book detail clean the code a little (more to do)
This commit is contained in:
parent
c094e1564c
commit
0ba361e434
6 changed files with 23 additions and 6 deletions
13
book.php
13
book.php
|
@ -89,6 +89,19 @@ class Book extends Base {
|
|||
return self::ALL_BOOKS_ID.":letter:".$startingLetter;
|
||||
}
|
||||
|
||||
public function getUri () {
|
||||
return "?page=".parent::PAGE_BOOK_DETAIL."&id=$this->id";
|
||||
}
|
||||
|
||||
public function getDetailUrl () {
|
||||
global $config;
|
||||
if ($config['cops_use_fancyapps'] == 0) {
|
||||
return 'index.php' . $this->getUri ();
|
||||
} else {
|
||||
return 'bookdetail.php?id=' . $this->id;
|
||||
}
|
||||
}
|
||||
|
||||
public function getTitle () {
|
||||
return $this->title;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue