Question — Add New » | Posts | Last Poster | Freshness |
---|---|---|---|
How should DH alternatives to requirements in analog humanities courses look? | 2 | Julie Meloni | 8 years |
Ask a New Question
You must log in to post.
/* Plugin Name: bb Topic Icons Plugin URI: http://devt.caffeinatedbliss.com/bbpress/topic-icons Description: Adds configurable icons next to topics based on their status Author: Paul Hawke Author URI: http://paul.caffeinatedbliss.com/ Version: 0.6 */ /**************************************************************************** * * Configure the following constants to fine-tune the CSS classes that are * generated, the icon filenames that are used, and the text used in the * legend (if you have one displayed). Note: filenames are likely to be * taken away in a future version and replaced with the concept of "icon sets" * whose filenames are fixed, so dont get used to editing the filenames, * as this will break in future versions. * ****************************************************************************/ // css class for the unsorted list used in the legend display define( LEGEND_CLASS, 'topic_icon_legend' ); // busy threshold - a topic with more posts than this is counted as "busy" // for purposes of picking an icon. define( BUSY_THRESHOLD, 15 ); // width of the images, in pixels define( ICON_WIDTH, '20' ); // height of the images, in pixels define( ICON_HEIGHT, '20' ); // the URL base for where to find the default icon set. define( ICON_SET_URL_BASE, BB_PLUGIN_URL.'bb-topic-icons/icon-sets/' ); /**************************************************************************** * * Shouldnt be much need to edit anything beyond this point - configuration * is all done via the constants (above) and through and admin area page in * bbPress at runtime. * ****************************************************************************/ require( 'bb-topic-icons-api.php' ); require( 'bb-topic-icons-admin.php' ); require( 'interface.status-interpreter.php' ); require( 'interface.status-renderer.php' ); require( 'class.default-status-interpreter.php' ); require( 'class.default-status-renderer.php' ); function topic_icons_legend() { $icon_set_name = topic_icons_get_active_icon_set(); $icon_set_url = ICON_SET_URL_BASE . $icon_set_name; $statuses = get_active_status_interpreter()->getAllStatuses(); $renderer = get_active_status_renderer(); echo '
Question — Add New » | Posts | Last Poster | Freshness |
---|---|---|---|
How should DH alternatives to requirements in analog humanities courses look? | 2 | Julie Meloni | 8 years |
You must log in to post.