-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Emmanuel O
committed
Oct 11, 2015
0 parents
commit fe78c6c
Showing
84 changed files
with
43,087 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> | ||
|
||
<head> | ||
<link title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" rel="alternate" type="application/rss+xml" /><link href="<?php bloginfo('pingback_url'); ?>" rel="pingback" /> | ||
|
||
|
||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
|
||
<title> | ||
<?php | ||
global $page, $paged; | ||
wp_title( '|', true, 'right' ); | ||
// Add the blog name. | ||
bloginfo( 'name' ); | ||
// Add the blog description for the home/front page. | ||
$site_description = get_bloginfo( 'description', 'display' ); | ||
if ( $site_description && ( is_home() || is_front_page() ) ) | ||
echo " | $site_description"; | ||
?> | ||
</title> | ||
<meta charset="<?php bloginfo( 'charset' ); ?>" /> | ||
|
||
<!-- Bootstrap Core CSS --> | ||
<link href="<?php echo get_template_directory_uri(); ?>/css/bootstrap.min.css" rel="stylesheet"> | ||
|
||
<!-- Custom CSS --> | ||
<link href="<?php echo get_template_directory_uri(); ?>/css/clean-blog.min.css" rel="stylesheet"> | ||
|
||
<!-- Custom Fonts --> | ||
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> | ||
<link href='http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'> | ||
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'> | ||
|
||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// --> | ||
<!--[if lt IE 9]> | ||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> | ||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> | ||
<![endif]--> | ||
|
||
</head> | ||
<?php wp_head(); ?> | ||
|
||
<body> | ||
|
||
<div id="fb-root"></div> | ||
<script>(function(d, s, id) { | ||
var js, fjs = d.getElementsByTagName(s)[0]; | ||
if (d.getElementById(id)) return; | ||
js = d.createElement(s); js.id = id; | ||
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=1569717919971655&version=v2.0"; | ||
fjs.parentNode.insertBefore(js, fjs); | ||
}(document, 'script', 'facebook-jssdk'));</script> | ||
|
||
<!-- Navigation --> | ||
<nav class="navbar navbar-default navbar-custom navbar-fixed-top"> | ||
<div class="container-fluid"> | ||
<!-- Brand and toggle get grouped for better mobile display --> | ||
<div class="navbar-header page-scroll"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="<?php echo get_home_url();?>">Emmanuel Orozco</a> | ||
</div> | ||
|
||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | ||
<?php | ||
wp_nav_menu( array( | ||
'menu' => 'primary', | ||
'theme_location' => 'primary', | ||
'depth' => 0, | ||
'container' => false, | ||
'menu_class' => 'nav navbar-nav navbar-right', | ||
'fallback_cb' => 'wp_page_menu', | ||
'walker' => new wp_bootstrap_navwalker()) | ||
);?> | ||
</div> | ||
<!-- Collect the nav links, forms, and other content for toggling --> | ||
</div><!-- /.container --> | ||
</nav> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php get_header(); ?> | ||
|
||
<div id="contenido"> | ||
<!-- Page Header --> | ||
<!-- Set your background image for this header on the line below. --> | ||
<header class="intro-header" style="background-image: url('<?php echo get_stylesheet_directory_uri(); ?>/img/error404.png')"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> | ||
<div class="post-heading text-center"> | ||
<h1>Aca no hay nada.</h1> | ||
<span class="meta">Matanga dijo la changa</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
<!-- Post Content --> | ||
<article> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> | ||
<h1>Tal vez quieras ir al <a href="<?php echo get_home_url() ?>">Inicio</a></h1> | ||
</div> | ||
</div> | ||
</div> | ||
</article> | ||
</div> | ||
|
||
<hr> | ||
<?php get_footer(); ?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
|
||
header("Location:/contacto"); | ||
?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<div class="breadcrumbs"> | ||
<?php | ||
function breadcrumbs() { | ||
$url = get_bloginfo('url'); | ||
$a = explode("/",$url); | ||
$b = explode("/",$_SERVER["REQUEST_URI"]); | ||
//intersección de arrays para poder quitar la URL | ||
$c = array_intersect($a, $b); | ||
$url_array = array_diff($b, $c); | ||
//quitamos el nombre del post del array | ||
array_pop($url_array); | ||
//para quitar las "/page/2" | ||
if(preg_match('@(/page/)([0-9])@',$_SERVER["REQUEST_URI"])) { | ||
array_pop($url_array); //quitamos sacar el "/2" | ||
array_pop($url_array); //quitamos sacar el "/page" | ||
} | ||
echo '<a href="'.$url.'/" rel="home">Inicio</a>'; | ||
$dir = $url.'/'; | ||
if(is_single() || is_category()) { | ||
//algoritmo para single.php | ||
$category = 'category'; | ||
foreach($url_array as $folder) { | ||
if($folder != 'category'){ | ||
$category .= '/'.$folder; | ||
//hay confusion con las categorias hijos | ||
$dir = $url.'/'.$category.'/'; | ||
//con URL para que jale del URL al que pertenece | ||
echo ' » <a href="'.$dir.'" rel="category tag">'.ucwords(str_replace("-", " ", $folder)) . '</a>'; | ||
} | ||
} | ||
} else { | ||
//para page.php y otros (archivos) | ||
foreach($url_array as $folder) { | ||
if($folder != 'tag' && $folder != 'author'){ | ||
if(!is_numeric($folder)){ | ||
$dir = $dir.$folder.'/';//los folders se van acoplando | ||
echo ' » <a href="'.$dir.'">'.ucwords(str_replace("-", " ", $folder)) . '</a>'; | ||
} | ||
} | ||
} | ||
} | ||
echo wp_title(); | ||
} | ||
breadcrumbs(); | ||
?> | ||
</div> |
Oops, something went wrong.