This file contains 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
// Geçen Zaman | |
function GecenZaman(gecenSure){ | |
if(gecenSure){ | |
var myDate = new Date(); | |
var $zaman = (myDate.getTime() /1000) - gecenSure; | |
This file contains 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
.filter("timeago", function () { | |
//time: the time | |
//local: compared to what time? default: now | |
//raw: wheter you want in a format of "5 minutes ago", or "5 minutes" | |
return function (time, local, raw) { | |
if (!time) return "never"; | |
if (!local) { | |
(local = Date.now()) | |
} |
This file contains 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
/*** | |
Responsive Width | |
**/ | |
$screen-sm: 768px !default; | |
$screen-md: 992px !default; | |
$screen-lg: 1200px !default; | |
/** | |
Mixins | |
**/ | |
@mixin pd_mg($class,$size,$type) { |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap 101 Template</title> | |
<!-- Bootstrap --> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> |
This file contains 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
'use strict'; | |
var angApp = angular.module('MyApp', [ | |
'ui.highlight','ngSanitize' | |
]); | |
var MainController = function ($scope,$http) { | |
$scope.msg = "Atatürk, gençliğe hitabında, Nutuk'un felsefesi hakkında ipuçları vermektedir. |
This file contains 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 | |
/*** | |
* Move to resources/views/welcome.blade.php resources/views/default/welcome.blade.php | |
*/ | |
$theme = "default"; | |
// Admin Views | |
function admin_view($view, $data = [], $mergeData = []){ | |
\View::addNamespace("admin",base_path("resources/admin")); |
This file contains 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
private function myInarray($getArray = '',array $myArray = []){ | |
// $getArray'yı noktalarından ayıralım | |
$getArray = explode('.',$getArray); | |
// Sonra foreach ile listeleyelim | |
foreach($getArray as $key){ | |
// Eğer $myArray yok ise yada $myArray'da istediğimiz key yok ise | |
if (!is_array($myArray) || !array_key_exists($key, $myArray)) { | |
// Sonuç null olarak döner |
This file contains 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 | |
/** | |
* Created by PhpStorm. | |
* User: ferdiunal | |
* Date: 01.04.2016 | |
* Time: 16:05 | |
*/ | |
namespace Libraries; |
This file contains 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
<form action="{!! route('admin@settings.general') !!}" method="post" autocomplete="off"> | |
{!! csrf_field() !!} | |
<div class="form-group"> | |
<label for="site_name">Site Adı : </label> | |
<input type="text" class="form-control" id="site_name" name="settings[site_name]" placeholder="Site Adı"> | |
@if($errors->has('settings.site_name')) <span class="help-block">{!! $errors->first('settings.site_name') !!}</span> @endif | |
</div> | |
<div class="form-group"> | |
<label for="site_slogan">Site Sloganı : </label> |
This file contains 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 | |
namespace Unal\Http\Requests\Admin\Settings; | |
use Unal\Http\Requests\Request; | |
class General extends Request | |
{ | |
/** | |
* Determine if the user is authorized to make this request. |
OlderNewer