public static function slideshow_data($slideshow, $field) { if (Input::had($field)) { return Input::old($field); } else { return HtmlHelpers::slideshow_image_path($slideshow, $slideshow->number, 'medium'); } }
public function get_confirmation($email = null, $hash = null) { try { $confirmation = Sentry::reset_password_confirm($email, $hash); if ($confirmation) { return Redirect::to(URL::to_route('session.login'))->with('status_success', __('application.resset_ok')); } else { return View::make('session/reset_confirmation_invalid')->with('title', HtmlHelpers::name('reset_invalid_header')); } } catch (Sentry\SentryException $e) { return View::make('session/reset_confirmation_invalid')->with('title', HtmlHelpers::name('reset_invalid_header')); } }
public function get_contact() { return View::make('home.contact')->with('nav', 'contact')->with('title', HtmlHelpers::name('contact')); }
public function get_events_search() { list($terms, $events) = Search::search_events(Input::get('q')); return View::make('dashboard.events')->with('title', HtmlHelpers::name('manage_events'))->with('active', 'manage_events')->with('events', $events); }
public function get_show($tag) { $paintings = Tag::where('name', '=', $tag)->first()->paintings()->paginate(Config::get('app.paginator_count')); return View::make('tags.show')->with('title', HtmlHelpers::name('tags') . ' - ' . Str::title($tag))->with('nav', 'work')->with('tag', $tag)->with('paintings', $paintings); }
<div class="row-fluid"> <div class="control-group"> <div class="controls"> {{ Form::submit(__('application.painting_save'), array('class' => 'btn btn-success')) }} </div> </div> </div> </div> {{ Form::token() }} {{ Form::close() }} </div> <script type="text/javascript"> var old_tags = <?php echo HtmlHelpers::old_tags(); ?> ; var painting_tags = <?php echo HtmlHelpers::painting_data($painting, 'tags'); ?> ; var all_tags = <?php echo HtmlHelpers::all_tags(); ?> ; </script> @endsection
public function get_index() { $events = GroupEvent::order_by('created_at', 'desc')->paginate(Config::get('app.paginator_count')); $count = ceil(count($events->results) / 2); return View::make('events.index')->with('title', HtmlHelpers::name('events'))->with('nav', 'events')->with('events', $events)->with('count', $count); }
public function get_paintings_search() { list($terms, $paintings) = Search::search_paintings(Input::get('q')); return View::make('work.index')->with('title', HtmlHelpers::name('work') . ' - ' . __('application.search_results'))->with('nav', 'work')->with('painter', __('application.search_results'))->with('paintings', $paintings); }