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
//Get the current Month/Year | |
$currentMonth = date('n'); | |
$currentYear = date('Y'); | |
//Add one to the current month accounting for the possibility of end of year | |
if($currentMonth == 12){ | |
$nextMonth = 1; | |
$nextYear = $currentYear+1; | |
} else { | |
$nextMonth = $currentMonth+1; |
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
{function tree depth=0} | |
<li {if $active}class="active"{/if}> | |
<a style="margin-left:{$depth*10}px" data-needs-tooltip="true" title="{$c.category->data('page_title')}" | |
data-placement="left" | |
href="/community/blog/category/{$c.category->data('id')}/{$c.category->data('slug')}"> | |
{$c.category->data('menu_title')} | |
<small class="text-muted pull-right">{$c.category->data('posts')|number_format} posts</small> | |
</a> | |
</li> |
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
////////JAVASCRIPT//////////////////////// | |
var scrollTimerSet = false; | |
var navBarIsSmall = false; | |
var $navBarInner = document.getElementById('header').getElementsByClassName('navbar')[0].getElementsByClassName('navbar-inner'); | |
function getScrollTop(){ | |
if(typeof pageYOffset!= 'undefined'){ | |
//most browsers except IE before #9 | |
return pageYOffset; |
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
.dropup, | |
.dropdown { | |
position: relative; | |
} | |
.dropdown-toggle { | |
*margin-bottom: -3px; | |
} | |
.dropdown-toggle:active, | |
.open .dropdown-toggle { | |
outline: 0; |
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
/* DROPDOWN CLASS DEFINITION | |
* ========================= */ | |
var toggle = '[data-toggle=dropdown]' | |
, Dropdown = function (element) { | |
var $el = $(element).on('click.dropdown.data-api', this.toggle) | |
$('html').on('click.dropdown.data-api', function () { | |
$el.parent().removeClass('open') | |
}) | |
} |
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
<div class="top-account-control visible-desktop"> | |
<div class="dropdown"> | |
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Welcome back, #{$writer->data('username')}!</a> | |
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> | |
<li><a tabindex="-1" href="/writer/{$writer->data('username')}"><i class="icon icon-user"></i> Writer's Profile</a></li> | |
<li><a tabindex="-1" href="/account"><i class="icon icon-cog"></i> Account Management</a></li> | |
<li class="divider"></li> | |
<li><a tabindex="-1" href="/logout"><i class="icon icon-signout"></i> Logout</a></li> | |
</ul> |
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> | |
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]--> | |
<meta charset="utf-8"> | |
<title>jQuery File Upload Demo - Basic version</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="css/jquery.fileupload.css"> | |
</head> |
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
/var/www$ laravel new tutorial | |
Crafting application... | |
PHP Fatal error: Class 'ZipArchive' not found in phar:///usr/local/bin/laravel/src/lib/NewCommand.php on line 52 | |
PHP Stack trace: | |
PHP 1. {main}() /usr/local/bin/laravel:0 | |
PHP 2. require() /usr/local/bin/laravel:10 | |
PHP 3. Symfony\Component\Console\Application->run() phar:///usr/local/bin/laravel/bin/craft:6 | |
PHP 4. Symfony\Component\Console\Application->doRun() phar:///usr/local/bin/laravel/src/vendor/symfony/console/Symfony/Component/Console/Application.php:121 | |
PHP 5. Symfony\Component\Console\Application->doRunCommand() phar:///usr/local/bin/laravel/src/vendor/symfony/console/Symfony/Component/Console/Application.php:191 | |
PHP 6. Symfony\Component\Console\Command\Command->run() phar:///usr/local/bin/laravel/src/vendor/symfony/console/Symfony/Component/Console/Application.php:881 |
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
@if(sectionDefined('manageMenu')) | |
<ul class="menu"> | |
@yield('manageMenu') | |
</ul> | |
@endif |
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
function sectionDefined($section){ | |
$sections = View::getSections(); | |
return array_key_exists($section, $sections) && !empty($sections[$section]); | |
} |
OlderNewer