
This is not the first post about Svbtle. It only tries to show how you can easily build the same product in WordPress.
View Demo or Go to GitHub to get this project.
The interface
When I read about Svbtle just seemed to me to write great posts without noise from view. Having a list where these ideas “cooking” and another where the already published is just great. Only someone with experience doing great publications could accomplish this interface.
Technology behind
Since I did not want to ignore the features already offered by WordPress and reinvent the wheel by creating a login system, writing (drafts and published), optimizations of queries, features that are not visible to the user’s eyes as the cache (WP Super Cache) , pushState (WP History.js) and minimize js and css files (BWP Minify).
On Friday, after reading the publication on Techcrunch started implementing the idea in this blog. The first thing I did was do a little research on how WordPress handles the login:
if (!is_user_logged_in()) {
auth_redirect();
}
if(!current_user_can('publish_posts') or !current_user_can('edit_posts')){
die('You don not have access to this area');
}
I included PHP Markdown class written by Michel Fortin.
$post_id = wp_insert_post( array( 'post_author' => $user_id, 'post_title' => $post_title, 'post_content' => Markdown($post_content), 'post_type' => "post", 'post_status' => $post_status // Idea=>draft || Public=>publish ));
Screenshots


