From 1f0a9f222a3922bb66d865daed72d6d09eaa8e82 Mon Sep 17 00:00:00 2001 From: Arian Xhezairi Date: Wed, 26 Oct 2011 15:51:36 +0200 Subject: [PATCH] Link Feather title now is optional. Changed 'name' to 'title' and made it optional. Close #36 All non-titled feathers will be updated and offered as separate downloads. --- feathers/link/link.php | 9 +++++---- themes/stardust/feathers/link.twig | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/feathers/link/link.php b/feathers/link/link.php index e4f5c2004b..b4b8cfbfee 100755 --- a/feathers/link/link.php +++ b/feathers/link/link.php @@ -1,14 +1,15 @@ setField(array("attr" => "name", + "type" => "text", + "label" => __("Title", "link"), + "optional" => true, + "bookmarklet" => "title")); $this->setField(array("attr" => "source", "type" => "text", "label" => __("URL", "link"), "bookmarklet" => "url")); - $this->setField(array("attr" => "name", - "type" => "text", - "label" => __("Name", "link"), - "bookmarklet" => "title")); $this->setField(array("attr" => "description", "type" => "text_block", "label" => __("Description", "link"), diff --git a/themes/stardust/feathers/link.twig b/themes/stardust/feathers/link.twig index 77f2e850fc..8badefd0eb 100644 --- a/themes/stardust/feathers/link.twig +++ b/themes/stardust/feathers/link.twig @@ -1,6 +1,6 @@ {% extends "content/post.twig" %} {% block content %} -

$post.name

+

${ "%s" | format(post.name | fallback(post.source)) }

${ post.description | read_more } {% endblock %}