function wikiplugin_rss($data, $params) { global $smarty; global $rsslib; require_once 'lib/rss/rsslib.php'; $params = array_merge(array('max' => 10, 'date' => 0, 'desc' => 0, 'author' => 0, 'icon' => '', 'showtitle' => 1, 'ticker' => 0, 'desclen' => 0), $params); if (!isset($params['id'])) { return WikiParser_PluginOutput::argumentError(array('id')); } $params['id'] = (array) $params['id']; $items = $rsslib->get_feed_items($params['id'], $params['max']); $title = null; if (count($params['id']) == 1) { $module = $rsslib->get_rss_module(reset($params['id'])); if ($module['sitetitle']) { $title = array('title' => $module['sitetitle'], 'link' => $module['siteurl']); } } if ($params['desc'] > 0 && $params['desclen'] > 0) { foreach ($items as &$item) { $item['description'] = limit_text($item['description'], $params['desclen']); } } global $smarty; $smarty->assign('rsstitle', $title); $smarty->assign('items', $items); $smarty->assign('showdate', $params['date'] > 0); $smarty->assign('showtitle', $params['showtitle'] > 0); $smarty->assign('showdesc', $params['desc'] > 0); $smarty->assign('showauthor', $params['author'] > 0); $smarty->assign('icon', $params['icon']); $smarty->assign('ticker', $params['ticker']); return $smarty->fetch('wiki-plugins/wikiplugin_rss.tpl'); }
function _print_blog_category_lists($layout_type, $column = 4) { global $wpdb, $wp_query, $sidebar_layout, $fullwidth_layout; $parentLayout = $fullwidth_layout ? 'fullwidth' : 'content-sidebar'; $content = ''; if ($parentLayout == 'fullwidth') { switch ($layout_type) { case 'default': $content .= '<div class="wrap_940 plus_padding">' . "\n"; if (have_posts()) { while (have_posts()) { the_post(); global $post; $ccat = get_the_category(); $ct = ''; foreach ($ccat as $a => $cct) { if ($a != 0) { $ct .= ', '; } $ct .= '<a href="' . get_category_link($cct->term_id) . '">' . $cct->cat_name . '</a>'; } $num_comments = get_comments_number(); $write_comments = ""; if (comments_open()) { if ($num_comments == 0) { $comments = __('0 Comments', 'wip'); } elseif ($num_comments > 1) { $comments = $num_comments . __(' Comments', 'wip'); } else { $comments = __('1 Comment', 'wip'); } $write_comments = '<a href="' . get_comments_link($post->ID) . '">' . $comments . '</a>'; } else { $write_comments = __('Comment Off', 'wip'); } $content .= '<div class="fullwidth-blog-lists">' . "\n"; /** post with thumbnail */ if (has_post_thumbnail() && wip_get_attached_file($post->ID)) { $content .= '<div class="fullwidth-blog-excerpt">' . "\n"; $content .= '<h3 class="blog-list-title"><a href="' . get_permalink($post->ID) . '" title="' . sprintf(__('Permanent Link to %s', 'wip'), the_title_attribute('echo=0')) . '">' . get_the_title() . '</a></h3>' . "\n"; $content .= '<span class="meta-blog-lists"> ' . __('By', 'wip') . ' <a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . get_the_author_meta('display_name') . '</a> – ' . __('On', 'wip') . ' ' . sprintf(__('%1$s', 'wip'), get_the_time('F d, Y', $post->ID)) . ' – ' . __('In', 'wip') . ' ' . $ct . ' ' . __('With', 'wip') . ' ' . $write_comments . ' </span>' . "\n"; $content .= wpautop(str_replace('[...]', '...', get_the_excerpt())); $content .= '<a href="' . get_permalink($post->ID) . '" title="' . sprintf(__('Permanent Link to %s', 'wip'), the_title_attribute('echo=0')) . '">' . __('Continue Reading', 'wip') . ' →</a>' . "\n"; $content .= '</div>' . "\n"; $content .= '<div class="fullwidth-blog-thumbnail">' . "\n"; $content .= '<a href="' . get_permalink($post->ID) . '" title="' . sprintf(__('Permanent Link to %s', 'wip'), the_title_attribute('echo=0')) . '">' . "\n"; $content .= '<img src="' . wip_print_autoresize(wip_get_attached_file($post->ID), get_thumbOri($post->ID, 'full'), 460, 220) . '" alt="' . the_title_attribute('echo=0') . '"/>'; $content .= '</a>' . "\n"; $content .= '</div>' . "\n"; $content .= '<div class="clear"></div>' . "\n"; } else { $content .= '<h3 class="blog-list-title"><a href="' . get_permalink($post->ID) . '" title="' . sprintf(__('Permanent Link to %s', 'wip'), the_title_attribute('echo=0')) . '">' . get_the_title() . '</a></h3>' . "\n"; $content .= '<span class="meta-blog-lists"> ' . __('By', 'wip') . ' <a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . get_the_author_meta('display_name') . '</a> – ' . __('On', 'wip') . ' ' . sprintf(__('%1$s', 'wip'), get_the_time('F d, Y', $post->ID)) . ' – ' . __('In', 'wip') . ' ' . $ct . ' ' . __('With', 'wip') . ' ' . $write_comments . ' </span>' . "\n"; $content .= wpautop(str_replace('[...]', '...', get_the_excerpt())); $content .= '<a href="' . get_permalink($post->ID) . '" title="' . sprintf(__('Permanent Link to %s', 'wip'), the_title_attribute('echo=0')) . '">' . __('Continue Reading', 'wip') . ' →</a>' . "\n"; } $content .= '</div>' . "\n"; } $content .= wip_pagenavi('', false); } else { $content .= __('No Posts Found!', 'wip'); } wp_reset_postdata(); $content .= '</div><!-- end .wrap_940 -->' . "\n"; break; case 'column': if (have_posts()) { $content .= '<div class="col_wraper no_margin">' . "\n"; $intloop = 0; while (have_posts()) { the_post(); $intloop++; global $post; $colClass = 'col_four'; $colImage = ""; switch ($column) { case '4': $colClass = 'col_four'; $colImage = has_post_thumbnail() && wip_get_attached_file($post->ID) ? wip_print_autoresize(wip_get_attached_file($post->ID), get_thumbOri($post->ID, 'full'), 220, 120) : get_template_directory_uri() . '/images/no-preview.jpg'; break; case '3': $colClass = 'col_three'; $colImage = has_post_thumbnail() && wip_get_attached_file($post->ID) ? wip_print_autoresize(wip_get_attached_file($post->ID), get_thumbOri($post->ID, 'full'), 300, 166) : get_template_directory_uri() . '/images/no-preview.jpg'; break; case '2': $colClass = 'col_two'; $colImage = has_post_thumbnail() && wip_get_attached_file($post->ID) ? wip_print_autoresize(wip_get_attached_file($post->ID), get_thumbOri($post->ID, 'full'), 460, 258) : get_template_directory_uri() . '/images/no-preview.jpg'; break; } $ccat = get_the_category(); $ct = ''; foreach ($ccat as $a => $cct) { if ($a != 0) { $ct .= ', '; } $ct .= '<a href="' . get_category_link($cct->term_id) . '">' . $cct->cat_name . '</a>'; } $num_comments = get_comments_number(); $write_comments = ""; if (comments_open()) { if ($num_comments == 0) { $comments = __('0 Comments', 'wip'); } elseif ($num_comments > 1) { $comments = $num_comments . __(' Comments', 'wip'); } else { $comments = __('1 Comment', 'wip'); } $write_comments = '<a href="' . get_comments_link($post->ID) . '">' . $comments . '</a>'; } else { $write_comments = __('Comment Off', 'wip'); } $content .= '<div class="full-column-blog-lists ' . $colClass . ' float_left">' . "\n"; $content .= '<div class="full-column-blog-thumbnail">' . "\n"; $content .= '<a href="' . get_permalink($post->ID) . '" title="' . sprintf(__('Permanent Link to %s', 'wip'), the_title_attribute('echo=0')) . '">' . "\n"; $content .= '<img src="' . $colImage . '" alt="' . the_title_attribute('echo=0') . '"/>'; $content .= '</a>' . "\n"; $content .= '</div>' . "\n"; $content .= '<h3 class="blog-list-title"><a href="' . get_permalink($post->ID) . '" title="' . sprintf(__('Permanent Link to %s', 'wip'), the_title_attribute('echo=0')) . '">' . get_the_title() . '</a></h3>' . "\n"; if ($column == '4') { $content .= '<span class="meta-blog-lists"> ' . __('By', 'wip') . ' <a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . get_the_author_meta('display_name') . '</a> – ' . __('On', 'wip') . ' ' . sprintf(__('%1$s', 'wip'), get_the_time('F d, Y', $post->ID)) . '</span>' . "\n"; } else { $content .= '<span class="meta-blog-lists"> ' . __('By', 'wip') . ' <a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . get_the_author_meta('display_name') . '</a> – ' . __('On', 'wip') . ' ' . sprintf(__('%1$s', 'wip'), get_the_time('F d, Y', $post->ID)) . ' – ' . __('In', 'wip') . ' ' . $ct . ' ' . __('With', 'wip') . ' ' . $write_comments . ' </span>' . "\n"; } if ($column == '2') { $content .= wpautop(str_replace('[...]', '...', get_the_excerpt())); } else { $content .= wpautop(limit_text(get_the_excerpt(), 120, '...')); } $content .= '</div>' . "\n"; if ($intloop % $column == 0) { $content .= '<div class="clear"></div>' . "\n"; } } if ($intloop % $column != 0) { $content .= '<div class="clear"></div>' . "\n"; } $content .= '</div><!-- end .col_wraper -->' . "\n"; $content .= wip_pagenavi('', false, '<div class="pagination_wrap">', '</div>'); } else { $content .= __('No Posts Found!', 'wip'); } wp_reset_postdata(); break; } } else { /** if content use sidebar */ switch ($layout_type) { case 'default': case 'default-fullwidth': if (have_posts()) { while (have_posts()) { the_post(); global $post; $ccat = get_the_category(); $ct = ''; foreach ($ccat as $a => $cct) { if ($a != 0) { $ct .= ', '; } $ct .= '<a href="' . get_category_link($cct->term_id) . '">' . $cct->cat_name . '</a>'; } $num_comments = get_comments_number(); $write_comments = ""; if (comments_open()) { if ($num_comments == 0) { $comments = __('0 Comments', 'wip'); } elseif ($num_comments > 1) { $comments = $num_comments . __(' Comments', 'wip'); } else { $comments = __('1 Comment', 'wip'); } $write_comments = '<a href="' . get_comments_link($post->ID) . '">' . $comments . '</a>'; } else { $write_comments = __('Comment Off', 'wip'); } $content .= '<div class="standard-blog-lists">' . "\n"; /** post with thumbnail */ if (has_post_thumbnail() && wip_get_attached_file($post->ID)) { $content .= '<div class="standard-blog-thumbnail">' . "\n"; $content .= '<a href="' . get_permalink($post->ID) . '" title="' . sprintf(__('Permanent Link to %s', 'wip'), the_title_attribute('echo=0')) . '">' . "\n"; $content .= '<img src="' . wip_print_autoresize(wip_get_attached_file($post->ID), get_thumbOri($post->ID, 'full'), 700, 260) . '" alt="' . the_title_attribute('echo=0') . '"/>'; $content .= '</a>' . "\n"; $content .= '</div>' . "\n"; } $content .= '<div class="standard-blog-excerpt">' . "\n"; $content .= '<h3 class="blog-list-title"><a href="' . get_permalink($post->ID) . '" title="' . sprintf(__('Permanent Link to %s', 'wip'), the_title_attribute('echo=0')) . '">' . get_the_title() . '</a></h3>' . "\n"; $content .= '<span class="meta-blog-lists"> ' . __('By', 'wip') . ' <a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . get_the_author_meta('display_name') . '</a> – ' . __('On', 'wip') . ' ' . sprintf(__('%1$s', 'wip'), get_the_time('F d, Y', $post->ID)) . ' – ' . __('In', 'wip') . ' ' . $ct . ' ' . __('With', 'wip') . ' ' . $write_comments . ' </span>' . "\n"; $content .= wpautop(str_replace('[...]', '...', get_the_excerpt())); $content .= '<a href="' . get_permalink($post->ID) . '" title="' . sprintf(__('Permanent Link to %s', 'wip'), the_title_attribute('echo=0')) . '">' . __('Continue Reading', 'wip') . ' →</a>' . "\n"; $content .= '</div>' . "\n"; $content .= '</div>' . "\n"; } $content .= wip_pagenavi('', false); } else { $content .= __('No Posts Found!', 'wip'); } wp_reset_postdata(); break; case 'column': if (have_posts()) { $content .= '<div class="col_wraper no_margin">' . "\n"; $intloop = 0; while (have_posts()) { the_post(); $intloop++; global $post; $colClass = 'col_four'; $colImage = ""; switch ($column) { case '4': $colClass = 'col_four'; $colImage = has_post_thumbnail() && wip_get_attached_file($post->ID) ? wip_print_autoresize(wip_get_attached_file($post->ID), get_thumbOri($post->ID, 'full'), 160, 104) : get_template_directory_uri() . '/images/no-preview.jpg'; break; case '3': $colClass = 'col_three'; $colImage = has_post_thumbnail() && wip_get_attached_file($post->ID) ? wip_print_autoresize(wip_get_attached_file($post->ID), get_thumbOri($post->ID, 'full'), 220, 126) : get_template_directory_uri() . '/images/no-preview.jpg'; break; case '2': $colClass = 'col_two'; $colImage = has_post_thumbnail() && wip_get_attached_file($post->ID) ? wip_print_autoresize(wip_get_attached_file($post->ID), get_thumbOri($post->ID, 'full'), 340, 192) : get_template_directory_uri() . '/images/no-preview.jpg'; break; } $ccat = get_the_category(); $ct = ''; foreach ($ccat as $a => $cct) { if ($a != 0) { $ct .= ', '; } $ct .= '<a href="' . get_category_link($cct->term_id) . '">' . $cct->cat_name . '</a>'; } $num_comments = get_comments_number(); $write_comments = ""; if (comments_open()) { if ($num_comments == 0) { $comments = __('0 Comments', 'wip'); } elseif ($num_comments > 1) { $comments = $num_comments . __(' Comments', 'wip'); } else { $comments = __('1 Comment', 'wip'); } $write_comments = '<a href="' . get_comments_link($post->ID) . '">' . $comments . '</a>'; } else { $write_comments = __('Comment Off', 'wip'); } $specialStyle = ""; if ($intloop == 1 || $intloop % $column == 1) { $specialStyle = " no_margin_left"; } if ($intloop % $column == 0) { $specialStyle = " no_margin_right"; } $blogtitle = get_the_title(); if ($column == '4') { $blogtitle = limit_text(get_the_title(), 25); } $content .= '<div class="column-blog-lists ' . $colClass . ' float_left' . $specialStyle . '">' . "\n"; $content .= '<div class="column-blog-thumbnail">' . "\n"; $content .= '<a href="' . get_permalink($post->ID) . '" title="' . sprintf(__('Permanent Link to %s', 'wip'), the_title_attribute('echo=0')) . '">' . "\n"; $content .= '<img src="' . $colImage . '" alt="' . the_title_attribute('echo=0') . '"/>'; $content .= '</a>' . "\n"; $content .= '</div>' . "\n"; $content .= '<h3 class="blog-list-title"><a href="' . get_permalink($post->ID) . '" title="' . sprintf(__('Permanent Link to %s', 'wip'), the_title_attribute('echo=0')) . '">' . $blogtitle . '</a></h3>' . "\n"; if ($column == '4' || $column == '3') { $content .= '<span class="meta-blog-lists"> ' . __('By', 'wip') . ' <a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . get_the_author_meta('display_name') . '</a> – ' . __('On', 'wip') . ' ' . sprintf(__('%1$s', 'wip'), get_the_time('F d, Y', $post->ID)) . '</span>' . "\n"; } else { $content .= '<span class="meta-blog-lists"> ' . __('By', 'wip') . ' <a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . get_the_author_meta('display_name') . '</a> – ' . __('On', 'wip') . ' ' . sprintf(__('%1$s', 'wip'), get_the_time('F d, Y', $post->ID)) . ' – ' . __('In', 'wip') . ' ' . $ct . ' ' . __('With', 'wip') . ' ' . $write_comments . ' </span>' . "\n"; } if ($column != '4') { if ($column == '2') { $content .= wpautop(str_replace('[...]', '...', get_the_excerpt())); } else { $content .= wpautop(limit_text(get_the_excerpt(), 120, '...')); } } $content .= '</div>' . "\n"; if ($intloop % $column == 0) { $content .= '<div class="clear"></div>' . "\n"; } } if ($intloop % $column != 0) { $content .= '<div class="clear"></div>' . "\n"; } $content .= '</div><!-- end .col_wraper -->' . "\n"; $content .= wip_pagenavi('', false, '<div class="pagination_wrap">', '</div>'); } else { $content .= __('No Posts Found!', 'wip'); } wp_reset_postdata(); break; } } return $content; }
the_title_attribute(); ?> "/> </a> </div> <h3 class="blog-list-title"> <a href="<?php the_permalink(); ?> " title="<?php printf(__('Permanent Link to %s', 'wip'), the_title_attribute('echo=0')); ?> "> <?php echo limit_text(get_the_title(), 24); ?> </a> </h3> <span class="meta-blog-lists"> <?php print __('Posted In', 'wip'); ?> <?php the_category(', '); ?> , <?php printf(__('On %1$s', 'wip'), get_the_time('F d, Y', $post->ID)); ?> </span>
/** * Post Grid * */ function posts_grid_shortcode($atts, $content = null) { extract(shortcode_atts(array('type' => '', 'category' => '', 'columns' => '3', 'rows' => '3', 'order_by' => 'date', 'order' => 'DESC', 'meta' => '', 'isdate' => '', 'excerpt_count' => '15', 'link' => 'yes', 'link_text' => 'Read More', 'custom_class' => ''), $atts)); $spans = $columns; // columns switch ($spans) { case '1': $spans = 'span12'; break; case '2': $spans = 'span6'; break; case '3': $spans = 'span4'; break; case '4': $spans = 'span3'; break; case '6': $spans = 'span2'; break; } // check what order by method user selected switch ($order_by) { case 'date': $order_by = 'post_date'; break; case 'title': $order_by = 'title'; break; case 'popular': $order_by = 'hs_comment_count'; break; case 'random': $order_by = 'rand'; break; } // check what order method user selected (DESC or ASC) switch ($order) { case 'DESC': $order = 'DESC'; break; case 'ASC': $order = 'ASC'; break; } // show link after posts? switch ($link) { case 'yes': $link = true; break; case 'no': $link = false; break; } global $post; global $my_string_limit_words; $numb = $columns * $rows; $args = array('post_type' => $type, 'category' => $category, 'numberposts' => $numb, 'orderby' => $order_by, 'order' => $order); $posts = get_posts($args); $i = 0; $count = 1; $output_end = ''; if ($numb > count($posts)) { $output_end = '</ul>'; } $output = '<ul class="posts-grid row-fluid unstyled ' . $custom_class . '">'; for ($j = 0; $j < count($posts); $j++) { $post_id = $posts[$j]->ID; setup_postdata($posts[$j]); $excerpt = get_the_excerpt(); $teampos = get_post_meta($post_id, 'my_team_pos', true); $formaticons = get_post_format($post_id); $link_format_url = get_post_meta($post_id, 'tz_link_url', true); if (has_post_thumbnail($post_id)) { $attachment_url = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), 'standard', true); } if ($count > $columns) { $count = 1; $output .= '<ul class="posts-grid row-fluid unstyled ' . $custom_class . '">'; } $output .= '<li class="' . $spans . '">'; if ($formaticons == "quote") { $output .= '<div class="isotope-item"><div class="format-quote">'; $quote = get_post_meta($post_id, 'tz_quote', true); $author = get_post_meta($post_id, 'tz_author_quote', true); $output .= '<div class="quote-wrap clearfix">'; $output .= '<div class="quote">'; $output .= $quote; $output .= '</div>'; if ($author) { $output .= '<span>'; $output .= '— ' . $author; $output .= '</span>'; } $output .= '</div></div></div>'; } else { if (has_post_thumbnail($post_id)) { $output .= '<div style="position:relative; margin: 0 auto; ">'; $output .= '<figure class="featured-thumbnail-grid"><a class="image-wrap" href="' . get_permalink($post_id) . '" title="' . get_the_title($post_id) . '">'; $output .= '<img src="' . $attachment_url[0] . '" width="' . $attachment_url[1] . '" height="' . $attachment_url[2] . '" alt="' . get_the_title($post_id) . '" />'; $output .= '<div class="zoom-icon"></div>'; $output .= '</a></figure></div>'; } $output .= '<div style="padding:30px 0 30px 0;">'; $output .= '<div class="post_title_grid">'; if ($formaticons == "link") { $output .= '<h5><a href="' . $link_format_url . '" title="' . get_the_title($post_id) . '">'; $output .= $link_format_url; $output .= '</a></h5>'; //Other formats } else { $output .= '<h5><a href="' . get_permalink($post_id) . '" title="' . get_the_title($post_id) . '">'; $output .= get_the_title($post_id); $output .= '</a></h5>'; } if ($isdate == "yes") { $output .= '<span>'; $output .= '<time datetime="' . get_the_time('l, F j, Y', $post_id) . '">' . get_the_time('l, F j, Y', $post_id) . '</time>'; $output .= '</span>'; } $output .= '</div>'; if ($meta == 'yes') { // begin post meta $output .= '<div class="post_meta_grid">'; // post category $output .= '<span class="post_category_grid">'; if ($type != '' && $type != 'post') { $terms = get_the_terms($post_id, $type . '_category'); if ($terms && !is_wp_error($terms)) { $out = array(); $output .= 'Posted in '; foreach ($terms as $term) { $out[] = '<a href="' . get_term_link($term->slug, $type . '_category') . '">' . $term->name . '</a>'; } $output .= join(', ', $out); } } else { $categories = get_the_category(); if ($categories) { $out = array(); $output .= 'Posted in '; foreach ($categories as $category) { $out[] = '<a href="' . get_category_link($category->term_id) . '" title="' . $category->name . '">' . $category->cat_name . '</a> '; } $output .= join(', ', $out); } } $output .= '</span>'; // post author $output .= '<span class="post_author_grid">'; $output .= ' By '; $output .= '<a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . get_the_author_meta('display_name') . '</a>'; $output .= '</span>, '; // post comment count $num = 0; $queried_post = get_post($post_id); $cc = $queried_post->hs_comment_count; if ($cc == $num || $cc > 1) { $cc = $cc . ' Comments'; } else { $cc = $cc . ' Comment'; } $permalink = get_permalink($post_id); $output .= '<span class="post_comment_grid">'; $output .= '<a href="' . $permalink . '" class="comments_link">' . $cc . '</a>'; $output .= '</span>'; $output .= '</div>'; // end post meta } if ($excerpt_count >= 1) { $output .= '<div class="post_excerpt_grid"><p class="excerpt">'; $output .= limit_text($excerpt, $excerpt_count); $output .= '</p></div>'; } if ($link) { $output .= '<span class="post_comment_grid"><a class="btn btn-white btn-large" href="' . get_permalink($post_id) . '" title="' . get_the_title($post_id) . '">'; $output .= $link_text; $output .= '</a></span>'; } $output .= '</div>'; } $output .= '</li>'; if ($j == count($posts) - 1) { $output .= $output_end; } if ($count % $columns == 0) { $output .= '</ul><!-- .posts-grid (end) -->'; } $count++; $i++; } // end for return $output; }
?> " title="<?php echo $issue["user"]["login"]; ?> "></a> </div> <div class="col-sm-11" > <h4 class="list-group-item-heading"><a href="<?php echo $issue["html_url"]; ?> " target="_blank"><?php echo htmlentities($issue["title"]); ?> </a></h4> <p><?php echo limit_text($issue["body"], 35); ?> </p> <ul class="list-inline text-muted small"> <li><a href="<?php echo $repos_array[$repo_name]['url']; ?> " target="_blank"><span class="glyphicon glyphicon-hdd"></span> <?php echo HW_GITHUB_USER; ?> /<?php echo $repo_name; ?> </a></li> <li><span class="glyphicon glyphicon-time"></span> Updated <time class="timeago" datetime="<?php echo $issue["updated_at"];
while ($DATA = mysql_fetch_array($GET)) { $msg = $DATA["msg"]; $msg = str_replace("&", "&", $msg); $author = $DATA["login"]; $level = $DATA["level"]; $orden_d = $DATA["orden"]; $dealer_d = $DATA["dealer"]; $admin_level = $DATA["admin_level"]; $clan_s = $DATA["clan_s"]; $clan_f = $DATA["clan"]; $top_id = $DATA['id']; $cut_count = 300; if ($fid == "palach") { if ($view_id != $top_id) { if (strlen($msg) > $cut_count) { $msg = limit_text($msg, $cut_count) . "<br><br><div align=right><a href='?fid=" . $fid . "&tid=" . $tid . "&page=" . $page . "&view_id=" . $top_id . "'><b>Читать полностью</b></a></div>"; } } } echo "<tr>\n\t\t\t\t\t<td width=250 bgcolor=#d0f5d0 valign=top>\n\t\t\t\t\t\t<script>drwfl('{$author}', '1', '{$level}', '{$dealer_d}', '{$orden_d}', '{$admin_level}', '{$clan_s}', '{$clan_f}');</script>\n\t\t\t\t\t</td>"; echo "<td bgcolor=#e0ffe0 valign=top>"; echo "<table width=100% cellpadding=0 cellspacing=0><tr><td width=15 bgcolor=#99CC99></td><td style='font-size: 8pt;' align=left bgcolor=#d0f5d0> написано: " . $DATA["date"] . " </td><td align=right bgcolor=#d0f5d0>"; if ($USER_DATA["admin_level"] >= 4) { echo "<a href='?action=del_topic&fid={$fid}&tid={$tid}&id={$top_id}' style='text-decoration:none;font-size:8pt;color:#99CC99;'>[Удалить тему]</a> "; echo "<a href=\"javascript:formforum('Добавить ответ','?action=add_comment&fid={$fid}&tid={$tid}&id={$top_id}', 'comment','', '5')\" style='text-decoration:none;font-size:8pt;color:#99CC99;'>[Добавить ответ]</A>"; } if ($USER_DATA["admin_level"] >= 9) { echo " <a href='?action=del_topic_full&fid={$fid}&tid={$tid}&id={$top_id}' style='text-decoration:none;font-size:8pt;color:#99CC99;'>[Удалить Полностью]</a>"; } echo "</td></tr></table>"; echo "<br>" . $msg . "<br><br></td>\n\t\t\t\t</tr>";
echo $posts['url_amigavel']; ?> " name="imagem_destacada"> <img src="admin/images/<?php echo $posts['imagem']; ?> " class="autow" alt="<?php echo $posts['titulo']; ?> "> </a> <?php } ?> <div class="postagem-dental p-topo Cycle fs-20 justfy" style="margin:25px 0"><?php echo limit_text($posts['conteudo'], 50); ?> </div> <a href="blog/<?php echo $posts['url_amigavel']; ?> "><img src="imagens/ler_mais.png"></a> <hr class="hr-blog"> </article> <?php } ?> </div> <div class="categorias-sidebar"> <p class="title-cat-sidebar Oswald fs-20 upper branco textcenter bkg-azul">categorias</p>
?> </span> <span class="ago"> <?php echo ago($comment["created_on"]) . " ago"; ?> </span> </div> <?php } } ?> </div> <br> <br> <div> <?php $content = limit_text(trim(strip_tags($posts["content"])), 20); ?> <a href="javascript:void(0)" target="_blank" class="fb-share-post" title="Share this car on facebook">Share on facebook</a> <a class="twitter-share-button" href="https://twitter.com/share" data-size="small" data-url="<?php echo site_url("post/" . $posts['url']); ?> " data-text="<?php echo $posts['title']; ?> " data-count="none" >Share on Twitterrrrrrrrrrrr</a> </div>
foreach ($authors as $author) { $author_info = get_userdata($author->ID); $attachment_id = get_user_meta($author->ID, 'avatar_manager_custom_avatar', true); $custom_avatar = get_post_meta($attachment_id, '_avatar_manager_custom_avatar', true); $avatar_url = avatar_manager_generate_avatar_url($attachment_id, 300); ?> <div class="redactie__member"> <div class="redactie__member-meta" onclick=""> <div> <h3 class="redactie__member-title"><?php echo $author->display_name; ?> </h3> <p class="redactie__member-summery"> <?php echo limit_text($author->description, 35); ?> </p> </div> </div> <img class="redactie__img" src="<?php echo $avatar_url; ?> "/> </div> <?php } } else { echo 'No authors found'; } ?>
| <a href="<?php echo get_permalink(70); ?> ">Foreign Titles</a> | <a href="<?php echo get_permalink(72); ?> ">Awards</a> |</p> </div> </div> <div class="line-news"></div> </div> <div class="col-sm-12"> <?php $page = get_page('68'); $content = apply_filters('the_content', limit_text($page->post_content, 40)); $link = get_permalink($page); echo $content; echo "<a href='{$link}'>Read more</a>"; ?> </div> </div> </div> </div> <!-- close .row --> </div> <!-- close .main-content --> <?php $CT1 = array('post_type' => 'creator', 'posts_per_page' => -1, 'paged' => get_query_var('paged'), 'meta_query' => array(array('key' => 'creator_types', 'value' => 'CT1', 'compare' => 'LIKE')));
default: require_once "include/profile/default.php"; break; } // end content // news $template->loadTemplateFile("footer.tpl"); $template->setCurrentBlock("news"); $template->setVariable("NEWS", "Intranet News"); //$template->parseCurrentBlock(); $json = getJson($url_json); //die($json); $arr = json_decode($json); //var_dump($arr); $template->setCurrentBlock("article"); foreach ($arr as $obj) { //die$obj->guid; $template->setVariable("NEWSLINK", $obj->guid); $template->setVariable("NEWSTITLE", $obj->post_title); $template->setVariable("NEWSCONTENT", limit_text($obj->post_content, 15)); $template->setVariable("NEWSDATE", $obj->post_date); $template->setVariable("NEWSAUTHOR", $obj->user_nicename); $template->parseCurrentBlock(); } $template->parse("newsinner"); $template->show(); ?>
<div id="<?php get_part($the_video_id); ?> " class="block <?php get_part($the_video_status); ?> "> <div class="screenshot"> <a href="<?php get_part($the_video_permalink); ?> "> <img src="<?php get_part($the_video_thumbnail); ?> " /> </a> </div> <h2><?php limit_text($the_video_title, '25'); ?> </h2> <p><?php limit_text($the_video_description, '70'); ?> </p> </div>
<th>Employer <i class="fa fa-sort"></i></th> <th>Actions</th> </tr> </thead> <tbody> <?php if (isset($consultant) && $consultant->num_rows() > 0) { foreach ($consultant->result_array() as $count => $consultant) { ?> <tr> <td><?php echo ucfirst($consultant['conslt_name']); ?> </td> <td><?php echo limit_text($consultant['conslt_skill'], 50); ?> </td> <td><?php echo $consultant['conslt_buy_price']; ?> </td> <td><?php echo $consultant['conslt_sell_price']; ?> </td> <td></td> <td></td> <td> <a href="<?php echo site_url('consultants/editconsultant/' . $consultant['conslt_id']);
</a> <?php } ?> <h1 class="Cycle fs-24"> <a href="blog/<?php echo $relatedDado['url_amigavel']; ?> " style="color:#3f3f3f !important"> <?php echo $relatedDado['titulo']; ?> </a> </h1> <div class="Cycle fs-20"><?php echo limit_text($relatedDado['conteudo'], 45); ?> </div> <a href="blog/<?php echo $relatedDado['url_amigavel']; ?> "> <img src="imagens/bot-leiamais-blog.png" alt="<?php echo $relatedDado['titulo']; ?> " style="margin-left:-4px; margin-top:20px" /> </a> </div> <?php } ?>
<!DOCTYPE html> <html lang="en"> <head> <?php if (!$error) { ?> <title><?php echo $trail['name']; ?> - Prescription Trails - <?php echo $trail['city']; ?> </title> <meta name="description" content="<?php echo limit_text($metaDesc, 24); ?> " /> <!-- Schema.org markup for Google+ --> <meta itemprop="image" content="<?php echo $trail['thumbURL']; ?> "> <link rel="canonical" href="<?php if ($pretty_urls) { echo $trail['url']; } else { echo $baseurl . "trail/?id=" . $trail['id']; } ?>
<th class="text-right">Price</th> </tr> <?php foreach ($products->result_array() as $count => $product) { ?> <tr> <td><input type="checkbox" name="products_lookup_ids[]" value="<?php echo $product['product_id']; ?> "></td> <td><?php echo $product['product_name']; ?> </td> <td><?php echo limit_text($product['product_description'], 30); ?> </td> <td class="text-right"><?php echo format_amount($product['product_unitprice'], 2); ?> </td> </tr> <?php } ?> </table> </div> <div class="modal-footer"> <button class="btn btn-primary" id="select-products-confirm" type="button"><i class="fa fa-check"></i> Add Products</button> <button class="btn btn-danger" type="button" data-dismiss="modal"><i class="fa fa-times"></i> Cancel </button>
/** * Show most commented blog listing * @param $count = number of posts * @param $thumbnail = show thumbnail or not, default true * @param $excerpt = show excerpt or not, default true * @param $excerptlength = length of excerpt text * * @return lists */ function wipfr_most_commented_blog($count = 5, $thumbnail = true, $excerpt = true, $excerptlength = 55) { global $wpdb; $return = ""; $result = "SELECT * FROM {$wpdb->posts} WHERE post_type = 'post' AND post_status = 'publish' ORDER BY comment_count DESC LIMIT 0 , {$count}"; $popularposts = $wpdb->get_results($result, OBJECT); if ($popularposts) { $return = '<ul class="news_widget_style">' . "\n"; global $post; foreach ($popularposts as $post) { setup_postdata($post); $img = get_thumbOri($post->ID); if (!has_post_thumbnail($post->ID)) { $img = get_template_directory_uri() . "/images/no-post-thumbnail.jpg"; } $return .= '<li' . (!$thumbnail ? '' : ' class="news_widget_style_with_thumbnail"') . '>'; $return .= '<h3><a href="' . get_permalink($post->ID) . '" title="' . sprintf(__('permanent link to %s', 'wip'), the_title_attribute('echo=0')) . '">' . get_the_title($post->ID) . '</a></h3>' . "\n"; if ($thumbnail) { $return .= '<img class="news_widget_style_thumbnail" src="' . $img . '" alt="' . the_title_attribute('echo=0') . '" />' . "\n"; } if ($excerpt) { $return .= wpautop(limit_text(get_the_excerpt(), $excerptlength, '...')) . "\n"; } $return .= '</li>' . "\n"; } wp_reset_query(); $return .= '</ul>' . "\n"; } else { $return = __('No Posts that match your criteria!', 'wip'); } return $return; }
/** * Create a template for load author posts * @param $query Contains the parameters */ function myTemplate($query) { // Launch the query query_posts($query); if (have_posts()) { while (have_posts()) { the_post(); $allCategories = array(); $categories = get_the_category(); for ($i = 0; $i < count($categories); $i++) { $allCategories[] = '<a href="' . get_category_link($categories[$i]->cat_ID) . '" >' . $categories[$i]->cat_name . '</a>'; } echo '<div style="width: 100%; float: left; position: relative; margin-bottom: 5px;">'; echo '<div style="width: 100%; min-height: 90px; float: left; border-bottom: 2px solid #F2F0F0; background: white; margin-left: 0px; position: relative;">'; echo '<div style="max-width: 100px; max-height: 100px; float: left; margin-top: 10px; position: relative; width: 200%;" >'; echo '<a href="' . get_edit_post_link() . '">'; the_post_thumbnail(thumbnail); echo '</a>'; echo '</div>'; echo '<div style="float: left; width: 78%; min-height: 105px; margin-top: 5px; margin-left: 2%; position: relative; margin-bottom: 5px;">'; echo '<h3 style="font-size: 20px !important; margin-top: 5px !important; margin-bottom: 0.1em !important;">'; echo '<a href="' . get_edit_post_link() . '">'; the_title(); echo '</a>'; echo '</h3>'; echo '<span style="float: left; width: 100%; height: 10px; margin-bottom: 5px; color: #A0A5A9; font-size: 11px; font-style: italic; font: 08px "Droid Serif", Georgia, "Times New Roman", Times, serif; text-align: right; ">' . get_the_date() . '</span>'; echo '<div class="excerpt">'; echo limit_text(get_the_excerpt(), 30); echo '</div>'; echo '</div>'; echo '<div id="article-footer">'; echo '<div style="width: 50%; height: 30px; float: left; margin-bottom: 2px; font-size:11px; line-height: 30px;">'; echo __('Categories', 'agora-functions') . implode(" | ", $allCategories); echo '</div>'; if (get_comments_number()) { echo '<div style="width: 40%; float: right; color: #1fa799 !important;">'; echo '<span style="float: right; margin: 0 0 0 7px; font-size: 26px; font-weight: bold; line-height: 1; text-shadow: 0 1px 0 white; font-style: italic;">' . get_comments_number() . '</span>'; echo '<span style="font-size:11px; line-height: 28px; float: right; margin: 0 0 0 7px; font: italic 11px "Droid Serif",Georgia,"Times New Roman",Times,serif;">'; echo __('Comments', 'agora-functions'); echo "</span>"; echo '</div>'; } echo '</div>'; echo '<div style="clear:both"></div>'; echo '</div>'; echo '</div>'; } } else { echo __('Article not found', 'agora-functions'); } //Reset Query wp_reset_query(); }
<?php } ?> <h3 class="Cycle fs-20 cinza bolder"> <a href="blog/<?php echo $relacionados['url_amigavel']; ?> " style="color:#3f3f3f !important"> <?php echo $relacionados['titulo']; ?> </a> </h3> <div class="Cycle fs-16 cinza"> <?php echo limit_text($relacionados['conteudo'], 30); ?> </div> <a href="blog/<?php echo $relacionados['url_amigavel']; ?> "> <img src="imagens/ler_mais.png" style="margin-left:-5px;margin-top:25px"> </a> </div> <?php } ?> </div> </div> </div>
?> </h3> <span class="small">#<?php echo $row->id; ?> , <?php echo JHtml::_('date', $row->created_date, $this->dateFormat); ?> | <strong><?php echo $row->name; ?> </strong> </span><br /> <?php echo limit_text($row->message); ?> </div> <?php $k = 1 - $k; } ?> <div class="pagination"><?php echo $this->pagination->getListFooter(); ?> </div>
echo $contestId; ?> "><?php echo $videoTitle; ?> </a> </h2> <p class="pull-right" style="margin: 0px;padding: 0px;"><small><em>Post date :<?php echo $new_date; ?> </em></small></p> <p style="margin: 0px;padding: 0px;"><small><em>Posted by: <a href="#" title=""><?php echo getUserField('username', $userId); ?> </em></a></small></p> <p><?php echo limit_text($videoDescription, 12); ?> <a href="single.php?videoid=<?php echo $videoId; ?> &contestid=<?php echo $contestId; ?> ">Readmore</a></p> </div> <div class="ratings"> <div class="videoRateing"> <div id="ratings"></div> <strong><?php
public function action_search() { $params = $this->input->get(NULL, TRUE); $data = $this->m_wap->search($params['data']); $num_row = $this->m_wap->get_num_row('game_app', array('type' => 'app', 'status' => 'active', 'cate' => $params['cat'])); if (!empty($data)) { foreach ($data as $key => $value) { $temp = json_decode($value['download_url'], TRUE); unset($temp['plist']); $k = array_keys($temp); $class = 'a.click-download-game-' . $value['id_game_app']; $sub = 'ung-dung'; if ($value['type'] == 'game') { $sub = 'game'; } $result .= ' <li class="ui-li-has-alt ui-li-has-thumb"> <a href="' . base_url($sub . '/' . utf8_to_ascii($value['name']) . '-' . $value['id_game_app'] . '.html') . '" class="ui-btn"> <img src="' . base_url($value["icon"]) . '" /> <h2>' . $value['name'] . '</h2> <p id="info-game"> ' . $value["count_download"] . 'tải | ' . $value['size'] . ' kb</p> <p id="descript-game">' . limit_text($value["description"], 20) . '</p> </a> <a href="#purchase-app" data-rel="popup" onclick="abc' . $value['id_game_app'] . '();" data-position-to="window" data-transition="pop" aria-haspopup="true" aria-owns="purchase" aria-expanded="false" class="ui-btn ui-btn-icon-notext ui-icon-gear ui-btn-a" title=""></a> <div class="free-download">FREE</div> </li> <script> function abc' . $value['id_game_app'] . '(){ var _json = \'' . json_encode($k) . '\'; var _id_game = \'' . $value['id_game_app'] . '\' var _obj = JSON.parse(_json); var _html = ""; if (platform == "pc") { for (var key in _obj) { _html += \'<a target="_blank" href="' . base_url() . 'tai-game?id=\' + _id_game + \'&platform=\' + _obj[key] + \'" data-ajax="false"><button class="ui-bnt ui-btn ui-shadow ui-corner-all" style="text-transform: uppercase">\' + _obj[key] + \'</button></a>\'; $(\'.bnt-download-game\').html(_html); } }else{ $(\'#purchase-app\').remove(); for (var key in _obj) { if (_obj[key] == \'' . $_SESSION['platform'] . '\') { _html = \'' . base_url() . 'tai-game?id=\' + _id_game + \'&platform=\' + _obj[key]; if (confirm(\'Bạn có tải ứng dụng?\')) { window.open(_html); } } } } } </script> '; } } $array_result = array('isLoadmore' => check_last_page($offset, $num_row), 'html' => $result, 'page' => $params['page'] + 1); die(json_encode($array_result)); }
echo base_url($value['icon']); ?> " class="img-list-game-app"/> <h2><?php echo $value['name']; ?> </h2> <p id="info-game"><?php echo $value['count_download']; ?> tải | <?php echo $value['size']; ?> MB</p> <p id="descript-game"><?php echo limit_text($value['description'], 20); ?> </p> </a> <a href="#purchase-app" data-rel="popup" class="click-download-app" id-game="<?php echo $value['id_game_app']; ?> " download=' <?php echo json_encode($k); ?> ' data-position-to="window" data-transition="pop">FREE</a> <div class="free-download">FREE</div> </li> <?php } }
/** * Displays custom posts widget on blog. */ function widget($args, $instance) { global $post; $post_old = $post; // Save the post object. extract($args); if (isset($instance['excerpt_length'])) { $limit = apply_filters('widget_title', $instance['excerpt_length']); } else { $limit = 0; } $valid_sort_orders = array('date', 'title', 'rand'); if (in_array($instance['sort_by'], $valid_sort_orders)) { $sort_by = $instance['sort_by']; $sort_order = (bool) $instance['asc_sort_order'] ? 'ASC' : 'DESC'; } else { // by default, display latest first $sort_by = 'date'; $sort_order = 'DESC'; } // Get array of post info. $args = array('showposts' => $instance["num"], 'post_type' => 'post', 'orderby' => $sort_by, 'order' => $sort_order, 'tax_query' => array('relation' => 'AND', array('taxonomy' => 'post_format', 'terms' => array('post-format-aside', 'post-format-gallery', 'post-format-link', 'post-format-image', 'post-format-quote', 'post-format-audio', 'post-format-video'), 'operator' => 'NOT IN'))); $cat_posts = new WP_Query($args); echo $before_widget; // Widget title // If title exist. if ($instance["title"]) { echo $before_title; echo $instance["title"]; echo $after_title; } // Posts list if ($instance['container_class'] == "") { echo "<ul class='post-list unstyled'>\n"; } else { echo "<ul class='post-list unstyled " . $instance['container_class'] . "'>\n"; } $limittext = $limit; $posts_counter = 0; while ($cat_posts->have_posts()) { $cat_posts->the_post(); $posts_counter++; ?> <?php if ($instance['posttype'] == "testi") { $custom = get_post_custom($post->ID); $testiname = $custom["testimonial-name"][0]; $testiurl = $custom["testimonial-url"][0]; } ?> <li class="cat_post_item-<?php echo $posts_counter; ?> clearfix"> <div class="small"> <?php if ($instance['date']) { ?> <time datetime="<?php the_time('Y-m-d\\TH:i'); ?> "><?php the_time('F j, Y'); ?> </time> <?php } ?> <?php if ($instance['comment_num']) { ?> | <span class="post-list_comment"><?php comments_number(); ?> </span> <?php } ?> </div> <div class="post-list_h"> <?php if ($instance['show_title']) { ?> <a class="post-title" href="<?php the_permalink(); ?> " rel="bookmark" title="<?php the_title_attribute(); ?> "><?php if ($instance['show_title_date']) { ?> [<?php the_time('m-d-Y'); ?> ]<?php } else { the_title(); } ?> </a><br /> <?php } ?> <?php if (has_post_thumbnail()) { if ($instance["thumb"]) { ?> <div style="margin: 12px 0 0 0;"> <figure class="featured-thumbnail thumbnail large"> <div class="hider-page"></div> <?php if ($instance['thumb_as_link']) { ?> <a class="image-wrap" href="<?php the_permalink(); ?> "> <?php } ?> <?php the_post_thumbnail('standard'); ?> <?php if ($instance['thumb_as_link']) { ?> <span class="zoom-icon"></span></a> <?php } ?> </figure> </div> <?php } } ?> <?php if ($instance['excerpt']) { ?> <div class="para"> <?php if ($limittext == "" || $limittext == 0) { ?> <?php if ($instance['excerpt_as_link']) { ?> <a href="<?php the_permalink(); ?> "> <?php } ?> <?php $excerpt = get_the_content(); echo limit_text($excerpt, $limittext); ?> <?php if ($instance['excerpt_as_link']) { ?> </a> <?php } ?> <?php } else { ?> <?php if ($instance['excerpt_as_link']) { ?> <a href="<?php the_permalink(); ?> "> <?php } ?> <?php $excerpt = get_the_content(); echo limit_text($excerpt, $limittext); ?> <?php if ($instance['excerpt_as_link']) { ?> </a> <?php } ?> <?php } ?> </div> <?php } ?> </div> <?php if ($instance['posttype'] == "testi") { ?> <div class="name-testi"><span class="user"><?php echo $testiname; ?> </span>, <a href="<?php echo $testiurl; ?> "><?php echo $testiurl; ?> </a></div> <?php } ?> <?php if ($instance['more_link']) { ?> <a href="<?php the_permalink(); ?> " class="<?php if ($instance['more_link_class'] != "") { echo $instance['more_link_class']; } else { ?> link<?php } ?> "><?php if ($instance['more_link_text'] == "") { ?> Read more<?php } else { echo $instance['more_link_text']; } ?> </a> <?php } ?> </li><!--//.post-list_li --> <?php } ?> <?php echo "</ul>\n"; ?> <?php if ($instance['global_link']) { ?> <a href="<?php echo $instance['global_link_href']; ?> " class="btn btn-primary link_show_all"><?php if ($instance['global_link_text'] == "") { ?> View all<?php } else { echo $instance['global_link_text']; } ?> </a> <?php } ?> <?php echo $after_widget; $post = $post_old; // Restore the post object. }
<div class="post_content"> <?php $post_excerpt = of_get_option('post_excerpt'); $blog_excerpt = of_get_option('blog_excerpt_count'); ?> <?php if ($post_excerpt == 'true') { ?> <div class="excerpt"> <?php $content = get_the_content(); if (has_excerpt()) { the_excerpt(); } else { echo limit_text($content, $blog_excerpt); } ?> </div> <?php } else { if ($post_excerpt == '') { the_content('<div class="readmore-button">' . theme_locals("continue_reading") . '</div>'); wp_link_pages('before=<div class="pagelink">&after=</div>'); ?> <div class="clear"></div> <?php } } ?>
public static function getMetaSeo($modelName, $modelId = null) { if (!$modelId) { $seoMeta = AdminSeo::where('model_name', $modelName)->first(); return $seoMeta; } $seoMeta = AdminSeo::where('model_name', $modelName)->where('model_id', $modelId)->first(); $meta = $modelName::find($modelId); if ($seoMeta->title_site == '') { $seoMeta->title_site = $meta->name; } if ($seoMeta->description_site == '') { $seoMeta->description_site = limit_text(strip_tags($meta->description), TEXTLENGH_DESCRIPTION); } if ($seoMeta->keyword_site == '') { $seoMeta->keyword_site = 'Game ' . $meta->name . ', trò chơi ' . $meta->name . ', game cho mobile hay nhất tại choinhanh.vn'; } if ($seoMeta->title_fb == '') { $seoMeta->title_fb = $meta->name; } if ($seoMeta->description_fb == '') { $seoMeta->description_fb = limit_text(strip_tags($meta->description), TEXTLENGH_DESCRIPTION); } // if($seoMeta->image_url_fb == '') { // $seoMeta->image_url_fb = url(UPLOAD_GAME_AVATAR . '/' . $meta->image_url); // } return $seoMeta; }