Пример #1
0
 /**
  * Returns the code for a link unless the current request matches the URL.
  *
  * @param string $label   The label
  * @param string $url     The URL
  * @param array  $options Options for the URL code (class, title, etc)
  *
  * @return string
  */
 public static function linkToUnlessCurrent($label, $url, array $attributes = array())
 {
     if (Request::matches($url)) {
         return $label;
     } else {
         return static::link($label, $url, $attributes);
     }
 }