Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinan committed Jan 22, 2017
1 parent 9d8a561 commit e778e36
Show file tree
Hide file tree
Showing 47 changed files with 5,604 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
sudo: false

language:
- php

php:
- 5.2
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1

env:
- PHPCS_BRANCH=master
- PHPCS_BRANCH=2.7.0

matrix:
fast_finish: true
include:
# Run PHPCS against WPCS. I just picked to run it against 5.5.
- php: 5.5
env: PHPCS_BRANCH=master SNIFF=1
# Run against PHPCS 3.0. I just picked to run it against 5.6.
- php: 5.6
env: PHPCS_BRANCH=3.0
# Run against HHVM and PHP nightly.
- php: hhvm
sudo: required
dist: trusty
group: edge
env: PHPCS_BRANCH=master
- php: nightly
env: PHPCS_BRANCH=master
allow_failures:
# Allow failures for unstable builds.
- php: nightly
- php: hhvm
- env: PHPCS_BRANCH=3.0

before_script:
- export PHPCS_DIR=/tmp/phpcs
- export PHPCS_BIN=$(if [[ $PHPCS_BRANCH == 3.0 ]]; then echo $PHPCS_DIR/bin/phpcs; else echo $PHPCS_DIR/scripts/phpcs; fi)
- mkdir -p $PHPCS_DIR && git clone --depth 1 https://github.com/squizlabs/PHP_CodeSniffer.git -b $PHPCS_BRANCH $PHPCS_DIR
- $PHPCS_BIN --config-set installed_paths $(pwd)

script:
- if find . -name "*.php" -exec php -l {} \; | grep "^[Parse error|Fatal error]"; then exit 1; fi;
- phpunit --filter WordPress /tmp/phpcs/tests/AllTests.php
# WordPress Coding Standards.
# @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
# @link http://pear.php.net/package/PHP_CodeSniffer/
# -p flag: Show progress of the run.
# -s flag: Show sniff codes in all reports.
# -v flag: Print verbose output.
# -n flag: Do not print warnings. (shortcut for --warning-severity=0)
# --standard: Use WordPress as the standard.
# --extensions: Only sniff PHP files.
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs -p -s -v -n . --standard=./bin/phpcs.xml --extensions=php; fi
57 changes: 57 additions & 0 deletions 404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php
/**
* The template for displaying 404 pages (not found).
*
* @package Billie
*/

get_header(); ?>

<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<section class="error-404 not-found">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'billie' ); ?></h1>
</header><!-- .page-header -->

<div class="page-content">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'billie' ); ?></p>

<?php get_search_form(); ?>
<br/><br/>
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>

<?php if ( billie_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
<div class="widget widget_categories">
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'billie' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</div><!-- .widget -->
<?php endif; ?>

<?php
/* Translators: %1$s: smiley. */
$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'billie' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>

<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>

</div><!-- .page-content -->
</section><!-- .error-404 -->

</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();

71 changes: 71 additions & 0 deletions admin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
.doc-box{
width:75%;
border-radius:4px;
padding:3px 26px 26px 26px;
display: block;
position:relative;
overflow: auto;
box-shadow: 0px 1px 6px rgba(0,0,0,0.2);
margin:0 0 45px 0;
background:#fcfcfc;
line-height:1.8;
font-size:14px;

}

.doc-title{
font-size:20px;
font-size:2.0rem;
text-decoration:none;
margin:50px 0 25px 0;
font-family: 'Montserrat', sans-serif;
letter-spacing: 2px;
}

.doc-thanks{
text-decoration:none;
margin:10px 0 5px 0;
line-height:1.3;
font-size:16px;
}

.doc-menu{
width:75%;
display: inline-block;
background: #ffffff;
box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.09);
padding:26px;
font-size:14px;
font-size:1.4rem;
font-family: 'Montserrat', sans-serif;
z-index:99;
height:auto;
}

.doc-menu ul {
background:#fff;
list-style: none;
margin:auto;
width: 100%;
}

.doc-menu li {
float: left;
position: relative;
}

.doc-menu a{
display: block;
margin-right: 0.1em;
margin-left: 0.1em;
padding:4px;
}

.doc-menu a:hover{
text-decoration:none;
color:#000;
}

.doc-box ul{
margin-left: 15px;
}
66 changes: 66 additions & 0 deletions archive-jetpack-portfolio.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?php
/**
* The template for displaying the portfolio archive.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package Billie
*/

get_header();
?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<?php if ( have_posts() ) : ?>

<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Portfolio','billie' ); ?></h1>
</header><!-- .page-header -->

<section class="featured-wrap">

<?php while ( have_posts() ) : the_post(); ?>

<div class="featured-post">
<?php
if ( has_post_thumbnail() ) {
$background = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'billie-featured-posts-thumb' );

echo '<div class="featured-inner" style="background: url(' . esc_url( $background[0] ) . ');">';
} else {
echo '<div class="featured-inner" style="background: ' . esc_attr( get_theme_mod( 'billie_header_bgcolor', '#9cc9c7' ) ) . ';">';
}
echo '<div class="post-header">';
the_title( sprintf( '<h2><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
echo '</div>
<span class="featured-text">';

echo the_terms( $post->ID, 'jetpack-portfolio-type', '' . __( 'Project Type: ','billie' ) ,', ', '' );

echo ' <span class="tag-list">';
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);

$posted_on = $time_string;
echo $posted_on;
echo '</span>
</span>
</div></div>';
?>
<?php endwhile; ?>
</section>

<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>

</main><!-- #main -->
</div><!-- #primary -->

<?php
get_footer();

58 changes: 58 additions & 0 deletions archive-jetpack-testimonial.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php
/**
* The template for displaying the testimonial archive pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package billie
*/

get_header();
$jetpack_options = get_theme_mod( 'jetpack_testimonials' );
?>

<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title">
<?php
if ( isset( $jetpack_options['page-title'] ) && '' !== $jetpack_options['page-title'] ) {
echo esc_html( $jetpack_options['page-title'] );
} else {
esc_html_e( 'Testimonials', 'billie' );
}
?>
</h1>
<?php
if ( isset( $jetpack_options['featured-image'] ) && '' !== $jetpack_options['featured-image'] ) {
echo wp_get_attachment_image( (int) $jetpack_options['featured-image'], 'billie-jetpack-logo' );
}

if ( isset( $jetpack_options['page-content'] ) && '' !== $jetpack_options['page-content'] ) {
echo convert_chars( convert_smilies( wptexturize( stripslashes( wp_filter_post_kses( addslashes( $jetpack_options['page-content'] ) ) ) ) ) );
}
?>
</header><!-- .page-header -->

<?php while ( have_posts() ) : the_post(); ?>

<?php
/**
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', 'testimonial-single' );
?>

<?php endwhile; ?>
<?php endif; ?>

</main><!-- #main -->
</div><!-- #primary -->

<?php
get_footer();

Loading

0 comments on commit e778e36

Please sign in to comment.