Add mobile tutorials
This commit is contained in:
@ -100,4 +100,15 @@ class Tutorials extends Controller {
|
||||
}
|
||||
return Views::view( 'bookmarks.tutorials.safari.' . $tutorial );
|
||||
}
|
||||
|
||||
public function mobile( $tutorial = '' ) {
|
||||
Navigation::setCrumbComponent( 'tutorialCrumbs', Input::get( 'url' ) );
|
||||
if ( ! in_array( $tutorial, ['iphone','android'] ) ) {
|
||||
$test = new \stdClass();
|
||||
$test->pretty = 'Mobile';
|
||||
$test->printed = 'mobile';
|
||||
return Views::view( 'bookmarks.tutorials.mobileCard', [ $test ] );
|
||||
}
|
||||
return Views::view( 'bookmarks.tutorials.mobile.' . $tutorial );
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user