[guadec-web] template for sessions
- From: Fabiana Pedreira SimĂľes <fabianaps src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web] template for sessions
- Date: Wed, 3 Jul 2013 17:23:57 +0000 (UTC)
commit 8c54e6875300ee5024f565472e633969e0345b8e
Author: Fabiana SimĂľes <fabianapsimoes gmail com>
Date: Wed Jul 3 18:51:07 2013 +0200
template for sessions
.../lib/sessions/class-wcb-session-template.php | 16 +-----------
wordcamp-base/single-wcb_session.php | 2 +-
wordcamp-base/style.css | 25 ++++++++++++++++++++
wordcamp-base/template-sessions.php | 3 +-
4 files changed, 29 insertions(+), 17 deletions(-)
---
diff --git a/wordcamp-base/lib/sessions/class-wcb-session-template.php
b/wordcamp-base/lib/sessions/class-wcb-session-template.php
index a846af4..e260fab 100644
--- a/wordcamp-base/lib/sessions/class-wcb-session-template.php
+++ b/wordcamp-base/lib/sessions/class-wcb-session-template.php
@@ -97,23 +97,11 @@ function wcb_session_entry_meta( $meta ) {
$meta['speakers'] = sprintf( __('Presented by %s', 'wordcampbase'),
wcb_get_session_speakers() );
- if ( empty( $track ) ) {
- $meta['order'] = array('speakers', 'edit');
-
- } else {
- $meta['track'] = sprintf( __('%s Track', 'wordcampbase'), $track );
-
- $link = get_term_link( $track, WCB_TRACK_TAXONOMY );
- if ( ! is_wp_error( $link ) ) {
- $meta['track'] = "<a href='$link'>{$meta['track']}</a>";
- }
-
- $meta['order'] = array('speakers', 'sep', 'track', 'edit');
- }
+ $meta['order'] = array('speakers', 'edit');
}
return $meta;
}
add_filter( 'wcb_entry_meta', 'wcb_session_entry_meta' );
-?>
\ No newline at end of file
+?>
diff --git a/wordcamp-base/single-wcb_session.php b/wordcamp-base/single-wcb_session.php
index 655de4d..cdf25fc 100644
--- a/wordcamp-base/single-wcb_session.php
+++ b/wordcamp-base/single-wcb_session.php
@@ -15,7 +15,7 @@ get_header(); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <h1 class="entry-title sponsor-title"><a href="<?php the_permalink();
?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wordcampbase' ), the_title_attribute( 'echo=0' ) );
?>" rel="bookmark"><?php
+ <h1 class="entry-title sponsor-title talk-title"><a href="<?php
the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wordcampbase' ),
the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php
if ( has_post_thumbnail() )
the_post_thumbnail();
else
diff --git a/wordcamp-base/style.css b/wordcamp-base/style.css
index 44a984d..c7b97d4 100644
--- a/wordcamp-base/style.css
+++ b/wordcamp-base/style.css
@@ -57,6 +57,11 @@ a img {
border: none;
}
+br {
+ height: 10px;
+ margin-bottom: 20px;
+}
+
/* =Layout
-------------------------------------------------------------- */
@@ -1711,3 +1716,23 @@ h1, h2, h3, h4, h5, h6, #site-title, #site-description, #access .menu, #access d
background: #6b8e9f !important;
color: white;
}
+
+.talk-title {
+ margin-top: 20px !important;
+}
+
+.session-speakers {
+ font-size: 14px;
+ margin-bottom: 20px;
+ padding-bottom: 5px;
+}
+
+.talk-slot br {
+ display: block;
+ margin: 0 !important;
+}
+
+.save-the-date {
+ color: #6b8e9f;
+ font-weight: bold;
+}
diff --git a/wordcamp-base/template-sessions.php b/wordcamp-base/template-sessions.php
index d6dc020..14b3995 100644
--- a/wordcamp-base/template-sessions.php
+++ b/wordcamp-base/template-sessions.php
@@ -13,7 +13,6 @@ $sessions = wcb_session_query();
wcb_suppress_sharing();
get_header(); ?>
-
<div id="container">
<div id="content" role="main">
<div class="callout lead"><?php
@@ -59,4 +58,4 @@ get_header(); ?>
</div><!-- #container -->
<?php get_sidebar(); ?>
-<?php get_footer(); ?>
\ No newline at end of file
+<?php get_footer(); ?>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]