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 | |
require_once('bs4Navwalker.php'); | |
require_once('customizer.php'); | |
function theme_setup(){ | |
register_nav_menus(array( | |
'primary' => __('Primary Menu', 'wordpressfromscratch'), | |
'secondary' => __('Secondary Menu', 'wordpressfromscratch'), | |
)); |
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 | |
function wpb_customize_register($wp_customize){ | |
/* | |
* | |
* SHOWCASE THEME SELECTOR | |
* | |
*/ | |
$wp_customize->add_setting('theme_selector', array( | |
'default' => _x('bootstrap', 'kevinurielfonsecav2'), | |
'type' => 'theme_mod' |
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
/* | |
* | |
* BOOTSTRAP COMMENTS PARA EL ARCHIVO FUNCTIONS.PHP | |
* | |
*/ | |
function bootstrap_comment( $comment, $args, $depth ) { | |
$GLOBALS['comment'] = $comment; | |
?> | |
<?php if ( $comment->comment_approved == '1' ): ?> | |
<li class="media"> |
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 | |
$cats_result = $this->model->get_categories($swapid); | |
if ($cats_result->num_rows() > 0) { | |
$cat_index = $sub_index = $row_index = 0; | |
do { | |
$cats[$cat_index]['cat'] = array( | |
'name' => $cats_result->row($row_index)->cat_name, | |
'title' => $cats_result->row($row_index)->cat_title | |
); |
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
<!-- Div escondido que se mostrara hasta que haya un valor dentro del elemento <img> --> | |
<div class="thumbnail" id="div-preview" style="display:none;"> | |
<img alt="Image Display Here" id="image_preview" src="#" /> | |
</div> | |
<!-- Post Image --> | |
<div class="form-group"> | |
<?php echo form_label('Upload Image', 'post_image') ?> | |
<?php | |
$data = array( | |
'name' => 'post_image', |
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 | |
/* | |
* | |
*Este metodo trabaja con la version 3.1.6 en adelante de CodeIgniter | |
* | |
*/ | |
// Preferencias para subir imagenes | |
$config['upload_path'] = 'assets/img/posts/'; | |
$config['allowed_types'] = 'gif|jpg|png'; | |
$config['encrypt_name'] = TRUE; |
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 echo CI_VERSION; ?> |