This file contains hidden or 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 | |
/** | |
* Estima el tiempo necesario para leer una entrada en WordPress | |
* | |
* @return string | |
*/ | |
function wpr_estima_tiempo_lectura() { | |
$entrada = get_post(); |
This file contains hidden or 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
MENU_bolsa | |
Campo Tipo Nulo Predeterminado Comentarios MIME | |
id int(11) No | |
alias varchar(200) No | |
descripcion varchar(300) No | |
lft int(11) No | |
rgt int(11) No |
This file contains hidden or 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 | |
//--------------------------------------------------------------------------------------------------- | |
// Proyecto: jerarquia | |
// Archivo: class/nodo.php | |
// Tipo: definicion de clase | |
// Desarrolladores: Juanan Ruiz ([email protected]) y [email protected] | |
//--------------------------------------------------------------------------------------------------- | |
// Descripcion: lista, crea, borrar y edita nodos (falta mover nodos) | |
//--------------------------------------------------------------------------------------------------- | |
class nodo extends ADOdb_Active_Record |
This file contains hidden or 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
<ul style="list-style-type:none" id="nodo"> | |
{* Se asigna el valor inicial a la variable profundidad en el arbol "dep" que se utiliza para pintar el arbol | |
y en concreto cuando son varios hijos solo tenemos el valor de la profundidad *} | |
{assign var = dep value = 1} | |
{* Se inicia el bucle que muestra todas las filas de la consuta empezando a 1 y evitar mostra el primer nodo *} | |
{section loop=$lista name=lis start=1} | |
{* El nivel se utiliza para poder determinar si el nodo es padre de otros nodos *} | |
{assign var=nivel value=$lista[lis].izq+1} | |
{if $dep == $lista[lis].dep} |