Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( (!$widget_options = get_site_option( 'cc_dashboard_widget_options', false ))) {
- $widget_options = array();
- }
- if ( isset($widget_options['custom_content_dashboard']['allow_override']) &&
- $widget_options['custom_content_dashboard']['allow_override'] == 'no') {
- $my_widget_options = get_option( 'my_dashboard_widget_options', false );
- if ( $my_widget_options ) {
- $widget_options = $my_widget_options;
- }
- }
- if ( !isset($widget_options['custom_content_dashboard']) )
- $widget_options['custom_content_dashboard'] = array();
- if ( !isset($widget_options['custom_content_dashboard']['content']) )
- $widget_options['custom_content_dashboard']['content'] = 'For starters, you might want to try the following:<br />
- <br />
- - <a href="">Change Avatar</a><br />
- <br />
- - <a target="_blank" href="http://mysite/edtech/">View our support resources</a><br />
- <br />
- - <a target="_blank" href="http://mysite/">Join or create a group</a><br />
- <br />
- - <a target="_blank" href="http://mysite/">Find a conversation</a><br />
- <br />
- - <a target="_blank" href="mysite/">Follow community member posts and view profiles</a><br />';
- if ( !isset($widget_options['custom_content_dashboard']['eval']) )
- $widget_options['custom_content_dashboard']['eval'] = 'no';
- if (file_exists($contents_file)) {
- return file_get_contents($contents_file);
- }
- if (isset($widget_options['custom_content_dashboard']) && isset($widget_options['custom_content_dashboard']['content']) &&
- !empty($widget_options['custom_content_dashboard']['content'])) {
- if ($widget_options['custom_content_dashboard']['eval'] == 'yes') {
- eval(stripcslashes($widget_options['custom_content_dashboard']['content']));
- } else {
- return stripcslashes($widget_options['custom_content_dashboard']['content']);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement