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_theme_setup(){ | |
// Login Page | |
function my_login_logo_url() { | |
return home_url(); | |
} | |
add_filter( 'login_headerurl', 'my_login_logo_url' ); | |
function my_login_logo_url_title() { | |
return 'Your Site Name and Info'; | |
} |
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
body.login {} | |
body.login div#login {} | |
body.login div#login h1 {} | |
body.login div#login h1 a {} | |
body.login div#login form#loginform {} | |
body.login div#login form#loginform p {} | |
body.login div#login form#loginform p label {} | |
body.login div#login form#loginform input {} | |
body.login div#login form#loginform input#user_login {} | |
body.login div#login form#loginform input#user_pass {} |
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
/******************** Login Page ********************/ | |
body.login { | |
background: url(https://images.alphacoders.com/201/thumb-1920-201591.jpg) repeat center center; | |
background-size:cover; | |
} | |
body.login div#login {} | |
body.login div#login h1 {} | |
body.login div#login h1 a { | |
background-image: url(img/login-register-lost.png); | |
height:80px; |
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 | |
// Archivos Permitidos a subir | |
function edit_upload_types($existing_mimes = array()) { | |
$existing_mimes['woff'] = 'font/woff'; | |
$existing_mimes['zip'] = 'application/zip'; | |
$existing_mimes['epub'] = 'application/epub+zip'; | |
$existing_mimes['mobi'] = 'application/x-mobipocket-ebook'; | |
$existing_mimes['m4r'] = 'audio/aac'; | |
$existing_mimes['aif'] = 'audio/x-aiff'; | |
$existing_mimes['aiff'] = 'audio/aiff'; |
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
<ul class="nav navbar-nav navbar-right"> | |
<?php if(is_user_logged_in()) : ?> | |
<li class="dropdown"> | |
<?php global $current_user; get_currentuserinfo(); ?> | |
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo $current_user->display_name ?> <span class="caret"></span></a> | |
<ul class="dropdown-menu"> | |
<li><a href="<?php echo admin_url(); ?>">Profile</a></li> | |
<li><a href="<?php echo get_edit_user_link(); ?>">Settings</a></li> | |
<li role="separator" class="divider"></li> | |
<li><a href="<?php echo wp_logout_url( home_url() ); ?>">Log out</a></li> |
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 | |
/* | |
This functions notifies all the users who have had registered in your Wordpress about the new published posts | |
*/ | |
function email_members($post_ID) { | |
$wp_user_search = new WP_User_Query( array( 'fields' => array('user_email') ) ); | |
$usersarray = $wp_user_search->get_results(); | |
$arrUsers = array (); | |
for ($arr = $usersarray, $mU = count ($arr), $iU = 0; $iU < $mU; $iU++) { | |
$arrUsers = $arr[$iU]->user_email; |
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 | |
// Sidebar | |
function wpb_init_widgets($id){ | |
register_sidebar(array( | |
'name' => 'Sidebar', | |
'id' => 'sidebar', | |
'before_widget' => '<div class="well">', | |
'after_widget' => '</div>', | |
'before_title' => '<h4>', | |
'after_title' => '</h4>', |
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 class="alert alert-info"> | |
<p> | |
<?php | |
$numcomms = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'"); | |
if (0 < $numcomms) $numcomms = number_format($numcomms); echo "There's <span>".$numcomms."</span> total comments on "; bloginfo('name'); | |
?> | |
</p> | |
</div> |
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 | |
// Demo URL | |
function demo_url($postID){ | |
$demo_url = 'URL para ver Demo'; | |
$demostracion_url = get_post_meta($postID, $demo_url, true); | |
if($demostracion_url==''){ | |
delete_post_meta($postID,$demo_url); | |
add_post_meta($postID,$demo_url, '#'); | |
return "#"; | |
} |
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 | |
remove_action('welcome_panel', 'wp_welcome_panel'); | |
?> |
OlderNewer