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
<?php | |
namespace Tests; | |
use Illuminate\Database\Eloquent\Factories\Factory; | |
use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | |
use Illuminate\Support\Str; | |
abstract class TestCase extends BaseTestCase | |
{ |
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
<?php | |
// This model simply inherits from the base Corcel Taxonomy model. | |
// It allows us to set our DB connection and also implement the | |
// ImportsTermSeo trait (see next file) | |
namespace App\Models\Corcel; | |
use App\Wordpress\ImportsTermSeo; |
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
<?php | |
// check parent repeater | |
if( have_rows('parent_navigation_items', 'options') ): | |
echo '<ul class="nav primary-header-nav">'; | |
// loop parent items | |
while ( have_rows('parent_navigation_items', 'options') ) : the_row(); | |
echo '<li>'; |
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
<pre> | |
Array | |
( | |
[0] => Array | |
( | |
[parent_link_text] => About Us | |
[parent_link] => WP_Post Object | |
( | |
[ID] => 6 | |
[post_author] => 1 |
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
kudos to - http://bigwilliam.com/gitignore-for-wordpress-projects/ | |
############################################################################### | |
## # | |
## GIT IGNORE FOR WORDPRESS SITES # | |
## ------------------------------ # | |
## By: BigWilliam <[email protected]> # | |
## License: MIT - aka you can use/modify this how you want :) # | |
## # | |
############################################################################### |