/** * Display a listing of the resource. * * @return Response */ public function post(Request $request, $post) { $qGetTags = Tags::all(); $qGetCategories = Categories::where('cID', '!=', 1)->get(); $qArticle = $post; return view('user.show-post', compact('qGetTags', 'qGetCategories', 'qArticle')); }
public function edit($post_id) { $post = Posts::with('tags')->find($post_id); $data = ['categories' => Categories::all(), 'post' => $post, 'title' => $post->id . ' : Edit Post', 'save_url' => route('root-posts-store', ['post_id' => $post_id]), 'tags' => Tags::all()]; $this->title->prepend($data['title']); View::share('menu_item_active', 'posts'); return view('root.posts.post', $data); }
public function edit($post_id) { $post = Posts::with('tags')->find($post_id); Title::prepend('Edit Post'); Title::prepend($post->id); $data = ['categories' => Categories::all(), 'post' => $post, 'title' => Title::renderr(' : ', true), 'save_url' => route('root-posts-store', ['post_id' => $post_id]), 'tags' => Tags::all()]; View::share('menu_item_active', 'posts'); return view('root.posts.post', $data); }
public function create(Request $request) { $qCategories = Categories::all(); $qTags = Tags::all(); $articleID = $request->aID ? $request->aID : 0; if ($articleID) { $qArticles = Articles::where("aID", $articleID)->first(); } else { $qArticles = new Articles(); } return view('admin.article.create', compact('qArticles', 'articleID', 'qCategories', 'qTags')); }
public function crawler(Request $request) { $this->allLinks = array(); if ($request->server('REQUEST_METHOD') == "POST") { $domain = strpos($request->domainURL, "http://") !== false ? $request->domainURL : "http://" . $request->domainURL; $this->domain = $domain; $this->count = $request->limitPages; $this->index_current = 0; $this->limit_page = $request->limitPages; $this->allLinks[0] = array("page" => $domain, "status" => "", "mark" => ""); $this->find_character = $request->checkCharacter; $this->spider($domain); } $allLinks = $this->allLinks; $qGetTags = Tags::all(); $qGetCategories = Categories::where('cID', '!=', 1)->get(); return view('functionally.crawler', compact('qGetTags', 'qGetCategories', 'allLinks')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $qTags = Tags::all(); return view('admin.tags', compact('qTags')); }
public function getTags() { $tags = Tags::all(); return view('admin.diary.tags', ['pageInfo' => ['siteTitle' => 'Tags Manager', 'pageHeading' => 'Tags Manager', 'pageHeadingSlogan' => 'I write here what I learn'], 'data' => ['tags' => $tags]]); }
public function getBlogSingle($slug) { $dados = array('post' => \App\Models\Posts::getPostsStatus($slug), 'tags' => \App\Models\Tags::all()); return view('themes.linexti.blog-single', $dados); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { if ($result = check_auth_to('WZGL_EDIT')) { return $result; } $data['categoryTreeList'] = Category::getCategoryTree(); $data['articleInfo'] = Article::find($id); $data['tagsList'] = Tags::all(); $data['articleInfo']->tags = Tags::getTagsName($data['articleInfo']->tags); return view('admin.article.edit', $data); }
/** * Display the specified resource. * * @param int $id * @return Response */ public function tags() { $style = ' <link rel="stylesheet" href="' . \URL::to('vendor/datatables-colvis/css/dataTables.colVis.css') . '"> <link rel="stylesheet" href="' . \URL::to('app/vendor/datatable-bootstrap/css/dataTables.bootstrap.css') . '"> '; $script = ' <script src="' . \URL::to('vendor/bootstrap-filestyle/src/bootstrap-filestyle.js') . '"></script> <script src="' . \URL::to('vendor/chosen_v1.2.0/chosen.jquery.min.js') . '"></script> <script src="' . \URL::to('vendor/datatables/media/js/jquery.dataTables.min.js') . '"></script> <script src="' . \URL::to('vendor/datatables-colvis/js/dataTables.colVis.js') . '"></script> <script src="' . \URL::to('app/vendor/datatable-bootstrap/js/dataTables.bootstrap.js') . '"></script> <script src="' . \URL::to('app/vendor/datatable-bootstrap/js/dataTables.bootstrapPagination.js') . '"></script> <script src="' . \URL::to('app/js/demo/demo-datatable.js') . '"></script> <script src="' . \URL::to('app/js/ajax/tags.js') . '"></script> '; $tags = Tags::all(); $dados = array('tags' => $tags, 'style' => $style, 'script' => $script); return view('admin.blog.tags', $dados); }