Created
March 15, 2014 01:31
-
-
Save jasonmccallister/9560524 to your computer and use it in GitHub Desktop.
Modify getTitle in craft/app/widgets/QuickPostWidget.php to display the section title in lower case to match the widget title text.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getTitle() | |
{ | |
if (craft()->hasPackage(CraftPackage::PublishPro)) | |
{ | |
$section = $this->_getSection(); | |
if ($section) | |
{ | |
return Craft::t('Post a new {section} entry', array('section' => strtolower($section->name))); | |
} | |
} | |
return $this->getName(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment