.
* For any other query please contact us at contact[at]eleopard[dot]in
*/
include_once 'eds_tinymce.php';
function set_edsanimate_options(){
add_option('scroll_offset'
,'75'
,'Percentage height of the element '.
'after which animation should get applied' );
}
function unset_edsanimate_options(){
delete_option('scroll_offset');
}
function admin_edsanimate_options(){
?>
Animate It! Options
'',
'delay' => '',
'on_scroll' => ''
), $attributes ) );
$classString = "animated";
if($animation == '')
{
return $content;
}
$classString .= " " . $animation;
if($delay!= '' && is_int((int)$delay) && $delay>=0 && $delay <=12)
$classString .= " delay" . $delay;
if(strcasecmp($on_scroll, 'yes')==0)
$classString .= " eds-on-scroll";
return ''.$content.'
';
}
add_filter('widget_text', 'do_shortcode');
register_activation_hook(__FILE__, 'set_edsanimate_options');
register_deactivation_hook(__FILE__, 'unset_edsanimate_options');
add_action('admin_menu', 'modify_menu');
add_shortcode('edsanimate', 'edsanimate_handler');
add_action('wp_enqueue_scripts', 'add_eds_script_and_css');