Code Monkey home page Code Monkey logo

juanito's Introduction

Hi there, I'm Álvaro Véliz 👋

I'm a Senior Software Engineer based in Santiago, Chile.

  • 🔭 I’m currently working on Checkr, Inc
  • 💼 I have an small agency called Doppio.cl
  • 🌱 I’m currently learning Rails and Laravel
  • 👯 I’m looking to collaborate on laravel and rails projects
  • 💬 Ask me about music and turntablism
  • 📫 How to reach me: Visit my LinkedIn profile
  • ⚡ Fun fact: My first, middle and last name have an accent

These are my stats on Github:

My Github Stats

juanito's People

Contributors

alvaroveliz avatar hectorpalmatellez avatar jpsepulvedaf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

esneyder

juanito's Issues

cabecera style.css no ingresada con datos parciales

Si no se completa todos los campos del wizard para configurar omite los campos completados, se adjunta caso de ejemplo

$:~/Testing/juanito/examples$ juanito -s example2 -d theme2
? Please input the theme name: theme2
? Please input the theme uri: 
? Please input the theme author: 
? Please input the theme author uri: 
? Please input the theme description: 
? Please input the theme version: 
? Please input the theme license: 
? Please input the theme license uri: 
? Please input the theme tags (comma separated) 
Checking contents of : example2
> Parsing file: example2/index.html
> Parsing file: example2/page.html
> Parsing file: example2/single.html
>> "index.html" detected.
Generating base theme...

Style.css

/*
Theme created with juanito
https://github.com/alvaroveliz/juanito
*/


Menu support

Se debe dar soporte a menus usando data-menu="".

El menu debe tener un nombre, por lo tanto el uso del tag es:

  • data-menu=nombre_menu

Este debe quedar reflejado en functions.php y debe crear registros en menus en base al formato ul+li

Non standard HTML5 tags

Se debe dar soporte a Tags que no están en el estándar HTML5.

Para esto se propone el uso de agregar el soporte a los siguientes data-tags:

  • data-header
  • data-footer

Estos dos data-tags reemplazarán el uso de <header> y <footer>.

El uso esperado del tag debe ser del siguiente modo:

<div data-header="">
  ...
</div>
<div data-footer="">
  ...
</div>

Sidebar.php

Se debe crear el archivo sidebar.php y sidebar-<name>.php y luego incluirla en los sidebars de las páginas internas

Header y Footer sin atributos

Al momento de generar el header y el footer no se están considerando los atributos del HTML.
Este issue se resuelve en master.

The Loop

Se debe generar el reconocimiento de "loops" usando data-loop.
Los parámetros serán:

  • data-loop="nombre"
  • data-loop-title
  • data-loop-permalink
  • data-loop-description
  • data-loop-tags
  • data-loop-categories
  • data-loop-date
  • data-loop-limit="..."

Agregar elemento title

Al momento de crear el template, se está eliminando el elemento <title> pero no se está agregando dentro del elemento <head>

input not as expected

When using $ juanito I expect to use it inside my project dir, so it should be able to manage individual files (this seeing it as a whole project that handles many files, not just index.php but custom post types, singles, and so). And the output too, being generated inside this project dir.

Generador de menú no considera las clases de elemento ul

Descripción

Cuando se agrega un menú usando data-menu="", se busca por un elemento ul.
Si dicho elemento ul tiene atributos, estos no son considerados en la creación del menú.

Para esto se deben agregar el soporte a la función wp_nav_menu considerando los siguientes parámetros:

$defaults = array(
    'theme_location'  => '',
    'menu'            => '',
    'container'       => 'div',
    'container_class' => '',
    'container_id'    => '',
    'menu_class'      => 'menu',
    'menu_id'         => '',
);

wp_nav_menu( $defaults );

Estos parámetros deben ser completados por el parser automáticamente, sólo si es necesario.

Ejemplo

Asumamos un menu sin header y que está dentro de un contenedor.

<div id="menu" class="menu_container menu_mobile" data-menu="main">
    <ul id="menu_ul" class="menu_horizontal menu_collapsed">
        <li>...</li>
     </ul>
</div>

El resultado en php debería ser:

$defaults = array(
    'theme_location'  => 'main',
    'menu'            => 'main',
    'container'       => 'div',
    'container_class' => 'menu_container menu_mobile',
    'container_id'    => 'menu',
    'menu_class'      => 'menu_horizontal menu_collapsed',
    'menu_id'         => 'menu_ul',
);

wp_nav_menu( $defaults );

Image support

Se debe agregar soporte para imágenes del tema, considerar get_template_directory_uri()

Sidebar support

Se debe dar soporte a sidebars usando data-sidebar="".

El sidebar debe tener un nombre, por lo tanto el uso del tag es:

* `data-sidebar=nombre_sidebar`

Este debe quedar reflejado en functions.php y activar el uso de widgets.

Custom javascript and stylesheet files support

Se debe dar soporte a custom javascripts y custom stylesheets.
Para esto se debe reconocer que vienen estos archivos y ser copiados a un directorio del tema, tal cual.

Lo ideal es que todo quede dentro de "style.css" usando @import

functions.php default configuration

functions.php debe tener configuración por defecto, comentada.

Considerar Theme Support:

  • post-formats
  • post-thumbnails
  • custom-background
  • custom-header
  • automatic-feed-links
  • html5
  • title-tag

Como atributos de creación

Custom pages support

Se debe dar soporte a custom pages. El formato será page-<name>.html.

Todas los archivos HTML que tengan este formato seran procesadas como páginas.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.