Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Panasonic
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
John
Panasonic
Commits
bef2e4d6
Commit
bef2e4d6
authored
Jan 10, 2017
by
John Punzalan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update product view, add image
parent
2a6395f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
media.phtml
...d/lecanal/oscar/template/catalog/product/view/media.phtml
+13
-9
No files found.
app/design/frontend/lecanal/oscar/template/catalog/product/view/media.phtml
View file @
bef2e4d6
...
...
@@ -35,12 +35,16 @@ $_product = $this->getProduct();
$_helper
=
$this
->
helper
(
'catalog/output'
);
?>
<?php
if
(
count
(
$this
->
getGalleryImages
())
>
0
)
:
?>
<div
class=
"slideshow-product-image royalSlider rsDefault"
id=
"royalslider-product-static"
>
<?php
foreach
(
$this
->
getGalleryImages
()
as
$_image
)
:
?>
<img
itemprop=
"image"
class=
"rsImg cloudzoom"
data-rsTmb=
"
<?php
echo
$this
->
helper
(
'catalog/image'
)
->
init
(
$this
->
getProduct
(),
'thumbnail'
,
$_image
->
getFile
())
->
resize
(
600
)
?>
"
data-cloudzoom=
"zoomImage: '
<?php
echo
$this
->
helper
(
'catalog/image'
)
->
init
(
$this
->
getProduct
(),
'image'
,
$_image
->
getFile
())
->
constrainOnly
(
TRUE
)
->
keepAspectRatio
(
TRUE
)
->
keepFrame
(
FALSE
)
->
resize
(
1200
,
null
)
?>
', zoomSizeMode:'image'"
src=
"
<?php
echo
$this
->
helper
(
'catalog/image'
)
->
init
(
$this
->
getProduct
(),
'image'
,
$_image
->
getFile
())
->
constrainOnly
(
TRUE
)
->
keepAspectRatio
(
TRUE
)
->
keepFrame
(
FALSE
)
->
resize
(
600
,
null
)
?>
"
width=
"400"
/>
<?php
endforeach
;
?>
</div>
<?php
else
:
?>
<img
src=
"
<?=
$_product
->
getImage
()
?>
"
/>
<?php
endif
;
?>
\ No newline at end of file
<?php
//if (count($this->getGalleryImages()) > 0): ?>
<!--
<
div
class
="
slideshow
-
product
-
image
royalSlider
rsDefault
" id="
royalslider
-
product
-
static
">-->
<!-- --><?php //foreach (
$this->getGalleryImages
() as
$_image
): ?>
<!-- <img itemprop="
image
" class="
rsImg
cloudzoom
" data-rsTmb="
--><?
php
//echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(600) ?><!--" data-cloudzoom="zoomImage: '--><?php //echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->constrainOnly(TRUE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(1200,null) ?><!--', zoomSizeMode:'image'" src="--><?php //echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->constrainOnly(TRUE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(600,null) ?><!--" width="400" />-->
<!--
--><?
php
//endforeach; ?>
<!--
</
div
>-->
<?
php
//else: ?>
<!--
<
img
src
=
"--><?//=
$_product->getImage
() ?><!--"
/>-->
<?
php
//endif; ?>
<
img
src
=
"<?=
$_product->getImage
() ?>"
/>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment