> <div class="entry author-entry clearfix"> <?php do_action('graphene_author_entry'); ?> <?php /* Display the user's profile image */ ?> <?php if (get_the_author_meta('graphene_author_imgurl')) { echo '<img class="avatar" src="' . get_the_author_meta('graphene_author_imgurl') . '" alt="" />'; } else { echo get_avatar(get_the_author_meta('user_email'), graphene_grid_width(30, 2)); } ?> <?php /* Page title, which is the user's nicename */ ?> <h2 <?php graphene_grid('post-title', 13, 8, 5); ?> ><?php echo ucfirst(get_the_author_meta('display_name')); ?> </h2> <?php
/** * Styles the header image displayed on the Appearance > Header admin panel. */ function graphene_admin_header_style() { global $graphene_settings; ?> <style type="text/css"> .appearance_page_custom-header #headimg { min-height: 0; height: <?php echo $graphene_settings['header_img_height']; ?> px !important; position: relative; } #headimg h1 { position: absolute; bottom: 30%; left: <?php echo graphene_grid_width('', 1) + $graphene_settings['gutter_width'] * 2; ?> px; width: <?php echo graphene_grid_width(-5, 13) + $graphene_settings['gutter_width'] * 13; ?> px; margin: 0 <?php echo $graphene_settings['gutter_width']; ?> px; font: normal 32px "Pontano Sans", arial, sans-serif; letter-spacing: -1px; text-decoration: none; } #headimg h1 a { text-decoration: none; } #headimg #desc { color: #000; border-bottom: none; position: relative; top: 68%; width: <?php echo graphene_grid_width(-5, 13) + $graphene_settings['gutter_width'] * 13; ?> px; margin: 0 <?php echo $graphene_settings['gutter_width']; ?> px; left: <?php echo graphene_grid_width('', 1) + $graphene_settings['gutter_width'] * 2; ?> px; font: normal 22px "Pontano Sans", arial, sans-serif; } #headimg { background-position: center top; background-repeat: no-repeat; } </style> <?php do_action('graphene_admin_header_style'); }
/** * Get the custom style attributes, these are defined by theme options. * * @global type $graphene_settings * @global type $graphene_defaults * @global type $content_width * @return string */ function graphene_get_custom_style() { global $graphene_settings, $graphene_defaults, $content_width; $background = get_theme_mod('background_image', false); $bgcolor = get_theme_mod('background_color', false); $widgetcolumn = $graphene_settings['footerwidget_column']; $widgetcolumn_alt = $graphene_settings['alt_footerwidget_column']; $container_width = apply_filters('graphene_container_width', $graphene_settings['container_width']); $gutter = $graphene_settings['gutter_width']; $grid_width = $graphene_settings['grid_width']; $style = ''; /* Disable default background if a custom background colour is defined */ if (!$background && $bgcolor) { $style .= 'body{background-image:none;}'; } /* Header text */ $header_textcolour = get_theme_mod('header_textcolor', HEADER_TEXTCOLOR); if ($header_textcolour != apply_filters('graphene_header_textcolor', '000000')) { $style .= '.header_title, .header_title a, .header_title a:visited, .header_title a:hover, .header_desc {color:#' . $header_textcolour . ';}'; } /* Set the width of the bottom widget items if number of columns is specified */ if (($widgetcolumn != $graphene_defaults['footerwidget_column'] || $container_width != $graphene_defaults['container_width']) && $widgetcolumn) { $widget_width = floor(($container_width - $gutter * 2 - 20 * ($widgetcolumn - 1)) / $widgetcolumn - 20); $style .= '#sidebar_bottom .sidebar-wrap{width:' . $widget_width . 'px}'; } if ($graphene_settings['alt_home_footerwidget'] && ($widgetcolumn_alt != $graphene_defaults['alt_footerwidget_column'] || $container_width != $graphene_defaults['container_width']) && $widgetcolumn_alt) { $widget_width = floor(($container_width - $gutter * 2 - 20 * ($widgetcolumn_alt - 1)) / $widgetcolumn_alt - 20); $style .= '.home #sidebar_bottom .sidebar-wrap{width:' . $widget_width . 'px}'; } /* Set the width of the nav menu dropdown menu item width if specified */ if ($graphene_settings['navmenu_child_width']) { $nav_width = $graphene_settings['navmenu_child_width']; $style .= '#nav li ul{width:' . $nav_width . 'px;}'; if (!is_rtl()) { $style .= ' #nav li ul ul{margin-left:' . $nav_width . 'px}'; } else { $style .= ' #nav li ul ul{margin-right:' . $nav_width . 'px; margin-left: 0;}'; } $style .= '#header-menu ul li a, #secondary-menu ul li a{width:' . ($nav_width - 20) . 'px;}'; } /* Header title text style */ $font_style = ''; $font_style .= $graphene_settings['header_title_font_type'] ? 'font-family:' . $graphene_settings['header_title_font_type'] . ';' : ''; $font_style .= $graphene_settings['header_title_font_lineheight'] ? 'line-height:' . $graphene_settings['header_title_font_lineheight'] . ';' : ''; $font_style .= $graphene_settings['header_title_font_size'] ? 'font-size:' . $graphene_settings['header_title_font_size'] . ';' : ''; $font_style .= $graphene_settings['header_title_font_weight'] ? 'font-weight:' . $graphene_settings['header_title_font_weight'] . ';' : ''; $font_style .= $graphene_settings['header_title_font_style'] ? 'font-style:' . $graphene_settings['header_title_font_style'] . ';' : ''; if ($font_style) { $style .= '#header .header_title { ' . $font_style . ' }'; } /* Header description text style */ $font_style = ''; $font_style .= $graphene_settings['header_desc_font_type'] ? 'font-family:' . $graphene_settings['header_desc_font_type'] . ';' : ''; $font_style .= $graphene_settings['header_desc_font_size'] ? 'font-size:' . $graphene_settings['header_desc_font_size'] . ';' : ''; $font_style .= $graphene_settings['header_desc_font_lineheight'] ? 'line-height:' . $graphene_settings['header_desc_font_lineheight'] . ';' : ''; $font_style .= $graphene_settings['header_desc_font_weight'] ? 'font-weight:' . $graphene_settings['header_desc_font_weight'] . ';' : ''; $font_style .= $graphene_settings['header_desc_font_style'] ? 'font-style:' . $graphene_settings['header_desc_font_style'] . ';' : ''; if ($font_style) { $style .= '#header .header_desc { ' . $font_style . ' }'; } /* Content text style */ $font_style = ''; $font_style .= $graphene_settings['content_font_type'] ? 'font-family:' . $graphene_settings['content_font_type'] . ';' : ''; $font_style .= $graphene_settings['content_font_size'] ? 'font-size:' . $graphene_settings['content_font_size'] . ';' : ''; $font_style .= $graphene_settings['content_font_lineheight'] ? 'line-height:' . $graphene_settings['content_font_lineheight'] . ';' : ''; $font_style .= $graphene_settings['content_font_colour'] != $graphene_defaults['content_font_colour'] ? 'color:' . $graphene_settings['content_font_colour'] . ';' : ''; if ($font_style) { $style .= '.entry-content, .sidebar, .comment-entry { ' . $font_style . ' }'; } /* Adjust post title if author's avatar is shown */ if ($graphene_settings['show_post_avatar']) { $tmp_margin = !is_rtl() ? 'margin-right' : 'margin-left'; $style .= '.post-title a, .post-title a:visited{display:block;' . $tmp_margin . ':45px;padding-bottom:0;}'; } /* Slider */ if ($graphene_settings['slider_height']) { $style .= '.featured_slider #slider_root{height:' . $graphene_settings['slider_height'] . 'px;}'; } if ($graphene_settings['slider_full_width']) { $style .= '#content .featured_slider, .container_16 #content .slider_post {width:' . graphene_grid_width('', 16) . 'px;}'; } /* Header image height */ if ($graphene_settings['header_img_height'] != $graphene_defaults['header_img_height']) { $style .= '#header{height:' . HEADER_IMAGE_HEIGHT . 'px;}'; } /* Link header image */ if ($graphene_settings['link_header_img'] && (HEADER_IMAGE_WIDTH != 960 || HEADER_IMAGE_HEIGHT != $graphene_defaults['header_img_height'])) { $style .= '#header_img_link{width:' . HEADER_IMAGE_WIDTH . 'px; height:' . HEADER_IMAGE_HEIGHT . 'px;}'; } // Link style $link_styles = array('link_colour_normal' => 'a,.post-title,.post-title a,#comments > h4.current a{color: %s}', 'link_colour_visited' => 'a:visited,.post-title a:visited{color: %s}', 'link_colour_hover' => 'a:hover,.post-title a:hover{color: %s}', 'link_decoration_normal' => 'a,.post-title a{text-decoration: %s}', 'link_decoration_hover' => 'a:hover,.post-title a:hover{text-decoration: %s}'); $style .= graphene_build_style($link_styles); /* Title text colour */ $font_style = array('title_font_colour' => '.post-title, .post-title a, .post-title a:hover, .post-title a:visited { color: %s }'); $style .= graphene_build_style($font_style); // Custom column width $style .= graphene_get_custom_column_width(); return $style; }