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
# all php files :: disallow direct access of file | |
# between <?php and ?> | |
defined('_JEXEC') or die; | |
# index.php :: define variable with application | |
# between <?php and ?> | |
$app = JFactory::getApplication(); | |
# index.php :: define variable with document | |
# between <?php and ?> |
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 | |
/* Define the directory separator. Usually forward slash "/" on UNIX systems */ | |
define('DS','/'); | |
/* Where are the full copies of Joomla located? This can point to the directory where several copies of Joomla Core files are located. */ | |
$source_path = '/WWW/_source/joomla15-latest'; /* e.g. $source_path = '/home/mymane/files/joomlasource'; */ | |
/* Where do you want to install this symlinked instance of Joomla? */ | |
//$install_path = dirname(__FILE__).DS.'homebrew'; /* e.g. $install_path = '/home/mymane/public_html'; */ | |
$install_path = '/WWW'; |
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
selector { | |
min-height:500px; | |
height:auto !important; | |
height:500px; | |
} |
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 | |
$last_level_one_id = 0; | |
for($j=count($list)-1; $j>0; $j—){ | |
if($list[$j]->level == 1){ | |
$last_level_one_id = $list[$j]->id; | |
break; | |
} | |
} $first_start = true; | |
?> | |
Then we find the code below, this is the bit that adds classes to the menu elements and modify as shown below: |
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 modify_post_mime_types( $post_mime_types ) { | |
// select the mime type, here: 'application/pdf' | |
// then we define an array with the label values | |
$post_mime_types['application/pdf'] = array( __( 'PDFs' ), __( 'Manage PDFs' ), _n_noop( 'PDF <span class="count">(%s)</span>', 'PDFs <span class="count">(%s)</span>' ) ); | |
// then we return the $post_mime_types variable | |
return $post_mime_types; |
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
//Completely Removes Admin Bar from Front End Site | |
remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); // For front end | |
// CSS override for the frontend | |
function remove_admin_bar_style_frontend() { | |
echo ''; | |
} | |
add_filter('wp_head','remove_admin_bar_style_frontend', 99); |
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
RewriteRule ^login$ http://website.com/wp-login.php [NC,L] |
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 wps_get_comment_list_by_user($clauses) { | |
if (is_admin()) { | |
global $user_ID, $wpdb; | |
$clauses['join'] = ", wp_posts"; | |
$clauses['where'] .= " AND wp_posts.post_author = ".$user_ID." AND wp_comments.comment_post_ID = wp_posts.ID"; | |
}; | |
return $clauses; | |
}; | |
if(!current_user_can('edit_others_posts')) { | |
add_filter('comments_clauses', 'wps_get_comment_list_by_user'); |
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
# all php files :: disallow direct access of file | |
# between <?php and ?> | |
defined('_JEXEC') or die; | |
# index.php :: define variable with application | |
# between <?php and ?> | |
$app = JFactory::getApplication(); | |
# index.php :: define variable with document | |
# between <?php and ?> |
OlderNewer