From 395011c770eac9dd0aca8af3eb81ff9e93e7bfc5 Mon Sep 17 00:00:00 2001 From: Snip1 Date: Sun, 17 Nov 2013 20:36:27 -0500 Subject: [PATCH] Update pico.php Adding 'description' => isset($page_meta['description']) ? $page_meta['description'] : '', to $data=array allows for use of the description meta in place of the excerpt. --- lib/pico.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pico.php b/lib/pico.php index 7861d46..6ef43c7 100644 --- a/lib/pico.php +++ b/lib/pico.php @@ -247,6 +247,9 @@ class Pico { 'date_formatted' => isset($page_meta['date']) ? date($config['date_format'], strtotime($page_meta['date'])) : '', 'content' => $page_content, 'excerpt' => $this->limit_words(strip_tags($page_content), $excerpt_length) + //this addition allows the 'description' meta to be picked up in content areas... specifically to replace 'excerpt' + 'description' => isset($page_meta['description']) ? $page_meta['description'] : '', + ); // Extend the data provided with each page by hooking into the data array