Skip to content

Commit

Permalink
theme version 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuku committed Jun 9, 2016
1 parent 4fcb8e2 commit d059d8f
Show file tree
Hide file tree
Showing 20 changed files with 336 additions and 359 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
Pressenza WordPress theme
=========

[pressenza.com](http://pressenza.com) WordPress theme, based on Timber


test 2014-07-16 11:53
[pressenza.com](http://pressenza.com) WordPress theme, based on Timber and Bootstrap
Binary file modified fr_FR.mo
Binary file not shown.
46 changes: 45 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,48 @@ function wsis_remove_wpv_frontend_enqueue_scripts()
* Remove Emoji CSS and JS
*/
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action('wp_print_styles', 'print_emoji_styles');

/*
* Remove unneeded CSS from Jetpack
*/
// First, make sure Jetpack doesn't concatenate all its CSS
//add_filter( 'jetpack_implode_frontend_css', '__return_false' );
// Then, remove each CSS file, one at a time
//function remove_jetpack_styles() {
// wp_deregister_style( 'AtD_style' ); // After the Deadline
// wp_deregister_style( 'jetpack_likes' ); // Likes
// wp_deregister_style( 'jetpack_related-posts' ); //Related Posts
// wp_deregister_style( 'jetpack-carousel' ); // Carousel
// wp_deregister_style( 'grunion.css' ); // Grunion contact form
// wp_deregister_style( 'the-neverending-homepage' ); // Infinite Scroll
// wp_deregister_style( 'infinity-twentyten' ); // Infinite Scroll - Twentyten Theme
// wp_deregister_style( 'infinity-twentyeleven' ); // Infinite Scroll - Twentyeleven Theme
// wp_deregister_style( 'infinity-twentytwelve' ); // Infinite Scroll - Twentytwelve Theme
// wp_deregister_style( 'noticons' ); // Notes
// wp_deregister_style( 'post-by-email' ); // Post by Email
// wp_deregister_style( 'publicize' ); // Publicize
// wp_deregister_style( 'sharedaddy' ); // Sharedaddy
// wp_deregister_style( 'sharing' ); // Sharedaddy Sharing
// wp_deregister_style( 'stats_reports_css' ); // Stats
// wp_deregister_style( 'jetpack-widgets' ); // Widgets
// wp_deregister_style( 'jetpack-slideshow' ); // Slideshows
// wp_deregister_style( 'presentations' ); // Presentation shortcode
// wp_deregister_style( 'jetpack-subscriptions' ); // Subscriptions
// wp_deregister_style( 'tiled-gallery' ); // Tiled Galleries
// wp_deregister_style( 'widget-conditions' ); // Widget Visibility
// wp_deregister_style( 'jetpack_display_posts_widget' ); // Display Posts Widget
// wp_deregister_style( 'gravatar-profile-widget' ); // Gravatar Widget
// wp_deregister_style( 'widget-grid-and-list' ); // Top Posts widget
// wp_deregister_style( 'jetpack-widgets' ); // Widgets
//}
//add_action('wp_print_styles', 'remove_jetpack_styles' );

/*
* Remove meta generator tag
*/
remove_action('wp_head', 'wp_generator');
global $sitepress;
remove_action('wp_head', array( $sitepress, 'meta_generator_tag'));

?>
34 changes: 31 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,38 @@

$context = Timber::get_context();

// get Featured articles for image slider from category 11385
// check if image size is a least 750 x 422 pixel
$featuredposts = get_posts(array('numberposts' => '15', 'cat' => 11385, 'suppress_filters' => 0));
$featured = array();
$counter = 1;
foreach ($featuredposts as $fp) {
if ($counter < 8) {
$img = wp_get_attachment_image_src(get_post_thumbnail_id($fp->ID), 'featured');
if (is_array($img)) {
if ($img[1] >= 750 && $img[2] >= 422) {
//print_r($fp);
$featured[] = array(
'id' => $fp->ID,
'title' => $fp->post_title,
'text' => substr(strip_tags($fp->post_content), 0 , 180) .'',
'url' => get_permalink($fp),
'img' => $img[0]
);
$counter++;
}
}
} else {
break;
}
}
//print_r($featured);

// get Featured (dev: 9609, live: 11385)
$context['featured'] = Timber::get_posts(array('numberposts' => '8', 'cat' => 11385, 'suppress_filters' => 0));
//$context['featured'] = Timber::get_posts(array('numberposts' => '8', 'cat' => 11385, 'suppress_filters' => 0));
$context['featured'] = $featured;

// get Latest
// get Latest articles
$context['latest'] = Timber::get_posts(array('numberposts' => '5', 'suppress_filters' => 0));

// get Opinions (Category 160)
Expand Down Expand Up @@ -53,7 +81,7 @@
}
}
}
set_transient($transient, $seccolumn , 600);
set_transient($transient, $seccolumn, 600);
}
$context['seccolumn'] = $seccolumn;
$context['wp_title'] = 'Pressenza';
Expand Down
74 changes: 0 additions & 74 deletions index2.php

This file was deleted.

4 changes: 2 additions & 2 deletions languages/fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Pressenza\n"
"POT-Creation-Date: 2015-08-27 21:59+0100\n"
"PO-Revision-Date: 2015-08-27 21:59+0100\n"
"PO-Revision-Date: 2016-06-01 16:01+0100\n"
"Last-Translator: Tom Bütikofer\n"
"Language-Team: Pressenza\n"
"Language: fr\n"
Expand Down Expand Up @@ -77,7 +77,7 @@ msgstr "Cet article est aussi disponible en: %s"

#: /Users/tbutikofer/Documents/Work/Projects/pressenza/functions.php:16
msgid "Search results for"
msgstr ""
msgstr "Résultats de votre recherche"

#: /Users/tbutikofer/Documents/Work/Projects/pressenza/functions.php:17
msgid "Archives"
Expand Down
4 changes: 2 additions & 2 deletions languages/pt_PT.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Pressenza\n"
"POT-Creation-Date: 2015-08-27 22:00+0100\n"
"PO-Revision-Date: 2015-08-27 22:01+0100\n"
"PO-Revision-Date: 2016-06-01 16:02+0100\n"
"Last-Translator: Tom Bütikofer\n"
"Language-Team: Pressenza\n"
"Language: pt\n"
Expand Down Expand Up @@ -77,7 +77,7 @@ msgstr ""

#: /Users/tbutikofer/Documents/Work/Projects/pressenza/functions.php:16
msgid "Search results for"
msgstr ""
msgstr "Resultado(s) da busca por"

#: /Users/tbutikofer/Documents/Work/Projects/pressenza/functions.php:17
msgid "Archives"
Expand Down
Binary file modified pt_PT.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion sass/_bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
//@import "bootstrap/alerts";
//@import "bootstrap/progress-bars";
@import "bootstrap/media";
@import "bootstrap/list-group";
//@import "bootstrap/list-group";
@import "bootstrap/panels";
@import "bootstrap/responsive-embed";
//@import "bootstrap/wells";
Expand Down
12 changes: 0 additions & 12 deletions sass/_pressenza.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
//.navbar {
// margin : 0;
// font-size : 14px;
// border : 0;
// border-radius : 0;
// min-height : 40px;
//}
//
//.navbar-inverse {
// background-color : #40454D;
//}

.navbar-collapse {
padding : 0;
}
Expand Down
3 changes: 3 additions & 0 deletions sass/partials/_slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
a {
color : #fff;
font-weight : bold;
&:hover {
color : #fff;
}
}
}
p {
Expand Down
2 changes: 1 addition & 1 deletion sass/style.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
Theme Name: Pressenza
Author: Tom Butikofer & Stefano Cecere
Version: 1.1.0
Version: 1.2.0
*/
@import "compass";
@import "bootstrap-compass";
Expand Down
4 changes: 2 additions & 2 deletions style.css

Large diffs are not rendered by default.

Loading

0 comments on commit d059d8f

Please sign in to comment.