Skip to content

Commit

Permalink
img Alt attribute in acajou_modify_post_thumbnail_html()
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelguebo committed Sep 28, 2017
1 parent 133322c commit 98fb617
Show file tree
Hide file tree
Showing 66 changed files with 29,950 additions and 29,950 deletions.
18 changes: 9 additions & 9 deletions 404.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/**
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Acajou
*/

<?php
/**
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Acajou
*/

get_template_part('archive'); ?>
56 changes: 28 additions & 28 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.5] - 2017-06-013
- fixing sanitizing bug notified by [Smarciz](https://github.com/samuelguebo/acajou/issues/1)
## [1.0.4] - 2017-06-04
- updating tags: adding Abidjan, Côte d'Ivoire, Ivory coast, etc

## [1.0.3] - 2017-05-26
- fixing breadcrumbs line-height
- fixing page.php and single.php not displaying due to php compilation error
- fixing translation issue, update .pot files
## [1.0.2] - 2017-04-12
- adding missing licenses
## [1.0.1] - 2017-04-12
- Cross-check Licenses
- Use the_posts_pagination(); for multiple-post pages and the_post_navigation(); for single - Themes now supports the default of 3 columns as well as various column styles.
- Fixing captioned image alignement.
- Adding custom social menu

## [1.0.0] - 2016-12-30
### Added
- Custom header image(s)
- Set social links in Customizer
- Six flavors: chocolate, blue, green, red, purple, and yellow. You might switch between these colors in using the Customizer.
- Add Fading effects to block using [Scroll Reveal](https://github.com/jlmakes/scrollreveal) library
- Typing animation using [Typed.js](https://github.com/mattboldt/typed.js/)
# Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.5] - 2017-06-013
- fixing sanitizing bug notified by [Smarciz](https://github.com/samuelguebo/acajou/issues/1)
## [1.0.4] - 2017-06-04
- updating tags: adding Abidjan, Côte d'Ivoire, Ivory coast, etc

## [1.0.3] - 2017-05-26
- fixing breadcrumbs line-height
- fixing page.php and single.php not displaying due to php compilation error
- fixing translation issue, update .pot files
## [1.0.2] - 2017-04-12
- adding missing licenses
## [1.0.1] - 2017-04-12
- Cross-check Licenses
- Use the_posts_pagination(); for multiple-post pages and the_post_navigation(); for single - Themes now supports the default of 3 columns as well as various column styles.
- Fixing captioned image alignement.
- Adding custom social menu

## [1.0.0] - 2016-12-30
### Added
- Custom header image(s)
- Set social links in Customizer
- Six flavors: chocolate, blue, green, red, purple, and yellow. You might switch between these colors in using the Customizer.
- Add Fading effects to block using [Scroll Reveal](https://github.com/jlmakes/scrollreveal) library
- Typing animation using [Typed.js](https://github.com/mattboldt/typed.js/)
678 changes: 339 additions & 339 deletions LICENSE.txt

Large diffs are not rendered by default.

184 changes: 92 additions & 92 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,93 +1,93 @@
# Acajou
A minimalist woodstyle theme for WordPress.

[![acajou_top.png](https://s6.postimg.org/pfvhdmpr5/acajou_top.png)](https://postimg.org/image/zd6i6oxct/)
## Description

Acajou is a clean, simple, and fully responsive WordPress theme that feels like wood and looks awesome on any device. Its name, pronounced ***/a.kaˈʒu/*** in French, refers to a tree from tropical forests.

It adjusts automatically to any screen size including tablets and smartphones as well as Retina displays. Theme is built using [Zurb Foundation](https://github.com/zurb/foundation-sites), a framework for HTML5 / CSS3 which is SEO friendly. This WordPress theme was built with blogs and creative portfolios in mind but be creative and unleash its full potential in eCommerce, business and other projects. Acajou is available in English, French, and Spanish for now.

## Installation

#### Manual

1. Download theme by using "Download zip" button on the right side and unzip it.
2. Upload the **acajou** folder to the **/wp-content/themes/** directory
3. Activate the Theme through the Apperance - Themes menu in WordPress
4. See **Appearance -> Customize** to change theme specific options.

#### WordPress Admin Panel

1. Download theme by using "Download zip" button on the right side
2. Go to **Appearance > Themes**
3. Click on **Add New**
4. Click on **Upload Theme**
5. Choose the **acajou.zip** file
6. Click on **Install Now**


## Adapting existing content
If you already have menus and widgets on the website, you need to do this after finishing the theme activation process:

1. Go to **Appearance > Menus** and update theme locations
2. Go to **Appearance > Widgets** and add old widgets to new sidebars

If you already have uploaded images on the website, you should regenerate thumbnails. To do that you can install [Regenerate Thumbnails](http://wordpress.org/plugins/regenerate-thumbnails/) plugin.

If you didn't use featured images you can install the [Easy Add Thumbnail](http://wordpress.org/plugins/easy-add-thumbnail/) plugin to dinamically set featured images for old published posts.


## Customization

This theme has loads of customization options available. To open WordPress Customizer go to **Appearance > Customize**. There you will find the following sections:
#### Header
Change the header image. It might support a random image list.
#### Social links
Set the link for Facebook, Twitter, youtube and other social networks.

#### Colors
Acajou comes with six flavors: chocolate, blue, green, red, purple, and yellow. You might switch between these colors in using the Customizer.
[![acajou_theme_showcase.jpg](https://s6.postimg.org/p9hsajgm9/acajou_theme_showcase.jpg)](https://postimg.org/image/5rn4uljod/).


## File structure
In this theme we are using a default [WordPress template hierarchy](http://codex.wordpress.org/Template_Hierarchy).

**/css/** - Style(CSS) files.

**/scss/** - [SASS](http://sass-lang.com) files for those that are comfortable with CSS preprocessors.

**/inc/** - Includes custom logics that are non-standard to WordPress.

**/js/** - Theme javascript files.


## License

This theme is based on Underscore WordPress theme by Theme Horse.

The theme is released for free under the terms of the GNU General Public License version 2
and some parts under their respective licenses.
In general words, feel free and encouraged to use, modify and redistribute this theme however you like.
You may remove any copyright references (unless required by third party components) and crediting is not necessary.
The theme is offered free of charge. If someone asked money for it, someone just tricked you.

Unless otherwise specified, all the theme files, scripts and images are licensed under [GNU General Public License version 2](http://github.com/samuelguebo/acajou/LICENSE).

**The exceptions to this license are as follows:**

- [Zurb Foundation](https://github.com/zurb/foundation-sites),for layout structure, under MIT License.
- [Arvo](https://github.com/FortAwesome/Font-Awesome), [FontAwesome](https://github.com/FortAwesome/Font-Awesome), under the SIL Open Font License.

- [Commons images](https:commons.wikimedia.org), under Creative Commons By SA 4.0 License
- [ScrollReveal](https://github.com/jlmakes/scrollreveal), under MIT License.
- [Typed.js](https://github.com/mattboldt/typed.js/), under MIT License.
- [Roboto](https://github.com/google/roboto), under Apache License 2.0 License.


# Change log
All notable changes to this theme are documented in [CHANGELOG.md](https://github.com/samuelguebo/acajou/blob/master/CHANGELOG.md) file.

# Contributors
# Acajou
A minimalist woodstyle theme for WordPress.

[![acajou_top.png](https://s6.postimg.org/pfvhdmpr5/acajou_top.png)](https://postimg.org/image/zd6i6oxct/)
## Description

Acajou is a clean, simple, and fully responsive WordPress theme that feels like wood and looks awesome on any device. Its name, pronounced ***/a.kaˈʒu/*** in French, refers to a tree from tropical forests.

It adjusts automatically to any screen size including tablets and smartphones as well as Retina displays. Theme is built using [Zurb Foundation](https://github.com/zurb/foundation-sites), a framework for HTML5 / CSS3 which is SEO friendly. This WordPress theme was built with blogs and creative portfolios in mind but be creative and unleash its full potential in eCommerce, business and other projects. Acajou is available in English, French, and Spanish for now.

## Installation

#### Manual

1. Download theme by using "Download zip" button on the right side and unzip it.
2. Upload the **acajou** folder to the **/wp-content/themes/** directory
3. Activate the Theme through the Apperance - Themes menu in WordPress
4. See **Appearance -> Customize** to change theme specific options.

#### WordPress Admin Panel

1. Download theme by using "Download zip" button on the right side
2. Go to **Appearance > Themes**
3. Click on **Add New**
4. Click on **Upload Theme**
5. Choose the **acajou.zip** file
6. Click on **Install Now**


## Adapting existing content
If you already have menus and widgets on the website, you need to do this after finishing the theme activation process:

1. Go to **Appearance > Menus** and update theme locations
2. Go to **Appearance > Widgets** and add old widgets to new sidebars

If you already have uploaded images on the website, you should regenerate thumbnails. To do that you can install [Regenerate Thumbnails](http://wordpress.org/plugins/regenerate-thumbnails/) plugin.

If you didn't use featured images you can install the [Easy Add Thumbnail](http://wordpress.org/plugins/easy-add-thumbnail/) plugin to dinamically set featured images for old published posts.


## Customization

This theme has loads of customization options available. To open WordPress Customizer go to **Appearance > Customize**. There you will find the following sections:
#### Header
Change the header image. It might support a random image list.
#### Social links
Set the link for Facebook, Twitter, youtube and other social networks.

#### Colors
Acajou comes with six flavors: chocolate, blue, green, red, purple, and yellow. You might switch between these colors in using the Customizer.
[![acajou_theme_showcase.jpg](https://s6.postimg.org/p9hsajgm9/acajou_theme_showcase.jpg)](https://postimg.org/image/5rn4uljod/).


## File structure
In this theme we are using a default [WordPress template hierarchy](http://codex.wordpress.org/Template_Hierarchy).

**/css/** - Style(CSS) files.

**/scss/** - [SASS](http://sass-lang.com) files for those that are comfortable with CSS preprocessors.

**/inc/** - Includes custom logics that are non-standard to WordPress.

**/js/** - Theme javascript files.


## License

This theme is based on Underscore WordPress theme by Theme Horse.

The theme is released for free under the terms of the GNU General Public License version 2
and some parts under their respective licenses.
In general words, feel free and encouraged to use, modify and redistribute this theme however you like.
You may remove any copyright references (unless required by third party components) and crediting is not necessary.
The theme is offered free of charge. If someone asked money for it, someone just tricked you.

Unless otherwise specified, all the theme files, scripts and images are licensed under [GNU General Public License version 2](http://github.com/samuelguebo/acajou/LICENSE).

**The exceptions to this license are as follows:**

- [Zurb Foundation](https://github.com/zurb/foundation-sites),for layout structure, under MIT License.
- [Arvo](https://github.com/FortAwesome/Font-Awesome), [FontAwesome](https://github.com/FortAwesome/Font-Awesome), under the SIL Open Font License.

- [Commons images](https:commons.wikimedia.org), under Creative Commons By SA 4.0 License
- [ScrollReveal](https://github.com/jlmakes/scrollreveal), under MIT License.
- [Typed.js](https://github.com/mattboldt/typed.js/), under MIT License.
- [Roboto](https://github.com/google/roboto), under Apache License 2.0 License.


# Change log
All notable changes to this theme are documented in [CHANGELOG.md](https://github.com/samuelguebo/acajou/blob/master/CHANGELOG.md) file.

# Contributors
* Samuel Gu&eacute;bo ([@samuelguebo](http://twitter.com/samuelguebo))
122 changes: 61 additions & 61 deletions archive.php
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
<?php
/**
* The main template file
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Acajou
*/

get_header(); ?>

<section class="category-row row">
<section id="breadcrumbs">
<div class="breadcrumbs row">
<?php if (function_exists('acajou_custom_breadcrumbs')) acajou_custom_breadcrumbs(); ?>
</div>
</section>

<!-- post list-->
<section class="large-9 columns main-column">
<h1 class="category-title"><?php the_archive_title(); ?></h1>
<div class="category-title-line large-2 large-centered columns"></div>
<div class="post-list clearfix">
<?php
if ( have_posts() ) :
/* Start the Loop */
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; // for pagination purpose
while ( have_posts() ) : the_post();

if(has_post_thumbnail()){
get_template_part( 'template-parts/content', 'article' );
}else {
get_template_part( 'template-parts/content', 'article-without-thumb' );
}

endwhile;

else :

get_template_part( 'template-parts/content', '404' );

endif; ?>
</div>
<div class="pagination-wrapper columns large-4 large-centered" >
<?php the_posts_pagination( array(
'mid_size' => 2,
'prev_text' => __( '&laquo;', 'acajou' ),
'next_text' => __( '&raquo;', 'acajou' ),
'screen_reader_text' => ' '
) ); ?>
</div>
</section>
<?php get_sidebar();?>
</section>
<?php
get_footer();
<?php
/**
* The main template file
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Acajou
*/

get_header(); ?>

<section class="category-row row">
<section id="breadcrumbs">
<div class="breadcrumbs row">
<?php if (function_exists('acajou_custom_breadcrumbs')) acajou_custom_breadcrumbs(); ?>
</div>
</section>

<!-- post list-->
<section class="large-9 columns main-column">
<h1 class="category-title"><?php the_archive_title(); ?></h1>
<div class="category-title-line large-2 large-centered columns"></div>
<div class="post-list clearfix">
<?php
if ( have_posts() ) :
/* Start the Loop */
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; // for pagination purpose
while ( have_posts() ) : the_post();

if(has_post_thumbnail()){
get_template_part( 'template-parts/content', 'article' );
}else {
get_template_part( 'template-parts/content', 'article-without-thumb' );
}

endwhile;

else :

get_template_part( 'template-parts/content', '404' );

endif; ?>
</div>
<div class="pagination-wrapper columns large-4 large-centered" >
<?php the_posts_pagination( array(
'mid_size' => 2,
'prev_text' => __( '&laquo;', 'acajou' ),
'next_text' => __( '&raquo;', 'acajou' ),
'screen_reader_text' => ' '
) ); ?>
</div>
</section>
<?php get_sidebar();?>
</section>
<?php
get_footer();
Loading

0 comments on commit 98fb617

Please sign in to comment.