-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #692 from waynestate/release/8.8.0
Release/8.8.0
- Loading branch information
Showing
99 changed files
with
1,767 additions
and
562 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?php | ||
|
||
namespace Factories; | ||
|
||
use Contracts\Factories\FactoryContract; | ||
use Faker\Factory; | ||
|
||
class EventFullListing implements FactoryContract | ||
{ | ||
/** | ||
* Construct the factory. | ||
*/ | ||
public function __construct(Factory $faker) | ||
{ | ||
$this->faker = $faker->create(); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function create($limit = 1, $flatten = false, $options = []) | ||
{ | ||
for ($i = 1; $i <= $limit; $i++) { | ||
$date = $this->faker->dateTimeBetween('+10 days', '+15 days')->format('Y-m-d'); | ||
$title = $this->faker->sentence(rand(6, 10)); | ||
$imagex = $this->faker->randomElement([ | ||
'/styleguide/image/600x600?text=600x600:'.$i, | ||
'' | ||
]); | ||
$description = $this->faker->text(100); | ||
$image = '/styleguide/image/600x600?text=600x600:'.$i; | ||
|
||
$event = [ | ||
'event_id' => $i, | ||
'url' => 'https://wayne.edu', | ||
'title' => $title, | ||
'date' => $date, | ||
'start_time' => $this->faker->time('H:i:s', 'now'), | ||
'end_time' => $this->faker->time('H:i:s', '+5 hours'), | ||
'repeat_end_date' => $this->faker->dateTimeBetween('+1 month', '+2 months')->format('Y-m-d'), | ||
'end_date' => $this->faker->dateTimeBetween('+10 days', '+15 days')->format('Y-m-d'), | ||
'images' => [ | ||
0 => [ | ||
'full_url' => $image, | ||
'description' => $description, | ||
], | ||
], | ||
'display_image' => [ | ||
'full_url' => $image, | ||
'description' => $description, | ||
], | ||
'is_all_day' => $this->faker->boolean, | ||
]; | ||
$event = array_replace_recursive($event, $options); | ||
|
||
$data[$i] = $event; | ||
} | ||
|
||
return $data; | ||
} | ||
} |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
namespace Factories; | ||
|
||
use Contracts\Factories\FactoryContract; | ||
use Faker\Factory; | ||
|
||
class EventFullListingNoImage implements FactoryContract | ||
{ | ||
/** | ||
* Construct the factory. | ||
*/ | ||
public function __construct(Factory $faker) | ||
{ | ||
$this->faker = $faker->create(); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function create($limit = 1, $flatten = false, $options = []) | ||
{ | ||
for ($i = 1; $i <= $limit; $i++) { | ||
$date = $this->faker->dateTimeBetween('+10 days', '+15 days')->format('Y-m-d'); | ||
$title = $this->faker->sentence(rand(6, 10)); | ||
|
||
$event = [ | ||
'event_id' => $i, | ||
'url' => 'https://wayne.edu', | ||
'title' => $title, | ||
'date' => $date, | ||
'start_time' => $this->faker->time('H:i:s', 'now'), | ||
'end_time' => $this->faker->time('H:i:s', '+5 hours'), | ||
'repeat_end_date' => $this->faker->dateTimeBetween('+1 month', '+2 months')->format('Y-m-d'), | ||
'end_date' => $this->faker->dateTimeBetween('+10 days', '+15 days')->format('Y-m-d'), | ||
'images' => '', | ||
'is_all_day' => $this->faker->boolean, | ||
]; | ||
$event = array_replace_recursive($event, $options); | ||
|
||
$data[$i] = $event; | ||
} | ||
|
||
return $data; | ||
} | ||
} |
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
namespace Factories; | ||
|
||
use Contracts\Factories\FactoryContract; | ||
use Faker\Factory; | ||
|
||
class HeroImageRotate implements FactoryContract | ||
{ | ||
/** | ||
* Construct the factory. | ||
*/ | ||
public function __construct(Factory $faker) | ||
{ | ||
$this->faker = $faker->create(); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function create($limit = 1, $flatten = false, $options = []) | ||
{ | ||
for ($i = 1; $i <= $limit; $i++) { | ||
$data[$i] = [ | ||
'title' => $this->faker->sentence(3), | ||
'description' => '<p>' . $this->faker->text(100) . ' <a href="https://wayne.edu">'. $this->faker->sentence(3) .'</a></p>', | ||
'link' => 'https://wayne.edu', | ||
'relative_url' => '/styleguide/image/1600x580?text=Primary%20image%20('.$i.')', | ||
'filename_url' => '/styleguide/image/1600x580?text=Primary%20image%20('.$i.')', | ||
'filename_alt_text' => 'Example background image', | ||
'secondary_filename_url' => '/styleguide/image/400x250?text=Secondary%20image%20('.$i.')', | ||
'secondary_relative_url' => '/styleguide/image/400x250?text=Secondary%20image%20('.$i.')', | ||
'secondary_alt_text' => 'Example secondary image', | ||
'option' => $this->faker->randomElement(['Text Overlay', 'Half', 'Logo Overlay', 'Banner large']), | ||
]; | ||
|
||
$data[$i] = array_replace_recursive($data[$i], $options); | ||
} | ||
|
||
if ($limit === 1 && $flatten === true) { | ||
return current($data); | ||
} | ||
|
||
return $data; | ||
} | ||
} |
Oops, something went wrong.