This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Browser support | |
/*var request; | |
if(window.XMLHttpRequest){ | |
request = new XMLHttpRequest(); | |
}else{ | |
request = new ActiveXObject('Microsoft.XMLHttp'); | |
} | |
request.open('GET', 'data.txt'); | |
request.onreadystatechange = function(){ | |
if((request.readyState == 4) && (request.status==200)){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Watch Ruth on HGTV</h1> | |
<input type="button" value="Open popup!" id="popup__toggle" /> | |
<div class="popup__overlay"> | |
<div class="popup"> <a href="#" class="popup__close">X</a> https://developers.google.com/youtube/player_parameters?hl=ru | |
<br/> https://developers.google.com/youtube/iframe_api_reference?hl=ru | |
</div> | |
</div> | |
<!-- http://stackoverflow.com/questions/8667882/how-to-pause-a-youtube-player-when-hiding-the-iframe --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::put('profile-update','SettingsController@updateProfile')->name('profile.update'); | |
Route::put('password-update','SettingsController@updatePassword')->name('password.update'); | |
=================================== Controller ===================================== | |
use App\User; | |
use Brian2694\Toastr\Facades\Toastr; | |
use Carbon\Carbon; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////// Product Uplaod/////////////////////////////// | |
public function store(Request $request) | |
{ | |
$this->validate($request,[ | |
'title' => 'required', | |
'sub_title' => 'required', | |
'image' => 'required|mimes:jpeg,jpg,bmp,png', | |
]); | |
$image = $request->file('image'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="row"> | |
<div class="col-md-4 col-md-offset-4"> | |
<div class="login-panel panel panel-default"> | |
<div class="panel-heading"> | |
<h3 class="panel-title">Please Sign In</h3> | |
</div> | |
<div class="panel-body"> | |
{!! Form::open(['url'=>'/login','method'=>'POST'])!!} | |
<fieldset> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=============================FONTEND FORM=============================== | |
<form class="form-horizontal" action="" method="post" enctype="multipart/form-data"> | |
<input type="file" name="image" accept="image/*" multiple /> | |
===========================BACKEND================================ | |
if(isset($_POST['save'])){ | |
$message = $blog->save_image_info($_POST); | |
} | |
$query_result = $blog->selectAllimageinfo(); | |
============================FUNCTION====================================== | |
public function save_image_info() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Student { | |
// public function __construct() { | |
// | |
// } | |
public function save_student_info($data){ | |
$host_name='localhost'; | |
$user_name='root'; | |
$password =''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 = Dashboard | |
4 = Separator | |
5 = Posts | |
10 = Media | |
15 = Link | |
20 = Pages | |
25 = Comments | |
59 = Seperator | |
60 = Appearance | |
65 = Plugins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php wp_head(); ?> //Add end of header section. | |
<?php wp_footer(); ?> //Add end of footer section. | |
// Include style and escript in wordpress | |
<?php | |
if(! function_exists('hasan_theme_scripts')){ | |
add_action('wp_enqueue_scripts','hasan_theme_scripts'); | |
function hasan_theme_scripts(){ | |
wp_enqueue_style('bootstrap', get_template_directory_uri().'/css/bootstrap.min.css', array(),'1.0.0','all'); | |
NewerOlder