diff -r 0d9a58d2c515 -r 0d28b7c10758 web/wp-content/themes/malleable/functions.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/wp-content/themes/malleable/functions.php Fri Mar 12 13:29:04 2010 +0000 @@ -0,0 +1,152 @@ + 'list', + 'hide_empty' => true, + 'use_desc_for_title' => false, + 'depth' => 4, + 'hierarchical' => true, + 'echo' => false, // Leave as is. + 'title_li' => false, // Leave as is. + ); + + echo "\n\t
\n\t\t"; + + echo '
'; + + echo '
'; + + echo "\n\t
\n"; +} + +/** + * Adds JavaScript and CSS to Front Page page template. + * Also removes the breadcrumb menu. + * + * @since 0.1 + */ +function malleable_front_page_template() { + if ( is_page_template( 'front-page.php' ) ) : + wp_enqueue_script( 'slider', MALLEABLE_URL . '/library/js/jquery.cycle.js', array( 'jquery' ), 0.1 ); + wp_enqueue_script( 'slider-functions', MALLEABLE_URL . '/library/js/jquery.functions.js', array( 'jquery' ), 0.1 ); + wp_enqueue_style( 'front-page', MALLEABLE_URL . '/front-page.css', false, '0.1', 'screen' ); + remove_action( 'hybrid_before_content', 'hybrid_breadcrumb' ); + endif; +} + +/** + * Wraps the Primary, Secondary, and Tertiary widget sections. + * + * @since 0.1 + */ +function malleable_widget_container() { + if ( is_active_sidebar( 'primary' ) || is_active_sidebar( 'secondary' ) || is_active_sidebar( 'tertiary' ) ) : + echo '
'; + hybrid_get_primary(); + hybrid_get_secondary(); + echo '
'; + endif; +} + +/** + * Shows an author description after the post. + * Only shows on single post. + * + * @since 0.1 + */ +function malleable_author_box() { + global $hybrid_settings; +?> +
+ +

+

+ +

+
+ 'Medium', 'default' => '', 'title' => __('Medium/Feature:', 'malleable'), 'type' => 'text', 'show_description' => false, 'description' => false ); + return $meta_boxes; +} + +function malleable_show_address(){ + global $malleable_settings; + if ( $malleable_settings['general_address'] == "yes" ) { + echo '
'; + echo '
'. get_bloginfo('title') .'
'; + echo '
'; + echo ''. $malleable_settings['general_address_street']. ', '; + echo ''. $malleable_settings['general_address_city']. ', '; + echo ''. $malleable_settings['general_address_state']. ', '; + echo ''. $malleable_settings['general_address_zip']. ' -- '; + echo ''. $malleable_settings['general_address_phone']. ''; + echo '
'; + echo '
'; + } +} + +?> \ No newline at end of file