1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Builder section model
*
* @since 3.16.0
* @version 3.17.2
*/
?>
<script type="text/html" id="tmpl-llms-section-template">
<span class="llms-drag-utility drag-section"></span>
<header class="llms-builder-header">
<h2 class="llms-headline">
<?php echo get_post_type_object( 'section' )->labels->singular_name; ?> {{{ data.order }}}:
<span class="llms-input" contenteditable="true" data-attribute="title" data-original-content="{{{ data.title }}}" data-required="required">{{{ data.title }}}</span>
</h2>
<div class="llms-action-icons">
<# if ( ! data._expanded ) { #>
<a class="llms-action-icon expand tip--top-right" data-tip="<?php esc_attr_e( 'Expand section', 'lifterlms' ); ?>" href="#llms-toggle">
<span class="fa fa-plus-circle"></span>
</a>
<# } #>
<# if ( data._expanded ) { #>
<a class="llms-action-icon collapse tip--top-right" data-tip="<?php esc_attr_e( 'Collapse section', 'lifterlms' ); ?>" href="#llms-toggle">
<span class="fa fa-minus-circle"></span>
</a>
<# } #>
<a class="llms-action-icon shift-up--section tip--top-right" data-tip="<?php esc_attr_e( 'Shift up', 'lifterlms' ); ?>" href="#llms-shift">
<span class="fa fa-caret-square-o-up"></span>
</a>
<a class="llms-action-icon shift-down--section tip--top-right" data-tip="<?php esc_attr_e( 'Shift down', 'lifterlms' ); ?>" href="#llms-shift">
<span class="fa fa-caret-square-o-down"></span>
</a>
<?php if ( current_user_can( 'delete_course', $course_id ) ) : ?>
<a class="llms-action-icon trash--section danger tip--top-right" data-tip="<?php esc_attr_e( 'Delete Section', 'lifterlms' ); ?>" href="#llms-trash-model">
<span class="fa fa-trash"></span>
</a>
<?php endif; ?>
</div>
</header>
<ul class="llms-lessons<# if ( data._expanded ) { #> expanded<# } #>" id="llms-lessons-{{{ data.id }}}"></ul>
</script>