This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | |
<title>HTMLCenter</title> | |
<!-- Path to Framework7 Library CSS--> | |
<link rel="stylesheet" href="css/framework7/framework7.min.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This code can be used directly in the WP loop | |
// But neater implementation would be to implement it | |
// Into WordPress theme functions.php file | |
// instead of using the_content() funcion | |
// we use new WordPress function (>3.0) to trim content | |
// to specific number of words | |
$content = get_the_content(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// First we need to set counter | |
$postnum = 1; | |
// Running WordPress loop to get all posts | |
if (have_posts()) : | |
while (have_posts()) : the_post(); | |
// Time to check if post number is even or odd | |
if ($postnum&1) : ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Specific Nginx configuration | |
# Redirect to Jenkins on port 8080 | |
upstream app_server { | |
server 127.0.0.1:8080 fail_timeout=0; | |
} | |
# Main Nginx config | |
server { | |
listen 80; |