/** * @deprecated 0.21.9 * @internal * @return string */ public function get_url() { Helper::warn('{{site.get_url}} is deprecated, use {{site.link}} instead'); return $this->link(); }
/** * @deprecated 0.20.0 use link() instead * @codeCoverageIgnore * @return string */ public function permalink() { Helper::warn('post.permalink has been removed, please use post.link'); return $this->link(); }
/** * Add route. * * @param string $route * @param callable $callback * @param array $args * @deprecated since 0.20.0 and will be removed in 1.1 */ public static function add_route($route, $callback, $args = array()) { Helper::warn('Timber::add_route (and accompanying methods for load_view, etc. Have been deprecated and will soon be removed. Please update your theme with Route::map. You can read more in the 1.0 Upgrade Guide: https://github.com/timber/timber/wiki/1.0-Upgrade-Guide'); \Routes::map($route, $callback, $args); }
/** * Gets the link a menu item points at * @internal * @deprecated since 0.21.7 use link instead * @see link() * @return string a full URL like http://mysite.com/thing/ */ public function permalink() { Helper::warn('{{item.permalink}} is deprecated, use {{item.link}} instead'); return $this->link(); }
/** * @deprecated since 0.21.9 use src() instead * @return string */ public function get_url($size = '') { Helper::warn('{{image.get_url}} is deprecated and will be removed in 1.1; use {{image.src}}'); return $this->src($size); }
/** * */ function get_current_url() { Helper::warn('TimberHelper::get_current_url() is deprecated and will be removed in future versions, use Timber\\URLHelper::get_current_url()'); return URLHelper::get_current_url(); }