add mobile version pdf

This commit is contained in:
Andrey Kuvshinov
2020-05-22 13:21:37 +03:00
parent d0d6af8de6
commit 2dee8b96b6
4 changed files with 72 additions and 3 deletions

View File

@@ -277,7 +277,21 @@ function promo_kuri($hash, $page = 0, $promo = true){
}
function text($hash, $page){
function textpdf_kuri($hash, $page = 1){
$price = api_pricehash($hash);
if (!isset($price['price_id'])){
return 'page not found';
}
$title = $price['pricename'];
$content = apipage_kuri($price['price_id'], $page);
$tempcontent = VIEWPATH.'antext.phtml'; //подшаблон
include VIEWPATH.'layout.phtml'; //центральный шаблон
}