Apple_Exporter\Components\Body::get_col_start PHP Method

get_col_start() private method

Get the start column for the body based on the layout.
private get_col_start ( )
    private function get_col_start()
    {
        // Find out where the body must start according to the body orientation.
        // Orientation defaults to left, thus, col_start is 0.
        $col_start = 0;
        switch ($this->get_setting('body_orientation')) {
            case 'right':
                $col_start = $this->get_setting('layout_columns') - $this->get_setting('body_column_span');
                break;
            case 'center':
                $col_start = floor(($this->get_setting('layout_columns') - $this->get_setting('body_column_span')) / 2);
                break;
        }
        return $col_start;
    }