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
/** | |
* Retrieve parameter from URL | |
*/ | |
function findParameter(param) { | |
var result = 0, tmp = [], BreakException = {}; | |
// Iterate on all and breaks when param is found | |
// @see http://stackoverflow.com/a/2641374 | |
try { | |
location.search |
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
/** | |
* This script has been especially made for a particular context. | |
* So use it with caution, and do not forget to customize it before any use. | |
*/ | |
//globals | |
var sheet = SpreadsheetApp.getActiveSpreadsheet(), | |
sheets = sheet.getSheets(); | |
/** |
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
/** | |
* This script has been especially made for a particular context. | |
* So use it with caution, and do not forget to customize it before any use. | |
*/ | |
//globals | |
var sheet = SpreadsheetApp.getActiveSpreadsheet(), | |
sheets = sheet.getSheets(); | |
/** |
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
{% macro recursiveCategory(category) %} | |
{% import _self as self %} | |
<li> | |
<h4><a href="{{ path(category.route, category.routeParams) }}">{{ category }}</a></h4> | |
{% if category.children|length %} | |
<ul> | |
{% for child in category.children %} | |
{{ self.recursiveCategory(child) }} | |
{% endfor %} |
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
/*! | |
* SHORTCODE | |
* | |
* Plugin Name: Shortcode | |
* Version: 1.0.0 | |
* Description: Add shortcode button with title, list and image contents. | |
* | |
* Author: Achraf Chouk | |
* Author URI: https://github.com/crewstyle | |
* License: The MIT License (MIT) |
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 | |
/** | |
* Remove unnecessary details from `body_class()` | |
* | |
* @param string $classes | |
* @param string $class | |
* | |
* @uses get_query_var() | |
* @uses get_user_by() |
OlderNewer