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="contain-to-grid"> | |
| <nav class="top-bar"> | |
| <ul> | |
| <li class="name"><h1><a href="{{ url:site }}" class="logo">{{ settings:site_name }}</a></h1></li> | |
| <li class="toggle-topbar"><a href="#"></a></li> | |
| </ul> | |
| <section> | |
| <ul class="left header-nav"> | |
| {{ navigation:links group="header" more-class="has-dropdown" }} |
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
| (function($){ | |
| $.fn.linenumbers = function() { | |
| return this.each(function() { | |
| var $block = $(this); | |
| if ( $block.parent().is("pre") ) | |
| { | |
| $block.unwrap(); |
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
| var aCache = new ajaxCache({pk: "folder_id", prefix: "folder"); | |
| $('#folder_sel').change(function() { | |
| var folder_id = $(this).val(); | |
| aCache.post(href_val, {'folder_id': folder_id}, function(data) { | |
| //code | |
| }); | |
| }) |
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
| <input type="text" name="title" value="" id="title"> | |
| <input type="text" name="slug" value="" id="slug"> | |
| <script>$(function(){ $("#title").c_slugify({slug: "#slug", type: "_"}) });</script> |
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
| function to_slug($str, $replace=array(), $delimiter='_', $maxLength=200) | |
| { | |
| if(!empty($replace)) | |
| { | |
| $str = str_replace((array)$replace, ' ', $str); | |
| } | |
| $clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str); | |
| $clean = preg_replace("%[^-/+|\w ]%", '', $clean); | |
| $clean = strtolower(trim(substr($clean, 0, $maxLength), $delimiter)); |
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
| /** | |
| * Forms | |
| */ | |
| form | |
| { | |
| margin: 0; | |
| } | |
| form p, label {display:block;} | |
| form ul | |
| { |
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 defined('BASEPATH') OR exit('No direct script access allowed'); | |
| /** | |
| * Navigation Plugin | |
| * | |
| * @author PyroCMS Dev Team | |
| * @package PyroCMS\Core\Modules\Navigation\Plugins | |
| */ | |
| class Plugin_Navigation extends Plugin | |
| { | |
| /** |
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 Hcount { | |
| private static $CI; | |
| private static $CFG = array(); | |
| private static $DEFAULTS = array( | |
| 'timeout' => 2419200, // 4 * 7 * 24 * 3600 (1 month) | |
| //Hits counter table | |
| 'tbl_hit_count' => array( |
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 Example_Lib { | |
| /** | |
| * Internal cache helper | |
| * Caches internal method results in memory | |
| * | |
| * @param string $func function to call | |
| * @param array $args arguments for the callback function |