Design suggestions for the front page

This commit is contained in:
Krasimir Tsonev 2014-10-17 09:39:11 +03:00
parent bb6bc6c309
commit 53bcd858c9
3 changed files with 22 additions and 13 deletions

View File

@ -786,3 +786,14 @@ a.button:hover { opacity: 0.8; }
p img {
max-width: 100%;
}
.front-page-sponsors {
text-align: center;
}
.front-page-big-title h1 {
font-size: 1.4em;
text-align: center;
}
.content.front-page-big-title {
padding: 1em 0 0 0;
}

View File

@ -1,15 +1,13 @@
<?php get_header(); ?>
<section class="content grid">
<div class="col-left">
<section class="content">
<?php echo do_shortcode( '[sh-latest-posts cat="news" label="'.pll__('Новини').'"]' ); ?>
</section>
</div>
<div class="col-right sponsors">
<div class="content front-page-big-title"><h1>OpenFest e единствената по рода си в България конференция, посветена на свободната култура, свободния софтуер и софтуера с отворен код, свободното споделяне на знания фестивал на свободното творчество. OpenFest е ежегодна среща на всички почитатели, създатели, поддръжници и нови фенове на свободните изкуства и свободния софтуер.</h1></div>
<div class="separator"></div>
<div class="col-right sponsors">
<?php echo do_shortcode( '[sponsors]' ); ?>
<?php echo do_shortcode( '[partners]' ); ?>
</div>
</div>
<div class="separator"></div>
<section class="content">
<?php echo do_shortcode( '[sh-latest-posts cat="news" label="'.pll__('Новини').'"]' ); ?>
</section>
<div class="separator"></div>

View File

@ -43,7 +43,7 @@ function sh_latest_posts($atts){
if ( $news->have_posts() ) :
while ( $news->have_posts() && $i++<2) : $news->the_post();
?>
<div class="col2">
<div class="col3">
<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
<p class="info"><?php pll_e('От');?> <?php the_author(); ?> | <?php pll_e('Публикувано на');?> <?php the_date(); ?> </p>
<?php the_excerpt(); ?>
@ -58,7 +58,7 @@ function sh_latest_posts($atts){
$i=0;
while ( $news->have_posts() && $i++<2) : $news->the_post();
?>
<div class="col2">
<div class="col3">
<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
<p class="info"><?php pll_e('От');?> <?php the_author(); ?> | <?php pll_e('Публикувано на');?> <?php the_date(); ?> </p>
<?php the_excerpt(); ?>