diff --git a/class/Search.php b/class/Search.php index 9f1bb44..5090ca5 100644 --- a/class/Search.php +++ b/class/Search.php @@ -7,21 +7,22 @@ class search extends Module { public $params = array(); public function __construct($params){ - echo '
',{ + className : 'notFound', + html : 'No Results Were Found!' + }).appendTo(pageContainer); + // .hide().appendTo(resultsDiv).fadeIn(); + $.fancybox( + $(pageContainer).html(), + { + 'autoDimensions' : false, + 'width' : 400, + 'height' : 'auto', + 'showNavArrows' : false, + 'transitionIn' : 'elastic' + } + ); + } + }); +} + + function result(r){ + + // This is class definition. Object of this class are created for + // each result. The markup is generated by the .toString() method. + + var arr = []; + + // GsearchResultClass is passed by the google API + switch(r.GsearchResultClass){ + + case 'GwebSearch': + arr = [ + '
' + ]; + break; + case 'GimageSearch': + arr = [ + '