예제 #1
0
/**
* [dportfolio]
* This shortcode is used to display the contents of Docu index page 
*/
function dportfolio_shortcode($atts, $content = null)
{
    global $dportfolio_atts;
    $dportfolio_atts = shortcode_atts(array('columns' => '2', 'categories' => 'none', 'view' => 'gallery', 'limit' => 15, 'filter' => 'true', 'filter_type' => 'list'), $atts);
    $template = new DPortfolio_Template_Loader();
    ob_start();
    $template->get_template_part('dportfolio-index');
    return ob_get_clean();
}
예제 #2
0
/**
* loads a template after content 
*/
function custom_dportfolio_after_content()
{
    $template = new DPortfolio_Template_Loader();
    $template->get_template_part('dportfolio-after-single-content');
}