Ejemplo n.º 1
0
 function o2_register_default_post_action_states()
 {
     o2_register_post_action_states('reply', array('default' => array('shortText' => __('Reply', 'o2'), 'title' => __('Reply', 'o2'), 'classes' => array(), 'genericon' => 'genericon-reply')));
     o2_register_post_action_states('scrolltocomments', array('default' => array('shortText' => __('Scroll', 'o2'), 'title' => __('Scroll to comments', 'o2'), 'classes' => array(), 'genericon' => 'genericon-downarrow')));
     o2_register_post_action_states('edit', array('default' => array('shortText' => __('Edit', 'o2'), 'title' => __('Edit', 'o2'), 'classes' => array(), 'genericon' => 'genericon-edit')));
     o2_register_post_action_states('trash', array('default' => array('shortText' => __('Trash', 'o2'), 'title' => __('Trash', 'o2'), 'classes' => array(), 'genericon' => 'genericon-trash')));
     o2_register_post_action_states('shortlink', array('default' => array('shortText' => __('Shortlink', 'o2'), 'title' => __('Shortlink', 'o2'), 'classes' => array(), 'genericon' => 'genericon-link')));
 }
Ejemplo n.º 2
0
 /**
  *
  */
 function register_post_action_states()
 {
     o2_register_post_action_states('stickyposts', array('normal' => array('shortText' => __('Stick post to home', 'o2'), 'title' => __('Stick post to home', 'o2'), 'classes' => array(), 'genericon' => 'genericon-pinned', 'nextState' => 'sticky'), 'sticky' => array('shortText' => __('Unstick post from home', 'o2'), 'title' => __('Unstick post from home', 'o2'), 'classes' => array('sticky'), 'genericon' => 'genericon-pinned', 'nextState' => 'normal')));
 }
Ejemplo n.º 3
0
 function register_post_action_states()
 {
     $resolved_post_action_states = array('normal' => array('name' => __('Normal', 'o2'), 'shortText' => __('To-do', 'o2'), 'title' => __('To-do', 'o2'), 'classes' => array('state-normal'), 'genericon' => 'genericon-dot', 'nextState' => 'unresolved', 'default' => true), 'unresolved' => array('name' => __('Unresolved', 'o2'), 'shortText' => __('Mark as done', 'o2'), 'title' => __('Mark as done', 'o2'), 'classes' => array('state-unresolved'), 'genericon' => 'genericon-checkmark', 'nextState' => 'resolved'), 'resolved' => array('name' => __('Resolved', 'o2'), 'shortText' => __('Clear to-do', 'o2'), 'title' => __('Clear to-do', 'o2'), 'classes' => array('state-resolved'), 'genericon' => 'genericon-close', 'nextState' => 'normal'));
     o2_register_post_action_states(self::post_actions_key, $resolved_post_action_states);
 }