]> _ Git - fluidbook-v3.git/commitdiff
Experimenting on <picture> | wip #488 @3
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 6 Jul 2016 17:28:38 +0000 (17:28 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 6 Jul 2016 17:28:38 +0000 (17:28 +0000)
framework/application/views/scripts/templates/home.phtml
images/test-portrait.png [new file with mode: 0644]
images/test.png [new file with mode: 0644]

index 60187f737c7851fa4037d101d1a09c88d896e537..d19ed4effd32a7eb52089f0afcaa6702a42992a2 100644 (file)
@@ -1,4 +1,9 @@
 <?php\r
 $this->headScript()->addScriptAndStyle('210-home');\r
 \r
-echo $this->image('/images/Magazine.png');
\ No newline at end of file
+echo $this->picture(\r
+       array(\r
+               array('src' => '/images/test.png', 'width' => 840),\r
+               array('src' => '/images/test-portrait.png', 'media' => '(orientation: portrait)', 'width' => 550)\r
+       )\r
+);
\ No newline at end of file
diff --git a/images/test-portrait.png b/images/test-portrait.png
new file mode 100644 (file)
index 0000000..e10677e
Binary files /dev/null and b/images/test-portrait.png differ
diff --git a/images/test.png b/images/test.png
new file mode 100644 (file)
index 0000000..e59e2f8
Binary files /dev/null and b/images/test.png differ