⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⢠⣴⣿⣿⣿⣷⣼⣿⠀⣴⠾⠷⠶⠦⡄⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢠⡤⢶⣦⣾⣿⣿⣿⣿⣿⣿⣿⠀⣿⣶⣶⣦⣄⠳⣤⣤⠄⠀⠀⠀
⠀⠀⠀⢀⣼⣳⡿⢻⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⣿⣗⠈⠙⠻⣶⣄⡀⠀⠀⠀
⠀⠀⠀⣰⠿⠁⢀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡄⠀⠀⠈⠳⣤⠀⠀
⠀⠀⢀⡟⠀⢰⣿⠟⠻⢿⣿⣿⣿⣿⣿⣿⣿⣿⠉⠁⠈⠻⣶⣄⠀⠀⠈⠛⢦   www.github.com/caterscam 
⠀⣀⡼⠃⠀⣼⡟⠀⠀⢸⣿⡿⠉⣿⡿⠿⠛⣿⡄⠀⠀⠀⠙⠿⣆⠀⠀⠀⠈
⠈⠁⠀⠀⢸⡟⠀⠀⠀⢸⣿⠀⠀⣿⠁⠀⠀⠈⠃⠀⠀⠀⠀⠀⠘⢷⡄⠀⠀
⠀⠀⠀⠀⣼⠃⠀⠀⠀⢸⡟⠀⠀⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⡆⠀
⠀⠀⠀⣠⡏⠀⠀⠀⠀⣼⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠻⠃⠀⠀⠀⠀⣻⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ 
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀

Current Dir: /dom834884/wp-content/plugins/noxe-core/wpbakery/elements/

[FILE] award-listing.php [ edit | delete | rename | download ]
[FILE] billboard.php [ edit | delete | rename | download ]
[FILE] blog.php [ edit | delete | rename | download ]
[FILE] button.php [ edit | delete | rename | download ]
[FILE] cinema-listing.php [ edit | delete | rename | download ]
[FILE] countdown.php [ edit | delete | rename | download ]
[FILE] google-maps.php [ edit | delete | rename | download ]
[FILE] heading.php [ edit | delete | rename | download ]
[FILE] image-gallery.php [ edit | delete | rename | download ]
[FILE] image.php [ edit | delete | rename | download ]
[FILE] logos.php [ edit | delete | rename | download ]
[FILE] name-listing.php [ edit | delete | rename | download ]
[FILE] noxe-slider.php [ edit | delete | rename | download ]
[FILE] service-boxes.php [ edit | delete | rename | download ]
[FILE] social-media-listing.php [ edit | delete | rename | download ]
[FILE] taxonomy-listing.php [ edit | delete | rename | download ]
[FILE] team.php [ edit | delete | rename | download ]
[FILE] testimonials.php [ edit | delete | rename | download ]
[FILE] timeline.php [ edit | delete | rename | download ]
[FILE] title-listing.php [ edit | delete | rename | download ]
[FILE] title-search.php [ edit | delete | rename | download ]
[FILE] title-slider.php [ edit | delete | rename | download ]
[FILE] user-box.php [ edit | delete | rename | download ]
[FILE] user-watchlist-favorites.php [ edit | delete | rename | download ]
[FILE] video-player.php [ edit | delete | rename | download ]

Viewing: /dom834884/wp-content/plugins/noxe-core/wpbakery/elements/cinema-listing.php

<?php
/*======
*
* Cinema Listing
*
======*/
if( !function_exists( 'noxe_cinema_listing_element_output' ) ) {

	function noxe_cinema_listing_element_output( $atts, $content = null ) {

		/*====== Atts ======*/
		$atts = shortcode_atts(
			array(
				'items' => '',
				'style' => '',
				'skin' => '',
				'header' => '',
			), $atts
		);

		/*====== Items ======*/
		$items = vc_param_group_parse_atts( $atts['items'] );

		/*====== HTML Output ======*/
		$output = "";

		if( !empty( $items ) ) {

			$output .= '<div class="gt-cinema-listing gt-' . esc_attr( $atts["style"] ) . ' gt-' . esc_attr( $atts["skin"] ) . '">';
				$output .= '<ul>';

					if( $atts["header"] == "true" ) {

						$output .= '<li class="gt-header">';
							$output .= '<div class="gt-inner">';

								$output .= '<div class="gt-date">';
									$output .= esc_html__( 'Date', 'noxe-core' );
								$output .= '</div>';

								$output .= '<div class="gt-cinema-name">';
									$output .= esc_html__( 'Cinema', 'noxe-core' );
								$output .= '</div>';

								$output .= '<div class="gt-address">';
									$output .= esc_html__( 'Address', 'noxe-core' );
								$output .= '</div>';

								$output .= '<div class="gt-button">';
								$output .= '</div>';

							$output .= '</div>';
						$output .= '</li>';

					}

					foreach( $items as $item ) {

						if( !empty( $item ) ) {

							$output .= '<li>';
								$output .= '<div class="gt-inner">';

									if( !empty( $item["date"] ) ) {

										$output .= '<div class="gt-date">' . esc_attr( $item["date"] ) . '</div>';

									}

									if( !empty( $item["cinema-name"] ) ) {

										$output .= '<div class="gt-cinema-name">' . esc_attr( $item["cinema-name"] ) . '</div>';

									}

									if( !empty( $item["address"] ) ) {

										$output .= '<div class="gt-address">' . esc_attr( $item["address"] ) . '</div>';

									}

									if( $item["link-status"] == "true" ) {

										if( !empty( $item["link"] ) ) {

											$link = $item["link"];
											$link = vc_build_link( $link );

											if( !empty( $link["target"] ) ) {

												$link_target = $link["target"];

											} else {

												$link_target = "_parent";

											}

											if( !empty( $link["url"] ) ) {

												$output .= '<div class="gt-button gt-style-4 gt-' . esc_attr( $atts["skin"] ) . '">';
													$output .= '<a href="' . esc_url( $link["url"] ) . '" target="' . esc_attr( $link_target ) . '">' . esc_attr( $link["title"] ) . '</a>';
												$output .= '</div>';

											}

										}


									}

								$output .= '</div>';
							$output .= '</li>';

						}

					}

				$output .= '</ul>';
			$output .= '</div>';

		}

		return $output;

	}
	add_shortcode( "noxe_cinema_listing_element", "noxe_cinema_listing_element_output" );

}

if( function_exists( 'vc_map' ) ) {

	vc_map(
		array(
			"name" => esc_html__( 'Cinema Listing', 'noxe-core' ),
			"base" => "noxe_cinema_listing_element",
			"category" => esc_html__( 'Noxe Theme', 'noxe-core' ),
			"icon" => get_template_directory_uri() . '/includes/assets/img/icons/cinema-listing.svg',
			"params" => array(
				array(
					'type' => 'param_group',
					'param_name' => 'items',
					"heading" => esc_html__( 'Items', 'noxe-core' ),
					"save_always" => true,
					'params' => array(
						array(
							"type" => "textfield",
							"param_name" => "date",
							"heading" => esc_html__( 'Date', 'noxe-core' ),
							"admin_label" => true,
							"save_always" => true,
						),
						array(
							"type" => "textfield",
							"param_name" => "cinema-name",
							"heading" => esc_html__( 'Cinema Name', 'noxe-core' ),
							"admin_label" => true,
							"save_always" => true,
						),
						array(
							"type" => "textfield",
							"param_name" => "address",
							"heading" => esc_html__( 'Address', 'noxe-core' ),
							"save_always" => true,
						),
						array(
							"type" => "dropdown",
							"param_name" => "link-status",
							"heading" => esc_html__( 'Link Status', 'noxe-core' ),
							"save_always" => true,
							"value" => array(
								esc_html__( 'False', 'noxe-core' ) => 'false',
								esc_html__( 'True', 'noxe-core' ) => 'true',
							),
						),
						array(
							"type" => "vc_link",
							"param_name" => "link",
							"heading" => esc_html__( 'Link', 'noxe-core' ),
							"save_always" => true,
						),
					)
				),
				array(
					"type" => "dropdown",
					"param_name" => "style",
					"heading" => esc_html__( 'Style', 'noxe-core' ),
					"admin_label" => true,
					"save_always" => true,
					"value" => array(
						esc_html__( 'Style 1', 'noxe-core' ) => 'style-1',
						esc_html__( 'Style 2', 'noxe-core' ) => 'style-2',
					),
				),
				array(
					"type" => "dropdown",
					"param_name" => "skin",
					"heading" => esc_html__( 'Skin', 'noxe-core' ),
					"admin_label" => true,
					"save_always" => true,
					"value" => array(
						esc_html__( 'Light', 'noxe-core' ) => 'light',
						esc_html__( 'Dark', 'noxe-core' ) => 'dark',
					),
				),
				array(
					"type" => "dropdown",
					"param_name" => "header",
					"heading" => esc_html__( 'Header', 'noxe-core' ),
					"save_always" => true,
					"value" => array(
						esc_html__( 'False', 'noxe-core' ) => 'false',
						esc_html__( 'True', 'noxe-core' ) => 'true',
					),
				),
			),
		)
	);

}
Upload File: