Skip to content

Instantly share code, notes, and snippets.

View aristath's full-sized avatar
🏠

Ari Stathopoulos aristath

🏠
View GitHub Profile
<?php
/*
Plugin Name: Restrict administration access
Plugin URI:
Description: Restrict administration access
Author:
Version: 1.00
Author URI:
*/
function bp_custom_tpack_theme_setup() {
global $bp;
// Load the default BuddyPress AJAX functions if it isn't explicitly disabled
if ( !(int)get_option( 'bp_custom_tpack_disable_js' ) )
require_once( BP_PLUGIN_DIR . '/bp-themes/bp-default/_inc/ajax.php' );
if ( !is_admin() ) {
// Register buttons for the relevant component templates
// Friends button
<?php get_header(); ?>
<?php
// Check and get Sidebar Class
$sidebar = get_post_meta($post->ID,'post-option-sidebar-template',true);
if( empty($sidebar) ){
global $default_post_sidebar;
$sidebar = $default_post_sidebar;
}
$sidebar_array = gdl_get_sidebar_size( $sidebar );
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<?php get_header();
/******************************************************************/
<?php
/*
Plugin Name: My Login Redirect
Plugin URI: http://wpmu-hosting.org
Description: Redirects users to there own subsite/blog after login
Author: Joseph Anderson
Version: 1.0.1
Text Domain: My_Login_Redirect
Author URI: http://wpmu-hosting.org
WDP ID:
<?php
/*
Addon Name: eWAY payment plugin
Author: Mike Mills (Incsub)
Author URI: http://premium.wpmudev.org
Gateway ID: eway direct
*/
class eway extends M_Gateway {
<?php get_header(); ?>
<div id="content" class="two_column">
<div class="padder">
<?php do_action( 'bp_before_blog_page' ); ?>
<div class="page" id="blog-page" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
function custom_mp_buy_button_class( $post_id = NULL ) {
global $id, $mp;
$post_id = ( NULL === $post_id ) ? $id : $post_id;
$meta = get_post_custom($post_id);
//unserialize
foreach ($meta as $key => $val) {
$meta[$key] = maybe_unserialize($val[0]);
if (!is_array($meta[$key]) && $key != "mp_is_sale" && $key != "mp_track_inventory" && $key != "mp_product_link" && $key != "mp_file")
$meta[$key] = array($meta[$key]);
<?php
/**
* The default template for displaying content. Used for both single and index/archive/search.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>