I've installed this Twitter feed https://github.com/tractorcow/silverstripe-twitter and it works perfect when called directly into my HomePage.ss, however when I call it from an include, nothing shows.
This is the code on the homepage (Twitter feed is located inside the $SidebarWidgets.First / SidebarWidget include):
<% if $SidebarWidgets %>
<section class="unit-list list-widgets">
<div class="wrapper">
<% loop $SidebarWidgets.Last %>
<% include SidebarWidget %>
<% end_loop %>
<% with $Page(our-clients) %>
<% include SidebarWidget %>
<% end_with %>
<% loop $SidebarWidgets.First %>
<% include SidebarWidget %>
<% end_loop %>
</div>
</section>
<% end_if %>
Here is my code for the include (SidebarWidget.ss):
<% if $ID = '2' %>
<% if LatestTweets %>
<ul class="Tweets">
<% loop LatestTweets %>
<li class="Tweet">
<label>
<a href="https://www.twitter.com/{$User}" target="_blank" class="User">@$User</a>
$DateObject.format('d F Y')
</label>
<p>$Content</p>
</li>
<% end_loop %>
</ul>
<% end_if %>
<% end_if %>
Any ideas what I'm doing wrong please?