'teachPress original small', 'description' => 'The original 1-line style template for publication lists.', 'author' => 'Michael Winkler', 'version' => '1.2', 'button_separator' => ' | ', 'citation_style' => 'teachPress_small' ); } /** * Returns the body element for a publication list * @param string $content The content of the publication list itself * @param array $args An array with some basic settings for the publication list * @return string */ public function get_body ($content, $args = array() ) { return '' . $content . '
'; } /** * Returns the headline for a publication list or a part of that * @param type $content The content of the headline * @param type $args An array with some basic settings for the publication list * @return string */ public function get_headline ($content, $args = array()) { $id = ( isset( $args['id'] ) ) ? $args['id'] : $content; return '

' . $content . '

'; } /** * Returns the headline (second level) for a publication list or a part of that * @param type $content The content of the headline * @param type $args An array with some basic settings for the publication list * @return string */ public function get_headline_sl ($content, $args = array()) { $id = ( isset( $args['id'] ) ) ? $args['id'] : $content; return '

' . $content . '

'; } /** * Returns the container for publication images * @param string $content The image element * @param string $position The image position: left, right or buttom * @param string $optional_attributes Optional attributes for the framing container element * @return string * @since 8.0.0 */ public function get_image($content, $position, $optional_attributes = '') { return '' . $content . ''; } /** * Returns the single entry of a publication list * @param object $interface The interface object * @return string */ public function get_entry ($interface) { $class = ' tp_publication_simple_' . $interface->get_type(''); $s = ''; $s .= $interface->get_number('', '.'); $s .= $interface->get_images('left'); $s .= ''; $s .= $interface->get_author('', ': '); // $s .= ' (' . $interface->get_year() . '): '; $s .= '' . $interface->get_title() . '. '; $s .= '' . $interface->get_meta() . ' '; $s .= '(' . esc_html__('Type','teachpress') . ': ' . $interface->get_type() . ' | ' . $interface->get_menu_line() . ')'; $s .= $interface->get_infocontainer(); $s .= $interface->get_images('bottom'); $s .= ''; $s .= $interface->get_images('right'); $s .= ''; return $s; } }