Example #1
0
                                <option value="<?php 
echo makeParams($params, TRUE, array('order' => 3));
?>
"<?php 
echo selectedVal('3', $params['order']);
?>
>Price (lowest)</option>
                                <option value="<?php 
echo makeParams($params, TRUE, array('order' => 4));
?>
"<?php 
echo selectedVal('4', $params['order']);
?>
>Price (highest)</option>
                                <option value="<?php 
echo makeParams($params, TRUE, array('order' => 5));
?>
"<?php 
echo selectedVal('5', $params['order']);
?>
>Relevance</option>
                            </select>
                        </form>
                    </div>
                    <!-- search order end //-->
                    <!-- social links begin //-->
                    <div class="socialLinks">
                        <p><a href="http://facebook.com/share.php?u=<?php 
echo searchLink($params);
?>
"><i class="facebookIcon"></i> Share on Facebook</a></p>
Example #2
0
 /**
  * 
  * @param array $params
  * @param boolean $page Default is TRUE
  * @param array $extend Extra params field. Default is NULL
  * @param boolean $rss Default is FALSE
  * @return string
  */
 function searchLink($params, $page = TRUE, $extend = NULL, $rss = FALSE)
 {
     if ($rss === FALSE) {
         $link = 'searchLink';
     } else {
         $link = 'rssLink';
     }
     $str = makeParams($params, $page, $extend);
     return baseURL(Route::get_config('searchLink', 'route') . ($str ? '?' . $str : ''));
 }