Actualiza estilos para las notas y los snippets
El "Archivo de notas" y los "Marcadores" se han integrado en un único bloque llamado "Notas rápidas". Y para los snippets se han descargado las versiones más recientes de Prismjs del plugin Highlighting Code Block. Se ajustan los estilos para tener en cuenta estos cambios.
This commit is contained in:
parent
d375f803ac
commit
1932537e7e
4 changed files with 90 additions and 366 deletions
|
@ -69,8 +69,19 @@ function fix_single_post_title( $args, $id ) {
|
|||
else {
|
||||
// Post categories by name:
|
||||
$categories = array_values( array_column( get_the_category(), 'name' ) );
|
||||
if ( in_array( $categories[0], array( 'Blog', 'Archivo de notas', 'Marcadores', 'Álbum de fotos' ) ) ) {
|
||||
$args['title'] = $categories[0];
|
||||
switch ($categories[0]) {
|
||||
case 'Blog':
|
||||
$args['title'] = 'En el blog';
|
||||
break;
|
||||
case 'Notas rápidas':
|
||||
$args['title'] = 'En mis notas';
|
||||
break;
|
||||
case 'Snippets':
|
||||
$args['title'] = 'Picando código';
|
||||
break;
|
||||
case 'Álbum de fotos':
|
||||
$args['title'] = 'Foto del álbum';
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue