Skip to Main Content »

Shopping Cart (0 items)
Search Site

1.866.987.2437

Zurchers Party & Wedding Supplies . . . Giving YOU More Reasons to Party!

Category Navigation:

getLayout()->getBlock('breadcrumbs'); $breadcrumbs->addCrumb('home', array('label'=>Mage::helper('cms')->__('Home'), 'title'=>Mage::helper('cms')->__('Home Page'), 'link'=>Mage::getBaseUrl())); $breadcrumbs->addCrumb('testimonials', array('label'=>'Testimonials', 'title'=>'Testimonials', 'link'=>Mage::getBaseUrl().'testimonials')); echo $this->getLayout()->getBlock('breadcrumbs')->toHtml(); ?>

Our Testimonials

add your own',$subtitle); $linked = TRUE; } if($subtitle) echo '

'.$subtitle.'

'; } echo '
'; if($linked === FALSE) { echo '
> Share your testimonial'; } echo '
'; $coll = $this->getMootestimonialsList(); foreach($coll as $_coll) { $testimonial_text = trim(str_replace('\\','',$_coll->getMessage())); if($font_size_testimonial_body_is_auto == true) { $testimonial_length = strlen($testimonial_text); //assuming 1.5em $font_size_not_default = true; if($testimonial_length > 77) {$font_size_testimonial_body = 'font-size:1.5em;';$font_size_not_default = false;} elseif($testimonial_length > 73) {$font_size_testimonial_body = 'font-size:1.58em;';} elseif($testimonial_length > 71) {$font_size_testimonial_body = 'font-size:1.6em;';} elseif($testimonial_length > 61) {$font_size_testimonial_body = 'font-size:1.7em;';} elseif($testimonial_length > 51) {$font_size_testimonial_body = 'font-size:1.8em;';} elseif($testimonial_length > 41) {$font_size_testimonial_body = 'font-size:1.9em;';} elseif($testimonial_length > 31) {$font_size_testimonial_body = 'font-size:2em;';} elseif($testimonial_length > 21) {$font_size_testimonial_body = 'font-size:2.1em;';} else {$font_size_testimonial_body = 'font-size:2.2em;';} } if(Mage::getStoreConfig('mootestimonials/display/keywords_yn') == 1) { $keywords = explode(';',strtolower(trim(Mage::getStoreConfig('mootestimonials/display/keywords')))); $keyword_count = 0; foreach($keywords as $key => $keyword_link) { $keyword = explode(',',$keyword_link); $keyword[0] = trim($keyword[0]); if($keyword[0] != '' && $keyword_count < 1 && preg_match('~'.$keyword[0].'~i',$testimonial_text)) { $testimonial_text = preg_replace('~('.$keyword[0].')~i','$1',$testimonial_text); $keyword_count ++; } } } if(Mage::getStoreConfig('mootestimonials/display/boldwords_yn') == 1) { $boldwords = explode(',',strtolower(trim(Mage::getStoreConfig('mootestimonials/display/boldwords')))); $boldword_count = 0; foreach($boldwords as $key => $boldword) { if($boldword_count < 2 && preg_match('~'.$boldword.'~i',$testimonial_text)) { $testimonial_text = preg_replace('~'.$boldword.'~i',''.$boldword.'',$testimonial_text); $boldword_count ++; } } } $image_clear = ''; $blockquote_style = ''; if($font_size_not_default || $font_color_not_default || $font_not_default) { $blockquote_style = ' style="'; if($font_size_not_default && ($font_size_testimonial_body != 'auto')) $blockquote_style .= $font_size_testimonial_body; if($font_color_not_default) $blockquote_style .= $font_color_testimonial_body; if($font_not_default) $blockquote_style .= $font_family_testimonial_body; $blockquote_style .= '"'; } echo '
'; if ($_coll->getImage() != '') { $imageUrl = Mage::getBaseDir('media') . DS . $_coll->getImage(); if (file_exists($imageUrl)) { $image_path = Mage::getBaseDir('media') . DS . "resized_testimonials"; // create vendor media dir if (!file_exists($image_path)) { mkdir($image_path); chmod($image_path, 0777); } // echo $imageUrl.'
'.$image_path;exit; // resize the image // path of the resized image to be saved // here, the resized image is saved in media/resized folder $imageResized = Mage::getBaseDir('media') . DS . 'resized_testimonials' . DS . 'resized_' . $_coll->getImage(); if(!file_exists($imageResized)) { $imageObj = new Varien_Image($imageUrl); $imageObj->constrainOnly(TRUE); $imageObj->keepAspectRatio(TRUE); $imageObj->keepFrame(FALSE); $imageObj->resize(350); $imageObj->save($imageResized); } echo '

'; $image_clear = '
'; } } if (($_coll->getYoutube() != '')) { echo '

'; $image_clear = '
'; } echo '

'.$testimonial_text.' 

'.$image_clear.' '; $t_img = ''; if (($_coll->getEmail() != '') && Mage::getStoreConfig("mootestimonials/display/gravatar")) { // function get_gravatar( $email, $s = 80, $d = 'mm', $r = 'g', $img = false, $atts = array() ) { // * @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] $blank_gravatar = 'mm'; if(Mage::getStoreConfig("mootestimonials/general/gravatarblankchoice")) { $blank_gravatar = Mage::getStoreConfig("mootestimonials/general/gravatarblankchoice"); } $gravatar = Mage::helper("mootestimonials")->get_gravatar($_coll->getEmail(),50,$blank_gravatar); if ($gravatar != '') { $t_img = ''; } } $no_follow = ''; $testimonial_from = ''; $testimonial_name_comma = ''; if (Mage::getStoreConfig("mootestimonials/display/makelinknofollow") == 1) $no_follow = ' rel="nofollow"'; if (($_coll->getName() != '') && Mage::getStoreConfig("mootestimonials/display/name")) { $testimonial_from .= $_coll->getName(); $testimonial_name_comma = ', '; } if (($_coll->getCompanyName() != '') && Mage::getStoreConfig("mootestimonials/display/companyname")) { if (($_coll->getSite() != '') && Mage::getStoreConfig("mootestimonials/display/site")) { $testimonial_from .= $testimonial_name_comma.''.$_coll->getCompanyName().''; } } else { if (($_coll->getSite() != '') && Mage::getStoreConfig("mootestimonials/display/site")) { $testimonial_from .= $testimonial_name_comma.''.$_coll->getSite().''; } } if (($_coll->getCreatedTime() != '') && Mage::getStoreConfig("mootestimonials/display/date")) { $testimonial_from .= '
'.date("F j, Y",strtotime($_coll->getCreatedTime())).''; } if($testimonial_from != '' || $t_img != '') { echo '

'.$t_img.''.$testimonial_from.'

'; } echo '
'; } echo '

 

'; $pager = $this->buildPagination(); echo $pager; // $number = trim(str_replace(array('',''),'',$pager)); // if($number > 1) // { // echo ' //
// '.$pager.' //
'; // } ?>