everything but ...

How Can I Keep From Singing: The Work of Pete Seeger

FEBRUARY 9 – SEPTEMBER 2018

Pete SeegerThe Woody Guthrie Center and the GRAMMY Museum present How Can I Keep From Singing: The Work of Pete Seeger, an exhibit featuring original documents and artifacts from Seeger’s life and work, which shows his influence as a musician, social activist, environmentalist, promoter of peace and community builder. Having previously been displayed at the Woody Guthrie Center in Tulsa, Okla. - a GRAMMY Museum Cultural Affiliate - the exhibit will be on display at the GRAMMY Museum from Feb. 9, 2018 through September 2018.

The limited display will include original artifacts and documents from Pete Seeger, including lyrics, instruments, photos and videos, and letters sent to Seeger from Johnny Cash and ethnomusicologist Alan Lomax.

Grammy Museum

800 W Olympic Blvd., Los Angeles, CA 90015

213-765-6800

Read more: HOW CAN I KEEP FROM SINGING: THE WORK OF PETE SEEGER

BLUEGRASS, ETC. RETURNS TO THE AIR

Frank HoppeAs reported previously, Frank Hoppe’s long-running program, Bluegrass, Etc., on KCSN 88.5 FM broadcast from California State University, Northridge (CSUN), ended its run in September 2017. It had been broadcasting at KCSN for almost 30 years.

Starting on Thursday February 1, 2018, and airing each subsequent Thursday from 12:00pm – 3:00pm ET (9:00am – 12:00pm PT), Bluegrass, Etc. will have a new life on Bluegrass Country Radio (88.5 FM HD-2), which serves the Washington, DC market. It will stream online at bluegrasscountry.org and shows will be archived for two weeks after their initial broadcast.

The focus of Frank’s show will continue to be traditional Bluegrass, Bluegrass Gospel, contemporary Old-Time, and pre-WWII Country 78s.

Please check it out and send your requests and feedback to him at fphoppe@gmail.com

Read more: BLUEGRASS, ETC. RETURNS TO THE AIR

everything but ...

How Can I Keep From Singing: The Work of Pete Seeger

FEBRUARY 9 – SEPTEMBER 2018

Pete SeegerThe Woody Guthrie Center and the GRAMMY Museum present How Can I Keep From Singing: The Work of Pete Seeger, an exhibit featuring original documents and artifacts from Seeger’s life and work, which shows his influence as a musician, social activist, environmentalist, promoter of peace and community builder. Having previously been displayed at the Woody Guthrie Center in Tulsa, Okla. - a GRAMMY Museum Cultural Affiliate - the exhibit will be on display at the GRAMMY Museum from Feb. 9, 2018 through September 2018.

The limited display will include original artifacts and documents from Pete Seeger, including lyrics, instruments, photos and videos, and letters sent to Seeger from Johnny Cash and ethnomusicologist Alan Lomax.

Grammy Museum

800 W Olympic Blvd., Los Angeles, CA 90015

213-765-6800

Read more: HOW CAN I KEEP FROM SINGING: THE WORK OF PETE SEEGER

{source 1}<?php
$params = 'category_name=GRAMMY NOMINEES&category_name_one=GRAMMY NOMINEES&cat_alias=&cat_id=2129&link_prfx=/features/special&parent_id=';
$this_title = "Recent FolkBits";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

RECURRING EVENTS


MUSIC


1:00pm - 4:00pm OLD TIME MUSIC JAM (TRADITIONAL SOUTHERN FIDDLE AND BANJO)

fourth Saturday

Audubon Nature Center, Debs Park

4700 N Griffin Ave., Highland Park; off the 110 Fwy, Los Angeles, CA 90031

323-221-2255


6:30pm - 10:30pm ME-N-ED'S PIZZA PARLOR BLUEGRASS CONCERTS

every Saturday

Me N Eds Pizza Parlor

4115 Paramount Blvd., Lakewood, CA 90712

562-421-8908


9:00pm KEN O'MALLEY

fourth Saturday

Griffins Of Kinsale

1007 Mission St, South Pasadena, CA

626-799-0926

twlord@sbcglobal.net


DANCE


9:30am - 12:00pm KAYSO FOLK DANCERS

every Friday

Casa del Prado, Rm. 206, Balboa Park

1800 El Prado, San Diego, CA

Jerry Waddell 619-479-8015 `


7:15pm - 10:00pm WEST VALLEY FOLK DANCERS

every Friday

Canoga Park Senior Center

7326 Jordan Ave., Los Angeles, CA

Jay Michtom 818-368-1957 jaymichtom@yahoo.com


7:45pm - 11:00pm PASADENA FOLK DANCE CO-OP

every Friday

Throop Unitarian Church

300 S. Los Robles, Pasadena, CA

Jan Rayman 818-790-8523 JanRayman@charter.net


7:45pm - 10:45pm WEST LOS ANGELES FOLK DANCERS

every Friday

Brockton School

1309 Armacost Ave., West Los Angeles, CA

Beverly Barr 310-202-6166 dancingbarrs@earthlink.net


8:30pm - 11:30pm KYPSELI GREEK DANCE CENTER

every Friday

The Tango Room

4346 Woodman Ave., Sherman Oaks, CA

Louise Bilman 323-660-1030 xorepse@gmail.com


9:00pm - 11:00pm BEVERLY HILLS ISRAELI DANCING

every Friday

Temple Emanuel

8844 Burton Way, Beverly Hills, CA

James Zimmer 310-284-3638 israelidance@yahoo.com

{source 1}<?php
$params = 'category_name=Spotlights&category_name_one=Spotlight&cat_alias=&cat_id=2262&link_prfx=/spotlight&parent_id=';
$this_title = "Spotlight";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

TODAY'S CALENDAR 2/23/18


DANCE


6:30pm-11:45pm FIDDLING FROG DANCE FESTIVAL

Ticketed event (contact for availability) Weekend Of Contra Dancing with Groovemongers and The Gaslight Tinkers with callers Steve Zakon-Anderson and Dana Parkinson and Rushfest!

Pasadena Masonic Temple

200 South Euclid Ave., Pasadena, CA 91101-2423

Frannie Marr 2fiddlingfrog@gmail.com

Presented by the California Dance Co-operative


{source 1}<?php
$params = 'category_name=Upcoming Concerts&category_name_one=Upcoming Concert&cat_alias=upcoming-concerts&cat_id=2263&link_prfx=/upcoming-concerts&parent_id=';
$this_title = "Upcoming Concerts";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}


DANCE


6:30pm-11:45pm FIDDLING FROG DANCE FESTIVAL

Ticketed event (contact for availability) Weekend Of Contra Dancing with Groovemongers and The Gaslight Tinkers with callers Steve Zakon-Anderson and Dana Parkinson and Rushfest!

Pasadena Masonic Temple

200 South Euclid Ave., Pasadena, CA 91101-2423

Frannie Marr 2fiddlingfrog@gmail.com

Presented by the California Dance Co-operative


{source 1}<?php
$params = 'category_name=&category_name_one=&all_articles=1&cat_alias=urgent-announcements&cat_id=47&link_prfx=urgent-announcements&parent_id=';
$this_title = "";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=Film and Theater Reviews&category_name_one=Film and Theater Review&cat_alias=film-theater-reviews&cat_id=68&link_prfx=/reviews/film-theater-reviews&parent_id=0';
$this_title = "Recent Film/Theater Reviews";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=Feature Articles&category_name_one=Feature Article&cat_alias=Feature Articles&cat_id=60&link_prfx=/features/feature-articles&parent_id=2182';
$this_title = "Feature Articles";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=Passings&category_name_one=passings&cat_alias=passings&cat_id=60&link_prfx=/features/passings&parent_id=0';
$this_title = "Passings";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=Book Reviews&category_name_one=Book Review&cat_alias=book-reviews &cat_id=62&link_prfx=/reviews/book-reviews&parent_id=0';
$this_title = "Recent Book Reviews";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=Interviews&category_name_one=Interview&cat_alias=interviews&cat_id=117&link_prfx=/features/interviews&parent_id=0';
$this_title = "Interviews";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=Concert Reviews&category_name_one=Concert Review&cat_alias=concert-reviews&cat_id=61&link_prfx=/reviews/concert-reviews&parent_id=0';
$this_title = "Recent Concert Reviews";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

GRAMMY WINNER: BEST AMERICAN ROOTS PERFORMANCE

{source 1}<?php
$params = 'category_name=CD Reviews&category_name_one=CD Review&cat_alias=cd-reviews&cat_id=53&link_prfx=/reviews/cd-reviews&parent_id=0';
$this_title = "Recent CD Reviews";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=Passings&category_name_one=passings&cat_alias=passings&cat_id=60&link_prfx=/features/passings&parent_id=0';
$this_title = "Passings";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=Spotlights&category_name_one=Spotlight&cat_alias=&cat_id=2262&link_prfx=/spotlight&parent_id=';
$this_title = "Spotlight";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=CD Reviews&category_name_one=CD Review&cat_alias=cd-reviews&cat_id=53&link_prfx=/reviews/cd-reviews&parent_id=0';
$this_title = "Recent CD Reviews";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=GRAMMY NOMINEES&category_name_one=GRAMMY NOMINEES&cat_alias=&cat_id=2129&link_prfx=/features/special&parent_id=';
$this_title = "Recent FolkBits";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

 

{source 1}<?php
$params = 'category_name=Book Reviews&category_name_one=Book Review&cat_alias=book-reviews &cat_id=62&link_prfx=/reviews/book-reviews&parent_id=0';
$this_title = "Recent Book Reviews";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=Concert Reviews&category_name_one=Concert Review&cat_alias=concert-reviews&cat_id=61&link_prfx=/reviews/concert-reviews&parent_id=0';
$this_title = "Recent Concert Reviews";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=Film and Theater Reviews&category_name_one=Film and Theater Review&cat_alias=film-theater-reviews&cat_id=68&link_prfx=/reviews/film-theater-reviews&parent_id=0';
$this_title = "Recent Film/Theater Reviews";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

everything but ...

How Can I Keep From Singing: The Work of Pete Seeger

FEBRUARY 9 – SEPTEMBER 2018

Pete SeegerThe Woody Guthrie Center and the GRAMMY Museum present How Can I Keep From Singing: The Work of Pete Seeger, an exhibit featuring original documents and artifacts from Seeger’s life and work, which shows his influence as a musician, social activist, environmentalist, promoter of peace and community builder. Having previously been displayed at the Woody Guthrie Center in Tulsa, Okla. - a GRAMMY Museum Cultural Affiliate - the exhibit will be on display at the GRAMMY Museum from Feb. 9, 2018 through September 2018.

The limited display will include original artifacts and documents from Pete Seeger, including lyrics, instruments, photos and videos, and letters sent to Seeger from Johnny Cash and ethnomusicologist Alan Lomax.

Grammy Museum

800 W Olympic Blvd., Los Angeles, CA 90015

213-765-6800

Read more: HOW CAN I KEEP FROM SINGING: THE WORK OF PETE SEEGER

FULL CALENDAR

MUSIC       DANCE

{module Today Calendar}

{module Today Calendar Recurring Events}

{module Today Music Recurring}

{module Today Dances Recurring}


 

FEATURED VIDEO

{source 1}<?php
$params = 'category_name=Upcoming Concerts&category_name_one=Upcoming Concert&cat_alias=upcoming-concerts&cat_id=2263&link_prfx=/upcoming-concerts&parent_id=';
$this_title = "Upcoming Concerts";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=Interviews&category_name_one=Interview&cat_alias=interviews&cat_id=117&link_prfx=/features/interviews&parent_id=0';
$this_title = "Interviews";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}

{source 1}<?php
$params = 'category_name=Feature Articles&category_name_one=Feature Article&cat_alias=Feature Articles&cat_id=60&link_prfx=/features/feature-articles&parent_id=2182';
$this_title = "Feature Articles";
$parent_id = 0;
$all_articles = false;
$tags = array ("parent_id","cat_id", "cat_alias" , "category_name_one", "category_name", "this_title", "link_prfx", "all_articles" );
parse_str($params);
$now = time(); # get the current time
parse_str($params, $output);
#echo "<!--- <pre>";print_r($output);echo "</pre> -->";
foreach ($tags as $tag){
echo "<!-- \n $$tag = ${$tag} \n -->";
}
echo "<!-- all_articles = $all_articles -->";
# get the id of the articles (by "ordering") that are in the "published" state and have the field "xreference" != "".
# UNLESS all_articles = true
$xreference = " AND (a.xreference != '' OR a.featured = TRUE) ";
if ( $all_articles == 1) $xreference = "";
if ($parent_id == 0) {
$query = "SELECT a.catid , a.introtext,a.id, a.state, a.alias as alias, a.fulltext , a.title, a.publish_up, a.publish_down, a.modified, a.created, a.xreference , a.featured,
c.alias as cat_alias ,c.id as cat_id, c.level as level, c.alias as cat_alias ,c.id as cat_id, c.path as path
FROM #__content AS a, #__categories AS c
WHERE a.catid = $cat_id
AND a.catid = c.id
AND a.state = 1
$xreference " ;
}
else {
$query = "SELECT a.catid,a.introtext,a.id, a.fulltext, a.state, a.alias as alias,a.title, a.publish_up, a.publish_down,
a.modified, a.created, a.xreference ,
c.parent_id, c.id as cat_id, c.alias as cat_alias, c.lft, c.level as level,c.path as path
FROM #__content AS a, #__categories AS c
WHERE c.parent_id = $parent_id
AND a.state = 1
AND a.catid = c.id
$xreference " ;
}
$query .= " AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= $now )";
if ($parent_id == 0) {
$query .= " ORDER BY a.ordering ; " ;
}
else {
$query .= " ORDER BY c.lft ASC, a.ordering ;" ;
}
echo "\n<!-- query = $query -->\n";
$db->setQuery( $query );
$this_item = $db->loadObjectList();
$count = count($this_item);
echo "<!-- query - $count items found -->";
#if($count > 0 ) {echo "<!-- first set <br /><pre>";print_r($this_item) ; echo "--></pre>"; }
if ($count > 0 ) {
$temp = '<p class="fwbanner">'.strtoupper($category_name)."</p>";
if ($count == 1 ) $temp = '<p class="fwbanner">'.strtoupper($category_name_one)."</p>";
#echo $temp;
$i = 0;
foreach ( $this_item as $item ){
$link_text = '';
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
$count_fulltext = count($item->fulltext);
$item_id = $item->id;
if ($count_fulltext > 0) {
$link = $item->id. "-" . $item->alias;
echo "\n<!-- \$parent_id = $parent_id and level = {$item->level} -->\n";
if (($parent_id != '') && ($parent_id != 0)) {
if ($item->level == 2 ) {
#echo "<!-- changing the 'alias' to {$item->catid}\n -->";
#$cat_alias = $item->catid ; //if level 3 category then we must insert the catid in the link.
}
}
# if there is something after the introtext, then create the read more link.
if (strlen($item->fulltext) > 10) {
#$link_text = '<p class="readmore"><a href="'.$link_prfx.$cat_alias."/".$link. '">Read more: '. $item->title. '</a></p>';
$link_text = '<p class="readmore"><a href="'.$link_prfx."/".$link. '">Read more: '. $item->title. '</a></p>';
}
}
$fixed = $item->introtext;
/*
$regexp = '/class=(.msonormal.)/i';
$fixed = preg_replace_callback($regexp, function($matches) {return strtolower($matches[0]);}, $fixed);
*/
// better solution to lower casing the class names
$regexp = '/class=(.\w*?.)/i';
$fixed = preg_replace_callback($regexp , function ($matches) { return strtolower($matches[0]); } ,$fixed);
$category_alias = str_replace('/', '_', $this_item[0]->path);
$temp .= '<div class="fp_block '.$category_alias.'" id="'.$category_alias.'-'.$i++.'">'." \n<!-- \$item_id = $item_id \$count_fulltext = $count_fulltext -->\n $fixed $link_text".'</div>';
#echo $item->introtext;
#echo " $link_text " ;
$temp .= '<hr style="margin: 5px 0 10px;" />';
}
#####################################################################
# this is to workaround weird text sizing problem ...
#####################################################################
$temp = preg_replace('/(p class="msonormal" )(style=")(font-size: 11.*?px;")/is', "$1 \"fixed-by-recent-articles-snippet\" $2x$3", $temp );
echo JHtml::_('content.prepare', $temp);
}
?>{/source}