Version Description
- 2018-01-29
Download this release
Release Info
Developer | codeinwp |
Plugin | Orbit Fox by ThemeIsle |
Version | 2.3.3 |
Comparing to | |
See all releases |
Code changes from version 2.3.2 to 2.3.3
- CHANGELOG.md +3 -3
- core/app/class-orbit-fox-admin.php +35 -1
- core/assets/css/orbit-fox-admin.css +2 -2
- core/includes/class-orbit-fox.php +3 -1
- obfx_modules/companion-legacy/inc/hestia/inc/features/feature-features-section.php +2 -2
- obfx_modules/companion-legacy/inc/hestia/inc/features/feature-ribbon-section.php +1 -1
- obfx_modules/companion-legacy/inc/hestia/inc/features/feature-team-section.php +2 -2
- obfx_modules/companion-legacy/inc/hestia/inc/features/feature-testimonials-section.php +2 -2
- obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-clients-bar-section.php +5 -0
- obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-features-section.php +2 -2
- obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php +31 -14
- obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php +34 -15
- readme.md +4 -4
- readme.txt +4 -4
- themeisle-companion.php +1 -1
- themeisle-hash.json +1 -1
- vendor/autoload.php +1 -1
- vendor/codeinwp/full-width-page-templates/builders/class-elementor-full-width-templates.php +3 -5
- vendor/codeinwp/full-width-page-templates/class-full-width-templates.php +4 -6
- vendor/codeinwp/full-width-page-templates/composer.json +2 -1
- vendor/codeinwp/full-width-page-templates/themes/twentyseventeen/inline-style.php +14 -16
- vendor/composer/autoload_real.php +5 -5
- vendor/composer/installed.json +5 -5
CHANGELOG.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
|
2 |
-
### v2.3.
|
3 |
**Changes:**
|
4 |
-
*
|
5 |
-
*
|
6 |
|
7 |
### v2.3.1 - 2018-01-17
|
8 |
**Changes:**
|
1 |
|
2 |
+
### v2.3.3 - 2018-01-29
|
3 |
**Changes:**
|
4 |
+
* Allow HTML tags in Hestia customizer settings;
|
5 |
+
* Add alt text for images in Hestia sections;
|
6 |
|
7 |
### v2.3.1 - 2018-01-17
|
8 |
**Changes:**
|
core/app/class-orbit-fox-admin.php
CHANGED
@@ -130,6 +130,40 @@ class Orbit_Fox_Admin {
|
|
130 |
add_submenu_page( 'obfx_companion', __( 'Orbit Fox General Options', 'themeisle-companion' ), __( 'General Settings', 'themeisle-companion' ), 'manage_options', 'obfx_companion' );
|
131 |
}
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
/**
|
134 |
* Calls the orbit_fox_modules hook.
|
135 |
*
|
@@ -297,7 +331,7 @@ class Orbit_Fox_Admin {
|
|
297 |
$checked = 'checked';
|
298 |
}
|
299 |
|
300 |
-
$data
|
301 |
'slug' => $slug,
|
302 |
'name' => $module->name,
|
303 |
'description' => $module->description,
|
130 |
add_submenu_page( 'obfx_companion', __( 'Orbit Fox General Options', 'themeisle-companion' ), __( 'General Settings', 'themeisle-companion' ), 'manage_options', 'obfx_companion' );
|
131 |
}
|
132 |
|
133 |
+
/**
|
134 |
+
* Add the initial dashboard notice to guide the user to the OrbitFox admin page.
|
135 |
+
*
|
136 |
+
* @since 2.3.4
|
137 |
+
* @access public
|
138 |
+
*/
|
139 |
+
public function visit_dashboard_notice() {
|
140 |
+
global $current_user;
|
141 |
+
$user_id = $current_user->ID;
|
142 |
+
if ( ! get_user_meta( $user_id, 'obfx_ignore_visit_dashboard_notice' ) ) { ?>
|
143 |
+
<div class="notice notice-info" style="position:relative;">
|
144 |
+
<p><?php echo sprintf( __( 'You have activated Orbit Fox plugin! Go to the %s to get started with the extra features.', 'themeisle-companion' ), sprintf( '<a href="%s">%s</a>', admin_url( 'admin.php?page=obfx_companion&obfx_ignore_visit_dashboard_notice=0' ), __( 'Dashboard Page', 'themeisle-companion' ) ) ); ?></p>
|
145 |
+
<a href="?obfx_ignore_visit_dashboard_notice=0" class="notice-dismiss" style="text-decoration: none;">
|
146 |
+
<span class="screen-reader-text">Dismiss this notice.</span>
|
147 |
+
</a>
|
148 |
+
</div>
|
149 |
+
<?php
|
150 |
+
}
|
151 |
+
}
|
152 |
+
|
153 |
+
/**
|
154 |
+
* Dismiss the initial dashboard notice.
|
155 |
+
*
|
156 |
+
* @since 2.3.4
|
157 |
+
* @access public
|
158 |
+
*/
|
159 |
+
function visit_dashboard_notice_dismiss() {
|
160 |
+
global $current_user;
|
161 |
+
$user_id = $current_user->ID;
|
162 |
+
if ( isset( $_GET['obfx_ignore_visit_dashboard_notice'] ) && '0' == $_GET['obfx_ignore_visit_dashboard_notice'] ) {
|
163 |
+
add_user_meta( $user_id, 'obfx_ignore_visit_dashboard_notice', 'true', true );
|
164 |
+
}
|
165 |
+
}
|
166 |
+
|
167 |
/**
|
168 |
* Calls the orbit_fox_modules hook.
|
169 |
*
|
331 |
$checked = 'checked';
|
332 |
}
|
333 |
|
334 |
+
$data = array(
|
335 |
'slug' => $slug,
|
336 |
'name' => $module->name,
|
337 |
'description' => $module->description,
|
core/assets/css/orbit-fox-admin.css
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Extends Spectre.css Library
|
9 |
*/
|
10 |
/*
|
11 |
-
Version: 2.3.
|
12 |
*/
|
13 |
|
14 |
/* Document
|
@@ -3641,4 +3641,4 @@ html {
|
|
3641 |
.obfx-row {
|
3642 |
padding: 10px 0;
|
3643 |
}
|
3644 |
-
}
|
8 |
* Extends Spectre.css Library
|
9 |
*/
|
10 |
/*
|
11 |
+
Version: 2.3.3
|
12 |
*/
|
13 |
|
14 |
/* Document
|
3641 |
.obfx-row {
|
3642 |
padding: 10px 0;
|
3643 |
}
|
3644 |
+
}
|
core/includes/class-orbit-fox.php
CHANGED
@@ -69,7 +69,7 @@ class Orbit_Fox {
|
|
69 |
|
70 |
$this->plugin_name = 'orbit-fox';
|
71 |
|
72 |
-
$this->version = '2.3.
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
$this->set_locale();
|
@@ -154,7 +154,9 @@ class Orbit_Fox {
|
|
154 |
$plugin_admin = new Orbit_Fox_Admin( $this->get_plugin_name(), $this->get_version() );
|
155 |
|
156 |
$this->loader->add_action( 'admin_init', $plugin_admin, 'load_modules' );
|
|
|
157 |
$this->loader->add_action( 'admin_menu', $plugin_admin, 'menu_pages' );
|
|
|
158 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
|
159 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
|
160 |
$this->loader->add_action( 'wp_ajax_obfx_update_module_options', $plugin_admin, 'obfx_update_module_options' );
|
69 |
|
70 |
$this->plugin_name = 'orbit-fox';
|
71 |
|
72 |
+
$this->version = '2.3.3';
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
$this->set_locale();
|
154 |
$plugin_admin = new Orbit_Fox_Admin( $this->get_plugin_name(), $this->get_version() );
|
155 |
|
156 |
$this->loader->add_action( 'admin_init', $plugin_admin, 'load_modules' );
|
157 |
+
$this->loader->add_action( 'admin_init', $plugin_admin, 'visit_dashboard_notice_dismiss' );
|
158 |
$this->loader->add_action( 'admin_menu', $plugin_admin, 'menu_pages' );
|
159 |
+
$this->loader->add_action( 'admin_notices', $plugin_admin, 'visit_dashboard_notice' );
|
160 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
|
161 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
|
162 |
$this->loader->add_action( 'wp_ajax_obfx_update_module_options', $plugin_admin, 'obfx_update_module_options' );
|
obfx_modules/companion-legacy/inc/hestia/inc/features/feature-features-section.php
CHANGED
@@ -57,7 +57,7 @@ if ( ! function_exists( 'hestia_features_customize_register' ) ) :
|
|
57 |
|
58 |
$wp_customize->add_setting(
|
59 |
'hestia_features_title', array(
|
60 |
-
'sanitize_callback' => '
|
61 |
'transport' => $selective_refresh,
|
62 |
)
|
63 |
);
|
@@ -72,7 +72,7 @@ if ( ! function_exists( 'hestia_features_customize_register' ) ) :
|
|
72 |
|
73 |
$wp_customize->add_setting(
|
74 |
'hestia_features_subtitle', array(
|
75 |
-
'sanitize_callback' => '
|
76 |
'transport' => $selective_refresh,
|
77 |
)
|
78 |
);
|
57 |
|
58 |
$wp_customize->add_setting(
|
59 |
'hestia_features_title', array(
|
60 |
+
'sanitize_callback' => 'wp_kses_post',
|
61 |
'transport' => $selective_refresh,
|
62 |
)
|
63 |
);
|
72 |
|
73 |
$wp_customize->add_setting(
|
74 |
'hestia_features_subtitle', array(
|
75 |
+
'sanitize_callback' => 'wp_kses_post',
|
76 |
'transport' => $selective_refresh,
|
77 |
)
|
78 |
);
|
obfx_modules/companion-legacy/inc/hestia/inc/features/feature-ribbon-section.php
CHANGED
@@ -80,7 +80,7 @@ if ( ! function_exists( 'hestia_ribbon_customize_register' ) ) :
|
|
80 |
$default = ( current_user_can( 'edit_theme_options' ) ? esc_html__( 'Subscribe to our Newsletter', 'themeisle-companion' ) : false );
|
81 |
$wp_customize->add_setting(
|
82 |
'hestia_ribbon_text', array(
|
83 |
-
'sanitize_callback' => '
|
84 |
'default' => $default,
|
85 |
'transport' => $selective_refresh,
|
86 |
)
|
80 |
$default = ( current_user_can( 'edit_theme_options' ) ? esc_html__( 'Subscribe to our Newsletter', 'themeisle-companion' ) : false );
|
81 |
$wp_customize->add_setting(
|
82 |
'hestia_ribbon_text', array(
|
83 |
+
'sanitize_callback' => 'wp_kses_post',
|
84 |
'default' => $default,
|
85 |
'transport' => $selective_refresh,
|
86 |
)
|
obfx_modules/companion-legacy/inc/hestia/inc/features/feature-team-section.php
CHANGED
@@ -57,7 +57,7 @@ if ( ! function_exists( 'hestia_team_customize_register' ) ) :
|
|
57 |
|
58 |
$wp_customize->add_setting(
|
59 |
'hestia_team_title', array(
|
60 |
-
'sanitize_callback' => '
|
61 |
'transport' => $selective_refresh,
|
62 |
)
|
63 |
);
|
@@ -72,7 +72,7 @@ if ( ! function_exists( 'hestia_team_customize_register' ) ) :
|
|
72 |
|
73 |
$wp_customize->add_setting(
|
74 |
'hestia_team_subtitle', array(
|
75 |
-
'sanitize_callback' => '
|
76 |
'transport' => $selective_refresh,
|
77 |
)
|
78 |
);
|
57 |
|
58 |
$wp_customize->add_setting(
|
59 |
'hestia_team_title', array(
|
60 |
+
'sanitize_callback' => 'wp_kses_post',
|
61 |
'transport' => $selective_refresh,
|
62 |
)
|
63 |
);
|
72 |
|
73 |
$wp_customize->add_setting(
|
74 |
'hestia_team_subtitle', array(
|
75 |
+
'sanitize_callback' => 'wp_kses_post',
|
76 |
'transport' => $selective_refresh,
|
77 |
)
|
78 |
);
|
obfx_modules/companion-legacy/inc/hestia/inc/features/feature-testimonials-section.php
CHANGED
@@ -57,7 +57,7 @@ if ( ! function_exists( 'hestia_testimonials_customize_register' ) ) :
|
|
57 |
|
58 |
$wp_customize->add_setting(
|
59 |
'hestia_testimonials_title', array(
|
60 |
-
'sanitize_callback' => '
|
61 |
'transport' => $selective_refresh,
|
62 |
)
|
63 |
);
|
@@ -72,7 +72,7 @@ if ( ! function_exists( 'hestia_testimonials_customize_register' ) ) :
|
|
72 |
|
73 |
$wp_customize->add_setting(
|
74 |
'hestia_testimonials_subtitle', array(
|
75 |
-
'sanitize_callback' => '
|
76 |
'transport' => $selective_refresh,
|
77 |
)
|
78 |
);
|
57 |
|
58 |
$wp_customize->add_setting(
|
59 |
'hestia_testimonials_title', array(
|
60 |
+
'sanitize_callback' => 'wp_kses_post',
|
61 |
'transport' => $selective_refresh,
|
62 |
)
|
63 |
);
|
72 |
|
73 |
$wp_customize->add_setting(
|
74 |
'hestia_testimonials_subtitle', array(
|
75 |
+
'sanitize_callback' => 'wp_kses_post',
|
76 |
'transport' => $selective_refresh,
|
77 |
)
|
78 |
);
|
obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-clients-bar-section.php
CHANGED
@@ -41,6 +41,11 @@ if ( ! function_exists( 'hestia_clients_bar' ) ) :
|
|
41 |
?>
|
42 |
<section class="hestia-clients-bar text-center <?php echo esc_attr( $wrapper_class ); ?>" id="clients" data-sorder="hestia_clients_bar">
|
43 |
<div class="container">
|
|
|
|
|
|
|
|
|
|
|
44 |
<div class="row">
|
45 |
<?php
|
46 |
$array_length = sizeof( $hestia_clients_bar_content_decoded );
|
41 |
?>
|
42 |
<section class="hestia-clients-bar text-center <?php echo esc_attr( $wrapper_class ); ?>" id="clients" data-sorder="hestia_clients_bar">
|
43 |
<div class="container">
|
44 |
+
<?php
|
45 |
+
if( function_exists( 'hestia_clients_bar_section_content_trigger' ) ) {
|
46 |
+
hestia_clients_bar_section_content_trigger();
|
47 |
+
}
|
48 |
+
?>
|
49 |
<div class="row">
|
50 |
<?php
|
51 |
$array_length = sizeof( $hestia_clients_bar_content_decoded );
|
obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-features-section.php
CHANGED
@@ -57,10 +57,10 @@ if ( ! function_exists( 'hestia_features' ) ) :
|
|
57 |
<div class="col-md-8 col-md-offset-2">
|
58 |
<?php
|
59 |
if ( ! empty( $hestia_features_title ) || is_customize_preview() ) {
|
60 |
-
echo '<h2 class="hestia-title">' .
|
61 |
}
|
62 |
if ( ! empty( $hestia_features_subtitle ) || is_customize_preview() ) {
|
63 |
-
echo '<h5 class="description">' .
|
64 |
}
|
65 |
?>
|
66 |
</div>
|
57 |
<div class="col-md-8 col-md-offset-2">
|
58 |
<?php
|
59 |
if ( ! empty( $hestia_features_title ) || is_customize_preview() ) {
|
60 |
+
echo '<h2 class="hestia-title">' . wp_kses_post( $hestia_features_title ) . '</h2>';
|
61 |
}
|
62 |
if ( ! empty( $hestia_features_subtitle ) || is_customize_preview() ) {
|
63 |
+
echo '<h5 class="description">' . wp_kses_post( $hestia_features_subtitle ) . '</h5>';
|
64 |
}
|
65 |
?>
|
66 |
</div>
|
obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php
CHANGED
@@ -64,10 +64,10 @@ if ( ! function_exists( 'hestia_team' ) ) :
|
|
64 |
<div class="col-md-8 col-md-offset-2 text-center">
|
65 |
<?php
|
66 |
if ( ! empty( $hestia_team_title ) || is_customize_preview() ) {
|
67 |
-
echo '<h2 class="hestia-title">' .
|
68 |
}
|
69 |
if ( ! empty( $hestia_team_subtitle ) || is_customize_preview() ) {
|
70 |
-
echo '<h5 class="description">' .
|
71 |
}
|
72 |
?>
|
73 |
</div>
|
@@ -118,8 +118,23 @@ function hestia_team_content( $hestia_team_content, $is_callback = false ) {
|
|
118 |
<div class="card card-profile card-plain">
|
119 |
<div class="col-md-5">
|
120 |
<div class="card-image">
|
121 |
-
<?php
|
122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
if ( ! empty( $link ) ) :
|
124 |
$link_html = '<a href="' . esc_url( $link ) . '"';
|
125 |
if ( function_exists( 'hestia_is_external_url' ) ) {
|
@@ -128,16 +143,18 @@ function hestia_team_content( $hestia_team_content, $is_callback = false ) {
|
|
128 |
$link_html .= '>';
|
129 |
echo wp_kses_post( $link_html );
|
130 |
endif;
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
|
|
|
|
141 |
<?php endif; ?>
|
142 |
</div>
|
143 |
</div>
|
64 |
<div class="col-md-8 col-md-offset-2 text-center">
|
65 |
<?php
|
66 |
if ( ! empty( $hestia_team_title ) || is_customize_preview() ) {
|
67 |
+
echo '<h2 class="hestia-title">' . wp_kses_post( $hestia_team_title ) . '</h2>';
|
68 |
}
|
69 |
if ( ! empty( $hestia_team_subtitle ) || is_customize_preview() ) {
|
70 |
+
echo '<h5 class="description">' . wp_kses_post( $hestia_team_subtitle ) . '</h5>';
|
71 |
}
|
72 |
?>
|
73 |
</div>
|
118 |
<div class="card card-profile card-plain">
|
119 |
<div class="col-md-5">
|
120 |
<div class="card-image">
|
121 |
+
<?php
|
122 |
+
if ( ! empty( $image ) ) :
|
123 |
+
/**
|
124 |
+
* Alternative text for the Team box image
|
125 |
+
* It first checks for the Alt Text option of the attachment
|
126 |
+
* If that field is empty, uses the Title of the Testimonial box as alt text
|
127 |
+
*/
|
128 |
+
$alt_image = '';
|
129 |
+
$image_id = function_exists( 'attachment_url_to_postid' ) ? attachment_url_to_postid( preg_replace( '/-\d{1,4}x\d{1,4}/i', '', $image ) ) : '';
|
130 |
+
if ( ! empty( $image_id ) && $image_id !== 0 ) {
|
131 |
+
$alt_image = get_post_meta( $image_id, '_wp_attachment_image_alt', true );
|
132 |
+
}
|
133 |
+
if ( empty( $alt_image ) ) {
|
134 |
+
if ( ! empty( $title ) ) {
|
135 |
+
$alt_image = $title;
|
136 |
+
}
|
137 |
+
}
|
138 |
if ( ! empty( $link ) ) :
|
139 |
$link_html = '<a href="' . esc_url( $link ) . '"';
|
140 |
if ( function_exists( 'hestia_is_external_url' ) ) {
|
143 |
$link_html .= '>';
|
144 |
echo wp_kses_post( $link_html );
|
145 |
endif;
|
146 |
+
echo '<img class="img" src="' . esc_url( $image ) . '" ';
|
147 |
+
if ( ! empty( $alt_image ) ) {
|
148 |
+
echo ' alt="' . esc_attr( $alt_image ) . '" ';
|
149 |
+
}
|
150 |
+
if ( ! empty( $title ) ) {
|
151 |
+
echo ' title="' . esc_attr( $title ) . '" ';
|
152 |
+
}
|
153 |
+
echo '/>';
|
154 |
+
if ( ! empty( $link ) ) {
|
155 |
+
echo '</a>';
|
156 |
+
}
|
157 |
+
?>
|
158 |
<?php endif; ?>
|
159 |
</div>
|
160 |
</div>
|
obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php
CHANGED
@@ -67,10 +67,10 @@ if ( ! function_exists( 'hestia_testimonials' ) ) :
|
|
67 |
<div class="col-md-8 col-md-offset-2 text-center">
|
68 |
<?php
|
69 |
if ( ! empty( $hestia_testimonials_title ) || is_customize_preview() ) {
|
70 |
-
echo '<h2 class="hestia-title">' .
|
71 |
}
|
72 |
if ( ! empty( $hestia_testimonials_subtitle ) || is_customize_preview() ) {
|
73 |
-
echo '<h5 class="description">' .
|
74 |
}
|
75 |
?>
|
76 |
</div>
|
@@ -117,27 +117,46 @@ function hestia_testimonials_content( $hestia_testimonials_content, $is_callback
|
|
117 |
?>
|
118 |
<div class="col-xs-12 col-ms-6 col-sm-6 <?php echo apply_filters( 'hestia_testimonials_per_row_class','col-md-4' ); ?>">
|
119 |
<div class="card card-testimonial card-plain">
|
120 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
<div class="card-avatar">
|
122 |
<?php
|
123 |
-
if ( ! empty( $link ) )
|
124 |
$link_html = '<a href="' . esc_url( $link ) . '"';
|
125 |
if ( function_exists( 'hestia_is_external_url' ) ) {
|
126 |
$link_html .= hestia_is_external_url( $link );
|
127 |
}
|
128 |
$link_html .= '>';
|
129 |
echo wp_kses_post( $link_html );
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
|
|
|
|
141 |
</div>
|
142 |
<?php endif; ?>
|
143 |
<div class="content">
|
67 |
<div class="col-md-8 col-md-offset-2 text-center">
|
68 |
<?php
|
69 |
if ( ! empty( $hestia_testimonials_title ) || is_customize_preview() ) {
|
70 |
+
echo '<h2 class="hestia-title">' . wp_kses_post( $hestia_testimonials_title ) . '</h2>';
|
71 |
}
|
72 |
if ( ! empty( $hestia_testimonials_subtitle ) || is_customize_preview() ) {
|
73 |
+
echo '<h5 class="description">' . wp_kses_post( $hestia_testimonials_subtitle ) . '</h5>';
|
74 |
}
|
75 |
?>
|
76 |
</div>
|
117 |
?>
|
118 |
<div class="col-xs-12 col-ms-6 col-sm-6 <?php echo apply_filters( 'hestia_testimonials_per_row_class','col-md-4' ); ?>">
|
119 |
<div class="card card-testimonial card-plain">
|
120 |
+
<?php
|
121 |
+
if ( ! empty( $image ) ) :
|
122 |
+
/**
|
123 |
+
* Alternative text for the Testimonial box image
|
124 |
+
* It first checks for the Alt Text option of the attachment
|
125 |
+
* If that field is empty, uses the Title of the Testimonial box as alt text
|
126 |
+
*/
|
127 |
+
$alt_image = '';
|
128 |
+
$image_id = function_exists( 'attachment_url_to_postid' ) ? attachment_url_to_postid( preg_replace( '/-\d{1,4}x\d{1,4}/i', '', $image ) ) : '';
|
129 |
+
if ( ! empty( $image_id ) && $image_id !== 0 ) {
|
130 |
+
$alt_image = get_post_meta( $image_id, '_wp_attachment_image_alt', true );
|
131 |
+
}
|
132 |
+
if ( empty( $alt_image ) ) {
|
133 |
+
if ( ! empty( $title ) ) {
|
134 |
+
$alt_image = $title;
|
135 |
+
}
|
136 |
+
}
|
137 |
+
?>
|
138 |
<div class="card-avatar">
|
139 |
<?php
|
140 |
+
if ( ! empty( $link ) ) {
|
141 |
$link_html = '<a href="' . esc_url( $link ) . '"';
|
142 |
if ( function_exists( 'hestia_is_external_url' ) ) {
|
143 |
$link_html .= hestia_is_external_url( $link );
|
144 |
}
|
145 |
$link_html .= '>';
|
146 |
echo wp_kses_post( $link_html );
|
147 |
+
}
|
148 |
+
echo '<img class="img" src="' . esc_url( $image ) . '" ';
|
149 |
+
if ( ! empty( $alt_image ) ) {
|
150 |
+
echo ' alt="' . esc_attr( $alt_image ) . '" ';
|
151 |
+
}
|
152 |
+
if ( ! empty( $title ) ) {
|
153 |
+
echo ' title="' . esc_attr( $title ) . '" ';
|
154 |
+
}
|
155 |
+
echo '/>';
|
156 |
+
if ( ! empty( $link ) ) {
|
157 |
+
echo '</a>';
|
158 |
+
}
|
159 |
+
?>
|
160 |
</div>
|
161 |
<?php endif; ?>
|
162 |
<div class="content">
|
readme.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
**License:** GPLv2 or later
|
9 |
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
This swiss-knife plugin comes with a quality template library, menu/sharing icons
|
12 |
|
13 |
## Description ##
|
14 |
|
@@ -89,10 +89,10 @@ Activating the Orbit Fox Companion plugin is just like any other plugin. If you'
|
|
89 |
5. Social Sharing Module
|
90 |
|
91 |
## Changelog ##
|
92 |
-
### 2.3.
|
93 |
|
94 |
-
*
|
95 |
-
*
|
96 |
|
97 |
|
98 |
### 2.3.1 - 2018-01-17 ###
|
8 |
**License:** GPLv2 or later
|
9 |
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
This swiss-knife plugin comes with a quality template library, menu/sharing icons, and newly added Elementor/BeaverBuilder page builder widgets.
|
12 |
|
13 |
## Description ##
|
14 |
|
89 |
5. Social Sharing Module
|
90 |
|
91 |
## Changelog ##
|
92 |
+
### 2.3.3 - 2018-01-29 ###
|
93 |
|
94 |
+
* Allow HTML tags in Hestia customizer settings;
|
95 |
+
* Add alt text for images in Hestia sections;
|
96 |
|
97 |
|
98 |
### 2.3.1 - 2018-01-17 ###
|
readme.txt
CHANGED
@@ -8,7 +8,7 @@ Stable tag: trunk
|
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
This swiss-knife plugin comes with a quality template library, menu/sharing icons
|
12 |
|
13 |
== Description ==
|
14 |
|
@@ -89,10 +89,10 @@ Activating the Orbit Fox Companion plugin is just like any other plugin. If you'
|
|
89 |
5. Social Sharing Module
|
90 |
|
91 |
== Changelog ==
|
92 |
-
= 2.3.
|
93 |
|
94 |
-
*
|
95 |
-
*
|
96 |
|
97 |
|
98 |
= 2.3.1 - 2018-01-17 =
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
This swiss-knife plugin comes with a quality template library, menu/sharing icons, and newly added Elementor/BeaverBuilder page builder widgets.
|
12 |
|
13 |
== Description ==
|
14 |
|
89 |
5. Social Sharing Module
|
90 |
|
91 |
== Changelog ==
|
92 |
+
= 2.3.3 - 2018-01-29 =
|
93 |
|
94 |
+
* Allow HTML tags in Hestia customizer settings;
|
95 |
+
* Add alt text for images in Hestia sections;
|
96 |
|
97 |
|
98 |
= 2.3.1 - 2018-01-17 =
|
themeisle-companion.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Plugin Name: Orbit Fox Companion
|
16 |
* Plugin URI: https://themeisle.com/plugins/orbit-fox-companion
|
17 |
* Description: This swiss-knife plugin comes with a quality template library, menu/sharing icons modules, and newly added Elementor/BeaverBuilder page builder widgets on each release.
|
18 |
-
* Version: 2.3.
|
19 |
* Author: Themeisle
|
20 |
* Author URI: https://themeisle.com
|
21 |
* License: GPL-2.0+
|
15 |
* Plugin Name: Orbit Fox Companion
|
16 |
* Plugin URI: https://themeisle.com/plugins/orbit-fox-companion
|
17 |
* Description: This swiss-knife plugin comes with a quality template library, menu/sharing icons modules, and newly added Elementor/BeaverBuilder page builder widgets on each release.
|
18 |
+
* Version: 2.3.3
|
19 |
* Author: Themeisle
|
20 |
* Author URI: https://themeisle.com
|
21 |
* License: GPL-2.0+
|
themeisle-hash.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"class-autoloader.php":"57e533b653d235e76cb9953720e4f5e9","index.php":"39ab8276fb0e4bd3fcab3270822c5977","themeisle-companion.php":"
|
1 |
+
{"class-autoloader.php":"57e533b653d235e76cb9953720e4f5e9","index.php":"39ab8276fb0e4bd3fcab3270822c5977","themeisle-companion.php":"89bc7fa9fd9fd3491d434f6ebca08844","uninstall.php":"7abf753a29e0eb3a844c8a0ba9493b7c"}
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInita6f1fca15487c58cbbc5ffa8175e25ba::getLoader();
|
vendor/codeinwp/full-width-page-templates/builders/class-elementor-full-width-templates.php
CHANGED
@@ -12,9 +12,9 @@ namespace ThemeIsle\FullWidthTemplates;
|
|
12 |
|
13 |
class Elementor {
|
14 |
/**
|
15 |
-
* @var
|
16 |
*/
|
17 |
-
|
18 |
|
19 |
protected function init(){
|
20 |
// for the blank template
|
@@ -35,8 +35,6 @@ class Elementor {
|
|
35 |
* Display the WordPress loop
|
36 |
*/
|
37 |
public function render_content() {
|
38 |
-
global $post;
|
39 |
-
|
40 |
while ( have_posts() ) : the_post();
|
41 |
do_action( 'elementor_page_elements' ); // Give your elements priorities so that they hook in the right place.
|
42 |
endwhile;
|
@@ -83,7 +81,7 @@ class Elementor {
|
|
83 |
* @static
|
84 |
* @since 1.0.0
|
85 |
* @access public
|
86 |
-
* @return
|
87 |
*/
|
88 |
public static function instance() {
|
89 |
if ( is_null( self::$instance ) ) {
|
12 |
|
13 |
class Elementor {
|
14 |
/**
|
15 |
+
* @var Elementor
|
16 |
*/
|
17 |
+
public static $instance = null;
|
18 |
|
19 |
protected function init(){
|
20 |
// for the blank template
|
35 |
* Display the WordPress loop
|
36 |
*/
|
37 |
public function render_content() {
|
|
|
|
|
38 |
while ( have_posts() ) : the_post();
|
39 |
do_action( 'elementor_page_elements' ); // Give your elements priorities so that they hook in the right place.
|
40 |
endwhile;
|
81 |
* @static
|
82 |
* @since 1.0.0
|
83 |
* @access public
|
84 |
+
* @return Elementor
|
85 |
*/
|
86 |
public static function instance() {
|
87 |
if ( is_null( self::$instance ) ) {
|
vendor/codeinwp/full-width-page-templates/class-full-width-templates.php
CHANGED
@@ -16,13 +16,13 @@ if ( ! class_exists( '\ThemeIsle\FullWidthTemplates' ) ) {
|
|
16 |
/**
|
17 |
* @var FullWidthTemplates
|
18 |
*/
|
19 |
-
|
20 |
|
21 |
/**
|
22 |
* The version of this library
|
23 |
* @var string
|
24 |
*/
|
25 |
-
public static $version = '1.0.
|
26 |
|
27 |
/**
|
28 |
* The array of templates injected.
|
@@ -87,8 +87,6 @@ if ( ! class_exists( '\ThemeIsle\FullWidthTemplates' ) ) {
|
|
87 |
// Just to be safe, we check if the file exist first
|
88 |
if ( file_exists( $file ) ) {
|
89 |
return $file;
|
90 |
-
} else {
|
91 |
-
echo $file;
|
92 |
}
|
93 |
|
94 |
return $template;
|
@@ -137,12 +135,12 @@ if ( ! class_exists( '\ThemeIsle\FullWidthTemplates' ) ) {
|
|
137 |
*/
|
138 |
public function load_theme_overwrites() {
|
139 |
$theme = get_option( 'template' );
|
140 |
-
$style_filename = plugin_dir_path( __FILE__ ) . '
|
141 |
if ( file_exists( $style_filename ) ) {
|
142 |
include_once( $style_filename );
|
143 |
}
|
144 |
|
145 |
-
$func_filename = plugin_dir_path( __FILE__ ) . '
|
146 |
if ( file_exists( $func_filename ) ) {
|
147 |
include_once( $func_filename );
|
148 |
}
|
16 |
/**
|
17 |
* @var FullWidthTemplates
|
18 |
*/
|
19 |
+
public static $instance = null;
|
20 |
|
21 |
/**
|
22 |
* The version of this library
|
23 |
* @var string
|
24 |
*/
|
25 |
+
public static $version = '1.0.1';
|
26 |
|
27 |
/**
|
28 |
* The array of templates injected.
|
87 |
// Just to be safe, we check if the file exist first
|
88 |
if ( file_exists( $file ) ) {
|
89 |
return $file;
|
|
|
|
|
90 |
}
|
91 |
|
92 |
return $template;
|
135 |
*/
|
136 |
public function load_theme_overwrites() {
|
137 |
$theme = get_option( 'template' );
|
138 |
+
$style_filename = plugin_dir_path( __FILE__ ) . 'themes/' . $theme . '/inline-style.php';
|
139 |
if ( file_exists( $style_filename ) ) {
|
140 |
include_once( $style_filename );
|
141 |
}
|
142 |
|
143 |
+
$func_filename = plugin_dir_path( __FILE__ ) . 'themes/' . $theme . '/functions.php';
|
144 |
if ( file_exists( $func_filename ) ) {
|
145 |
include_once( $func_filename );
|
146 |
}
|
vendor/codeinwp/full-width-page-templates/composer.json
CHANGED
@@ -2,7 +2,8 @@
|
|
2 |
"name": "codeinwp/full-width-page-templates",
|
3 |
"description": "A WordPress library to create full width page templates.",
|
4 |
"type": "library",
|
5 |
-
"
|
|
|
6 |
"homepage": "https://github.com/Codeinwp/full-width-page-templates",
|
7 |
"authors": [
|
8 |
{
|
2 |
"name": "codeinwp/full-width-page-templates",
|
3 |
"description": "A WordPress library to create full width page templates.",
|
4 |
"type": "library",
|
5 |
+
"version": "1.0.1",
|
6 |
+
"license": "GPL-2.0-or-later",
|
7 |
"homepage": "https://github.com/Codeinwp/full-width-page-templates",
|
8 |
"authors": [
|
9 |
{
|
vendor/codeinwp/full-width-page-templates/themes/twentyseventeen/inline-style.php
CHANGED
@@ -1,17 +1,15 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
';
|
17 |
-
wp_add_inline_style( 'twentyseventeen-style', $style );
|
1 |
<?php
|
2 |
+
/* Support for the Twenty Seventeen theme */
|
3 |
+
$style = '.elementor-editor-active .site-content {
|
4 |
+
padding: 2.5em 0 0;
|
5 |
+
}
|
6 |
+
.elementor-page .site-content {
|
7 |
+
padding: 0;
|
8 |
+
}
|
9 |
+
.elementor-page.page:not(.home) #content {
|
10 |
+
padding-bottom: 0;
|
11 |
+
}
|
12 |
+
.elementor-page .site-footer {
|
13 |
+
margin-top: 0;
|
14 |
+
}';
|
15 |
+
wp_add_inline_style( 'twentyseventeen-style', $style );
|
|
|
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit5c8bf1a271fa3170d082969067592337
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
@@ -42,14 +42,14 @@ class ComposerAutoloaderInit5c8bf1a271fa3170d082969067592337
|
|
42 |
|
43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
45 |
-
|
46 |
}
|
47 |
|
48 |
return $loader;
|
49 |
}
|
50 |
}
|
51 |
|
52 |
-
function
|
53 |
{
|
54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
55 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInita6f1fca15487c58cbbc5ffa8175e25ba
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInita6f1fca15487c58cbbc5ffa8175e25ba', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInita6f1fca15487c58cbbc5ffa8175e25ba', 'loadClassLoader'));
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
42 |
|
43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
45 |
+
composerRequirea6f1fca15487c58cbbc5ffa8175e25ba($fileIdentifier, $file);
|
46 |
}
|
47 |
|
48 |
return $loader;
|
49 |
}
|
50 |
}
|
51 |
|
52 |
+
function composerRequirea6f1fca15487c58cbbc5ffa8175e25ba($fileIdentifier, $file)
|
53 |
{
|
54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
55 |
require $file;
|
vendor/composer/installed.json
CHANGED
@@ -46,15 +46,15 @@
|
|
46 |
"source": {
|
47 |
"type": "git",
|
48 |
"url": "https://github.com/Codeinwp/full-width-page-templates.git",
|
49 |
-
"reference": "
|
50 |
},
|
51 |
"dist": {
|
52 |
"type": "zip",
|
53 |
-
"url": "https://api.github.com/repos/Codeinwp/full-width-page-templates/zipball/
|
54 |
-
"reference": "
|
55 |
"shasum": ""
|
56 |
},
|
57 |
-
"time": "2018-01-
|
58 |
"type": "library",
|
59 |
"installation-source": "dist",
|
60 |
"autoload": {
|
@@ -64,7 +64,7 @@
|
|
64 |
},
|
65 |
"notification-url": "https://packagist.org/downloads/",
|
66 |
"license": [
|
67 |
-
"GPL-2.0
|
68 |
],
|
69 |
"authors": [
|
70 |
{
|
46 |
"source": {
|
47 |
"type": "git",
|
48 |
"url": "https://github.com/Codeinwp/full-width-page-templates.git",
|
49 |
+
"reference": "606569bcbd870ad02d220e0e8302cdf38d984e99"
|
50 |
},
|
51 |
"dist": {
|
52 |
"type": "zip",
|
53 |
+
"url": "https://api.github.com/repos/Codeinwp/full-width-page-templates/zipball/606569bcbd870ad02d220e0e8302cdf38d984e99",
|
54 |
+
"reference": "606569bcbd870ad02d220e0e8302cdf38d984e99",
|
55 |
"shasum": ""
|
56 |
},
|
57 |
+
"time": "2018-01-23 14:34:54",
|
58 |
"type": "library",
|
59 |
"installation-source": "dist",
|
60 |
"autoload": {
|
64 |
},
|
65 |
"notification-url": "https://packagist.org/downloads/",
|
66 |
"license": [
|
67 |
+
"GPL-2.0-or-later"
|
68 |
],
|
69 |
"authors": [
|
70 |
{
|