diff --git a/functions.php b/functions.php index cb26cb9..4522c47 100644 --- a/functions.php +++ b/functions.php @@ -1,1216 +1,1217 @@ . /* * Configuration helpers * * Shortcuts useful when you declare a configuration file. */ /** * Define a constant if it does not exist * * @param string $name Constant name * @param string $value Constant value */ function define_default( $name, $value ) { defined( $name ) or define( $name, $value ); } /* * Template helpers * * Shortcuts useful when you build a page */ /** * Print a ' checked="checked"' HTML attribute under some circumstances * * This is useful for the HTML tag. * * @param mixed $helper If this is the only arg, prints * @param mixed $current If this matches $helper, print * @param bool $force If this is true, print */ function _checked( $helper = PHP_INT_MAX, $current = PHP_INT_MAX, $force = false ) { echo checked( $helper, $current, $force ); } /** * Print a ' selected="selected"' HTML attribute under some circumstances * * This is useful for the