PluginProbe ʕ •ᴥ•ʔ
Responsive Lightbox & Gallery / 2.3.1
Responsive Lightbox & Gallery v2.3.1
2.7.8 trunk 1.0.0 1.0.1 1.0.1.1 1.0.2 1.0.3 1.0.4 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4.0 1.4.0.1 1.4.1 1.4.11 1.4.12 1.4.13 1.4.14 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.6.0 1.6.1 1.6.10 1.6.11 1.6.12 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.3.1 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.6.0 2.6.1 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7
responsive-lightbox / includes / class-folders-walker.php
responsive-lightbox / includes Last commit date
providers 5 years ago class-fast-image.php 8 years ago class-folders-walker.php 7 years ago class-folders.php 5 years ago class-frontend.php 5 years ago class-galleries.php 5 years ago class-multilang.php 5 years ago class-remote-library-api.php 5 years ago class-remote-library.php 5 years ago class-settings.php 5 years ago class-tour.php 5 years ago class-welcome.php 5 years ago class-widgets.php 5 years ago functions.php 5 years ago
class-folders-walker.php
68 lines
1 <?php
2 // exit if accessed directly
3 if ( ! defined( 'ABSPATH' ) )
4 exit;
5
6 class Responsive_Lightbox_Folders_Walker extends Walker {
7
8 var $tree_type = 'category';
9 var $db_fields = array(
10 'parent' => 'parent',
11 'id' => 'term_id'
12 );
13
14 /**
15 * Starts the list before the elements are added.
16 *
17 * @param string $output Passed by reference, used to append additional content
18 * @param int $depth Depth of the item
19 * @param array $args An array of additional arguments
20 */
21 function start_lvl( &$output, $depth = 0, $args = array() ) {
22 $output .= str_repeat( "\t", $depth ) . "<ul class='children'>\n";
23 }
24
25 /**
26 * Ends the list of after the elements are added.
27 *
28 * @param string $output Passed by reference, used to append additional content
29 * @param int $depth Depth of the item
30 * @param array $args An array of additional arguments
31 */
32 function end_lvl( &$output, $depth = 0, $args = array() ) {
33 $output .= str_repeat( "\t", $depth ) . "</ul>\n";
34 }
35
36 /**
37 * Start the element output.
38 *
39 * @param string $output Passed by reference, used to append additional content
40 * @param object $category The current term object
41 * @param int $depth Depth of the item
42 * @param array $args An array of additional arguments
43 * @param int $id ID of the current item
44 */
45 function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
46 extract( $args );
47
48 if ( empty( $taxonomy ) )
49 $taxonomy = Visual_Folders()->options['general']['media_taxonomy'];
50
51 $class = in_array( $category->term_id, $popular_cats ) ? ' class="popular-category"' : '';
52
53 $output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" . '<label class="selectit"><input value="' . $category->slug . '" type="checkbox" name="' . $taxonomy . '_terms[' . $category->slug . ']" id="in-' . $taxonomy . '-' . $category->term_id . '" ' . checked( in_array( $category->term_id, $selected_cats ), true, false ) . ' ' . disabled( empty( $args['disabled'] ), false, false ) . ' /> ' . esc_html( apply_filters( 'the_category', $category->name ) ) . '</label>';
54 }
55
56 /**
57 * Ends the element output, if needed.
58 *
59 * @param string $output Passed by reference, used to append additional content
60 * @param object $category The current term object
61 * @param int $depth Depth of the item
62 * @param array $args An array of additional arguments
63 */
64 function end_el( &$output, $category, $depth = 0, $args = array() ) {
65 $output .= "</li>\n";
66 }
67 }
68