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
@media only screen | |
and (max-device-width: 640px), | |
only screen and (max-device-width: 667px), | |
only screen and (max-width: 480px) | |
{ | |
.wd_newsfeed_releases .wd_item_wrapper { | |
float: none; | |
margin-left: 0; | |
clear: both |
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
$subcategories = wp_list_categories( $subcat_args ); | |
$subcategories = preg_replace('/title="([^"]+)"/', 'title=""', $subcategories); |
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
function flush_buffers(){ | |
ob_end_flush(); | |
flush(); | |
ob_start(); | |
} |
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
require_once DRUPAL_ROOT . '/' . variable_get('password_inc', 'includes/password.inc'); | |
$account->name = 'user_name'; | |
$account->pass = user_hash_password('password_string'); | |
$account->mail = 'user@mail.com'; | |
$account->status = 1; | |
// Add Role with rid 3 to this user | |
$roles = array('3' => true); | |
$account->roles = $roles; | |
$user = user_save($account); |