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
diff -rupN /Users/litzinger/Dropbox/add-ons/_others/Matrix2.2.4/ee2/third_party/matrix/ft.matrix.php matrix/ft.matrix.php | |
--- /Users/litzinger/Dropbox/add-ons/_others/Matrix2.2.4/ee2/third_party/matrix/ft.matrix.php 2012-01-24 11:17:48.000000000 -0600 | |
+++ matrix/ft.matrix.php 2012-02-15 21:11:48.000000000 -0600 | |
@@ -1494,7 +1494,20 @@ class Matrix_ft extends EE_Fieldtype { | |
$this->EE->db->limit($max_rows); | |
} | |
- $query = $this->EE->db->get('matrix_data')->result_array(); | |
+ // ------------------------------------------- | |
+ // 'matrix_display_query' hook |
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
# Add trailing slashes unless it's a file or has a query string. | |
RewriteCond %{THE_REQUEST} ^GET | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$ | |
RewriteRule ^(.*)$ $1/ [L,R=301] | |
# Do our rewrites | |
RewriteBase "/" | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d |
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 | |
$field_display = array( | |
'visible' => TRUE, | |
'collapse' => FALSE, | |
'html_buttons' => TRUE, | |
'is_hidden' => FALSE, | |
'width' => '100%' | |
); | |
$data = 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
/* | |
* JavaScript Pretty Date | |
* Copyright (c) 2011 John Resig (ejohn.org) | |
* Licensed under the MIT and GPL licenses. | |
*/ | |
// Takes an ISO time and returns a string representing how | |
// long ago the date represents. | |
function prettyDate(time){ | |
var date = new Date((time || "").replace(/-/g,"/").replace(/[TZ]/g," ")), |
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
{!-- Redirect to the registration page if logged out and trying to access the account page --} | |
{if segment_1 == "account" AND logged_out == TRUE} | |
{redirect="account/register-full"} | |
{/if} | |
{exp:channel:entries status="{global:default_status}" disable="{global:disabled_params}"} | |
{snippet:_header} | |
<div class="main-wrapper"> | |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
|-------------------------------------------------------------------------- | |
| ExpressionEngine Config Items | |
|-------------------------------------------------------------------------- | |
| | |
| The following items are for use with ExpressionEngine. The rest of | |
| the config items are for use with CodeIgniter. | |
| |
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 | |
/* Usage | |
{exp:kaplan:categories | |
products="55,56,52,53,54,65" | |
state="{url:segment_2_category_id}" | |
variable_prefix="category:"} | |
{if no_results}{/if} |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* Structure Fieldtype | |
* | |
* This file must be in your /system/third_party/structure directory of your ExpressionEngine installation | |
* | |
* @package StructureFrame for EE2 | |
* @author Jack McDade (jack@jackmcdade.com) | |
* @copyright Copyright (c) 2012 Travis Schmeisser |
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 | |
/* | |
Cheap way to fire off EE's ACT events in a crontab, and without having | |
to make any other changes to bootstrap EE to work in CLI. | |
*/ | |
if (isset($_SERVER['SERVER_NAME']) || PHP_SAPI !== "cli") die(); | |
$args = $argv; |
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 | |
/* | |
Replace any template tags as needed | |
*/ | |
function channel_entries_tagdata($tagdata, $row, &$channel) | |
{ | |
// has this hook already been called? | |
if (isset($this->EE->extensions->last_call) && $this->EE->extensions->last_call) | |
{ | |
$tagdata = $this->EE->extensions->last_call; |
OlderNewer