Hi
I installed the Creativity quickstart but on the front page, the Portfolio doesn't appear to be working. Should it work or have I missed something?
Thanks
<div class="box bigtitle all widget_gk_portfolio" id="widget_gk_portfolio-2">
<h3 class="box-title">What we do <small>We create ideas with passion! See our current works</small></h3>
<div data-rows="2" data-cols="3" class="gk-portfolio active">
<div class="gk-images-wrapper gk-images-cols3 animate_queue">
</div>
<a data-text="false" class="gk-load-more border bigbutton" href="?cat=102">More work</a>
</div>
</div>
function generate_art_image($i, $art_ID) {
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $art_ID ), 'single-post-thumbnail' );
$image_path = $image[0];
$upload_dir = wp_upload_dir();
$image_path = str_replace($upload_dir['baseurl'] . '/', '', $image_path);
if($image_path != '') {
$img_editor = wp_get_image_editor( $upload_dir['basedir'] . '/' . $image_path);
if(!is_wp_error($img_editor)) {
$img_editor->resize($this->wdgt_config['article_image_w'], $this->wdgt_config['article_image_h'], true);
$img_filename = $img_editor->generate_filename( $this->id, dirname(__FILE__) . '/' . 'cache_nsp');
$img_editor->save($img_filename);
$new_path = basename($img_filename);
$cache_uri = get_template_directory_uri() . '/gavern/cache_nsp/';
if(is_string($new_path)) {
$new_path = $cache_uri . $new_path;
return $new_path;
} else {
return false;
}
} else {
return false;
}
} else {
return false;
}
}