Skip to content

Commit

Permalink
First commit, everything is very work-in-progress right now.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Mar 2, 2018
0 parents commit faa288b
Show file tree
Hide file tree
Showing 455 changed files with 24,056 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
vendor
33 changes: 33 additions & 0 deletions 404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php get_header(); ?>
<main role="main" class="container-fluid m-0 p-0">
<div class="container">
<article id="post-404">
<h1><?php _e( 'Page not found', 'botwiki' ); ?></h1>
<div class="row mt-5 mb-5">
<div class="col-sm-12 col-md-6">
<p>Would you like to:</p>
<ul>
<li>
<a href="<?php echo home_url(); ?>">Go back to the main page?</a>
</li>
<li>
<a href="<?php echo home_url(); ?>/bots">Look at some cool bots?</a>
</li>
<li>
<a href="mailto:[email protected]">Send us an email?</a>
</li>
<li>
<a href="https://twitter.com/botwikidotorg">Complain about this in public?</a>
</li>
</ul>
</div>
<div class="col-sm-12 col-md-6">
<p class="text-center">
<img src="<?php echo get_template_directory_uri(); ?>/images/other/gear.jpg">
</p>
</div>
</div>
</article>
</div>
</main>
<?php get_footer(); ?>
13 changes: 13 additions & 0 deletions HTML5 BLANK LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# [HTML5 Blank](http://html5blank.com) License

## MIT License

Copyright &copy; 2013 HTML5 Blank // @html5blank

Built by Todd Motto // @toddmotto

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Botwiki WordPress Theme

A WordPress theme for Botwiki, using [HTML5 Blank](http://html5blank.com) as a starting point.
20 changes: 20 additions & 0 deletions admin-css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* Site dimensions */
/* Fonts */
/* Colors */
/* Layout helpers. */
.w-100 {
width: 100%; }

.w-50 {
width: 50%; }

.w-77 {
width: 77%; }

.w-33 {
width: 33%; }

@media (max-width: 860px) {
.w-m-100 {
display: block;
width: 100%; } }
1 change: 1 addition & 0 deletions admin-css/styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?php get_header(); ?>

<main role="main" class="container-fluid m-0 p-0">
<div class="container">
<?php
if ( is_tax() ){
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
?>
<h1><?php echo "Posts tagged #" . $term->name; ?></h1>
<?php }
elseif ( $wp_query->query['post_type'] == 'bot' ) {

if ( $_GET['networks'] || $_GET['languages'] || $_GET['tags'] ){
function network_links( $network ){
return "<a href='" . get_site_url() . "/networks/$network'>#$network</a> ";
}

if ( !empty( $_GET['networks'] ) ){
$networks = implode( ' ', array_map( 'network_links', explode( ',', $_GET['networks'] ) ) );
}


function language_links( $language ){
return "<a href='" . get_site_url() . "/languages/$language'>#$language</a> ";
}

if ( !empty( $_GET['languages'] ) ){
$languages = implode( ' ', array_map( 'language_links', explode( ',', $_GET['languages'] ) ) );
}

function tag_links( $tag ){
return "<a href='" . get_site_url() . "/tag/$tag'>#$tag</a> ";
}

if ( !empty( $_GET['tags'] ) ){
$tags = implode( ' ', array_map( 'tag_links', explode( ',', $_GET['tags'] ) ) );
}

?>
<h1>Browsing bots tagged <?php echo $networks; echo $languages; echo $tags; ?>...</h1>
<?php }
else {?>
<h1>Browsing all bots...</h1>
<?php } ?>
<?php }
else{ ?>
<h1>Archives</h1>
<?php } ?>
<?php get_template_part( 'loop' ); ?>
<?php get_template_part( 'pagination' ); ?>
</div>
</main>
<?php get_footer(); ?>
89 changes: 89 additions & 0 deletions author.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?php
get_header();

$author_id = get_query_var('author');
$author_data = get_userdata( intval($author_id ));
echo "<pre><code>";
// var_dump(get_userdata( $author_id ));
echo "</code></pre>";

$nickname = get_the_author_meta('nickname', $author_id);
$description = get_the_author_meta('description', $author_id);

$first_name = get_the_author_meta('nickname', $author_id);
$last_name = get_the_author_meta('last_name', $author_id);
$full_name = '';

if( empty($first_name)){
$full_name = $last_name;
} elseif( empty( $last_name )){
$full_name = $first_name;
} else {
$full_name = "{$first_name} {$last_name}";
}

?>
<main role="main" class="container">
<div class="mt-5">

<div class="media mb-5">
<img class="mr-3" src="<?php echo get_avatar_url($author_id); ?>" alt="<?php echo $full_name; ?>">
<div class="media-body">
<h1 class="mt-0 mb-1"><?php echo $nickname; ?></h1>
<?php echo $description; ?>
</div>
</div>


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

<h1><?php _e( 'Author archives for ', 'botwiki' ); echo get_the_author(); ?></h1>

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

<!-- article -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<!-- post thumbnail -->
<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail(array(120,120), ['class' => 'img-thumbnail mb-5 lazy-load', 'title' => $full_name ]); // Declare pixel size you need inside the array ?>
</a>
<?php endif; ?>
<!-- /post thumbnail -->

<!-- post title -->
<h2 class="mb-3">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<!-- /post title -->

<!-- post details -->
<?php
$post_date = get_the_time('F j, Y') . ' ' . get_the_time('g:i a');
$m = new \Moment\Moment($post_date);
$post_date_ago = $m->fromNow()->getRelative();
?>
<span class="date"><?php ; ?></span>

<em class="date" title="<?php echo $post_date; ?>"><?php echo $post_date_ago; ?></em>
<!-- /post details -->

<?php bw_excerpt('html5wp_index'); // Build your custom callback length in functions.php ?>

<br class="clear">

</div>
<!-- /article -->

<?php endwhile; ?>

<?php endif; ?>

<?php get_template_part('pagination'); ?>

</section>
<!-- /section -->
</main>

<?php get_footer(); ?>
14 changes: 14 additions & 0 deletions botwiki-import/content/bots/buzzfeed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
Title: buzzfeed
Description: All your buzz-worthy news.
Thumbnail: /content/bots/kik-bots/images/buzzfeed.png
Link: http://kik.me/buzzfeed
Author: Stefan Bohacek
Date: October 9, 2015
Tags: kik,bot,kikbot,active,news,trending,buzzfeed

Nav: hidden
Robots: index,follow
*/

[buzzfeed](http://kik.me/buzzfeed) is a simple bot for the kik messenger that sends you random articles from [buzzfeed.com](http://www.buzzfeed.com/).
20 changes: 20 additions & 0 deletions botwiki-import/content/bots/gridbot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
Title: gridbot
Description: Colorful grids, once a day!
Thumbnail: /content/bots/snapchat-bots/images/gridbot.png
Author: Stefan Bohacek
Date: October 10, 2015
Tags: snapchat,bot,snapchatbot,inactive,images,gridbot,tinysubversions

Nav: hidden
Robots: index,follow
*/

**gridbot** was a Snapchat bot that sent a colorful grid to its followers once a day. It was eventually banned and the Tweet conversation below is the only publicly available information about it.

<blockquote class="twitter-tweet" lang="en"><p lang="en" dir="ltr">Made a quick little Snapchat toy. If you follow &quot;gridbot&quot; on Snapchat you&#39;ll start getting stuff like this once a day <a href="http://t.co/0QofRUCZ6Q">pic.twitter.com/0QofRUCZ6Q</a></p>&mdash; Darius Kazemi (@tinysubversions) <a href="https://twitter.com/tinysubversions/status/425336418483720193">January 20, 2014</a></blockquote>

<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

It was created by [Darius Kazemi](https://twitter.com/tinysubversions).

17 changes: 17 additions & 0 deletions botwiki-import/content/bots/hypem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
Title: hypem
Description: A Hype Machine video bot on Snapchat.
Thumbnail: /content/bots/snapchat-bots/images/hypem.png
Author: Stefan Bohacek
Date: October 7, 2015
Tags: snapchat,bot,snapchatbot,active,video,music,hypemachine,hypem,fascinated

Nav: hidden
Robots: index,follow
*/

**hypem** is a Snapchat video bot that publishes popular tracks from [Hype Machine](http://hypem.com/) ([@hypem](https://twitter.com/hypem)), mixed with randomized nature footage. The bot is currently not interactive and posts the videos as Snapchat Stories.

It was created by [Anthony Volodkin](https://twitter.com/fascinated) (the founder of [Hype Machine](http://hypem.com/)), and the Hype Machine team. You can read the announcement on [their blog](http://blog.hypem.com/2015/05/hype-machine-on-snapchat/).

See more screenshots [here](https://twitter.com/fascinated/status/653710201598681088).
Binary file added botwiki-import/content/bots/images/buzzfeed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added botwiki-import/content/bots/images/gridbot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added botwiki-import/content/bots/images/hypem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added botwiki-import/content/bots/images/mtv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added botwiki-import/content/bots/images/spotify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions botwiki-import/content/bots/spotify.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
Title: spotify
Description: Music for everyone.
Thumbnail: /content/bots/kik-bots/images/spotify.png
Link: http://kik.me/spotify
Author: Stefan Bohacek
Date: October 9, 2015
Tags: kik,bot,kikbot,active,music,spotify

Nav: hidden
Robots: index,follow
*/

[spotify](http://kik.me/spotify) is a [spotify.com](http://www.spotify.com/) bot for the kik messenger that recommends music from a few categories, like *new*, *live*, *trending* or by *genre*.
18 changes: 18 additions & 0 deletions category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php get_header(); ?>

<main role="main" class="container">
<!-- section -->
<div class="mt-5">

<h1><?php _e( 'Categories for ', 'botwiki' ); single_cat_title(); ?></h1>

<?php get_template_part('loop'); ?>

<?php get_template_part('pagination'); ?>

</div>
<!-- /section -->
</main>


<?php get_footer(); ?>
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"require": {
"ksubileau/color-thief-php": "^1.3",
"fightbulc/moment": "^1.26",
"erusev/parsedown": "^1.6"
}
}
Loading

0 comments on commit faa288b

Please sign in to comment.