Add mobile tutorials

This commit is contained in:
Joey Kimsey
2025-01-30 16:06:06 -05:00
parent 928d78ce44
commit 2301e212bf
9 changed files with 134 additions and 0 deletions

View File

@ -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 );
}
}