コード例 #1
0
/**
 * [bp_projects_add_template_stack description]
 * @param  [type] $templates [description]
 * @return [type]            [description]
 */
function bp_projects_add_template_stack($templates)
{
    // if we're on a page of our plugin and the theme is not BP Default, then we
    // add our path to the template path array
    if (bp_is_current_component('projects') && !task_breaker_bp_projects_is_bp_default()) {
        $templates[] = task_breaker_template_dir();
    }
    return $templates;
}
コード例 #2
0
                        </a>
                    </li>
                    <li class="task_breaker-project-tab-li-item">
                        <a data-content="task_breaker-project-settings" class="task_breaker-project-tab-li-item-a" href="#tasks/settings">
                            <?php 
        esc_html_e('Settings', 'task-breaker');
        ?>
                        </a>
                    </li>
                </ul>

            </div><!--.task_breaker-project-tabs-->
            <div id="task_breaker-project-tab-content">
                <?php 
        if ($post->post_type == 'project') {
            include task_breaker_template_dir() . '/project.php';
        }
        ?>
            </div>
        <?php 
    } else {
        ?>
            <div class="row">
                <div class="col-xs-1"><i class="material-icons md-36">lock</i></div>
                <div class="col-xs-11">
                    <p>
                        <?php 
        esc_attr_e('This project can only be accessed by group members. Use the button below join the group and receive an access to this project.', 'task-breaker');
        ?>
                    </p>
                </div>