Merge pull request #8 from krasimir/master
Design suggestions for the front page
This commit is contained in:
commit
3a30f3ed8a
|
@ -786,3 +786,14 @@ a.button:hover { opacity: 0.8; }
|
||||||
p img {
|
p img {
|
||||||
max-width: 100%;
|
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;
|
||||||
|
}
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
<?php get_header(); ?>
|
<?php get_header(); ?>
|
||||||
<section class="content grid">
|
<div class="content front-page-big-title"><h1>OpenFest e единствената по рода си в България конференция, посветена на свободната култура, свободния софтуер и софтуера с отворен код, свободното споделяне на знания – фестивал на свободното творчество. OpenFest е ежегодна среща на всички почитатели, създатели, поддръжници и нови фенове на свободните изкуства и свободния софтуер.</h1></div>
|
||||||
<div class="col-left">
|
<div class="separator"></div>
|
||||||
<section class="content">
|
<div class="col-right sponsors">
|
||||||
<?php echo do_shortcode( '[sh-latest-posts cat="news" label="'.pll__('Новини').'"]' ); ?>
|
<?php echo do_shortcode( '[sponsors]' ); ?>
|
||||||
</section>
|
<?php echo do_shortcode( '[partners]' ); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-right sponsors">
|
<div class="separator"></div>
|
||||||
<?php echo do_shortcode( '[sponsors]' ); ?>
|
<section class="content">
|
||||||
<?php echo do_shortcode( '[partners]' ); ?>
|
<?php echo do_shortcode( '[sh-latest-posts cat="news" label="'.pll__('Новини').'"]' ); ?>
|
||||||
</div>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
|
|
|
@ -43,7 +43,7 @@ function sh_latest_posts($atts){
|
||||||
if ( $news->have_posts() ) :
|
if ( $news->have_posts() ) :
|
||||||
while ( $news->have_posts() && $i++<2) : $news->the_post();
|
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>
|
<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>
|
<p class="info"><?php pll_e('От');?> <?php the_author(); ?> | <?php pll_e('Публикувано на');?> <?php the_date(); ?> </p>
|
||||||
<?php the_excerpt(); ?>
|
<?php the_excerpt(); ?>
|
||||||
|
@ -58,7 +58,7 @@ function sh_latest_posts($atts){
|
||||||
$i=0;
|
$i=0;
|
||||||
while ( $news->have_posts() && $i++<2) : $news->the_post();
|
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>
|
<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>
|
<p class="info"><?php pll_e('От');?> <?php the_author(); ?> | <?php pll_e('Публикувано на');?> <?php the_date(); ?> </p>
|
||||||
<?php the_excerpt(); ?>
|
<?php the_excerpt(); ?>
|
||||||
|
|
Loading…
Reference in New Issue