$table .= '<th><b>' . _t('Course Section') . '</b></th>'; $table .= '<th style="width:125px;"><b>' . _t('Title') . '</b></th>'; $table .= '<th><b>' . _t('Instructor') . '</b></th>'; $table .= '<th><b>' . _t('Credits') . '</b></th>'; $table .= '<th><b>' . _t('Days') . '</b></th>'; $table .= '<th><b>' . _t('Time') . '</b></th>'; $table .= '<th><b>' . _t('Location') . '</b></th>'; $table .= '<th><b>' . _t('Building') . '</b></th>'; $table .= '<th><b>' . _t('Room') . '</b></th>'; $table .= '</tr></thead>'; $table .= '<tbody>'; foreach ($catalog as $k => $v) { $table .= '<tr>'; $table .= '<td>' . _h($v['courseSecCode']) . '</td>'; $table .= '<td style="width:125px;">' . _h($v['secShortTitle']) . '</td>'; $table .= '<td>' . get_initials(_h($v['facID']), 1) . '</td>'; $table .= '<td>' . _h($v['minCredit']) . '</td>'; $table .= '<td>' . _h($v['dotw']) . '</td>'; $table .= '<td>' . _h($v['startTime']) . ' ' . _h($v['endTime']) . '</td>'; $table .= '<td>' . _h($v['locationCode']) . '</td>'; $table .= '<td>' . _h($v['buildingCode']) . '</td>'; $table .= '<td>' . _h($v['roomCode']) . '</td>'; $table .= '</tr>'; } $table .= '</tbody>'; $table .= '</table>'; $pdf->AddPage(); $pdf->writeHTML($table, true, 0); // --------------------------------------------------------- // close and output PDF document $pdf->Output('catalog-' . $catalog[0]['termCode'], 'I');
//$values = array_map(function($tag) { return "<a href=\"".$tag->slug."\" rel=\"tag\">$tag->slug</a>"; }, $tags); $values = array_map(function ($tag) { return "<li class=\"filter personTag\" data-filter=\"." . custom_tag_escape($tag->slug) . "\" ><span>" . maxLength($tag->name, 22) . "</span></li>"; }, $tags); $taglist = implode("", $values); $persontags = array_map(function ($tag) { return $tag->slug; }, $tags); } else { //$taglist = "<a href=\"".$tag->slug."\" rel=\"tag\">$tag->slug</a>"; $taglist = "<li class=\"filter personTag\" data-filter=\"." . $tag->slug . "\" >" . maxLength($tag->name, 22) . "</li>"; $persontags = array($tag->slug); } ?> <div class="col-md-4 col-sm-6 col-xs-12 mb_40 mix <?php echo get_initials(get_the_title()) . " "; echo implode(" ", $persontags); ?> "> <div class="mb_15 person-box"> <div class="author_image_sm"> <a href="<?php the_permalink(); ?> " > <?php the_post_thumbnail('people-thumb-sm'); ?> </a> </div> <div class="author_info">
/** * @return string */ public function userAvatar() { $defaultAvatar = get_initials($this->entity->name); return 'holder.js/32x32?text=' . $defaultAvatar['initials']; }