Skip to content

Instantly share code, notes, and snippets.

Karin Taliga middlesister

View GitHub Profile
@middlesister
middlesister / accessible-genesis-menu.php
Last active Jan 31, 2020
Accessible and translatable Genesis reponsive menu
View accessible-genesis-menu.php
<?php
/**
* Enqueue javascript for responsive menus
*
* Pass localized strings to the javascript. Replace "prefix-" with your
* child theme prefix and "textdomain" with your theme textdomain. The strings
* will be available for translation in your pot-file like normal
*
@middlesister
middlesister / widget-latest-podcasts.php
Last active Aug 29, 2015
A widget for displaying latest podcasts, created for the plugin seriously-simple-podcasting.
View widget-latest-podcasts.php
<?php
/**
* Display recent podcasts widget
*
* Displays a list of recent podcast episodes.
* Based on WP_Recent_Posts widget
*
* @author Karin Taliga
*/
@middlesister
middlesister / test-upgrade.php
Last active Jan 4, 2016
set a theme option when upgrading a theme from a specific version
View test-upgrade.php
<?php
/**
* @group default
*/
class TestUpgrade extends Thematic_UnitTestCase {
public static function setUpBeforeClass() {
parent::setUpBeforeClass();
View README.md

Installation

To install, you need to have the WordPress i18n library on your computer. Check it out using SVN:

sudo svn co http://i18n.svn.wordpress.org/tools/trunk/ /usr/lib/wpi18n

You don't have to put the library in /usr/lib/wpi18n, but if you don't put it there, make sure to set the $WP_I18N_LIB environment variable in your .bashrc or .bash_profile file (with no trailing slash):

export WP_I18N_LIB="/path/to/i18n/lib"
View childtheme_filtered_options.php
<?php
add_action ('admin_init', 'childtheme_opt_init');
/**
* Add childtheme settings to the thematic theme
*
* This will add childtheme options to the thematic theme settings
* in the database, and add to the existing theme options page in Thematic
**/
function childtheme_opt_init() {
@middlesister
middlesister / childtheme_separate_options.php
Last active Dec 17, 2015
Add child theme settings to Thematic theme options page
View childtheme_separate_options.php
<?php
add_action ('admin_init', 'childtheme_opt_init');
/**
* Add childtheme settings to the thematic theme
*
* This will create a separate setting in the database, but
* add the settings to the existing theme options page in Thematic
**/
function childtheme_opt_init() {
View content-extensions.php
<?php
/**
* Content Extensions
*
* @package ThematicCoreLibrary
* @subpackage ContentExtensions
* @todo revisit docblock desciptions & tags
*/
You can’t perform that action at this time.