public function text_image_share($img_name, $title) { $data = ["route_info" => \sr::games("text_img"), 'theme' => $this->themes[0], 'ng_app' => "myApp"]; $title = str_replace("_", " ", $title); $data["route_info"]['page_title'] = $title; $data["route_info"]['page_desc'] = "برنامج جامد بيحط أسمك على مجموعة صور و برامج بتحبها. لازم تجرب البرنامج الرهيب ده. جرب و حط اسمك على الحجات إلى بتحبها."; $data["route_info"]['layout'] = $this->default_text_image; $full_image_path = real_imgs_dir . "games/text-images/saved-images/" . $img_name; // dd($full_image_path); if (file_exists($full_image_path)) { $data["route_info"]['page_img'] = "games/text-images/saved-images/" . $img_name; } else { $data["route_info"]['page_img'] = "games/text-images/saved-images/-placeholder.jpg"; } // dd($full_image_path); return $this->text_image($this->default_text_image, $data); // return $this->get_view("Games.text-img.index",$data); }
<?php $home_list = ["Home" => ["title" => "Home", "logo" => "home", "link" => url('/')], "My Blog" => ["title" => "My Blog", "logo" => "wordpress", "link" => url('blog')], "Contact Me" => ["title" => "Contact Me", "logo" => "user", "link" => url('contact')], "My C.V" => ["title" => "My C.V", "logo" => "suitcase", "link" => url('cv')], ["title" => "Projects", "logo" => "cogs", "link" => url('projects')], ["title" => "Tests & APIs", "logo" => "magic", "link" => url('site-tests')]]; $projects_list = get_routes_array(\sr::projects()); $apis_list = get_routes_array(\sr::api()); $games_list = get_routes_array(\sr::games());
<?php $index = ["img" => get_thumb($page_img), "title" => "Games I Developed", "desc" => "This is Some of the Games i have Developed.", "desc2" => 'معذرة! بعض هذه الألعاب غير مجهز للعمل مع الأجهزة المحمولة (الموبيل - التابلت)', "itiration" => sr::games()]; ?> @include(get_location("index"))