'ffffff', 'text' => '333333', 'link' => $uti_muted_color, 'border' => $uti_accent_color, 'url' => $uti_muted_color, ); } function uti_content_width() { $width_option = get_option( 'uti_column_width' ); if ( ! empty( $width_option ) ) $content_width = (int) $width_option; else $content_width = 780; // default column width } if ( ! isset( $content_width ) ) add_action( 'init', 'uti_content_width' ); $options = array( array( 'type' => 'open' ), array( 'name' => __( 'Accent Color', 'uti_theme' ), 'desc' => __( 'Default: #9bbc57.', 'uti_theme' ), 'id' => 'uti_accent_color', 'std' => '#9bbc57', 'id2' => '1', 'type' => 'color' ), array( 'name' => __( 'Muted Accent Color', 'uti_theme' ), 'desc' => __( 'Affects tags, metadata for posts and comments and the read more hover color.
Default: #619500', 'uti_theme' ), 'id' => 'uti_muted_accent', 'std' => '#619500', 'id2' => '2', 'type' => 'color' ), array( 'name' => __( 'Default Header Design', 'uti_theme' ), 'desc' => __( 'Default:2', 'uti_theme' ), 'id' => 'uti_header_design', 'std' => '2', 'type' => 'select', 'options' => array( '2', '1' ) ), array( 'name' => __( 'Site Width', 'uti_theme' ), 'desc' => __( 'Determines the with of the entire layout in px. Alterations are not recommended for the default three column layout. For a two-column layout it might be useful to slim down the page. The optimal site width is Main Column Width + Sidebar Width + 40.
Default: 970', 'uti_theme' ), 'id' => 'uti_site_width', 'std' => '970', 'type' => 'text' ), array( 'name' => __( 'Main Column Width', 'uti_theme' ), 'desc' => __( 'Determines the width of the content column for single pages in px. Also affects overview pages (front, archive and search pages) when in two column layout.
Default: 780', 'uti_theme' ), 'id' => 'uti_column_width', 'std' => '780', 'type' => 'text' ), array( 'name' => __( 'Sidebar Width', 'uti_theme' ), 'desc' => __( 'Determines the width of the sidebar in px. Alterations are not recommended for the default three column layout.
Default: 150', 'uti_theme' ), 'id' => 'uti_sidebar_width', 'std' => '150', 'type' => 'text' ), array( 'name' => __( 'Max Picture Width', 'uti_theme' ), 'desc' => __( 'Determines the maximum width in px of right aligned and left aligned pictures on overview pages (front, archive and search pages).
Default: 376', 'uti_theme' ), 'id' => 'uti_pic_width', 'std' => '376', 'type' => 'text' ), array( 'name' => __( 'Max Picture Height', 'uti_theme' ), 'desc' => __( 'Determines the maximum height in px of right aligned and left aligned pictures on overview pages (front, archive and search pages).
Default: 376', 'uti_theme' ), 'id' => 'uti_pic_height', 'std' => '367', 'type' => 'text' ), array( 'name' => __( 'Three Column Layout', 'uti_theme' ), 'desc' => __( 'Disabling the three column layout changes overview pages (front, archive and search pages) to a two column layout.
Default: on', 'uti_theme' ), 'id' => 'uti_column', 'std' => 'on', 'type' => 'select', 'options' => array( 'on', 'off' ) ), array( 'name' => __( 'Description', 'uti_theme' ), 'desc' => __( 'This allows you to toggle the description in the title.
Default: on', 'uti_theme' ), 'id' => 'uti_description', 'std' => 'on', 'type' => 'select', 'options' => array( 'on', 'off' ) ), array( 'name' => __( 'Right Hand Footer Cell', 'uti_theme' ), 'desc' => __( 'You can disable the right hand footer cell to slim down the page. This is especially useful for a thinner two-column layout.
Default: on', 'uti_theme' ), 'id' => 'uti_footer_cell4', 'std' => 'on', 'type' => 'select', 'options' => array( 'on', 'off' ) ), array( 'name' => __( 'Show Author', 'uti_theme' ), 'desc' => __( 'This allows you to toggle the author name.
Default: off', 'uti_theme' ), 'id' => 'uti_show_author', 'std' => 'off', 'type' => 'select', 'options' => array( 'off', 'on' ) ), array( 'type' => 'close' ) ); function uti_add_admin() { global $options; if ( isset($_GET['page']) && 'theme_options' == $_GET['page'] ) { if ( isset($_REQUEST['action']) && 'save' == $_REQUEST['action'] && isset( $_POST['uti_nonce'] ) && wp_verify_nonce( $_POST['uti_nonce'], 'uti_save_theme_options' ) && current_user_can( 'edit_theme_options' ) ) { foreach ($options as $value) { if ( array_key_exists('id',$value)) update_option( $value['id'], esc_attr($_REQUEST[ $value['id'] ]) ); } foreach ($options as $value) { if(array_key_exists('type',$value) && ($value['type'] === "checkbox" || $value['type'] === "multiselect" ) && is_array($_REQUEST[ $value['id'] ])){ $_REQUEST[ $value['id'] ] = implode(',',esc_attr( $_REQUEST[ $value['id'] ] )); } if( isset( $value['id'] ) && isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], esc_attr( $_REQUEST[ $value['id'] ] ) ); } else { if ( isset ( $value['id'] ) ) delete_option( $value['id'] ); } } wp_redirect( 'themes.php?page=theme_options&saved=true' ); exit(); } else if( isset($_REQUEST['action']) && 'reset' == $_REQUEST['action'] && isset( $_POST['uti_reset_nonce'] ) && wp_verify_nonce( $_POST['uti_reset_nonce'], 'uti_reset_theme_options' ) && current_user_can( 'edit_theme_options' ) ) { foreach ($options as $value) { if ( array_key_exists('id',$value)) delete_option( $value['id'] ); } wp_redirect( 'themes.php?page=theme_options&reset=true' ); exit(); } } add_theme_page( __( 'Theme Options', 'uti_theme' ), __( 'Theme Options', 'uti_theme' ), 'edit_theme_options', 'theme_options', 'uti_admin' ); } add_filter('gallery_style', function(){ return "'; if ( isset($_REQUEST['reset']) && $_REQUEST['reset'] ) echo '

Under the Influence options reset.

'; ?>

 
 

/>

'sidebar', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); register_sidebar(array( 'name' => 'footercell-left', 'before_widget' => '
    ', 'after_widget' => '
    ', 'before_title' => '

    ', 'after_title' => '

    ', )); register_sidebar(array( 'name' => 'footercell-mid-left', 'before_widget' => '
    ', 'after_widget' => '
    ', 'before_title' => '

    ', 'after_title' => '

    ', )); register_sidebar(array( 'name' => 'footercell-mid-right', 'before_widget' => '
    ', 'after_widget' => '
    ', 'before_title' => '

    ', 'after_title' => '

    ', )); register_sidebar(array( 'name' => 'footercell-right', 'before_widget' => '
    ', 'after_widget' => '
    ', 'before_title' => '

    ', 'after_title' => '

    ', )); function uti_page_menu() { // fallback for primary navigation ?> tag based on what is being viewed. * * @since Under the Influence 1.03 */ function uti_wp_title( $title, $sep ) { global $page, $paged; if ( is_feed() ) return $title; // Add the blog name $title .= get_bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title .= " $sep $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) $title .= " $sep " . sprintf( __( 'Page %s', 'uti_theme' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'uti_wp_title', 10, 2 );

    " />
     
     
    " />
     
     
     
     
     
     
    :

    />