Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cambios de Iteracion de emergencia en Asana #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# From http://www.ladysign-apps.com/developer/remove-ds_store-files-from-my-git-repo-and-ignore-them/#.VvuOl2PIPBI

# find . -name '*.DS_Store' -type f -delete
# create this in a .gitignore file
# commit

/.buildpath
/build/
*/archive/

__MACOSX
.DS_Store

.project
.settings
.classpath
.sass-cache/

# OS generated files #
######################
*/.DS_Store
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
4 changes: 2 additions & 2 deletions 404.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<main id="main__content" class="h-feed col-xs-12 col-md-8" role="main">

<h2 class="text--center"><?php _e( 'Sorry, 404 - Not found', 'omnibus-prime' ); ?></h2>
<h1 class="text--center"><?php _e( 'Sorry, 404 - Not found', 'omnibus-prime' ); ?></h1>

<p><?php _e( 'You can do the following:', 'omnibus-prime' ); ?></p>

Expand Down Expand Up @@ -63,7 +63,7 @@
if ( $recent_posts ) {
?>

<h3>Recent Posts</h3>
<h2>Recent Posts</h2>

<ul>
<?php
Expand Down
8 changes: 4 additions & 4 deletions archive.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

<main id="main__content" class="h-feed col-xs-12" role="main">

<h2><?php _e( 'Archive', 'omnibus-prime' ); ?></h2>
<h1><?php _e( 'Archive', 'omnibus-prime' ); ?></h1>

<section id="archive__search">

<h3><?php _e( 'Search', 'omnibus-prime' ); ?></h3>
<h2><?php _e( 'Search', 'omnibus-prime' ); ?></h2>

<?php get_search_form(); ?>

Expand All @@ -28,7 +28,7 @@

<section id="archive__months">

<h3><?php _e( 'Posts by Month:', 'omnibus-prime' ); ?></h3>
<h2><?php _e( 'Posts by Month:', 'omnibus-prime' ); ?></h2>

<ul>
<?php wp_get_archives( 'type=monthly' ); ?>
Expand All @@ -40,7 +40,7 @@

<section id="archive__categories">

<h3><?php _e( 'Posts by category:', 'omnibus-prime' ); ?></h3>
<h2><?php _e( 'Posts by category:', 'omnibus-prime' ); ?></h2>

<ul>
<?php
Expand Down
Empty file modified article-pagination.php
100644 → 100755
Empty file.
43 changes: 23 additions & 20 deletions article.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,27 @@
* @since 1.0
* @version 1.0
*/

$hNumber = "2";
if(is_single() || is_page() || is_singular()) $hNumber = "1";

?>



<article id="post__<?php the_ID(); ?>" <?php post_class( 'h-entry hentry' ) ?> aria-labelledby="post__<?php the_ID(); ?>--heading">

<header>

<h2 id="post__<?php the_ID(); ?>--heading" class="p-name entry-title">
<h<?php echo $hNumber;?> id="post__<?php the_ID(); ?>--heading" class="p-name entry-title">
<a class="u-url url" href="<?php the_permalink() ?>">
<?php the_title(); ?>
</a>
</h2>
</h<?php echo $hNumber;?>>

<?php if ( is_user_logged_in() ) { ?>
<a class="edit btn-icn-txt" href="<?php echo get_edit_post_link(); ?>">
<svg viewBox="0 0 32 32" aria-hidden="true">
<svg viewBox="0 0 32 32" aria-hidden="true">
<path d="M15.013,8.505c-0.218,0.218-0.323,0.525-0.286,0.831l0.188,1.493l-0.353-0.353c-0.358-0.358-1.016-0.444-1.453,0.042c-4.078,4.566-6.515,9.168-6.587,12.043c-3.572,3.286-6.226,5.729-6.229,5.731C0.105,28.479,0,28.733,0,28.999v2c0,0.552,0.447,1,1,1L3,32c0.265-0.001,0.52-0.106,0.707-0.294c0.003-0.003,2.444-2.656,5.73-6.227c3.312-0.066,8.885-3.313,14.061-8.49c2.881-2.879,5.205-5.89,6.724-8.704c0.269-0.499,0.073-1.15-0.48-1.392l-0.354-0.155l1.467-0.557c0.257-0.098,0.483-0.307,0.588-0.604c0.797-2.268,0.74-3.944-0.166-4.85C28.937-1.612,21.642,1.876,15.013,8.505z M13.855,11.183l2.412,2.412c-2.831,2.604-5.914,5.44-8.613,7.924C8.169,19.082,10.154,15.329,13.855,11.183z M3,30.999H1v-2l25-23L3,30.999z M30.498,5.246l-3.756,1.429l2.6,1.135c-1.329,2.464-3.483,5.407-6.551,8.473c-4.911,4.91-9.497,7.475-12.315,8.067c6.794-7.385,16.26-17.673,16.26-17.673c0.362-0.395,0.351-1.005-0.028-1.384c-0.38-0.379-0.99-0.392-1.385-0.029c0,0-4.141,3.81-9.054,8.33L15.72,9.212c7.009-7.009,13.373-9.254,14.848-7.777C31.155,2.021,31.153,3.381,30.498,5.246z"/>
</svg>
<span><?php _e( 'Edit post', 'omnibus-prime' ); ?></span>
Expand Down Expand Up @@ -89,7 +95,7 @@
<div class="h-card vcard flag">
<div class="visual">

<svg class="circle" aria-label="<?php _e( 'Anonymous user picture', 'omnibus-prime' ); ?>" viewBox="0 0 32 32" aria-hidden="true">
<svg class="circle" alt="" viewBox="0 0 32 32">
<path d="M16,6c-4.208,0-7.354,4.308-7.354,8.159c0,4.179,3.294,10.581,7.354,10.581c4.061,0,7.354-6.402,7.354-10.581C23.354,10.308,20.209,6,16,6z M16,23.74c-3.384,0-6.354-5.973-6.354-9.581C9.646,10.78,12.364,7,16,7c3.637,0,6.354,3.78,6.354,7.159C22.354,17.77,19.384,23.74,16,23.74z"/>
<path d="M16,0C7.178,0,0,7.178,0,16s7.178,16,16,16c8.822,0,16-7.178,16-16S24.822,0,16,0z M6.453,27.561c1.574-0.716,3.822-1.207,6.524-1.207h6.046c2.701,0,4.949,0.491,6.521,1.207C22.952,29.708,19.624,31,16,31S9.048,29.708,6.453,27.561z M26.334,26.845c-1.809-0.92-4.389-1.491-7.311-1.491h-6.047c-2.921,0-5.501,0.572-7.31,1.492C2.798,24.111,1,20.266,1,16C1,7.729,7.729,1,16,1c8.271,0,15,6.729,15,15C31,20.266,29.202,24.111,26.334,26.845z"/>
</svg>
Expand All @@ -106,16 +112,10 @@
<div>

<?php if ( get_the_modified_time() != get_the_time() ) { ?>
<time datetime="<?php the_modified_time( 'Y-m-d h:i:s' ); ?>">
<?php _e( 'Updated ', 'omnibus-prime' ) ?><abbr title="<?php the_modified_time( 'jS F Y, H:i:s' ); ?>"><?php echo human_time_diff( get_the_modified_time( 'U' ), current_time( 'timestamp' ) ); ?><?php _e( ' ago.', 'omnibus-prime' ) ?></abbr>
</time>
<span class="dt-updated updated sr"><?php the_modified_time( 'Y/m/d - H:i:s' ); ?></span>
<time><?php _e( 'Updated ', 'omnibus-prime' ) ?> <?php the_modified_time( 'Y/m/d' ); ?></time>
<?php } ?>

<time datetime="<?php the_time( 'Y-m-d h:i:s' ); ?>">
<?php _e( 'Published ', 'omnibus-prime' ) ?><abbr title="<?php the_time( 'jS F Y, H:i:s' ); ?>"><?php echo human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ); ?><?php _e( ' ago.', 'omnibus-prime' ) ?></abbr>
<span class="dt-published published sr"><?php the_time( 'Y/m/d - H:i:s' ); ?></span>
</time>
<time><?php _e( 'Published ', 'omnibus-prime' ) ?> <?php the_time('Y/m/d' ); ?></time>

</div>

Expand Down Expand Up @@ -143,12 +143,15 @@

the_content();

wp_link_pages( array(
before => '<div class="post--pagination">',
after => '</div>',
next_or_number => 'number',
pagelink => __( 'Page', 'omnibus-prime' ) . ' %'
) );
// NOTE: In PHP 7.2.15+, 7.3.2+, and 7.4.0+, the error message has been changed to report the line number of the previous valid element instead of the line number of the beginning of the array. While this may still be off by one or more lines, it is usually close enough to the problem to make it much easier to find (source: https://stackoverflow.com/questions/42058233/php-compile-error-cannot-use-empty-array-elements-in-arrays)
$linkl_pages_args = array(
"before" => '<div class="post--pagination">'
,"after" => '</div>'
,"next_or_number" => 'number'
,"pagelink" => __( 'Page', 'omnibus-prime' ) . ' %'
);
echo wp_link_pages($linkl_pages_args);

?>

</div>
Expand All @@ -161,7 +164,7 @@

<section class="category-list">

<h3><?php _e( 'Category', 'omnibus-prime' ); ?></h3>
<h2><?php _e( 'Category', 'omnibus-prime' ); ?></h2>

<?php the_category(); ?>

Expand All @@ -175,7 +178,7 @@

<section class="tag-list">

<h3><?php _e( 'Tags', 'omnibus-prime' ); ?></h3>
<h2><?php _e( 'Tags', 'omnibus-prime' ); ?></h2>

<?php the_tags( '<ul><li>', '</li><li>', '</li></ul>' ); ?>

Expand Down
10 changes: 5 additions & 5 deletions category.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@

<main id="main__content" class="h-feed col-xs-12 col-md-8" role="main">

<h2>
<h1>
<?php
$category = get_queried_object();
echo
__( 'Entries with the category', 'omnibus-prime' ) .
' <b>' .
esc_html(__('Entries with the category', 'omnibus-prime' )) .
' <strong>' .
$category->slug .
' </b>:';
' </strong>:';
?>
</h2>
</h1>

<?php
if ( is_category() ) {
Expand Down
8 changes: 4 additions & 4 deletions comments.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<section id="reactions">

<h3><?php _e( 'Reactions', 'omnibus-prime' ); ?></h3>
<h2><?php _e( 'Reactions', 'omnibus-prime' ); ?></h2>

<?php
if ( !empty ( $comments_by_type['comment'] ) ) {
Expand Down Expand Up @@ -95,7 +95,7 @@

<section id="comments">

<h4><?php _e( 'Comments: ', 'omnibus-prime' ); ?></h4>
<h3><?php _e( 'Comments: ', 'omnibus-prime' ); ?></h3>

<ol class="h-feed hfeed p-comments comment-list">
<?php wp_list_comments( array(
Expand Down Expand Up @@ -125,7 +125,7 @@

<section id="pingbacks">

<h4><?php _e( 'Pingbacks: ', 'omnibus-prime' ); ?></h4>
<h3><?php _e( 'Pingbacks: ', 'omnibus-prime' ); ?></h3>

<ol class="h-feed hfeed pingback-list">
<?php wp_list_comments( array(
Expand All @@ -152,7 +152,7 @@

<section id="trackbacks">

<h4><?php _e( 'Trackbacks: ', 'omnibus-prime' ); ?></h4>
<h3><?php _e( 'Trackbacks: ', 'omnibus-prime' ); ?></h3>

<ol class="h-feed hfeed trackback-list">
<?php wp_list_comments( array(
Expand Down
2 changes: 1 addition & 1 deletion footer.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<?php if ( has_nav_menu( 'social' ) ) { ?>

<nav class="col-xs-12" role="navigation">
<nav class="col-xs-12" role="navigation" aria-label="Social Menu">
<?php wp_nav_menu( array(
'theme_location' => 'social',
'menu_class' => 'unlisted h',
Expand Down
42 changes: 34 additions & 8 deletions functions.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
* @version 1.0
*/

// This enables debugging.
define( 'WP_DEBUG', true );

function omnibus_prime_register_menus() {
register_nav_menus( array(
'primary' => __( 'Header: Primary navigation' ),
Expand Down Expand Up @@ -79,8 +82,8 @@ function omnibus_prime_widgets_init() {
'description' => 'This is the first widget area, on the lateral side of the site.',
'before_widget' => '<section id="widgets-1__%1$s" class="widget %1$s">',
'after_widget' => '</section>',
'before_title' => '<h3>',
'after_title' => '</h3>'
'before_title' => '<h2>',
'after_title' => '</h2>'
) );

register_sidebar( array(
Expand All @@ -89,24 +92,47 @@ function omnibus_prime_widgets_init() {
'description' => 'This is the second widget area, on the bottom side of the site.',
'before_widget' => '<section id="widgets-2__%1$s" class="widget %1$s col-xs-12 col-md-4">',
'after_widget' => '</section>',
'before_title' => '<h3>',
'after_title' => '</h3>'
'before_title' => '<h2>',
'after_title' => '</h2>'
) );
}

}

function omnibus_prime_scripts() {
// wp_enqueue_style( 'puxl', 'https://www.kanuel.com/pruebas/puxl.css', false, '1-beta' );
// wp_enqueue_style( 'puxl', 'https://www.kanuel.com/pruebas/puxl.css', false, '1-beta' );
//// wp_enqueue_style( 'puxl_framework', get_template_directory_uri() . '/assets/css/puxl.min.css', puxl, '1.0', 'all' );
// wp_enqueue_style( 'omnibus_prime_style', get_template_directory_uri() . '/style.css', puxl, '1.0', 'all' );
// wp_enqueue_script( 'puxl_app_bar', get_template_directory_uri() . '/assets/js/puxl-js/appBar.js', array(), 1.0, true );
//// wp_enqueue_script( 'puxlAppBar', 'https://puxl.io/js/puxl-js/appBar.js', array(), 1.0, true );
//// wp_enqueue_script( 'omnibus_prime_script', get_template_directory_uri() . '/assets/js/script.js', array( 'puxlAppBar' ), 1.0, true );

wp_enqueue_style( 'puxl_framework_style', get_template_directory_uri() . '/assets/puxl-framework_1-beta/css/puxl.css', puxl, '1.0', 'all' );
wp_enqueue_style( 'omnibus_prime_style', get_template_directory_uri() . '/style.css', puxl, '1.0', 'all' );
wp_enqueue_script( 'puxl_app_bar', get_template_directory_uri() . '/assets/puxl-framework_1-beta/js/puxl-js/appBar.js', array(), 1.0, true );
/*
Este array permite actualizar los datos requeridos para incorporar ∫puxl sin tener que andar trasteando en el propio enqueue.

Importante:Paths en array relativo respecto de $puxlPath Directory

*/

//Parametros Omnibus
$omnibusData = array(
"omnibus-css-ver" => "1.0.1"
,"omnibus-css-path" => get_template_directory_uri() . '/style.css'
);

//Parámetros PUXL Framework
$puxPath = get_template_directory_uri() . "/assets/puxl-framework_1-beta/";
$puxlData = array(
"puxl-css-ver" => "1.0"
,"puxl-css-path" => $puxPath . "css/puxl.css"
,"puxl-bar-js-ver" => "1.0"
,"puxl-bar-js-path" => $puxPath . "js/puxl-js/appBar.js"
);

//Insercion elementos en el queue en base a parametros anteriores.
wp_enqueue_style('puxl_framework_style', $puxlData["puxl-css-path"], array(), $puxlData["puxl-css-ver"], 'all' );
wp_enqueue_style('omnibus_prime_style', $omnibusData["omnibus-css-path"], array("puxl_framework_style"), $omnibusData["omnibus-css-ver"], 'all' );
wp_enqueue_script('puxl_app_bar', $puxlData["puxl-bar-js-path"] , array(), $puxlData["puxl-bar-js-ver"],true );

if ( is_singular() ) {
wp_enqueue_script( 'comment-reply' );
Expand Down
Loading