Render the running_content_chapter_right input.

@param array $args
332817
function renderRunningContentChapterRightField( $args ) {
		unset( $args['label_for'], $args['class'] );
		$this->renderCustomSelect(
			[
				'id' => 'running_content_chapter_right',
				'name' => 'running_content_chapter_right',
				'value' => getset( $this->options, 'running_content_chapter_right' ),
				'choices' => $args,
			]
		);
		$this->renderField(
			[
				'id' => 'running_content_chapter_right_custom',
				'name' => 'pressbooks_theme_options_' . $this->getSlug(),
				'option' => 'running_content_chapter_right',
				'value' => getset( $this->options, 'running_content_chapter_right' ),
				'type' => 'text',
				'class' => 'regular-text code',
			]
		);
	}
812615
function renderBottomMarginField( $args ) {
		unset( $args['label_for'], $args['class'] );
		$this->renderField(
			[
				'id' => 'pdf_page_margin_bottom',
				'name' => 'pressbooks_theme_options_' . $this->getSlug(),
				'option' => 'pdf_page_margin_bottom',
				'value' => getset( $this->options, 'pdf_page_margin_bottom' ),
				'description' => $args[0],
				'type' => 'text',
				'class' => 'small-text',
			]
		);
	}
64937
public function messagePrintf(array $args = array())
    {
        $this->raw_msg = vsprintf($this->raw_msg, $args);
        $this->message = vsprintf($this->message, $args);
    }
848202
function renderLanguagesField( $args ) {
		unset( $args['label_for'], $args['class'] );

		$foreign_languages = get_option( 'pressbooks_global_typography' );
		if ( ! $foreign_languages ) {
			$foreign_languages = [];
		}

		$languages = Container::get( 'GlobalTypography' )->getSupportedLanguages();

		$already_supported_languages = Container::get( 'GlobalTypography' )->getThemeSupportedLanguages();

		if ( false === $already_supported_languages ) {
			$already_supported_languages = [];
		}

		$already_supported_languages_string = '';

		$i = 1;
		$c = count( $already_supported_languages );
		foreach ( $already_supported_languages as $lang ) {
			$already_supported_languages_string .= $languages[ $lang ];
			if ( $i < $c && $i === $c - 1 ) {
				$already_supported_languages_string .= ' ' . __( 'and', 'pressbooks' ) . ' ';
			} elseif ( $i < $c ) {
				$already_supported_languages_string .= ', ';
			}
			unset( $languages[ $lang ] );
			$i++;
		}

		$html = '<label id="global_typography_label" for="global_typography"> ' . $args[0] . '</label><br /><br />';
		$html .= '<select id="global_typography" class="select2" style="width: 75%" data-placeholder="' . __( 'Select languages&hellip;', 'pressbooks' ) . '" name="pressbooks_global_typography[]" multiple>';
		foreach ( $languages as $key => $value ) {
			$selected = ( in_array( $key, $foreign_languages, true ) || in_array( $key, $already_supported_languages, true ) ) ? ' selected' : '';
			$html .= '<option value="' . $key . '" ' . $selected . '>' . $value . '</option>';
		}
		$html .= '</select>';

		if ( $already_supported_languages_string ) {
			$html .= '<br /><br />' . sprintf( __( 'This theme includes built-in support for %s.', 'pressbooks' ), $already_supported_languages_string );
		}

		echo $html;
	}
2806
function renderRunningContentFrontMatterLeftField( $args ) {
		unset( $args['label_for'], $args['class'] );
		$this->renderCustomSelect(
			[
				'id' => 'running_content_front_matter_left',
				'name' => 'running_content_front_matter_left',
				'value' => getset( $this->options, 'running_content_front_matter_left' ),
				'choices' => $args,
			]
		);
		$this->renderField(
			[
				'id' => 'running_content_front_matter_left_custom',
				'name' => 'pressbooks_theme_options_' . $this->getSlug(),
				'option' => 'running_content_front_matter_left',
				'value' => getset( $this->options, 'running_content_front_matter_left' ),
				'type' => 'text',
				'class' => 'regular-text code',
			]
		);
	}
490016
protected function _render($params) {
		foreach ($params as $name => $param) {
			if ($name === 'run' || empty($param['name'])) {
				continue;
			}
			$usage = (!empty($param['usage'])) ? trim($param['usage'], ' []') : $param['name'];
			$this->out($this->_pad($usage), 'option');

			if ($param['description']) {
				$this->out($this->_pad($param['description'], 2));
			}
			$this->nl();
		}
	}
5753
function renderWebbookWidthField( $args ) {
		unset( $args['label_for'], $args['class'] );
		$this->renderSelect(
			[
				'id' => 'webbook_width',
				'name' => 'pressbooks_theme_options_' . $this->getSlug(),
				'option' => 'webbook_width',
				'value' => ( isset( $this->options['webbook_width'] ) ) ? $this->options['webbook_width'] : $this->defaults['webbook_width'],
				'choices' => $args,
			]
		);
	}
423966
function renderTOCField( $args ) {
		unset( $args['label_for'], $args['class'] );
		$this->renderCheckbox(
			[
				'id' => 'pdf_toc',
				'name' => 'pressbooks_theme_options_' . $this->getSlug(),
				'option' => 'pdf_toc',
				'value' => getset( $this->options, 'pdf_toc' ),
				'label' => $args[0],
			]
		);
	}
1083371
function renderEbookStartPointField( $args ) {
		unset( $args['label_for'], $args['class'] );

		$options = [
			'' => '--',
		];
		$struct = \Pressbooks\Book::getBookStructure();
		foreach ( $struct['front-matter'] as $k => $v ) {
			$options[ $v['ID'] ] = $v['post_title'];
		}
		foreach ( $struct['part'] as $key => $value ) {
			foreach ( $value['chapters'] as $k => $v ) {
				$options[ $v['ID'] ] = $v['post_title'];
			}
		}
		foreach ( $struct['back-matter'] as $k => $v ) {
			$options[ $v['ID'] ] = $v['post_title'];
		}

		$this->renderSelect(
			[
				'id' => 'ebook_start_point',
				'name' => 'pressbooks_theme_options_' . $this->getSlug(),
				'option' => 'ebook_start_point',
				'value' => ( isset( $this->options['ebook_start_point'] ) ) ? $this->options['ebook_start_point'] : '',
				'choices' => $options,
				'description' => $args[0],
			]
		);
	}
1089137
public function renderTableJs(\Twig_Environment $env, $args = array()) {
        $array = array();
        $config = $this->fillModel($array);
        $array['updateUrl'] =  $this->fetchUrl($args, 'update', $config->getUpdateRoute());
        $array['deleteUrl'] = $this->fetchUrl($args, 'delete', $config->getDeleteRoute());
        $array['addUrl'] = $this->fetchUrl($args, 'add', $config->getAddRoute());
        $array['dtDefaultOpts'] = $this->container->getParameter('twentysteps_auto_tables.default_datatables_options');
        $array['dtOpts'] = $config->getDataTablesOptions();
        $array['dtTagOpts'] = $this->getParameter($args, 'dtOptions', array());
        $array['tableId'] = $config->getId();
        $array['transScope'] = $config->getTransScope();
        $array['reloadAfterAdd'] = $this->getParameter($args, 'reloadAfterAdd', true);
        $array['reloadAfterUpdate'] = $this->getParameter($args, 'reloadAfterUpdate', false);
        $array['includeJavascript'] = $this->checkIncludeJavascript();
        $array['includeBootstrap3'] = $this->getParameter($args, 'includeBootstrap3', false);
        $array['includeJquery'] = $this->getParameter($args, 'includeJquery', FALSE);
        $array['includeJqueryUi'] = $this->getParameter($args, 'includeJqueryUi', $config->getFrontendFramework() == FrontendFramework::JQUERY_UI);
        $array['includeJqueryEditable'] = $this->getParameter($args, 'includeJqueryEditable', TRUE);
        $array['includeJqueryEditableDatePicker'] = $this->getParameter($args, 'includeJqueryEditableDatePicker', $config->getFrontendFramework() == FrontendFramework::JQUERY_UI);
        $array['includeJqueryEditableBootstrapDatePicker'] = $this->getParameter($args, 'includeJqueryEditableBootstrapDatePicker', $config->getFrontendFramework() == FrontendFramework::BOOTSTRAP3);
        $array['includeJqueryDataTables'] = $this->getParameter($args, 'includeJqueryDataTables', TRUE);
        $array['includeJqueryValidate'] = $this->getParameter($args, 'includeJqueryValidate', TRUE);
        $array['useJqueryUi'] = $config->getFrontendFramework() == FrontendFramework::JQUERY_UI;
        $array['useBootstrap'] = $config->getFrontendFramework() == FrontendFramework::BOOTSTRAP3;
        return $this->render($env, 'twentystepsAutoTablesBundle:AutoTablesExtension:autoTableJs.html.twig', $array);
    }
969034
function renderTwoLevelTOCField( $args ) {
		unset( $args['label_for'], $args['class'] );
		$this->renderCheckbox(
			[
				'id' => 'parse_subsections',
				'name' => 'pressbooks_theme_options_' . $this->getSlug(),
				'option' => 'parse_subsections',
				'value' => ( isset( $this->options['parse_subsections'] ) ) ? $this->options['parse_subsections'] : '',
				'label' => $args[0],
			]
		);
	}
878476
protected function log(Args $args)
    {
        $message = sprintf("%s%s", $this->render($args), PHP_EOL);
        file_put_contents($this->getStream(), $message);
    }
1306636
function renderBodyLineHightField( $args ) {
		unset( $args['label_for'], $args['class'] );
		$this->renderField(
			[
				'id' => 'pdf_body_line_height',
				'name' => 'pressbooks_theme_options_' . $this->getSlug(),
				'option' => 'pdf_body_line_height',
				'value' => ( isset( $this->options['pdf_body_line_height'] ) ) ? $this->options['pdf_body_line_height'] : $this->defaults['pdf_body_line_height'],
				'description' => $args[0],
				'append' => $args[1],
				'type' => 'text',
				'class' => 'small-text',
			]
		);
	}
537238
function renderCollapseSections( $args ) {
		unset( $args['label_for'], $args['class'] );
		$this->renderCheckbox(
			[
				'id' => 'collapse_sections',
				'name' => 'pressbooks_theme_options_' . $this->getSlug(),
				'option' => 'collapse_sections',
				'value' => ( isset( $this->options['part_title'] ) ) ? $this->options['collapse_sections'] : '',
				'label' => $args[0],
			]
		);
	}
285928
function renderPageWidthField( $args ) {
		unset( $args['label_for'], $args['class'] );
		$this->renderField(
			[
				'id' => 'pdf_page_width',
				'name' => 'pressbooks_theme_options_' . $this->getSlug(),
				'option' => 'pdf_page_width',
				'value' => getset( $this->options, 'pdf_page_width' ),
				'description' => $args[0],
				'type' => 'text',
				'class' => 'small-text',
			]
		);
	}
907428
function renderAllowRedistributionField( $args ) {
		$options = get_site_option( $this->getSlug() );
		$this->renderCheckbox(
			[
				'id' => 'allow_redistribution',
				'name' => $this->getSlug(),
				'option' => 'allow_redistribution',
				'value' => ( isset( $options['allow_redistribution'] ) ) ? $options['allow_redistribution'] : '',
				'label' => $args[0],
			]
		);
	}
633707
public function run($args)
  {
    $this->args = $args;
    $command = $this->args['commands'][1];
    $path = $this->root.DIRECTORY_SEPARATOR.'cmd'.DIRECTORY_SEPARATOR.$command;
    if(!is_dir($path)){
      print $command.' doesn\'t appear to be a valid command!';
      return;
    }
    $file = $path.DIRECTORY_SEPARATOR.$this->helpFile;
    if(stream_resolve_include_path($file)){
       print file_get_contents($file);
    }
  }