Pakstall K95

  • PAKSTALL K95 - Logo
  • PAKSTALL K95 - Artwork
  • PAKSTALL K95 - Artwork

We’ve worked on the logo & artworks for the Pakstall K95 race. A brief description of the race would be: a 300mt uphill race to run on a ski jump slope. Also: total madness.

Nothing too fancy, but why installing a plugin when you can do something using only a couple of lines of code? Use this snippet inside the function.php in order to hide your website to anyone except admins

		function maintenance_mode() {
	if ( !current_user_can( 'update_core' ) || !is_user_logged_in() ) { wp_die ('Too soon.'); }
}
add_action('get_header', 'maintenance_mode');
	

If you need to automatically create a specific page on theme activation, there are some lines of code that can help you (add those to your function.php file and customize as please)

		//create the homepage on activation
if (isset($_GET['activated']) && is_admin()){

        $new_page_title = 'Homepage'; //page title
        $new_page_content = ''; //add here the content of the page
        $new_page_template = 'front-page.php'; //page template. (ex. template-custom.php) Leave blank if you don't want a custom page template.

        //don't change the code bellow, unless you know what you're doing

        $page_check = get_page_by_title($new_page_title);
        $new_page = array(
                'post_type' => 'page', 
                'post_title' => $new_page_title,
                'post_content' => $new_page_content,
                'post_status' => 'publish',
                'post_author' => 1,
        );
        if(!isset($page_check->ID)){
                $new_page_id = wp_insert_post($new_page);
                if(!empty($new_page_template)){
                        update_post_meta($new_page_id, '_wp_page_template', $new_page_template);
                }
        }

}
	

Koes

  • koes + applebox

Koes’ new temporary website is online aaannd *drum rolls* is 100% based on applebox. This theme will be featured in the landing-page section of applebox.

Thing I’m proud of: the UI changes color in relationship to the background image.