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 | |
// Check to ensure this file is within the rest of the framework | |
defined('JPATH_BASE') or die(); | |
/** | |
* DB cache storage handler | |
* | |
* @author Geraint Edwards (http://www.gwesystems.com) | |
* @package Joomla.Framework | |
* @subpackage Cache |
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 | |
$curl = curl_init(); | |
curl_setopt_array($curl, Array( | |
CURLOPT_URL => 'http://blogs.guggenheim.org/map/feed/', | |
CURLOPT_USERAGENT => 'spider', | |
CURLOPT_TIMEOUT => 120, | |
CURLOPT_CONNECTTIMEOUT => 30, | |
CURLOPT_RETURNTRANSFER => TRUE, |
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
2 cans garbanzo beans (1 drained) | |
1/2 cup Sesame Tahini | |
1 TBS Tamari or Ponzu | |
Juice of one lemon (3 TBS ReaLemon) | |
Optional: | |
1-4 cloves garlic, to liking | |
Add ingredients to a good blender and blend until smooth. |
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
class JElementFoo extends JElement { | |
var $_name = 'foo'; | |
function fetchElement($name, $value, &$node, $control_name) { | |
$cid = JRequest::getVar('cid'); | |
$db = JFactory::getDBO(); | |
$options = array(); |
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
/** | |
* Loads CSS files needed by Bootstrap | |
* | |
* @param boolean $includeMainCss If true, main bootstrap.css files are loaded | |
* @param string $direction rtl or ltr direction. If empty, ltr is assumed | |
* @param array $attribs Optional array of attributes to be passed to JHtml::_('stylesheet') | |
* | |
* @return void | |
* | |
* @since 3.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
<?php | |
$count = count($this->leading); | |
if (isset($this->leading) && $count) : | |
?> | |
<div class="item-list"> | |
<!-- start first row --> | |
<div class="row"> | |
<?php foreach ($this->leading as $key => $item) : | |
$fmod = fmod($key + 1, $this->params->get('num_leading_columns')); | |
?> |
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
/* | |
* Store random data in array and use in_array() for duplicate checking | |
*/ | |
$then = microtime(TRUE); | |
$i = 1; | |
while ($i <= 1000) { | |
$rand = rand(); | |
$now = microtime(TRUE); |
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 defined('_JEXEC') or die; | |
/** | |
* File menuitems.php | |
* Created 6/12/13 11:37 AM | |
* Author Matt Thomas | matt@betweenbrain.com | http://betweenbrain.com | |
* Support https://github.com/betweenbrain/ | |
* Copyright Copyright (C) 2013 betweenbrain llc. All Rights Reserved. | |
* License GNU GPL v3 or later | |
*/ |
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
http://www.w3.org/WAI/GL/css2em.htm | |
http://filamentgroup.com/lab/how_we_learned_to_leave_body_font_size_alone/ | |
http://alistapart.com/article/relafont |
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
$plugins = new stdClass(); | |
$pluginsData = explode("\n", $item->plugins); | |
foreach ($pluginsData as $pluginData) { | |
$parts = explode("=", $pluginData); | |
if ($parts[0]) { | |
$name = $parts[0]; | |
$value = $parts[1]; | |
$plugins->$name = $value; | |
} | |
} |