Commits

Christoffer Niska committed f594a93

added support for static positioning of BootNavbar (fixes #60)

Comments (0)

Files changed (2)

demo/protected/extensions/facebook/components/FacebookConnect.php

 	/**
 	 * Calls the Facebook API.
 	 * @param string $query the query to send.
-	 * @param array $params the query paramters.
+	 * @param array $params the query parameters.
 	 * @return array the response.
 	 */
 	public function api($query, $params=array())
 
 	/**
 	 * Returns the Facebook application instance.
-	 * @return Facebook the instance
+	 * @return Facebook the instance.
 	 */
 	public function getFacebook()
 	{

widgets/BootNavbar.php

 	 */
 	public $items = array();
 	/**
-	 * @var string fix location of the navbar if applicable. Valid values are 'top' and 'bottom'. Defaults to 'top'.
+	 * @var mixed fix location of the navbar if applicable.
+	 * Valid values are 'top' and 'bottom'. Defaults to 'top'.
+	 * Setting the value to false will make the navbar static.
 	 * @since 0.9.8
 	 */
 	public $fixed = self::FIXED_TOP;
 	{
 		$classes = array('navbar');
 
-		$validFixes = array(self::FIXED_TOP, self::FIXED_BOTTOM);
-
-		if (in_array($this->fixed, $validFixes))
-			$classes[] = 'navbar-fixed-'.$this->fixed;
+		if ($this->fixed !== false)
+		{
+			$validFixes = array(self::FIXED_TOP, self::FIXED_BOTTOM);
+			if (in_array($this->fixed, $validFixes))
+				$classes[] = 'navbar-fixed-'.$this->fixed;
+		}
 
 		$classes = implode(' ', $classes);
 		if (isset($this->htmlOptions['class']))