class/bookshop_books.php 1 location
|
@@ 409-419 (lines=11) @@
|
| 406 |
|
* @param string $book_title Titre du livre |
| 407 |
|
* @return string L'URL |
| 408 |
|
*/ |
| 409 |
|
public static function GetBookLink($book_id, $book_title) |
| 410 |
|
{ |
| 411 |
|
$url = ''; |
| 412 |
|
if (bookshop_getmoduleoption('urlrewriting') == 1) { // On utilise l'url rewriting |
| 413 |
|
$url = BOOKSHOP_URL . 'book-' . $book_id . bookshop_makeSEOurl($book_title) . '.html'; |
| 414 |
|
} else { // Pas d'utilisation de l'url rewriting |
| 415 |
|
$url = BOOKSHOP_URL . 'book.php?book_id=' . $book_id; |
| 416 |
|
} |
| 417 |
|
|
| 418 |
|
return $url; |
| 419 |
|
} |
| 420 |
|
|
| 421 |
|
/** |
| 422 |
|
* Mise à jour du compteur de lectures du livre |
class/bookshop_cat.php 1 location
|
@@ 100-110 (lines=11) @@
|
| 97 |
|
* @internal param int $cat_id Identifiant de la cat�gorie |
| 98 |
|
* @return string |
| 99 |
|
*/ |
| 100 |
|
public function GetCategoryLink($cat_cid, $cat_title) |
| 101 |
|
{ |
| 102 |
|
$url = ''; |
| 103 |
|
if (bookshop_getmoduleoption('urlrewriting') == 1) { // On utilise l'url rewriting |
| 104 |
|
$url = BOOKSHOP_URL . 'category-' . (int)$cat_cid . bookshop_makeSEOurl($cat_title) . '.html'; |
| 105 |
|
} else { // Pas d'utilisation de l'url rewriting |
| 106 |
|
$url = BOOKSHOP_URL . 'category.php?cat_cid=' . (int)$cat_cid; |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
return $url; |
| 110 |
|
} |
| 111 |
|
} |
| 112 |
|
|