Adding div below primary navigation add_action( ‘genesis_before_content_sidebar_wrap’, ‘feature_my_single_post_image’ ); function feature_my_single_post_image() { if( is_singular( ‘page’ ) ) { global $post; $size = ‘full-size’; $default_attr = array( ‘class’ => “aligncenter attachment-$size $size”, ‘alt’ => $post->post_title, ‘title’ => $post->post_title, ); printf( ‘<div class=”example”>%s</div>’, genesis_get_image( array( ‘size’ => $size, ‘attr’ => $default_attr ) ) ); } } add_image_size(‘panoramic’,…
Technology
-
-
List all diskutil list Mount disk diskutil mount /dev/disk2s1 Umount diskutil unmount /dev/disk2s1
-
There is a lot special functions that helps simplified our code like this Looking for more? Visit here or https://laravel.com/docs/5.3/eloquent-collections.
-
There is time where we need to indentify is this the correct page / route we access before we proceed to the next step. Route @if(action(‘FuntasticController@show’) == Request::url()) {} Name Route @if(Route::is(‘locationCluster’)){} or @if(route(‘namedRoute’) == Request::url()){}
-
In terms of security, it is not wise to use GET method to logout from your applications. To make more secure, use POST method. <li> <a href=”{{ url(‘/logout’) }}” onclick=”event.preventDefault(); document.getElementById(‘logout-form’).submit();”> Logout </a> <form id=”logout-form” action=”{{ url(‘/logout’) }}” method=”POST” style=”display: none;”> {{ csrf_field() }} </form> </li> In your controller public function logout() { if(Sentinel::logout()){ return…