' . $elapp_plugin . ' ' . __('requires WordPress 3.7 or higher, and has been deactivated!', 'elapp') . '
';
$msg .= __('Please return to the ', 'elapp') . '' . __('WordPress Admin area', 'elapp') . ' ' . __('to upgrade WordPress and try again.', 'elapp');
wp_die($msg);
}
}
}
if (isset($_GET['activate']) && $_GET['activate'] == 'true') {
add_action('admin_init', 'elapp_require_wp_version');
}
// Assist24.it Room code (elapp.js)
//
function assist24_room_code() {
$options = get_option('elapp_options');
$elapp_enable = $options['elapp_enable'];
$elapp_id = $options['elapp_id'];
$elapp_custom = $options['elapp_custom'];
if ($elapp_enable) {
?>
' . __('Settings', 'elapp') .'';
array_unshift($links, $elapp_links);
}
return $links;
}
// rate plugin link
function add_elapp_links($links, $file) {
if ($file == plugin_basename(__FILE__)) {
$rate_url = 'http://wordpress.org/support/view/plugin-reviews/' . basename(dirname(__FILE__)) . '?rate=5#postform';
$links[] = 'Rate this plugin';
}
return $links;
}
add_filter('plugin_row_meta', 'add_elapp_links', 10, 2);
// delete plugin settings
function elapp_delete_plugin_options() {
delete_option('elapp_options');
}
if ($elapp_options['default_options'] == 1) {
register_uninstall_hook (__FILE__, 'elapp_delete_plugin_options');
}
function elapp_a24block_func( $atts ) {
$atts = shortcode_atts( array(
'action' => 'chat',
'width' => '400px',
'height' => '400px'
), $atts, 'a24block' );
return '