Skip to content

Instantly share code, notes, and snippets.

View eteubert's full-sized avatar

Eric Teubert eteubert

View GitHub Profile
@eteubert
eteubert / episode-contributors.twig
Last active August 29, 2015 13:56
Podlove Publisher Example Templates
{% macro iconSrc(icon) %}
{{ constant("\\Podlove\\PLUGIN_URL") }}/lib/modules/contributors/images/icons/{{ icon }}-128.png
{% endmacro %}
{% macro iconLink(title, icon, href) %}
<a target="_blank" title="{{ title }}" href="{{ href }}">
<img width="32" height="32" src="{{ _self.iconSrc(icon) }}" class="podlove-contributor-button" alt="{{ title }}" />
</a>
{% endmacro %}
@eteubert
eteubert / podlove-episode-list.twig
Created March 12, 2014 14:19
[podlove-episode-list] template
<table>
<thead>
<th></th>
<th>Date</th>
<th>Title</th>
<th>Duration</th>
</thead>
<tbody>
{% for episode in podcast.episodes %}
<tr class="podcast_archive_element">
@eteubert
eteubert / feed-list.twig
Created March 13, 2014 04:18
`[podlove-feed-list]` template
<table>
<thead>
<tr>
<th>Feed</th>
<th>Enclosure</th>
</tr>
</thead>
<tbody>
{% for feed in podcast.feeds %}
{% if feed.discoverable %}
{% for list in podlove.lists({slug: "meta"}) %}
    <h1><a href="{{ list.url }}">{{ list.title }}</a></h1>
    <h2>{{ list.subtitle }}</h2>
    <p>
        Sabbel: {{ list.description }}
    </p>
    <ul>
            {% for episode in list.episodes({limit: 5}) %}
@eteubert
eteubert / roadmap-guide.md
Created December 2, 2014 12:52
Publisher Roadmap Guidelines

Workflow

Ziel: Häufigere, kleinere Releases.

  • ein neues (großes) Feature pro Dot-Release
  • hin und wieder ein ganzes Release der Überarbeitung/Verbesserung alter Features widmen

Trello

Ziel: Vermeiden, dass in "Up Next" Karten einstauben.

@eteubert
eteubert / support_guide.md
Created January 21, 2015 08:31
Publisher: Help us Isolate the Bug

Something is not working? Please follow the steps below to help us isolate the cause of error.

Disable Podlove Cache

While testing, disable out internal cache. Put the following at the end of wp-config.php

# wp-config.php
define('PODLOVE_TEMPLATE_CACHE', false);
@eteubert
eteubert / apache.htaccess
Created March 14, 2015 08:40
Podlove Publisher: Forced Downloads
<FilesMatch "\.(mp3|m4a|ogg|oga|opus|flac)$">
Header set Content-Disposition "attachment"
</FilesMatch>
AddType audio/mpeg mp3
AddType audio/mp4 m4a
AddType audio/ogg oga ogg
AddType audio/opus opus
AddType audio/flac flac
ericteubert: /Volumes/ingame Portal Plugins [svn:]
➜ ack bootstrap
ingame_wpauth/ingame_wpauth.php
11:require_once 'bootstrap.inc.php';
test_dispatcher/test_dispatcher.php
11:require_once 'bootstrap.inc.php';
ingame_userconverter/user_converter.php
11:require_once 'bootstrap.inc.php';
simple_form (1.3.0) lib/simple_form/form_builder.rb:83:in `default_input_type'
simple_form (1.3.0) lib/simple_form/form_builder.rb:83:in `input'
app/views/users/new.html.haml:2:in `_app_views_users_new_html_haml___732771201_2202237740_0'
haml (3.0.24) lib/haml/helpers/action_view_mods.rb:167:in `call'
haml (3.0.24) lib/haml/helpers/action_view_mods.rb:167:in `form_for_without_haml_xss'
haml (3.0.24) lib/haml/helpers.rb:253:in `with_tabs'
haml (3.0.24) lib/haml/helpers/action_view_mods.rb:167:in `form_for_without_haml_xss'
actionpack (3.0.3) lib/action_view/helpers/capture_helper.rb:40:in `capture_without_haml'
actionpack (3.0.3) lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer_without_haml_xss'
haml (3.0.24) lib/haml/helpers/xss_mods.rb:109:in `with_output_buffer'
function gfnew () {
git checkout master
git checkout -b $*
}
# make the feature available in dev.ingame.de
# push changes to dev and then checkout featurebranch again
# so you can continue to work on it immediately
function gfdev () {
CURBRANCH=`git branch | grep \* | awk '{print $2}'`