Written by Anonymous
function cocoon_create_html_blog_card($arr) { $url = $arr['url'] ?? ''; $target = $arr['target'] ?? ''; $rel = $arr['rel'] ?? ''; $title = $arr['title'] ?? ''; $thumbnail = $arr['thumbnail'] ?? ''; $snippet = $arr['snippet'] ?? ''; $site_logo_tag = $arr['site_logo_tag'] ?? ''; $date_tag = $arr['date_tag'] ?? ''; $cat = $arr['cat'] ?? ''; $class = $arr['class'] ?? get_additional_internal_blogcard_classes(); $type = $arr['type'] ?? 'internal'; return '<a href="' . $url . '" title="' . esc_attr($title) . '" class="blogcard-wrap ' . $type . '-blogcard-wrap a-wrap cf"' . $target . $rel . '> <div class="blogcard ' . $type . '-blogcard' . $class . ' cf"> <div class="blogcard-label ' . $type . '-blogcard-label"> <span class="fa"></span> </div> <figure class="blogcard-thumbnail ' . $type . '-blogcard-thumbnail">' . $thumbnail . '</figure> <div class="blogcard-content ' . $type . '-blogcard-content"> <div class="blogcard-title ' . $type . '-blogcard-title">' . $title . '</div> <div class="blogcard-snippet ' . $type . '-blogcard-snippet">' . $snippet . '</div> </div> <div class="blogcard-footer ' . $type . '-blogcard-footer cf"> ' . $site_logo_tag . $date_tag . ' </div> </div> </a>'; }