diff --git a/functions.php b/functions.php index e182fe9..ada279c 100644 --- a/functions.php +++ b/functions.php @@ -1,1238 +1,1208 @@ . /** * Check if the user do not want to be tracked * * See the HTTP 'DNT' header. * * @return boolean */ function do_not_track() { return isset( $_SERVER['HTTP_DNT'] ) && $_SERVER['HTTP_DNT'] === '1'; } /* * 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