Advertisement
Guest User

backup of index

a guest
Aug 17th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.79 KB | None | 0 0
  1. <!-- Start Home Section -->
  2.  
  3. <style>
  4. .carousel-control-next-icon-card:after
  5. {
  6. content: '>';
  7. font-size: 35px;
  8. color: black;
  9. /* height: 40vh; */
  10. }
  11.  
  12. .slides > div:target {
  13. transform: scale(0.8);
  14. }
  15.  
  16. .carousel-control-prev-icon-card:after {
  17. content: '<';
  18. font-size: 35px;
  19. color: black;
  20. }
  21.  
  22. .carousel-indicators li {
  23. display: inline-block;
  24. width: 10px;
  25. height: 10px;
  26. margin: 10px;
  27. text-indent: 0;
  28. cursor: pointer;
  29. border: none;
  30. border-radius: 50%;
  31. background-color: gray;
  32. box-shadow: inset 1px 1px 1px 1px rgba(0,0,0,0.5);
  33. }
  34. .carousel-indicators .active {
  35. width: 15px;
  36. height: 15px;
  37. margin: 10px;
  38. background-color: black;
  39. }
  40.  
  41. .jumbotron-promise{
  42. color:white;
  43. background: rgb(201,45,57);
  44. background: linear-gradient(45deg, rgba(201,45,57,1) 44%, rgba(210,109,117,0.9402135854341737) 100%);
  45. }
  46.  
  47. .jumbotron-social{
  48. background:aliceblue;
  49. }
  50. .carousel-item {
  51. /* Set the vertical height */
  52. height: 320px;
  53. }
  54.  
  55. #top {
  56. /* Set the vertical height */
  57. height: 100vh;
  58. }
  59.  
  60. .box1 {
  61. width: 300px;
  62. margin: 50px auto;
  63. border: 4px solid #00bfb6;
  64. padding: 20px;
  65. text-align: center;
  66. font-weight: 900;
  67. color: #00bfb6;
  68. font-family: arial;
  69. position: relative;
  70. }
  71.  
  72. .sb5:before {
  73. content: "";
  74. width: 0px;
  75. height: 0px;
  76. position: absolute;
  77. border-left: 10px solid #00bfb6;
  78. border-right: 10px solid transparent;
  79. border-top: 10px solid #00bfb6;
  80. border-bottom: 10px solid transparent;
  81. right: -20px;
  82. top: 6px;
  83. }
  84.  
  85. .sb5:after {
  86. content: "";
  87. width: 0px;
  88. height: 0px;
  89. position: absolute;
  90. border-left: 7px solid #fff;
  91. border-right: 7px solid transparent;
  92. border-top: 7px solid #fff;
  93. border-bottom: 7px solid transparent;
  94. right: -11px;
  95. top: 10px;
  96. }
  97.  
  98. /* ============================================== */
  99. h3.heading {
  100. font-size: 1.9rem;
  101. font-weight: 700;
  102. text-transform: uppercase;
  103. padding: 1.2rem 0rem;
  104. }
  105. /* ============================================== */
  106.  
  107. </style>
  108.  
  109. <!-- Start Image Slider -->
  110. <div id="carouselExampleIndicators"class="carousel slide"data-ride="carousel"data-interval="7000">
  111. <ol class="carousel-indicators">
  112. <li
  113. data-target="#carouselExampleIndicators"
  114. data-slide-to="0"
  115. class="active"></li>
  116. <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
  117. <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
  118. </ol>
  119. <div class="carousel-inner" role="listbox">
  120. <!-- Slide 1 -->
  121. <div id="top" class="carousel-item active" style="background-image: url(img/running.jpg);">
  122. <div class="carousel-caption text-center">
  123. <h1>Welcome</h1>
  124. <h4>Made for everyone</h4>
  125. <a class="btn btn-outline-light btn-lg" href="#storefront">Shop Now</a>
  126. </div>
  127. </div>
  128.  
  129. <!-- Slide 2 -->
  130. <div id="top"class="carousel-item"style="background-image: url(img/running.jpg);"></div>
  131.  
  132. <!-- Slide 3 -->
  133. <div id="top" class="carousel-item" style="background-image: url(img/running.jpg);"></div>
  134.  
  135. <!-- End of Carousel Inner -->
  136.  
  137. <!-- Prev & Next Buttons -->
  138. <a class="carousel-control-prev"href="#carouselExampleIndicators"role="button"data-slide="prev">
  139. <span class="carousel-control-prev-icon" aria-hidden="true"></span>
  140. </a>
  141. <a class="carousel-control-next"href="#carouselExampleIndicators"role="button"data-slide="next">
  142. <span class="carousel-control-next-icon" aria-hidden="true"></span>
  143. </a>
  144. </div>
  145. </div>
  146. <!-- End Image Slider -->
  147. </div>
  148. <!-- End Home Section -->
  149.  
  150. <!-- Start Advertise customer Benefits -->
  151. <div class='row'>
  152. <div class="col-sm-4" style="margin-left:auto; margin-right:auto; display:block;">
  153. <?= $this->Html->image('woman.png', ['alt' => 'CakePHP', 'width' => '50%', 'url' => array('controller' => 'store', 'action' => 'women')]); ?></a>
  154. <div class="box1 sb5">Click Me!</div>
  155. </div>
  156.  
  157. <div class="col-sm-4" style="margin-left:auto; margin-right:auto; display:block;">
  158. <?= $this->Html->image('man.png', ['alt' => 'CakePHP', 'width' => '50%', 'url' => array('controller' => 'store', 'action' => 'men')]); ?></a>
  159. </div>
  160.  
  161. <div class="col-sm-4" style="margin-left:auto; margin-right:auto; display:block;">
  162. <?= $this->Html->image('xtraitems.png', ['alt' => 'CakePHP', 'width' => '50%', 'url' => array('controller' => 'store', 'action' => 'accessories')]); ?></a>
  163. </div>
  164. </div>
  165.  
  166. <div class="jumbotron-promise">
  167. <!-- <div class="col-12 text-center">
  168. <h3>Our Promise</h3>
  169. <div class="heading-underline"></div>
  170. </div> -->
  171.  
  172. <div class="row dark text-center">
  173. <div class="col-sm-4" style="width: 30%">
  174. <?= $this->Html->image('/img/shoes.png',['width'=> '115px', 'height'=>'125px']) ?>
  175. <div class="#" style="display:inline-block; width: 50%;">
  176. <p>Expert Advice<br></p>
  177. </div>
  178. </div>
  179.  
  180. <div class="col-sm-4">
  181. <?= $this->Html->image('/img/shipping.png',['width'=> '115px', 'height'=>'125px']) ?>
  182. <div class="#" style="display:inline-block;">
  183. <p>Free Shipping <br> Orders over $100</p>
  184. </div>
  185. </div>
  186.  
  187. <div class="col-sm-4">
  188. <?= $this->Html->image('/img/list.png',['width'=> '115px', 'height'=>'125px']) ?>
  189. <div class="#" style="display:inline-block;">
  190. <p>Free Returns <br>Shop with Confidence</p>
  191. </div>
  192. </div>
  193. </div>
  194. </div>
  195. <!-- End Advertise customer Benefits -->
  196.  
  197. <!-- Start SocMed -->
  198. <div class="jumbotron-social">
  199. <div class="row dark text-center">
  200. <div class="col-sm-4">
  201. <?= $this->Html->image('/img/instagram.png',['width'=> '115px', 'height'=>'125px']) ?>
  202. <div class="#" style="display:inline-block;">
  203. <p>Follow our Instagram</p>
  204. </div>
  205. </div>
  206.  
  207. <div class="col-sm-4">
  208. <?= $this->Html->image('/img/subs.png',['width'=> '115px', 'height'=>'125px']) ?>
  209. <div class="#" style="display:inline-block;">
  210. <p>Receive our latest deals <br>Subscribe</p>
  211. </div>
  212. </div>
  213.  
  214. <div class="col-sm-4">
  215. <?= $this->Html->image('/img/facebook.png', ['width'=> '115px', 'height'=>'125px']); ?>
  216. <div class="#" style="display:inline-block;">
  217. <p>Like us on Facebook</p>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. <!-- End SocMed -->
  223.  
  224. <!-- Start Popular Products Section -->
  225. <div id="popular">
  226. <div class="col-12 text-center">
  227. <h3 class="heading">Popular Products</h3>
  228. <div class="heading-underline"></div>
  229. </div>
  230.  
  231. <style>
  232. .linecamp{
  233. overflow : hidden;
  234. text-overflow: ellipsis;
  235. display: -webkit-box;
  236. -webkit-box-orient: vertical;
  237. -webkit-line-clamp: 4;
  238. word-wrap:break-word;
  239. word-break:break-all;
  240. }
  241. </style>
  242.  
  243. <div style="margin-left:auto;margin-right:auto;display:table;">
  244.  
  245. <div class="row justify-content-lg-between" style="text-align: center;">
  246. <?php
  247. foreach($products as $product)
  248. {
  249. if( h($product->popular) == 1)
  250. {
  251. ?>
  252. <div style="width: 255px">
  253. <div class="card text-center" >
  254. <div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
  255. <ol class="carousel-indicators">
  256.  
  257. <?php
  258.  
  259. $counter = 0;
  260.  
  261. foreach($product->imgs as $img)
  262. {
  263.  
  264. if($counter == 0)
  265. {
  266. ?>
  267. <li data-target="#carouselExampleIndicators"data-slide-to="<?= $counter ?>"class="active"></li>
  268. <?php
  269.  
  270. } else {
  271. ?>
  272. <li data-target="#carouselExampleIndicators"data-slide-to="<?= $counter ?>"></li>
  273. <?php
  274.  
  275. }
  276.  
  277. $counter++;
  278. }
  279.  
  280. ?>
  281.  
  282. </ol>
  283. <div class="carousel-inner" role="listbox">
  284. <?php
  285.  
  286. $counter = 0;
  287.  
  288. foreach($product->imgs as $img)
  289. {
  290.  
  291. if($counter == 0)
  292. {
  293. ?>
  294. <div class="carousel-item active">
  295. <?= $this->Html->image($img->img1, ['alt' => 'CakePHP', 'width' => '100%'], array('class'=>'img-rounded')); ?>
  296. </div>
  297. <?php
  298.  
  299. } else {
  300. ?>
  301. <div class="carousel-item">
  302. <?= $this->Html->image($img->img1, ['alt' => 'CakePHP', 'width' => '100%'], array('class'=>'img-rounded')); ?>
  303. </div>
  304. <?php
  305.  
  306. }
  307.  
  308. $counter++;
  309. }
  310. ?>
  311. </div>
  312.  
  313. </div>
  314. </div>
  315. <div class="card-body">
  316. <div>
  317. <h6><strong><?= h($product->name); ?></strong></h6>
  318. </div>
  319. <div class="linecamp">
  320. <h7><?= h($product->description); ?></h7>
  321. </div>
  322. <div >
  323. <?= $this->Html->link(__('<button class="hugeButton"> DETAILS </button>'), ['controller' => 'Store', 'action' => 'details', $product->id], ['escape' => false]) ?>
  324. </div>
  325. </div>
  326. </div>
  327. <?php
  328. }
  329. }
  330.  
  331. ?>
  332. </div>
  333. </div>
  334. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement