original_string: public function set_alignment($dialogue, $button) {
          if (isset($this->attributessecondary['data-align'])) {
              // We've already got one set, lets remove the old class so as to avoid troubles.
              $class = $this->attributessecondary['class'];
              $search = 'align-'.$this->attributessecondary['data-align'];
              $this->attributessecondary['class'] = str_replace($search, '', $class);
          }
          $align = $this->get_align_string($dialogue) . '-' . $this->get_align_string($button);
          $this->attributessecondary['data-align'] = $align;
          $this->attributessecondary['class'] .= ' align-'.$align;
      }
code: public function set_alignment($dialogue, $button) {
          if (isset($this->attributessecondary['data-align'])) {
              // We've already got one set, lets remove the old class so as to avoid troubles.
              $class = $this->attributessecondary['class'];
              $search = 'align-'.$this->attributessecondary['data-align'];
              $this->attributessecondary['class'] = str_replace($search, '', $class);
          }
          $align = $this->get_align_string($dialogue) . '-' . $this->get_align_string($button);
          $this->attributessecondary['data-align'] = $align;
          $this->attributessecondary['class'] .= ' align-'.$align;
      }
code_tokens: public function set_alignment ( $ dialogue , $ button ) { if ( isset ( $ this -> attributessecondary [ 'data-align' ] ) ) { // We've already got one set, lets remove the old class so as to avoid troubles. $ class = $ this -> attributessecondary [ 'class' ] ; $ search = 'align-' . $ this -> attributessecondary [ 'data-align' ] ; $ this -> attributessecondary [ 'class' ] = str_replace ( $ search , '' , $ class ) ; } $ align = $ this -> get_align_string ( $ dialogue ) . '-' . $ this -> get_align_string ( $ button ) ; $ this -> attributessecondary [ 'data-align' ] = $ align ; $ this -> attributessecondary [ 'class' ] .= ' align-' . $ align ; }
docstring: Sets the alignment of the dialogue in relation to button used to toggle it.
  
  @param int $dialogue One of action_menu::TL, action_menu::TR, action_menu::BL, action_menu::BR.
  @param int $button One of action_menu::TL, action_menu::TR, action_menu::BL, action_menu::BR.
docstring_tokens: Sets the alignment of the dialogue in relation to button used to toggle it .