Plugin Directory

Changeset 743162


Ignore:
Timestamp:
07/19/2013 12:23:13 PM (13 years ago)
Author:
Nit3watch
Message:

Version 2.0 to fix the wp get_option error

Location:
buddypress-social/trunk
Files:
4 added
6 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • buddypress-social/trunk/loader.php

    r739643 r743162  
    1 <?php
     1<?php 
    22/*
    33 * Plugin Name: Buddypress Social
    44 * Plugin URI: http://wordpress.org/plugins/buddypress-social/
    55 * Description: Bringing social engagement to Buddypress - let your community share to their hearts content all while promoting your website to social networks like Facebook and Twitter.
    6  * Version: 1.03
     6 * Version: 2.0
    77 * Author: Charl Kruger
    88 * Author URI: https://twitter.com/itscharlkruger
     
    1010 */
    1111
    12 // include admin settings
    13 require( dirname( __FILE__ ) . '/admin-settings.php' );
    14 require( dirname( __FILE__ ) . '/activity-sharing.php' );
     12function bp_social_init() {
     13    require ( dirname( __FILE__ ) . '/admin.php' );
     14    require( dirname( __FILE__ ) . '/includes/activity-sharing.php' );
     15}
     16add_action( 'bp_include', 'bp_social_init' );
    1517
    1618    /**
     
    5860        echo '<style type="text/css">
    5961        .social-buttons a {
    60             color: ' . get_option('my_components_settings')[buddy_social_color_0] . ';
     62            color: ' . get_option('social_button_color') . ';
    6163        }
    6264        .social-buttons a:hover {
    63             color: ' . get_option('my_components_settings')[buddy_social_color_1] . ';
     65            color: ' . get_option('social_button_color_hover') . ';
    6466        }
    6567        </style>';
    6668    }
     69
     70?>
Note: See TracChangeset for help on using the changeset viewer.