Last active
March 26, 2019 23:54
-
-
Save evercode1/1139bb43fede57700502bc12b1aacd09 to your computer and use it in GitHub Desktop.
Revisions
-
evercode1 revised this gist
Jan 28, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ <div> @if ($notEnoughImages) Not enough images in slider. Populate images or remove slider include from pages.index. @else -
evercode1 revised this gist
Aug 31, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ @else <div id="carousel-marketing-images" class="carousel slide" data-ride="carousel" data-interval="false"> <!-- Indicators --> -
evercode1 revised this gist
Aug 31, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ @else <div id="carousel-marketing-images" class="carousel slide" data-ride="carousel" data-interval="false"> <!-- Indicators --> -
evercode1 revised this gist
Aug 30, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ @else <div class="carousel slide" data-ride="carousel"> <!-- Indicators --> @@ -24,7 +24,7 @@ <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item active"> <img src="{{ $featuredImage->showImage($featuredImage, $imagePath) }}" alt="{{ $featuredImage->image_name }}"> @@ -36,7 +36,7 @@ @foreach ($activeImages as $image) <div class="item"> <img src="{{ $image->showImage($image, $imagePath)}}" alt="{{ $image->image_name }}"> -
evercode1 revised this gist
Aug 30, 2016 . 1 changed file with 7 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Not enough images in slider @else <div id="carousel-marketing-images" class="carousel slide" data-ride="carousel"> <!-- Indicators --> @@ -24,7 +24,7 @@ <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item active marketing-carousel-img"> <img src="{{ $featuredImage->showImage($featuredImage, $imagePath) }}" alt="{{ $featuredImage->image_name }}"> @@ -36,11 +36,12 @@ @foreach ($activeImages as $image) <div class="item marketing-carousel-img"> <img src="{{ $image->showImage($image, $imagePath)}}" alt="{{ $image->image_name }}"> <div class="carousel-caption"> <h1> </h1> </div> @@ -51,15 +52,17 @@ </div> <!-- Controls --> <a class="left carousel-control" href="#carousel-marketing-images" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#carousel-marketing-images" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> @endif -
evercode1 revised this gist
Aug 30, 2016 . 1 changed file with 0 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -38,12 +38,9 @@ <div class="item"> <img src="{{ $image->showImage($image, $imagePath)}}" alt="{{ $image->image_name }}"> <div class="carousel-caption"> <h1> </h1> </div> -
evercode1 revised this gist
Aug 30, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Not enough images in slider @else <div id="carousel-marketing-images" class="carousel slide" data-ride="carousel"> <!-- Indicators --> -
evercode1 revised this gist
Aug 30, 2016 . 1 changed file with 47 additions and 40 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,63 +1,70 @@ <div> <div> @if ($notEnoughImages) Not enough images in slider @else <div id="carousel-marketing-images" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-marketing-images" data-slide-to="0" class="active"></li> @foreach (range(1, $count) as $number) <li data-target="#carousel-marketing-images" data-slide-to="{{ $number }}"></li> @endforeach </ol> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item active"> <img src="{{ $featuredImage->showImage($featuredImage, $imagePath) }}" alt="{{ $featuredImage->image_name }}"> <div class="carousel-caption"> <h1></h1> </div> </div> @foreach ($activeImages as $image) <div class="item"> <img src="{{ $image->showImage($image, $imagePath)}}" alt="{{ $image->image_name }}"> <div class="carousel-caption"> <h1> </h1> </div> </div> @endforeach </div> <!-- Controls --> <a class="left carousel-control" href="#carousel-marketing-images" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#carousel-marketing-images" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> @endif </div> </div> -
evercode1 revised this gist
Aug 30, 2016 . 1 changed file with 40 additions and 54 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,77 +1,63 @@ <?php namespace App\Http\Controllers; use App\MarketingImage; use App\Traits\ManagesImages; use App\Traits\ShowsImages; use Illuminate\Http\Request; use App\Http\Requests; class PagesController extends Controller { use ManagesImages, ShowsImages; public function __construct() { $this->setImageDefaultsFromConfig('marketingImage'); } public function index() { $featuredImage = MarketingImage::where('is_featured', 1) ->where('is_active', 1) ->first(); $activeImages = MarketingImage::where('is_featured', 0) ->where('is_active', 1) ->get(); $count = count($activeImages); $notEnoughImages = $this->notEnoughSliderImages($featuredImage, $activeImages); $imagePath = $this->imagePath; return view('pages.index', compact('featuredImage', 'activeImages', 'count', 'imagePath', 'notEnoughImages')); } public function terms() { return view('pages.terms-of-service'); } public function privacy() { return view('pages.privacy'); } } -
evercode1 created this gist
Aug 30, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,77 @@ <div> <div> @if( ! isset($count)) No images in slider @else <div id="carousel-marketing-images" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-marketing-images" data-slide-to="0" class="active"></li> @foreach(range(1, $count) as $number) <li data-target="#carousel-marketing-images" data-slide-to="{{ $number }}"></li> @endforeach </ol> @if( ! isset($featuredImage) || ! isset($activeImages)) Nothing here, boss... @else <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item active"> <img src="{{ $featuredImage->showImage($featuredImage, $imagePath) }}" alt="{{ $featuredImage->image_name }}"> <div class="carousel-caption"> <h1></h1> </div> </div> @foreach($activeImages as $image) <div class="item"> <img src="{{ $image->showImage($image, $imagePath)}}" alt="{{ $image->image_name }}"> <div class="carousel-caption"> <h1> </h1> </div> </div> @endforeach </div> @endif <!-- Controls --> <a class="left carousel-control" href="#carousel-marketing-images" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#carousel-marketing-images" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> @endif </div> </div>