Created
November 5, 2019 09:58
-
-
Save Nahuai/0b91e6ae659d1a03f671022e31b5a9f8 to your computer and use it in GitHub Desktop.
Block template Podcast Freelandev
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
<?php | |
/* Template block para las entradas de podcast de Freelandev */ | |
add_action( 'register_post_type_args','podcast_block_template', 20, 2 ); | |
function podcast_block_template ( $args, $post_type ) { | |
if ( 'podcast' === $post_type) { | |
$args[ 'template' ] = [ | |
[ | |
'core/paragraph', [ | |
'placeholder' => __( 'Intro', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/heading', [ | |
'level' => '2', | |
'content' => __( '¿Qué tal la semana?', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/heading', [ | |
'level' => '3', | |
'content' => __( 'Semana esther', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/paragraph', [ | |
'placeholder' => __( 'Semana de investigar y buscar gremlins, poltergeist y malwares.', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/heading', [ | |
'level' => '3', | |
'content' => __( 'Contenido esther', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/paragraph', [ | |
'placeholder' => __( 'Esta semana en Zona DPW', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/heading', [ | |
'level' => '3', | |
'content' => __( 'Semana Nahuai', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/paragraph', [ | |
'placeholder' => __( 'Semana con muchas cosas chulas...', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/heading', [ | |
'level' => '3', | |
'content' => __( 'Contenido Nahuai', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/paragraph', [ | |
'placeholder' => __( 'Esta semana en Código Genesis', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/heading', [ | |
'level' => '2', | |
'content' => __( 'Tema de la semana:', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/paragraph', [ | |
'placeholder' => __( 'Esta semana os hablamos de...', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/heading', [ | |
'level' => '2', | |
'content' => __( 'Novedades', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/paragraph', [ | |
'placeholder' => __( '', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/heading', [ | |
'level' => '2', | |
'content' => __( 'Tip de la semana', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/paragraph', [ | |
'placeholder' => __( '', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/heading', [ | |
'level' => '2', | |
'content' => __( 'Menciones', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/paragraph', [ | |
'placeholder' => __( '', 'showcase-pro' ) | |
] | |
], | |
[ | |
'core/paragraph', [ | |
'placeholder' => __( 'Outro', 'showcase-pro' ) | |
] | |
], | |
]; | |
} | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment