Beispiel #1
0
 /**
  * Get administrator url for individual theme.
  *
  * @param string $theme
  * @return string|null
  */
 public function getThemeAdminUrl($theme)
 {
     if ($theme === Gantry::instance()['theme.name']) {
         return Document::url('wp-admin/admin.php?page=layout-manager');
     }
     return null;
 }
 /**
  * Return URL to the resource.
  *
  * @example {{ url('theme://images/logo.png')|default('http://www.placehold.it/150x100/f4f4f4') }}
  *
  * @param  string $input    Resource to be located.
  * @param  bool $domain     True to include domain name.
  * @return string|null      Returns url to the resource or null if resource was not found.
  */
 public function urlFunc($input, $domain = false)
 {
     return Document::url(trim((string) $input), $domain);
 }
 /**
  * Return URL to the resource.
  *
  * @example {{ url('theme://images/logo.png')|default('http://www.placehold.it/150x100/f4f4f4') }}
  *
  * @param  string $input       Resource to be located.
  * @param  bool $domain        True to include domain name.
  * @param  int $timestamp_age  Append timestamp to files that are less than x seconds old. Defaults to a week.
  *                             Use value <= 0 to disable the feature.
  * @return string|null         Returns url to the resource or null if resource was not found.
  */
 public function urlFunc($input, $domain = false, $timestamp_age = null)
 {
     return Document::url(trim((string) $input), $domain, $timestamp_age);
 }