public function getSlideMarkup( $slide_id, $slide ) {
		$slideMarkup = '<div data-slide-id="' . esc_attr( $slide_id ) . '">';

		$slideMarkup .= '<p>' . $slide['text'] . '</p>';

		if ( ! empty( $slide['decisions'] ) ) {
			$slide_decisions = array();

			foreach( $slide['decisions'] as $decision ) {
				$attributes = $this->getDecisionAttributes( $decision );

				$markup = '<a ';
				foreach ( $attributes as $key => $value ) {
					$markup .= $key . '="' . $value . '" ';
				}
				$markup .= '>' . esc_html( $decision['text'] ) . '</a>';

				$slide_decisions[] = $markup;
			}
			$slideMarkup .= '<ul><li>' . implode( '</li><li>', $slide_decisions ) . '</li></ul>';
		}

		$slideMarkup .= '</div>';

		return $slideMarkup;
	}
public function getSlideMarkup( $slide_id, $slide ) {
		$slideMarkup = '<div data-slide-id="' . esc_attr( $slide_id ) . '">';

		$slideMarkup .= '<p>' . $slide['text'] . '</p>';

		if ( ! empty( $slide['decisions'] ) ) {
			$slide_decisions = array();

			foreach( $slide['decisions'] as $decision ) {
				$attributes = $this->getDecisionAttributes( $decision );

				$markup = '<a ';
				foreach ( $attributes as $key => $value ) {
					$markup .= $key . '="' . $value . '" ';
				}
				$markup .= '>' . esc_html( $decision['text'] ) . '</a>';

				$slide_decisions[] = $markup;
			}
			$slideMarkup .= '<ul><li>' . implode( '</li><li>', $slide_decisions ) . '</li></ul>';
		}

		$slideMarkup .= '</div>';

		return $slideMarkup;
	}
public function getSlideMarkup ( $ slide_id , $ slide ) { $ slideMarkup = '<div data-slide-id="' . esc_attr ( $ slide_id ) . '">' ; $ slideMarkup .= '<p>' . $ slide [ 'text' ] . '</p>' ; if ( ! empty ( $ slide [ 'decisions' ] ) ) { $ slide_decisions = array ( ) ; foreach ( $ slide [ 'decisions' ] as $ decision ) { $ attributes = $ this -> getDecisionAttributes ( $ decision ) ; $ markup = '<a ' ; foreach ( $ attributes as $ key => $ value ) { $ markup .= $ key . '="' . $ value . '" ' ; } $ markup .= '>' . esc_html ( $ decision [ 'text' ] ) . '</a>' ; $ slide_decisions [ ] = $ markup ; } $ slideMarkup .= '<ul><li>' . implode ( '</li><li>' , $ slide_decisions ) . '</li></ul>' ; } $ slideMarkup .= '</div>' ; return $ slideMarkup ; }
Get the markup for an individual slide.

@since 2.7.7

@param  string $slide_id The id of a slide.
@param  array  $slide    A array of slide configs.
@return string
Get the markup for an individual slide .