public function index() { $campuses = Campus::all(); $campus_obj = []; foreach ($campuses as $campus) { $campus_obj[$campus->slug] = ['slug' => $campus->slug, 'name' => $campus->name, 'title' => $campus->name . ' Campus', 'location' => $campus->location, 'address' => $campus->address, 'city' => $campus->city, 'state' => $campus->state, 'zip' => $campus->zip, 'lat' => $campus->lat, 'lng' => $campus->lng, 'map_url' => $campus->map_url, 'directions_url' => $campus->directions_url, 'thumbnail' => cdn_image('sm', 'full', $campus->image, 'wide'), 'url' => $campus->url, 'times' => str_replace('; ', '<br>', $campus->times)]; } return view('locations', ['campuses' => $campuses, 'campuses_json' => json_encode($campus_obj)]); }
?> <span class="Card-image b-lazy" data-src-sm="<?php echo cdn_image('sm', 'full', $card->card_image); ?> " data-src-md="<?php echo cdn_image('md', 'full', $card->card_image); ?> " data-src-lg="<?php echo cdn_image('lg', 'full', $card->card_image); ?> " data-src="<?php echo cdn_image('xl', 'half', $card->card_image); ?> "></span> <?php } ?> <div class="Card-body"> <h3 class="Card-title"><?php echo $card->card_title; ?> </h3> <?php if (!empty($card->card_subtitle)) { ?> <h4 class="Card-subtitle"><?php echo $card->card_subtitle;
?> " data-src-sm="<?php echo cdn_image('sm', 'full', $args["image"]); ?> " data-src-md="<?php echo cdn_image('md', 'full', $args["image"]); ?> " data-src-lg="<?php echo cdn_image('lg', 'full', $args["image"]); ?> " data-src="<?php echo cdn_image('xl', 'full', $args["image"]); ?> "> <div class="BackgroundSection-container"> <div class="BackgroundSection-text"> <h2 class="BackgroundSection-title"><?php echo $args['title']; ?> </h2> <?php } ?> <?php if ($directive['execution_mode'] == 'end') {
<?php $hero_image = isset($hero_image) ? $hero_image : 'images/pages/' . Request::path() . '-wide.jpg'; $og_image = isset($og_image) ? $og_image : cdn_image('lg', 'full', $hero_image, 'tall'); $og_image_width = isset($og_image_width) ? $og_image_width : '1200'; $og_image_height = isset($og_image_height) ? $og_image_height : '675'; ?> @extends('layouts.default') @section('content') @inlinecss <style type="text/css"> /* small <= 320px */ .hero_image { background-image: url({{ cdn_image('sm', 'full', $hero_image, 'tall') }}); } /* medium >= 321px */ @media (min-width: 20.0625rem) { .hero_image { background-image: url({{ cdn_image('md', 'full', $hero_image, 'tall') }}); } } /* large >= 601px */ @media (min-width: 30.0625rem) { .hero_image { background-image: url({{ cdn_image('lg', 'full', $hero_image, 'tall') }}); } } /* x-large >= 481px */ @media (min-width: 37.5625rem) { .hero_image { background-image: url({{ cdn_image('xl', 'full', $hero_image, 'tall') }}); } }
<?php $og_image = cdn_image('lg', 'full', $video->Series->image, 'tall'); $og_image_width = isset($og_image_width) ? $og_image_width : '1200'; $og_image_height = isset($og_image_height) ? $og_image_height : '675'; ?> @extends('layouts.default', ['title' => $video->title, 'hero_image' => $video->Series->image]) @section('content') @include('partials.hero_video', [ 'video' => $video ]) <div class="TableSection"> <div class="TableSection-container"> <h1 class="TableSection-title">Messages</h1> @include ('partials.series_playlist', ['videos' => $videos]) </div> </div> @endsection
"> <span class="ProfilesSection-photo b-lazy" data-src-sm="<?php echo cdn_image('sm', 'half', $profile->image, 'square'); ?> " data-src-md="<?php echo cdn_image('md', 'half', $profile->image, 'square'); ?> " data-src-lg="<?php echo cdn_image('lg', 'half', $profile->image, 'square'); ?> " data-src="<?php echo cdn_image('xl', 'third', $profile->image, 'square'); ?> "></span> <span class="ProfilesSection-name"><?php echo $profile->profile_name; ?> </span> <span class="ProfilesSection-profileTitle"><?php echo $profile->profile_title; ?> </span> </a> </li> <?php } ?>
/* 768px */ @media (min-width: 48em) { .HeroVideo-thumb { background-image: url(<?php echo cdn_image('xl', 'quarter', $video->image, 'square'); ?> ); } } /* 1024px */ @media (min-width: 64em) { .HeroVideo-thumb { background-image: url(<?php echo cdn_image('xl', 'half', $video->image, 'tall'); ?> ); } } </style> @endinlinecss <div class="HeroVideo"> <div class="HeroVideo-container"> <div class="HeroVideo-thumbWrap"> <div class="HeroVideo-thumb"></div> </div> <div class="HeroVideo-infoWrap"> <div class="HeroVideo-info"> @if (! empty($heading))
<div class="Album"> <span class="Album-image b-lazy" data-src-sm="<?php echo cdn_image('sm', 'full', $album->image); ?> " data-src-md="<?php echo cdn_image('md', 'full', $album->image); ?> " data-src-lg="<?php echo cdn_image('lg', 'full', $album->image); ?> " data-src="<?php echo cdn_image('xl', 'half', $album->image); ?> "></span> <div class="Album-buy"> <span class="Album-buyLabel">Available on:</span> @if (!empty($album->itunes)) <a class="Album-buyLink" href="{{ $album->itunes }}"><i class="icon-itunes"></i></a> @endif @if (!empty($album->googleplay)) <a class="Album-buyLink" href="{{ $album->googleplay }}"><i class="icon-googleplay"></i></a> @endif @if (!empty($album->amazon)) <a class="Album-buyLink" href="{{ $album->amazon }}"><i class="icon-amazon"></i></a> @endif </div> </div>