This repository has been archived by the owner on May 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #465 from gianarb/feature/twitter-widget
Widget Twitter account @zfmodules
- Loading branch information
Showing
6 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
16 changes: 16 additions & 0 deletions
16
module/ZfModule/src/ZfModule/View/Helper/TwitterWidget.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace ZfModule\View\Helper; | ||
|
||
use Zend\View\Helper\AbstractHelper; | ||
|
||
class TwitterWidget extends AbstractHelper | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function __invoke() | ||
{ | ||
return $this->getView()->render('zf-module/helper/twitter-widget-view.phtml'); | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
module/ZfModule/view/zf-module/helper/twitter-widget-view.phtml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<a href="https://twitter.com/zfmodules" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @zfmodules</a> | ||
<?php $this->headScript()->appendFile("/js/twitter-widget.js", "application/javascript");?> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.