Monami presta: Porovnání verzí

Z Waritkova wiki
Skočit na navigaci Skočit na vyhledávání
(Založena nová stránka s textem „/classes/Product.php around line 222 <source lang="php">** @var string Author: public $author; ** @var string Import ID: public $impor…“)
 
Řádek 31: Řádek 31:
 
    'published' =>                        array('type' => self::TYPE_DATE, 'shop' => true, 'validate' => 'isDateFormat'),
 
    'published' =>                        array('type' => self::TYPE_DATE, 'shop' => true, 'validate' => 'isDateFormat'),
 
    'image_link' =>                        array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'),
 
    'image_link' =>                        array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'),
 +
</source>
 +
 +
/themes/default-bootstrap/product.tpl around line 151 after display all images
 +
<source lang=html><!--Waritko-->
 +
            <ul id="usefull_link_block" class="clearfix no-print">
 +
                {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if}
 +
                <li class="print" style="margin-top: 1.2em;">
 +
                    <a href="javascript:print();">
 +
                        {l s='Print'}
 +
                    </a>
 +
                </li>
 +
            </ul>
 +
            <!--Waritko--></source>
 +
After Product name
 +
<source lang=html>
 +
<!-- Waritko -->
 +
<h5 itemprop="author">Autor: <b>{$product->author|escape:'html':'UTF-8'}</b></h5>
 +
<h5 itemprop="ean13" style="font-size: 0.8em;">EAN: {$product->ean13|escape:'html':'UTF-8'}</h5>
 +
<h5 itemprop="publisher">Nakladatel: {$product->publisher|escape:'html':'UTF-8'}</h5>
 +
<h5 itemprop="binding">Vazba: {$product->binding|escape:'html':'UTF-8'}</h5>
 +
<h5 itemprop="pages">Pocet stran: {$product->pages|escape:'html':'UTF-8'}</h5>
 +
<h5>Rozmery: {$product->height|escape:'html':'UTF-8'}x{$product->width|escape:'html':'UTF-8'}</h5>
 +
<h5 itemprop="published">Datum vydani: {dateFormat date=$product->published full=false}</h5>
 +
<!-- /Waritko -->
 
</source>
 
</source>

Verze z 10. 3. 2018, 20:25

/classes/Product.php around line 222

/*** @var string Author */
    public $author;

    /*** @var string Import ID */
    public $import_id;

    /*** @var string Publisher */
    public $publisher;

    /*** @var int Number of pages */
    public $pages;

    /*** @var string Binding type */
    public $binding;

    /*** @var string Date published */
    public $published;

    /*** @var string Image link */
    public $image_link;

/classes/Product.php around line 338

            'author' =>                        array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'),
            'import_id' =>                        array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'),
            'publisher' =>                        array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'),
            'pages' =>                        array('type' => self::TYPE_INT, 'shop' => true, 'validate' => 'isUnsignedInt'),
            'binding' =>                        array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'),
	    'published' =>                        array('type' => self::TYPE_DATE, 'shop' => true, 'validate' => 'isDateFormat'),
	    'image_link' =>                        array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'),

/themes/default-bootstrap/product.tpl around line 151 after display all images

<!--Waritko-->
            <ul id="usefull_link_block" class="clearfix no-print">
                {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if}
                <li class="print" style="margin-top: 1.2em;">
                    <a href="javascript:print();">
                        {l s='Print'}
                    </a>
                </li>
            </ul>
            <!--Waritko-->

After Product name

<!-- Waritko -->
			<h5 itemprop="author">Autor: <b>{$product->author|escape:'html':'UTF-8'}</b></h5>
			<h5 itemprop="ean13" style="font-size: 0.8em;">EAN: {$product->ean13|escape:'html':'UTF-8'}</h5>
			<h5 itemprop="publisher">Nakladatel: {$product->publisher|escape:'html':'UTF-8'}</h5>
			<h5 itemprop="binding">Vazba: {$product->binding|escape:'html':'UTF-8'}</h5>
			<h5 itemprop="pages">Pocet stran: {$product->pages|escape:'html':'UTF-8'}</h5>
			<h5>Rozmery: {$product->height|escape:'html':'UTF-8'}x{$product->width|escape:'html':'UTF-8'}</h5>
			<h5 itemprop="published">Datum vydani: {dateFormat date=$product->published full=false}</h5>
			<!-- /Waritko -->