first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,111 @@
.wpcf7 .screen-reader-response {
position: absolute;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
height: 1px;
width: 1px;
margin: 0;
padding: 0;
border: 0;
}
.wpcf7 form .wpcf7-response-output {
margin: 2em 0.5em 1em;
padding: 0.2em 1em;
border: 2px solid #00a0d2; /* Blue */
}
.wpcf7 form.init .wpcf7-response-output {
display: none;
}
.wpcf7 form.sent .wpcf7-response-output {
border-color: #46b450; /* Green */
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
border-color: #dc3232; /* Red */
}
.wpcf7 form.spam .wpcf7-response-output {
border-color: #f56e28; /* Orange */
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
border-color: #ffb900; /* Yellow */
}
.wpcf7-form-control-wrap {
position: relative;
}
.wpcf7-not-valid-tip {
color: #dc3232;
font-size: 1em;
font-weight: normal;
display: block;
}
.use-floating-validation-tip .wpcf7-not-valid-tip {
position: absolute;
top: 20%;
left: 20%;
z-index: 100;
border: 1px solid #dc3232;
background: #fff;
padding: .2em .8em;
}
span.wpcf7-list-item {
display: inline-block;
margin: 0 0 0 1em;
}
span.wpcf7-list-item-label::before,
span.wpcf7-list-item-label::after {
content: " ";
}
div.wpcf7 .ajax-loader {
visibility: hidden;
display: inline-block;
background-image: url('../../assets/ajax-loader.gif');
width: 16px;
height: 16px;
border: none;
padding: 0;
margin: 0 0 0 4px;
vertical-align: middle;
}
div.wpcf7 .ajax-loader.is-active {
visibility: visible;
}
div.wpcf7 div.ajax-error {
display: none;
}
div.wpcf7 .placeheld {
color: #888;
}
div.wpcf7 input[type="file"] {
cursor: pointer;
}
div.wpcf7 input[type="file"]:disabled {
cursor: default;
}
div.wpcf7 .wpcf7-submit:disabled {
cursor: not-allowed;
}
.wpcf7 input[type="url"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
direction: ltr;
}

View File

@@ -0,0 +1,489 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "638e5c8b0b2fa8674a9fcfe0b99b3d3f20bec7e800" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_case_study.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_case_study_2021-04-19-20-18-08.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
add_action('init', 'cyber_case_study_sections');
if(!function_exists('cyber_case_study_sections')):
function cyber_case_study_sections(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'cyber_case_study' => array(
'name' => esc_html__('EM Case Study Section', 'cyber'),
'description' => esc_html__('Display Blog Style', 'cyber'),
'icon' => 'kc-icon-blog-posts',
'category' => 'cyber',
'params' => array(
'General' => array(
array(
'name' => 'items',
'label' => __( 'Items Limit', 'cyber' ),
'type' => 'number_slider',
'value' => '3',
'description' => __(' Specify number of post that you want to show. Set 0 to get all team', 'cyber'),
'options' => array(
'min' => 0,
'max' => 75,
'unit' => '',
'show_input' => false
)
),
array(
'type' => 'select',
'label' => __( 'Order By', 'cyber' ),
'name' => 'order',
'options' => array(
'DESC' => __( 'Descending', 'cyber' ),
'ASC' => __( 'Ascending', 'cyber' )
)
),
array(
'type' => 'radio_image',
'label' => __( 'Select blog Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'When select style 2 that time, set column and set gutter not work', 'cyber' ),
'value' => '1'
),
array(
'type' => 'select',
'label' => __( 'Set Column', 'cyber' ),
'name' => 'set_column',
'description' => __( 'Enter number item per row', 'cyber' ),
'value' => '4',
'options' => array(
'12' => __( '1 Column', 'cyber' ),
'6' => __( '2 Column', 'cyber' ),
'4' => __( '3 Column', 'cyber' ),
'3' => __( '4 Column', 'cyber' )
),
),
array(
'name' => 'gutter',
'label' => __( 'Select No Gutter', 'cyber' ),
'type' => 'toggle',
'value' => 'no',
'description' => __( 'Remove column Spacing', 'cyber' ),
),
array(
'name' => 'show_content',
'label' => __( 'Display Pragraph', 'cyber' ),
'type' => 'toggle',
'value' => 'yes',
),
array(
'name' => 'show_button',
'label' => __( 'Display Button', 'cyber' ),
'type' => 'toggle',
'value' => 'yes',
),
array(
'type' => 'text',
'label' => __( 'Button Text', 'cyber' ),
'name' => 'btn_text',
'value' => 'Read More',
'description' => __( 'Enter Button Text', 'cyber' ),
'relation' => array(
'parent' => 'show_button',
'show_when' => 'yes',
)
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '.em-cases-study-title a:hover'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
),
'Desc' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.cases-study-content p'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.cases-study-content p'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.cases-study-content p'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.cases-study-content p'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.cases-study-content p'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.cases-study-content p'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.cases-study-content p'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.cases-study-content p'),
),
'Category' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.case_category span'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.case_category span'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.case_category span'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.case_category span'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.case_category span'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.case_category span'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.case_category span'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.case_category span'),
),
'Button' => array(
array('property' => 'color', 'label' => 'Text Color', 'selector' => '.em-case-study-button a'),
array('property' => 'color', 'label' => 'Text Hover Color', 'selector' => '.em-case-study-button:hover'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.em-case-study-button a'),
array('property' => 'border-color', 'label' => 'Hover Border', 'selector' => '.em-case-study-button a:hover'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.em-case-study-button a'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '.em-case-study-button a:hover'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-case-study-button a'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-case-study-button a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-case-study-button a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-case-study-button a'),
),
'Content' => array(
array('property' => 'background', 'label' => 'BG Color', 'selector' => '.em-cases-study-content '),
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-cases-study-content '),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-cases-study-content '),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-cases-study-content'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-cases-study-content '),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-cases-study-content'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-cases-study-content '),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-cases-study-content '),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-cases-study-content '),
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color', 'selector' => '+ .cyber-single-cases-study'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.cyber-single-cases-study',),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.cyber-single-cases-study:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.cyber-single-cases-study:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)// Params
)// end shortcode key
)// first array
); // End add map
endif;
}
endif;
// ========== blog Area
if(!function_exists('cyber_case_study_area')){
function cyber_case_study_area( $atts , $content = null ){
ob_start();
// Attributes
$em_blog_box = shortcode_atts(array(
'layout' => '1',
'set_column' => '3',
'show_pagination' => '',
'items' => '3',
'order' => '',
'gutter' => '',
'show_content' => '',
'show_button' => '',
'btn_text' => '',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_blog_box );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$page = ( get_query_var( 'page' ) ? get_query_var( 'page' ) : 1 );
$paged = ( get_query_var( 'paged' ) ? get_query_var( 'paged' ) : $page );
$args = array(
'post_type' => 'em_case_study',
'posts_per_page' => intval( $items ),
'order' => $order ,
'paged' => $paged,
'page' => $paged
);
$the_query = new WP_Query($args);
if( $the_query->have_posts() ) {
switch ( $layout ) {
case '2':
?>
<div class=" blog_style_adn_2">
<div class="blog_wrap case_study_carousel owl-carousel curosel-style">
<?php while ($the_query->have_posts()) : $the_query->the_post();
?>
<!-- single blog -->
<div class=" <?php if( $gutter == 'yes' ){echo 'blog_nospace_adn';}?> col-md-12 col-xs-12 col-sm-12 " >
<div class="single_case_study <?php echo esc_attr( $extra_class ); ?>">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="cyber-single-cases-study ">
<!-- BLOG THUMB -->
<?php if(has_post_thumbnail()){?>
<div class="case-study-thumb ">
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?>
</a>
</div>
<?php } ?>
<div class="em-cases-study-content ">
<!-- BLOG TITLE -->
<div class="em-cases-study-title ">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="case_category">
<?php
switch(get_the_title()){
case 'Nokia':
{
echo '<span>Finland</span>';
break;
}
case 'SoftServe':
{
echo '<span>Ukraine / USA</span>';
break;
}
case 'Microsoft Corporation':
{
echo '<span>USA</span>';
break;
}
case 'Mynavi Corporation':
{
echo '<span>Japan</span>';
break;
}
case 'Striped Giraffe':
{
echo '<span>Germany</span>';
break;
}
case 'DPDGroup IT Solutions':
{
echo '<span>France</span>';
break;
}
case 'Atlassian':
{
echo '<span>Australia</span>';
break;
}
case 'ICEYE':
{
echo '<span>Poland / Finland</span>';
break;
}
}
?>
</div>
<!-- Blog Description -->
<?php if($show_content=='yes'){?>
<!-- BLOG TITLE AND CONTENT -->
<div class="em-cases-study-inner ">
<div class="cases-study-content ">
<p><?php echo wp_trim_words( get_the_content(), 19, ' ' ); ?></p>
</div>
</div>
<?php } ?>
<!-- Blog Read More Button -->
<?php if($show_button=='yes'){?>
<div class="em-case-study-button">
<?php if($btn_text){?>
<a href="<?php the_permalink(); ?>" class="learn_btn"><?php echo $btn_text;?></a>
<i class="fa fa-long-arrow-right btn_icon"></i>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div> <!-- END SINGLE BLOG -->
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php
break;
default:
?>
<div class=" blog_style_adn_2">
<div class="blog_wrap case_study_carousel_main owl-carousel curosel-style style-one">
<?php while ($the_query->have_posts()) : $the_query->the_post();
?>
<!-- single blog -->
<div class=" <?php if( $gutter == 'yes' ){echo 'blog_nospace_adn';}?> col-md-12 col-xs-12 col-sm-12 " >
<div class="single_case_study <?php echo esc_attr( $extra_class ); ?>">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="cyber-single-cases-study ">
<!-- BLOG THUMB -->
<?php if(has_post_thumbnail()){?>
<div class="case-study-thumb ">
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?>
</a>
</div>
<?php } ?>
<div class="em-cases-study-content ">
<!-- BLOG TITLE -->
<div class="em-cases-study-title ">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="case_category">
<span>Marketing /</span>
<span>Design</span>
</div>
<!-- Blog Description -->
<?php if($show_content=='yes'){?>
<!-- BLOG TITLE AND CONTENT -->
<div class="em-cases-study-inner ">
<div class="cases-study-content ">
<p><?php echo wp_trim_words( get_the_content(), 19, ' ' ); ?></p>
</div>
</div>
<?php } ?>
<!-- Blog Read More Button -->
<?php if($show_button=='yes'){?>
<div class="em-case-study-button">
<?php if($btn_text){?>
<a href="<?php the_permalink(); ?>" class="learn_btn"><?php echo $btn_text;?></a>
<i class="fa fa-long-arrow-right btn_icon"></i>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div> <!-- END SINGLE BLOG -->
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php
break;
}
} //end have
return ob_get_clean();
}
}
add_shortcode ('cyber_case_study', 'cyber_case_study_area' );

View File

@@ -0,0 +1,494 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "799dfe44b1e9319b34cfc6e2514fa28ae1111d7f63" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_case_study.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_case_study_2021-08-08-16-45-31.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
add_action('init', 'cyber_case_study_sections');
if(!function_exists('cyber_case_study_sections')):
function cyber_case_study_sections(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'cyber_case_study' => array(
'name' => esc_html__('EM Case Study Section', 'cyber'),
'description' => esc_html__('Display Blog Style', 'cyber'),
'icon' => 'kc-icon-blog-posts',
'category' => 'cyber',
'params' => array(
'General' => array(
array(
'name' => 'items',
'label' => __( 'Items Limit', 'cyber' ),
'type' => 'number_slider',
'value' => '3',
'description' => __(' Specify number of post that you want to show. Set 0 to get all team', 'cyber'),
'options' => array(
'min' => 0,
'max' => 75,
'unit' => '',
'show_input' => false
)
),
array(
'type' => 'select',
'label' => __( 'Order By', 'cyber' ),
'name' => 'order',
'options' => array(
'DESC' => __( 'Descending', 'cyber' ),
'ASC' => __( 'Ascending', 'cyber' )
)
),
array(
'type' => 'radio_image',
'label' => __( 'Select blog Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'When select style 2 that time, set column and set gutter not work', 'cyber' ),
'value' => '1'
),
array(
'type' => 'select',
'label' => __( 'Set Column', 'cyber' ),
'name' => 'set_column',
'description' => __( 'Enter number item per row', 'cyber' ),
'value' => '4',
'options' => array(
'12' => __( '1 Column', 'cyber' ),
'6' => __( '2 Column', 'cyber' ),
'4' => __( '3 Column', 'cyber' ),
'3' => __( '4 Column', 'cyber' )
),
),
array(
'name' => 'gutter',
'label' => __( 'Select No Gutter', 'cyber' ),
'type' => 'toggle',
'value' => 'no',
'description' => __( 'Remove column Spacing', 'cyber' ),
),
array(
'name' => 'show_content',
'label' => __( 'Display Pragraph', 'cyber' ),
'type' => 'toggle',
'value' => 'yes',
),
array(
'name' => 'show_button',
'label' => __( 'Display Button', 'cyber' ),
'type' => 'toggle',
'value' => 'yes',
),
array(
'type' => 'text',
'label' => __( 'Button Text', 'cyber' ),
'name' => 'btn_text',
'value' => 'Read More',
'description' => __( 'Enter Button Text', 'cyber' ),
'relation' => array(
'parent' => 'show_button',
'show_when' => 'yes',
)
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '.em-cases-study-title a:hover'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
),
'Desc' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.cases-study-content p'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.cases-study-content p'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.cases-study-content p'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.cases-study-content p'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.cases-study-content p'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.cases-study-content p'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.cases-study-content p'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.cases-study-content p'),
),
'Category' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.case_category span'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.case_category span'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.case_category span'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.case_category span'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.case_category span'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.case_category span'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.case_category span'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.case_category span'),
),
'Button' => array(
array('property' => 'color', 'label' => 'Text Color', 'selector' => '.em-case-study-button a'),
array('property' => 'color', 'label' => 'Text Hover Color', 'selector' => '.em-case-study-button:hover'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.em-case-study-button a'),
array('property' => 'border-color', 'label' => 'Hover Border', 'selector' => '.em-case-study-button a:hover'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.em-case-study-button a'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '.em-case-study-button a:hover'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-case-study-button a'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-case-study-button a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-case-study-button a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-case-study-button a'),
),
'Content' => array(
array('property' => 'background', 'label' => 'BG Color', 'selector' => '.em-cases-study-content '),
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-cases-study-content '),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-cases-study-content '),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-cases-study-content'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-cases-study-content '),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-cases-study-content'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-cases-study-content '),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-cases-study-content '),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-cases-study-content '),
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color', 'selector' => '+ .cyber-single-cases-study'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.cyber-single-cases-study',),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.cyber-single-cases-study:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.cyber-single-cases-study:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)// Params
)// end shortcode key
)// first array
); // End add map
endif;
}
endif;
// ========== blog Area
if(!function_exists('cyber_case_study_area')){
function cyber_case_study_area( $atts , $content = null ){
ob_start();
// Attributes
$em_blog_box = shortcode_atts(array(
'layout' => '1',
'set_column' => '3',
'show_pagination' => '',
'items' => '3',
'order' => '',
'gutter' => '',
'show_content' => '',
'show_button' => '',
'btn_text' => '',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_blog_box );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$page = ( get_query_var( 'page' ) ? get_query_var( 'page' ) : 1 );
$paged = ( get_query_var( 'paged' ) ? get_query_var( 'paged' ) : $page );
$args = array(
'post_type' => 'em_case_study',
'posts_per_page' => intval( $items ),
'order' => $order ,
'paged' => $paged,
'page' => $paged
);
$the_query = new WP_Query($args);
if( $the_query->have_posts() ) {
switch ( $layout ) {
case '2':
?>
<div class=" blog_style_adn_2">
<div class="blog_wrap case_study_carousel owl-carousel curosel-style">
<?php while ($the_query->have_posts()) : $the_query->the_post();
?>
<!-- single blog -->
<div class=" <?php if( $gutter == 'yes' ){echo 'blog_nospace_adn';}?> col-md-12 col-xs-12 col-sm-12 " >
<div class="single_case_study <?php echo esc_attr( $extra_class ); ?>">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="cyber-single-cases-study ">
<!-- BLOG THUMB -->
<?php if(has_post_thumbnail()){?>
<div class="case-study-thumb ">
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?>
</a>
</div>
<?php } ?>
<div class="em-cases-study-content ">
<!-- BLOG TITLE -->
<div class="em-cases-study-title ">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="case_category">
<?php
switch(get_the_title()){
case 'Nokia':
{
echo '<span>Finland</span>';
break;
}
case 'SoftServe':
{
echo '<span>Ukraine / USA</span>';
break;
}
case 'Microsoft Corporation':
{
echo '<span>USA</span>';
break;
}
case 'Mynavi Corporation':
{
echo '<span>Japan</span>';
break;
}
case 'Striped Giraffe':
{
echo '<span>Germany</span>';
break;
}
case 'DPDGroup IT Solutions':
{
echo '<span>France</span>';
break;
}
case 'Atlassian':
{
echo '<span>Australia</span>';
break;
}
case 'ICEYE':
{
echo '<span>Poland / Finland</span>';
break;
}
case 'TomTom':
{
echo '<span>The Netherlands</span>';
break;
}
}
?>
</div>
<!-- Blog Description -->
<?php if($show_content=='yes'){?>
<!-- BLOG TITLE AND CONTENT -->
<div class="em-cases-study-inner ">
<div class="cases-study-content ">
<p><?php echo wp_trim_words( get_the_content(), 19, ' ' ); ?></p>
</div>
</div>
<?php } ?>
<!-- Blog Read More Button -->
<?php if($show_button=='yes'){?>
<div class="em-case-study-button">
<?php if($btn_text){?>
<a href="<?php the_permalink(); ?>" class="learn_btn"><?php echo $btn_text;?></a>
<i class="fa fa-long-arrow-right btn_icon"></i>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div> <!-- END SINGLE BLOG -->
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php
break;
default:
?>
<div class=" blog_style_adn_2">
<div class="blog_wrap case_study_carousel_main owl-carousel curosel-style style-one">
<?php while ($the_query->have_posts()) : $the_query->the_post();
?>
<!-- single blog -->
<div class=" <?php if( $gutter == 'yes' ){echo 'blog_nospace_adn';}?> col-md-12 col-xs-12 col-sm-12 " >
<div class="single_case_study <?php echo esc_attr( $extra_class ); ?>">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="cyber-single-cases-study ">
<!-- BLOG THUMB -->
<?php if(has_post_thumbnail()){?>
<div class="case-study-thumb ">
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?>
</a>
</div>
<?php } ?>
<div class="em-cases-study-content ">
<!-- BLOG TITLE -->
<div class="em-cases-study-title ">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="case_category">
<span>Marketing /</span>
<span>Design</span>
</div>
<!-- Blog Description -->
<?php if($show_content=='yes'){?>
<!-- BLOG TITLE AND CONTENT -->
<div class="em-cases-study-inner ">
<div class="cases-study-content ">
<p><?php echo wp_trim_words( get_the_content(), 19, ' ' ); ?></p>
</div>
</div>
<?php } ?>
<!-- Blog Read More Button -->
<?php if($show_button=='yes'){?>
<div class="em-case-study-button">
<?php if($btn_text){?>
<a href="<?php the_permalink(); ?>" class="learn_btn"><?php echo $btn_text;?></a>
<i class="fa fa-long-arrow-right btn_icon"></i>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div> <!-- END SINGLE BLOG -->
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php
break;
}
} //end have
return ob_get_clean();
}
}
add_shortcode ('cyber_case_study', 'cyber_case_study_area' );

View File

@@ -0,0 +1,499 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "799dfe44b1e9319b34cfc6e2514fa28ab34adfd4a6" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_case_study.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_case_study_2021-11-22-19-14-16.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
add_action('init', 'cyber_case_study_sections');
if(!function_exists('cyber_case_study_sections')):
function cyber_case_study_sections(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'cyber_case_study' => array(
'name' => esc_html__('EM Case Study Section', 'cyber'),
'description' => esc_html__('Display Blog Style', 'cyber'),
'icon' => 'kc-icon-blog-posts',
'category' => 'cyber',
'params' => array(
'General' => array(
array(
'name' => 'items',
'label' => __( 'Items Limit', 'cyber' ),
'type' => 'number_slider',
'value' => '3',
'description' => __(' Specify number of post that you want to show. Set 0 to get all team', 'cyber'),
'options' => array(
'min' => 0,
'max' => 75,
'unit' => '',
'show_input' => false
)
),
array(
'type' => 'select',
'label' => __( 'Order By', 'cyber' ),
'name' => 'order',
'options' => array(
'DESC' => __( 'Descending', 'cyber' ),
'ASC' => __( 'Ascending', 'cyber' )
)
),
array(
'type' => 'radio_image',
'label' => __( 'Select blog Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'When select style 2 that time, set column and set gutter not work', 'cyber' ),
'value' => '1'
),
array(
'type' => 'select',
'label' => __( 'Set Column', 'cyber' ),
'name' => 'set_column',
'description' => __( 'Enter number item per row', 'cyber' ),
'value' => '4',
'options' => array(
'12' => __( '1 Column', 'cyber' ),
'6' => __( '2 Column', 'cyber' ),
'4' => __( '3 Column', 'cyber' ),
'3' => __( '4 Column', 'cyber' )
),
),
array(
'name' => 'gutter',
'label' => __( 'Select No Gutter', 'cyber' ),
'type' => 'toggle',
'value' => 'no',
'description' => __( 'Remove column Spacing', 'cyber' ),
),
array(
'name' => 'show_content',
'label' => __( 'Display Pragraph', 'cyber' ),
'type' => 'toggle',
'value' => 'yes',
),
array(
'name' => 'show_button',
'label' => __( 'Display Button', 'cyber' ),
'type' => 'toggle',
'value' => 'yes',
),
array(
'type' => 'text',
'label' => __( 'Button Text', 'cyber' ),
'name' => 'btn_text',
'value' => 'Read More',
'description' => __( 'Enter Button Text', 'cyber' ),
'relation' => array(
'parent' => 'show_button',
'show_when' => 'yes',
)
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '.em-cases-study-title a:hover'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
),
'Desc' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.cases-study-content p'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.cases-study-content p'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.cases-study-content p'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.cases-study-content p'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.cases-study-content p'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.cases-study-content p'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.cases-study-content p'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.cases-study-content p'),
),
'Category' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.case_category span'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.case_category span'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.case_category span'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.case_category span'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.case_category span'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.case_category span'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.case_category span'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.case_category span'),
),
'Button' => array(
array('property' => 'color', 'label' => 'Text Color', 'selector' => '.em-case-study-button a'),
array('property' => 'color', 'label' => 'Text Hover Color', 'selector' => '.em-case-study-button:hover'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.em-case-study-button a'),
array('property' => 'border-color', 'label' => 'Hover Border', 'selector' => '.em-case-study-button a:hover'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.em-case-study-button a'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '.em-case-study-button a:hover'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-case-study-button a'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-case-study-button a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-case-study-button a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-case-study-button a'),
),
'Content' => array(
array('property' => 'background', 'label' => 'BG Color', 'selector' => '.em-cases-study-content '),
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-cases-study-content '),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-cases-study-content '),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-cases-study-content'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-cases-study-content '),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-cases-study-content'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-cases-study-content '),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-cases-study-content '),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-cases-study-content '),
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color', 'selector' => '+ .cyber-single-cases-study'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.cyber-single-cases-study',),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.cyber-single-cases-study:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.cyber-single-cases-study:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)// Params
)// end shortcode key
)// first array
); // End add map
endif;
}
endif;
// ========== blog Area
if(!function_exists('cyber_case_study_area')){
function cyber_case_study_area( $atts , $content = null ){
ob_start();
// Attributes
$em_blog_box = shortcode_atts(array(
'layout' => '1',
'set_column' => '3',
'show_pagination' => '',
'items' => '3',
'order' => '',
'gutter' => '',
'show_content' => '',
'show_button' => '',
'btn_text' => '',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_blog_box );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$page = ( get_query_var( 'page' ) ? get_query_var( 'page' ) : 1 );
$paged = ( get_query_var( 'paged' ) ? get_query_var( 'paged' ) : $page );
$args = array(
'post_type' => 'em_case_study',
'posts_per_page' => intval( $items ),
'order' => $order ,
'paged' => $paged,
'page' => $paged
);
$the_query = new WP_Query($args);
if( $the_query->have_posts() ) {
switch ( $layout ) {
case '2':
?>
<div class=" blog_style_adn_2">
<div class="blog_wrap case_study_carousel owl-carousel curosel-style">
<?php while ($the_query->have_posts()) : $the_query->the_post();
?>
<!-- single blog -->
<div class=" <?php if( $gutter == 'yes' ){echo 'blog_nospace_adn';}?> col-md-12 col-xs-12 col-sm-12 " >
<div class="single_case_study <?php echo esc_attr( $extra_class ); ?>">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="cyber-single-cases-study ">
<!-- BLOG THUMB -->
<?php if(has_post_thumbnail()){?>
<div class="case-study-thumb ">
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?>
</a>
</div>
<?php } ?>
<div class="em-cases-study-content ">
<!-- BLOG TITLE -->
<div class="em-cases-study-title ">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="case_category">
<?php
switch(get_the_title()){
case 'Nokia':
{
echo '<span>Finland</span>';
break;
}
case 'SoftServe':
{
echo '<span>Ukraine / USA</span>';
break;
}
case 'Microsoft Corporation':
{
echo '<span>USA</span>';
break;
}
case 'Mynavi Corporation':
{
echo '<span>Japan</span>';
break;
}
case 'Striped Giraffe':
{
echo '<span>Germany</span>';
break;
}
case 'DPDGroup IT Solutions':
{
echo '<span>France</span>';
break;
}
case 'Atlassian':
{
echo '<span>Australia</span>';
break;
}
case 'ICEYE':
{
echo '<span>Poland / Finland</span>';
break;
}
case 'TomTom':
{
echo '<span>The Netherlands</span>';
break;
}
case 'Equinix, Inc.':
{
echo '<span>USA</span>';
break;
}
}
?>
</div>
<!-- Blog Description -->
<?php if($show_content=='yes'){?>
<!-- BLOG TITLE AND CONTENT -->
<div class="em-cases-study-inner ">
<div class="cases-study-content ">
<p><?php echo wp_trim_words( get_the_content(), 19, ' ' ); ?></p>
</div>
</div>
<?php } ?>
<!-- Blog Read More Button -->
<?php if($show_button=='yes'){?>
<div class="em-case-study-button">
<?php if($btn_text){?>
<a href="<?php the_permalink(); ?>" class="learn_btn"><?php echo $btn_text;?></a>
<i class="fa fa-long-arrow-right btn_icon"></i>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div> <!-- END SINGLE BLOG -->
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php
break;
default:
?>
<div class=" blog_style_adn_2">
<div class="blog_wrap case_study_carousel_main owl-carousel curosel-style style-one">
<?php while ($the_query->have_posts()) : $the_query->the_post();
?>
<!-- single blog -->
<div class=" <?php if( $gutter == 'yes' ){echo 'blog_nospace_adn';}?> col-md-12 col-xs-12 col-sm-12 " >
<div class="single_case_study <?php echo esc_attr( $extra_class ); ?>">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="cyber-single-cases-study ">
<!-- BLOG THUMB -->
<?php if(has_post_thumbnail()){?>
<div class="case-study-thumb ">
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?>
</a>
</div>
<?php } ?>
<div class="em-cases-study-content ">
<!-- BLOG TITLE -->
<div class="em-cases-study-title ">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="case_category">
<span>Marketing /</span>
<span>Design</span>
</div>
<!-- Blog Description -->
<?php if($show_content=='yes'){?>
<!-- BLOG TITLE AND CONTENT -->
<div class="em-cases-study-inner ">
<div class="cases-study-content ">
<p><?php echo wp_trim_words( get_the_content(), 19, ' ' ); ?></p>
</div>
</div>
<?php } ?>
<!-- Blog Read More Button -->
<?php if($show_button=='yes'){?>
<div class="em-case-study-button">
<?php if($btn_text){?>
<a href="<?php the_permalink(); ?>" class="learn_btn"><?php echo $btn_text;?></a>
<i class="fa fa-long-arrow-right btn_icon"></i>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div> <!-- END SINGLE BLOG -->
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php
break;
}
} //end have
return ob_get_clean();
}
}
add_shortcode ('cyber_case_study', 'cyber_case_study_area' );

View File

@@ -0,0 +1,527 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c7279cd1229a1b" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_team_section.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_team_section_2021-03-22-21-57-50.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* Team Section
* Author: EM40
* Author URI: http://themexbd.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_team_sections');
if(!function_exists('em_team_sections')):
function em_team_sections(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_team_sections' => array(
'name' => __( 'EM Team Item', 'cyber' ),
'title' => 'Team Settings',
'icon' => 'kc-icon-team',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display teams layout style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'name' => 'image',
'label' => __( 'Avatar Image', 'cyber' ),
'type' => 'attach_image'
),
array(
'type' => 'text',
'label' => __( 'Image Size', 'cyber' ),
'name' => 'img_size',
'value' => 'full',
'description' => __(' Set the image size: "full", "thumbnail", "medium", "large" or other size ', 'cyber'),
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'Team Member Name',
'admin_label' => true
),
array(
'name' => 'subtitle',
'label' => __( 'Subtitle', 'cyber' ),
'type' => 'text',
'value' => 'Founder'
),
array(
'type' => 'textarea',
'name' => 'desc',
'label' => __( 'Description', 'cyber' ),
'value' => base64_encode('Lorem ipsum dolor sit amet, consecte tur adipisicing elit. Ipsa libero ab voluptatibus itaque quas in voluptas cyber.')
),
array(
'type' => 'radio_image',
'label' => __( 'Select Team Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
'3' => EM40_EXTENSION_URI . 'asstes/images/blog/layout3.jpg',
),
'description' => __( 'Select Your Team Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'socials' => array(
array(
'name' => 'facebook',
'label' => __( 'Facebook Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link facebook. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'twitter',
'label' => __( 'Twitter Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link twitter. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'google_plus',
'label' => __( 'Google Plus Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link google plus. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'linkedin',
'label' => __( 'Linkedin Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link linkedin. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'pinterest',
'label' => __( 'Pinterest Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link pinterest. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'flickr',
'label' => __( 'Flickr Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link flickr. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'instagram',
'label' => __( 'Instagram Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link instagram. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'dribbble',
'label' => __( 'Dribbble Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link dribbble. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'reddit',
'label' => __( 'Reddit Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link reddit. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'email',
'label' => __( 'Email Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link email. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-title h2'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-team-content-title h2'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-team-content-title h2'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-title h2'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-title h2'),
),
'Subtitle' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-subtitle'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-team-content-subtitle'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-team-content-subtitle'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-subtitle'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-subtitle'),
),
'content bg' => array(
array('property' => 'background', 'label' => 'Background Hover Color', 'selector' => '+:hover .em-team-content-waraper'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '+:hover .em-team-content-waraper'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '+:hover .em-team-content-waraper'),
),
'Social' => array(
array('property' => 'color', 'label' => 'Icon Color', 'selector' => '.em-team-content-socials a'),
array('property' => 'color', 'label' => 'Icon Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'background-color', 'selector' => '.em-team-content-socials a'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-socials a'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-socials a'),
array('property' => 'width', 'label' => 'Width', 'selector' => '.em-team-content-socials a'),
array('property' => 'height', 'label' => 'Height', 'selector' => '.em-team-content-socials a'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.em-team-content-socials a'),
array('property' => 'border-color', 'label' => 'Border Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.em-team-content-socials a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-socials a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-socials a'),
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-team'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-team:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-team:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_team_sections title="" desc="" custom_css_class=""]
if(!function_exists('em_team_section_shortcode')){
function em_team_section_shortcode($atts,$content){
ob_start();
$em_team_sections = shortcode_atts(array(
'image' => '',
'title' => '',
'subtitle' => '',
'desc' => '',
'layout' => '1',
'facebook' => '',
'twitter' => '',
'google_plus' => '',
'flickr' => '',
'linkedin' => '',
'pinterest' => '',
'instagram' => '',
'dribbble' => '',
'email' => '',
'reddit' => '',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_team_sections );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$data_title=$data_desc=$data_subtitle=$data_img=$img_size=$img_link="";
$size_array = array('full', 'medium', 'large', 'thumbnail');
if ( !empty( $image ) ) {
if( in_array( $img_size, $size_array ) ){
$image_data = wp_get_attachment_image_src( $image, $img_size );
$img_link = $image_data[0];
}else{
$image_full_width = wp_get_attachment_image_src( $image, 'full' );
$img_link = kc_tools::createImageSize( $image_full_width[0], $img_size );
}
}
if ( !empty( $title ) ) {
$data_title .= '<div class="em-team-content-title"><h2>';
$data_title .= $title;
$data_title .= '</h2></div>';
}
if ( !empty( $desc ) ) {
$data_desc .= '<div class="em-team-content-desc">';
$data_desc .= $desc;
$data_desc .= '</div>';
}
if ( !empty( $subtitle ) ) {
$data_subtitle .= '<div class="em-team-content-subtitle">';
$data_subtitle .= $subtitle;
$data_subtitle .= '</div>';
}
switch ($layout){
case'3':
?>
<div class="em-team main-style style-three <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<div class="em-team-content-title-inner">
<?php echo $data_title; ?>
</div>
<div class="em-team-content-subtitle-inner">
<?php echo $data_subtitle; ?>
</div>
</div>
</div>
</div>
<?php
break;
case'2':
?>
<div class="em-team style-two <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<?php echo $data_title; ?>
<?php echo $data_subtitle; ?>
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
<div class="em-team-content-desc">
<?php echo $data_desc; ?>
</div>
</div>
</div>
<?php
break;
default:
?>
<div class="em-team main-style <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<div class="em-team-content-title-inner">
<?php echo $data_title; ?>
</div>
<div class="em-team-content-subtitle-inner">
<?php echo $data_subtitle; ?>
</div>
</div>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_team_sections' ,'em_team_section_shortcode');
}

View File

@@ -0,0 +1,527 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c7279cd1229a1b" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_team_section.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_team_section_2021-03-22-22-00-09.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* Team Section
* Author: EM40
* Author URI: http://themexbd.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_team_sections');
if(!function_exists('em_team_sections')):
function em_team_sections(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_team_sections' => array(
'name' => __( 'EM Team Item', 'cyber' ),
'title' => 'Team Settings',
'icon' => 'kc-icon-team',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display teams layout style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'name' => 'image',
'label' => __( 'Avatar Image', 'cyber' ),
'type' => 'attach_image'
),
array(
'type' => 'text',
'label' => __( 'Image Size', 'cyber' ),
'name' => 'img_size',
'value' => 'full',
'description' => __(' Set the image size: "full", "thumbnail", "medium", "large" or other size ', 'cyber'),
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'Team Member Name',
'admin_label' => true
),
array(
'name' => 'subtitle',
'label' => __( 'Subtitle', 'cyber' ),
'type' => 'text',
'value' => 'Founder'
),
array(
'type' => 'textarea',
'name' => 'desc',
'label' => __( 'Description', 'cyber' ),
'value' => base64_encode('Lorem ipsum dolor sit amet, consecte tur adipisicing elit. Ipsa libero ab voluptatibus itaque quas in voluptas cyber.')
),
array(
'type' => 'radio_image',
'label' => __( 'Select Team Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
'3' => EM40_EXTENSION_URI . 'asstes/images/blog/layout3.jpg',
),
'description' => __( 'Select Your Team Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'socials' => array(
array(
'name' => 'facebook',
'label' => __( 'Facebook Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link facebook. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'twitter',
'label' => __( 'Twitter Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link twitter. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'google_plus',
'label' => __( 'Google Plus Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link google plus. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'linkedin',
'label' => __( 'Linkedin Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link linkedin. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'pinterest',
'label' => __( 'Pinterest Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link pinterest. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'flickr',
'label' => __( 'Flickr Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link flickr. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'instagram',
'label' => __( 'Instagram Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link instagram. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'dribbble',
'label' => __( 'Dribbble Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link dribbble. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'reddit',
'label' => __( 'Reddit Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link reddit. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'email',
'label' => __( 'Email Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link email. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-title h2'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-team-content-title h2'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-team-content-title h2'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-title h2'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-title h2'),
),
'Subtitle' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-subtitle'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-team-content-subtitle'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-team-content-subtitle'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-subtitle'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-subtitle'),
),
'content bg' => array(
array('property' => 'background', 'label' => 'Background Hover Color', 'selector' => '+:hover .em-team-content-waraper'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '+:hover .em-team-content-waraper'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '+:hover .em-team-content-waraper'),
),
'Social' => array(
array('property' => 'color', 'label' => 'Icon Color', 'selector' => '.em-team-content-socials a'),
array('property' => 'color', 'label' => 'Icon Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'background-color', 'selector' => '.em-team-content-socials a'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-socials a'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-socials a'),
array('property' => 'width', 'label' => 'Width', 'selector' => '.em-team-content-socials a'),
array('property' => 'height', 'label' => 'Height', 'selector' => '.em-team-content-socials a'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.em-team-content-socials a'),
array('property' => 'border-color', 'label' => 'Border Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.em-team-content-socials a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-socials a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-socials a'),
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-team'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-team:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-team:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_team_sections title="" desc="" custom_css_class=""]
if(!function_exists('em_team_section_shortcode')){
function em_team_section_shortcode($atts,$content){
ob_start();
$em_team_sections = shortcode_atts(array(
'image' => '',
'title' => '',
'subtitle' => '',
'desc' => '',
'layout' => '1',
'facebook' => '',
'twitter' => '',
'google_plus' => '',
'flickr' => '',
'linkedin' => '',
'pinterest' => '',
'instagram' => '',
'dribbble' => '',
'email' => '',
'reddit' => '',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_team_sections );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$data_title=$data_desc=$data_subtitle=$data_img=$img_size=$img_link="";
$size_array = array('full', 'medium', 'large', 'thumbnail');
if ( !empty( $image ) ) {
if( in_array( $img_size, $size_array ) ){
$image_data = wp_get_attachment_image_src( $image, $img_size );
$img_link = $image_data[0];
}else{
$image_full_width = wp_get_attachment_image_src( $image, 'full' );
$img_link = kc_tools::createImageSize( $image_full_width[0], $img_size );
}
}
if ( !empty( $title ) ) {
$data_title .= '<div class="em-team-content-title"><h2>';
$data_title .= $title;
$data_title .= '</h2></div>';
}
if ( !empty( $desc ) ) {
$data_desc .= '<div class="em-team-content-desc">';
$data_desc .= $desc;
$data_desc .= '</div>';
}
if ( !empty( $subtitle ) ) {
$data_subtitle .= '<div class="em-team-content-subtitle">';
$data_subtitle .= $subtitle;
$data_subtitle .= '</div>';
}
switch ($layout){
case'3':
?>
<div class="em-team main-style style-three <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook" target="_blank"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<div class="em-team-content-title-inner">
<?php echo $data_title; ?>
</div>
<div class="em-team-content-subtitle-inner">
<?php echo $data_subtitle; ?>
</div>
</div>
</div>
</div>
<?php
break;
case'2':
?>
<div class="em-team style-two <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<?php echo $data_title; ?>
<?php echo $data_subtitle; ?>
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
<div class="em-team-content-desc">
<?php echo $data_desc; ?>
</div>
</div>
</div>
<?php
break;
default:
?>
<div class="em-team main-style <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<div class="em-team-content-title-inner">
<?php echo $data_title; ?>
</div>
<div class="em-team-content-subtitle-inner">
<?php echo $data_subtitle; ?>
</div>
</div>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_team_sections' ,'em_team_section_shortcode');
}

View File

@@ -0,0 +1,527 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c7279cd1229a1b" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_team_section.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_team_section_2021-03-22-22-01-09.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* Team Section
* Author: EM40
* Author URI: http://themexbd.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_team_sections');
if(!function_exists('em_team_sections')):
function em_team_sections(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_team_sections' => array(
'name' => __( 'EM Team Item', 'cyber' ),
'title' => 'Team Settings',
'icon' => 'kc-icon-team',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display teams layout style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'name' => 'image',
'label' => __( 'Avatar Image', 'cyber' ),
'type' => 'attach_image'
),
array(
'type' => 'text',
'label' => __( 'Image Size', 'cyber' ),
'name' => 'img_size',
'value' => 'full',
'description' => __(' Set the image size: "full", "thumbnail", "medium", "large" or other size ', 'cyber'),
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'Team Member Name',
'admin_label' => true
),
array(
'name' => 'subtitle',
'label' => __( 'Subtitle', 'cyber' ),
'type' => 'text',
'value' => 'Founder'
),
array(
'type' => 'textarea',
'name' => 'desc',
'label' => __( 'Description', 'cyber' ),
'value' => base64_encode('Lorem ipsum dolor sit amet, consecte tur adipisicing elit. Ipsa libero ab voluptatibus itaque quas in voluptas cyber.')
),
array(
'type' => 'radio_image',
'label' => __( 'Select Team Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
'3' => EM40_EXTENSION_URI . 'asstes/images/blog/layout3.jpg',
),
'description' => __( 'Select Your Team Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'socials' => array(
array(
'name' => 'facebook',
'label' => __( 'Facebook Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link facebook. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'twitter',
'label' => __( 'Twitter Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link twitter. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'google_plus',
'label' => __( 'Google Plus Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link google plus. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'linkedin',
'label' => __( 'Linkedin Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link linkedin. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'pinterest',
'label' => __( 'Pinterest Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link pinterest. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'flickr',
'label' => __( 'Flickr Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link flickr. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'instagram',
'label' => __( 'Instagram Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link instagram. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'dribbble',
'label' => __( 'Dribbble Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link dribbble. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'reddit',
'label' => __( 'Reddit Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link reddit. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'email',
'label' => __( 'Email Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link email. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-title h2'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-team-content-title h2'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-team-content-title h2'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-title h2'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-title h2'),
),
'Subtitle' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-subtitle'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-team-content-subtitle'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-team-content-subtitle'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-subtitle'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-subtitle'),
),
'content bg' => array(
array('property' => 'background', 'label' => 'Background Hover Color', 'selector' => '+:hover .em-team-content-waraper'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '+:hover .em-team-content-waraper'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '+:hover .em-team-content-waraper'),
),
'Social' => array(
array('property' => 'color', 'label' => 'Icon Color', 'selector' => '.em-team-content-socials a'),
array('property' => 'color', 'label' => 'Icon Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'background-color', 'selector' => '.em-team-content-socials a'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-socials a'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-socials a'),
array('property' => 'width', 'label' => 'Width', 'selector' => '.em-team-content-socials a'),
array('property' => 'height', 'label' => 'Height', 'selector' => '.em-team-content-socials a'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.em-team-content-socials a'),
array('property' => 'border-color', 'label' => 'Border Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.em-team-content-socials a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-socials a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-socials a'),
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-team'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-team:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-team:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_team_sections title="" desc="" custom_css_class=""]
if(!function_exists('em_team_section_shortcode')){
function em_team_section_shortcode($atts,$content){
ob_start();
$em_team_sections = shortcode_atts(array(
'image' => '',
'title' => '',
'subtitle' => '',
'desc' => '',
'layout' => '1',
'facebook' => '',
'twitter' => '',
'google_plus' => '',
'flickr' => '',
'linkedin' => '',
'pinterest' => '',
'instagram' => '',
'dribbble' => '',
'email' => '',
'reddit' => '',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_team_sections );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$data_title=$data_desc=$data_subtitle=$data_img=$img_size=$img_link="";
$size_array = array('full', 'medium', 'large', 'thumbnail');
if ( !empty( $image ) ) {
if( in_array( $img_size, $size_array ) ){
$image_data = wp_get_attachment_image_src( $image, $img_size );
$img_link = $image_data[0];
}else{
$image_full_width = wp_get_attachment_image_src( $image, 'full' );
$img_link = kc_tools::createImageSize( $image_full_width[0], $img_size );
}
}
if ( !empty( $title ) ) {
$data_title .= '<div class="em-team-content-title"><h2>';
$data_title .= $title;
$data_title .= '</h2></div>';
}
if ( !empty( $desc ) ) {
$data_desc .= '<div class="em-team-content-desc">';
$data_desc .= $desc;
$data_desc .= '</div>';
}
if ( !empty( $subtitle ) ) {
$data_subtitle .= '<div class="em-team-content-subtitle">';
$data_subtitle .= $subtitle;
$data_subtitle .= '</div>';
}
switch ($layout){
case'3':
?>
<div class="em-team main-style style-three <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook" target="_blank"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<div class="em-team-content-title-inner">
<?php echo $data_title; ?>
</div>
<div class="em-team-content-subtitle-inner">
<?php echo $data_subtitle; ?>
</div>
</div>
</div>
</div>
<?php
break;
case'2':
?>
<div class="em-team style-two <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<?php echo $data_title; ?>
<?php echo $data_subtitle; ?>
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook" target="_blank"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
<div class="em-team-content-desc">
<?php echo $data_desc; ?>
</div>
</div>
</div>
<?php
break;
default:
?>
<div class="em-team main-style <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<div class="em-team-content-title-inner">
<?php echo $data_title; ?>
</div>
<div class="em-team-content-subtitle-inner">
<?php echo $data_subtitle; ?>
</div>
</div>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_team_sections' ,'em_team_section_shortcode');
}

View File

@@ -0,0 +1,309 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727483cdeb2ee" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_video.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_video_2021-03-07-17-18-02.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* em video Section
* Author: EM40
* Author URI: http://raytheme.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_video');
if(!function_exists('em_video')):
function em_video(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_video' => array(
'name' => __( 'EM video Box', 'cyber' ),
'title' => 'video Settings',
'icon' => 'fa-youtube-play',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display Service style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'type' => 'radio_image',
'label' => __( 'Select Feature Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'Select Your Feature Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Image', 'cyber' ),
'name' => 'show_img',
'value' => 'no',
'description' => esc_html__( 'set bg image.', 'cyber' )
),
array(
'type' => 'attach_image',
'name' => 'image',
'label' => esc_html__( 'Image', 'cyber' ),
'description' => esc_html__( 'Select image display after icon', 'cyber' ),
'relation' => array(
'parent' => 'show_img',
'show_when' => 'yes'
)
),
array(
'name' => 'icon',
'label' => __( 'Select Icon', 'cyber' ),
'type' => 'icon_picker',
'description' => __( 'Select icon display in box', 'cyber' ),
'value' => 'fa-youtube-play',
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Youtube', 'cyber' ),
'name' => 'show_youtube',
'value' => 'yes',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Youtube Video link', 'cyber' ),
'name' => 'em_youtube',
'description' => __( 'Enter the Youtube URL. For example: https://youtu.be/BS4TUd7FJSg', 'cyber' ),
'admin_label' => true,
'value' => 'https://youtu.be/BS4TUd7FJSg',
'relation' => array(
'parent' => 'show_youtube',
'show_when' => 'yes'
)
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Vimeo', 'cyber' ),
'name' => 'show_vimeo',
'value' => 'no',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Vimeo Video link', 'cyber' ),
'name' => 'em_vimeo',
'description' => __( 'Enter the Vimeo URL. For example: https://vimeo.com/174008281', 'cyber' ),
'admin_label' => true,
'value' => 'https://vimeo.com/174008281',
'relation' => array(
'parent' => 'show_vimeo',
'show_when' => 'yes'
)
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'OUR AWESOME VIDEO',
'admin_label' => true
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.choose-video-icon h3'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.choose-video-icon h3'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.choose-video-icon h3'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.choose-video-icon h3'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.choose-video-icon h3'),
),
'Icon' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.video-icon a i'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '+:hover .video-icon a i'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.video-icon a i'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.video-icon a i'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.video-icon a i'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.video-icon a i'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.video-icon a i')
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-video'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-video:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-video:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_video title="" desc="" icon=""]
if(!function_exists('em_video_shortcode')){
function em_video_shortcode($atts,$content){
ob_start();
$em_video = shortcode_atts(array(
'icon' => '',
'title' => '',
'show_img' => '',
'image' => '',
'show_youtube' => '',
'em_youtube' => '',
'show_vimeo' => '',
'em_vimeo' => '',
'layout' => '1',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_video );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$images = wp_get_attachment_image_src( $image, 'full');
switch($layout){
case'2':
?>
<div class="single-video style_two <?php echo esc_attr( $extra_class ); ?>">
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
default:
?>
<div id="parallax-video" class="single-video <?php echo esc_attr( $extra_class ); ?>">
<div class="slider-shape layer-1 layer" data-depth="0.50"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/vp1.jpg'; ?>" alt="01"></div>
<div class="slider-shape layer-2 layer" data-depth="0.45"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/vp2.jpg'; ?>" alt="02"></div>
<div class="slider-shape layer-3 layer" data-depth="0.35"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/vp3.jpg'; ?>" alt="03"></div>
<div class="slider-shape layer-4 layer" data-depth="0.30"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/vp4.jpg'; ?>" alt="04"></div>
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_video','em_video_shortcode');
}

View File

@@ -0,0 +1,309 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727fee7b04f16" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_video.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_video_2021-03-11-16-10-32.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* em video Section
* Author: EM40
* Author URI: http://raytheme.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_video');
if(!function_exists('em_video')):
function em_video(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_video' => array(
'name' => __( 'EM video Box', 'cyber' ),
'title' => 'video Settings',
'icon' => 'fa-youtube-play',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display Service style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'type' => 'radio_image',
'label' => __( 'Select Feature Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'Select Your Feature Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Image', 'cyber' ),
'name' => 'show_img',
'value' => 'no',
'description' => esc_html__( 'set bg image.', 'cyber' )
),
array(
'type' => 'attach_image',
'name' => 'image',
'label' => esc_html__( 'Image', 'cyber' ),
'description' => esc_html__( 'Select image display after icon', 'cyber' ),
'relation' => array(
'parent' => 'show_img',
'show_when' => 'yes'
)
),
array(
'name' => 'icon',
'label' => __( 'Select Icon', 'cyber' ),
'type' => 'icon_picker',
'description' => __( 'Select icon display in box', 'cyber' ),
'value' => 'fa-youtube-play',
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Youtube', 'cyber' ),
'name' => 'show_youtube',
'value' => 'yes',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Youtube Video link', 'cyber' ),
'name' => 'em_youtube',
'description' => __( 'Enter the Youtube URL. For example: https://youtu.be/BS4TUd7FJSg', 'cyber' ),
'admin_label' => true,
'value' => 'https://youtu.be/BS4TUd7FJSg',
'relation' => array(
'parent' => 'show_youtube',
'show_when' => 'yes'
)
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Vimeo', 'cyber' ),
'name' => 'show_vimeo',
'value' => 'no',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Vimeo Video link', 'cyber' ),
'name' => 'em_vimeo',
'description' => __( 'Enter the Vimeo URL. For example: https://vimeo.com/174008281', 'cyber' ),
'admin_label' => true,
'value' => 'https://vimeo.com/174008281',
'relation' => array(
'parent' => 'show_vimeo',
'show_when' => 'yes'
)
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'OUR AWESOME VIDEO',
'admin_label' => true
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.choose-video-icon h3'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.choose-video-icon h3'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.choose-video-icon h3'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.choose-video-icon h3'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.choose-video-icon h3'),
),
'Icon' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.video-icon a i'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '+:hover .video-icon a i'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.video-icon a i'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.video-icon a i'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.video-icon a i'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.video-icon a i'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.video-icon a i')
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-video'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-video:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-video:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_video title="" desc="" icon=""]
if(!function_exists('em_video_shortcode')){
function em_video_shortcode($atts,$content){
ob_start();
$em_video = shortcode_atts(array(
'icon' => '',
'title' => '',
'show_img' => '',
'image' => '',
'show_youtube' => '',
'em_youtube' => '',
'show_vimeo' => '',
'em_vimeo' => '',
'layout' => '1',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_video );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$images = wp_get_attachment_image_src( $image, 'full');
switch($layout){
case'2':
?>
<div class="single-video style_two <?php echo esc_attr( $extra_class ); ?>">
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
default:
?>
<div id="parallax-video" class="single-video <?php echo esc_attr( $extra_class ); ?>">
<div class="slider-shape layer-1 layer" data-depth="0.50"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/pexels-skitterphoto-10676.jpg'; ?>" alt="01"></div>
<div class="slider-shape layer-2 layer" data-depth="0.45"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/pexels-maksym-harbar-6353252.jpg'; ?>" alt="02"></div>
<div class="slider-shape layer-3 layer" data-depth="0.35"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/pexels-kaboompics-com-5611.jpg'; ?>" alt="03"></div>
<div class="slider-shape layer-4 layer" data-depth="0.30"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/malbork-1775501_1920.jpg'; ?>" alt="04"></div>
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_video','em_video_shortcode');
}

View File

@@ -0,0 +1,309 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727fee7b04f16" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_video.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_video_2021-03-11-16-12-55.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* em video Section
* Author: EM40
* Author URI: http://raytheme.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_video');
if(!function_exists('em_video')):
function em_video(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_video' => array(
'name' => __( 'EM video Box', 'cyber' ),
'title' => 'video Settings',
'icon' => 'fa-youtube-play',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display Service style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'type' => 'radio_image',
'label' => __( 'Select Feature Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'Select Your Feature Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Image', 'cyber' ),
'name' => 'show_img',
'value' => 'no',
'description' => esc_html__( 'set bg image.', 'cyber' )
),
array(
'type' => 'attach_image',
'name' => 'image',
'label' => esc_html__( 'Image', 'cyber' ),
'description' => esc_html__( 'Select image display after icon', 'cyber' ),
'relation' => array(
'parent' => 'show_img',
'show_when' => 'yes'
)
),
array(
'name' => 'icon',
'label' => __( 'Select Icon', 'cyber' ),
'type' => 'icon_picker',
'description' => __( 'Select icon display in box', 'cyber' ),
'value' => 'fa-youtube-play',
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Youtube', 'cyber' ),
'name' => 'show_youtube',
'value' => 'yes',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Youtube Video link', 'cyber' ),
'name' => 'em_youtube',
'description' => __( 'Enter the Youtube URL. For example: https://youtu.be/BS4TUd7FJSg', 'cyber' ),
'admin_label' => true,
'value' => 'https://youtu.be/BS4TUd7FJSg',
'relation' => array(
'parent' => 'show_youtube',
'show_when' => 'yes'
)
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Vimeo', 'cyber' ),
'name' => 'show_vimeo',
'value' => 'no',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Vimeo Video link', 'cyber' ),
'name' => 'em_vimeo',
'description' => __( 'Enter the Vimeo URL. For example: https://vimeo.com/174008281', 'cyber' ),
'admin_label' => true,
'value' => 'https://vimeo.com/174008281',
'relation' => array(
'parent' => 'show_vimeo',
'show_when' => 'yes'
)
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'OUR AWESOME VIDEO',
'admin_label' => true
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.choose-video-icon h3'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.choose-video-icon h3'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.choose-video-icon h3'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.choose-video-icon h3'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.choose-video-icon h3'),
),
'Icon' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.video-icon a i'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '+:hover .video-icon a i'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.video-icon a i'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.video-icon a i'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.video-icon a i'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.video-icon a i'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.video-icon a i')
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-video'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-video:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-video:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_video title="" desc="" icon=""]
if(!function_exists('em_video_shortcode')){
function em_video_shortcode($atts,$content){
ob_start();
$em_video = shortcode_atts(array(
'icon' => '',
'title' => '',
'show_img' => '',
'image' => '',
'show_youtube' => '',
'em_youtube' => '',
'show_vimeo' => '',
'em_vimeo' => '',
'layout' => '1',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_video );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$images = wp_get_attachment_image_src( $image, 'full');
switch($layout){
case'2':
?>
<div class="single-video style_two <?php echo esc_attr( $extra_class ); ?>">
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
default:
?>
<div id="parallax-video" class="single-video <?php echo esc_attr( $extra_class ); ?>">
<div class="slider-shape layer-1 layer" data-depth="0.50"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_1.jpg'; ?>" alt="01"></div>
<div class="slider-shape layer-2 layer" data-depth="0.45"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_2.jpg'; ?>" alt="02"></div>
<div class="slider-shape layer-3 layer" data-depth="0.35"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_3.jpg'; ?>" alt="03"></div>
<div class="slider-shape layer-4 layer" data-depth="0.30"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_4.jpg'; ?>" alt="04"></div>
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_video','em_video_shortcode');
}

View File

@@ -0,0 +1,309 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727fee7b04f16" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_video.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_video_2021-03-11-16-15-13.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* em video Section
* Author: EM40
* Author URI: http://raytheme.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_video');
if(!function_exists('em_video')):
function em_video(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_video' => array(
'name' => __( 'EM video Box', 'cyber' ),
'title' => 'video Settings',
'icon' => 'fa-youtube-play',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display Service style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'type' => 'radio_image',
'label' => __( 'Select Feature Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'Select Your Feature Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Image', 'cyber' ),
'name' => 'show_img',
'value' => 'no',
'description' => esc_html__( 'set bg image.', 'cyber' )
),
array(
'type' => 'attach_image',
'name' => 'image',
'label' => esc_html__( 'Image', 'cyber' ),
'description' => esc_html__( 'Select image display after icon', 'cyber' ),
'relation' => array(
'parent' => 'show_img',
'show_when' => 'yes'
)
),
array(
'name' => 'icon',
'label' => __( 'Select Icon', 'cyber' ),
'type' => 'icon_picker',
'description' => __( 'Select icon display in box', 'cyber' ),
'value' => 'fa-youtube-play',
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Youtube', 'cyber' ),
'name' => 'show_youtube',
'value' => 'yes',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Youtube Video link', 'cyber' ),
'name' => 'em_youtube',
'description' => __( 'Enter the Youtube URL. For example: https://youtu.be/BS4TUd7FJSg', 'cyber' ),
'admin_label' => true,
'value' => 'https://youtu.be/BS4TUd7FJSg',
'relation' => array(
'parent' => 'show_youtube',
'show_when' => 'yes'
)
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Vimeo', 'cyber' ),
'name' => 'show_vimeo',
'value' => 'no',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Vimeo Video link', 'cyber' ),
'name' => 'em_vimeo',
'description' => __( 'Enter the Vimeo URL. For example: https://vimeo.com/174008281', 'cyber' ),
'admin_label' => true,
'value' => 'https://vimeo.com/174008281',
'relation' => array(
'parent' => 'show_vimeo',
'show_when' => 'yes'
)
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'OUR AWESOME VIDEO',
'admin_label' => true
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.choose-video-icon h3'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.choose-video-icon h3'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.choose-video-icon h3'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.choose-video-icon h3'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.choose-video-icon h3'),
),
'Icon' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.video-icon a i'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '+:hover .video-icon a i'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.video-icon a i'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.video-icon a i'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.video-icon a i'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.video-icon a i'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.video-icon a i')
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-video'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-video:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-video:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_video title="" desc="" icon=""]
if(!function_exists('em_video_shortcode')){
function em_video_shortcode($atts,$content){
ob_start();
$em_video = shortcode_atts(array(
'icon' => '',
'title' => '',
'show_img' => '',
'image' => '',
'show_youtube' => '',
'em_youtube' => '',
'show_vimeo' => '',
'em_vimeo' => '',
'layout' => '1',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_video );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$images = wp_get_attachment_image_src( $image, 'full');
switch($layout){
case'2':
?>
<div class="single-video style_two <?php echo esc_attr( $extra_class ); ?>">
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
default:
?>
<div id="parallax-video" class="single-video <?php echo esc_attr( $extra_class ); ?>">
<div class="slider-shape layer-1 layer" data-depth="0.50"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_3.jpg'; ?>" alt="01"></div>
<div class="slider-shape layer-2 layer" data-depth="0.45"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_1.jpg'; ?>" alt="02"></div>
<div class="slider-shape layer-3 layer" data-depth="0.35"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_2.jpg'; ?>" alt="03"></div>
<div class="slider-shape layer-4 layer" data-depth="0.30"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_4.jpg'; ?>" alt="04"></div>
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_video','em_video_shortcode');
}

View File

@@ -0,0 +1,309 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727dc7c5fd4b4" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_video.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_video_2021-03-14-20-15-01.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* em video Section
* Author: EM40
* Author URI: http://raytheme.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_video');
if(!function_exists('em_video')):
function em_video(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_video' => array(
'name' => __( 'EM video Box', 'cyber' ),
'title' => 'video Settings',
'icon' => 'fa-youtube-play',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display Service style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'type' => 'radio_image',
'label' => __( 'Select Feature Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'Select Your Feature Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Image', 'cyber' ),
'name' => 'show_img',
'value' => 'no',
'description' => esc_html__( 'set bg image.', 'cyber' )
),
array(
'type' => 'attach_image',
'name' => 'image',
'label' => esc_html__( 'Image', 'cyber' ),
'description' => esc_html__( 'Select image display after icon', 'cyber' ),
'relation' => array(
'parent' => 'show_img',
'show_when' => 'yes'
)
),
array(
'name' => 'icon',
'label' => __( 'Select Icon', 'cyber' ),
'type' => 'icon_picker',
'description' => __( 'Select icon display in box', 'cyber' ),
'value' => 'fa-youtube-play',
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Youtube', 'cyber' ),
'name' => 'show_youtube',
'value' => 'yes',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Youtube Video link', 'cyber' ),
'name' => 'em_youtube',
'description' => __( 'Enter the Youtube URL. For example: https://youtu.be/BS4TUd7FJSg', 'cyber' ),
'admin_label' => true,
'value' => 'https://youtu.be/BS4TUd7FJSg',
'relation' => array(
'parent' => 'show_youtube',
'show_when' => 'yes'
)
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Vimeo', 'cyber' ),
'name' => 'show_vimeo',
'value' => 'no',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Vimeo Video link', 'cyber' ),
'name' => 'em_vimeo',
'description' => __( 'Enter the Vimeo URL. For example: https://vimeo.com/174008281', 'cyber' ),
'admin_label' => true,
'value' => 'https://vimeo.com/174008281',
'relation' => array(
'parent' => 'show_vimeo',
'show_when' => 'yes'
)
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'OUR AWESOME VIDEO',
'admin_label' => true
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.choose-video-icon h3'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.choose-video-icon h3'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.choose-video-icon h3'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.choose-video-icon h3'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.choose-video-icon h3'),
),
'Icon' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.video-icon a i'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '+:hover .video-icon a i'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.video-icon a i'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.video-icon a i'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.video-icon a i'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.video-icon a i'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.video-icon a i')
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-video'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-video:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-video:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_video title="" desc="" icon=""]
if(!function_exists('em_video_shortcode')){
function em_video_shortcode($atts,$content){
ob_start();
$em_video = shortcode_atts(array(
'icon' => '',
'title' => '',
'show_img' => '',
'image' => '',
'show_youtube' => '',
'em_youtube' => '',
'show_vimeo' => '',
'em_vimeo' => '',
'layout' => '1',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_video );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$images = wp_get_attachment_image_src( $image, 'full');
switch($layout){
case'2':
?>
<div class="single-video style_two <?php echo esc_attr( $extra_class ); ?>">
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
default:
?>
<div id="parallax-video" class="single-video <?php echo esc_attr( $extra_class ); ?>">
<div class="slider-shape layer-1 layer" data-depth="0.50"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_1.jpg'; ?>" alt="01"></div>
<div class="slider-shape layer-2 layer" data-depth="0.45"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_2.jpg'; ?>" alt="02"></div>
<div class="slider-shape layer-3 layer" data-depth="0.35"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_3.jpg'; ?>" alt="03"></div>
<div class="slider-shape layer-4 layer" data-depth="0.30"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_4.jpg'; ?>" alt="04"></div>
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_video','em_video_shortcode');
}

View File

@@ -0,0 +1,309 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727dc7c5fd4b4" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_video.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_video_2021-03-14-20-16-16.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* em video Section
* Author: EM40
* Author URI: http://raytheme.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_video');
if(!function_exists('em_video')):
function em_video(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_video' => array(
'name' => __( 'EM video Box', 'cyber' ),
'title' => 'video Settings',
'icon' => 'fa-youtube-play',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display Service style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'type' => 'radio_image',
'label' => __( 'Select Feature Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'Select Your Feature Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Image', 'cyber' ),
'name' => 'show_img',
'value' => 'no',
'description' => esc_html__( 'set bg image.', 'cyber' )
),
array(
'type' => 'attach_image',
'name' => 'image',
'label' => esc_html__( 'Image', 'cyber' ),
'description' => esc_html__( 'Select image display after icon', 'cyber' ),
'relation' => array(
'parent' => 'show_img',
'show_when' => 'yes'
)
),
array(
'name' => 'icon',
'label' => __( 'Select Icon', 'cyber' ),
'type' => 'icon_picker',
'description' => __( 'Select icon display in box', 'cyber' ),
'value' => 'fa-youtube-play',
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Youtube', 'cyber' ),
'name' => 'show_youtube',
'value' => 'yes',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Youtube Video link', 'cyber' ),
'name' => 'em_youtube',
'description' => __( 'Enter the Youtube URL. For example: https://youtu.be/BS4TUd7FJSg', 'cyber' ),
'admin_label' => true,
'value' => 'https://youtu.be/BS4TUd7FJSg',
'relation' => array(
'parent' => 'show_youtube',
'show_when' => 'yes'
)
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Vimeo', 'cyber' ),
'name' => 'show_vimeo',
'value' => 'no',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Vimeo Video link', 'cyber' ),
'name' => 'em_vimeo',
'description' => __( 'Enter the Vimeo URL. For example: https://vimeo.com/174008281', 'cyber' ),
'admin_label' => true,
'value' => 'https://vimeo.com/174008281',
'relation' => array(
'parent' => 'show_vimeo',
'show_when' => 'yes'
)
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'OUR AWESOME VIDEO',
'admin_label' => true
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.choose-video-icon h3'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.choose-video-icon h3'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.choose-video-icon h3'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.choose-video-icon h3'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.choose-video-icon h3'),
),
'Icon' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.video-icon a i'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '+:hover .video-icon a i'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.video-icon a i'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.video-icon a i'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.video-icon a i'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.video-icon a i'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.video-icon a i')
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-video'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-video:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-video:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_video title="" desc="" icon=""]
if(!function_exists('em_video_shortcode')){
function em_video_shortcode($atts,$content){
ob_start();
$em_video = shortcode_atts(array(
'icon' => '',
'title' => '',
'show_img' => '',
'image' => '',
'show_youtube' => '',
'em_youtube' => '',
'show_vimeo' => '',
'em_vimeo' => '',
'layout' => '1',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_video );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$images = wp_get_attachment_image_src( $image, 'full');
switch($layout){
case'2':
?>
<div class="single-video style_two <?php echo esc_attr( $extra_class ); ?>">
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
default:
?>
<div id="parallax-video" class="single-video <?php echo esc_attr( $extra_class ); ?>">
<div class="slider-shape layer-1 layer" data-depth="0.50"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/NE.jpg'; ?>" alt="01"></div>
<div class="slider-shape layer-2 layer" data-depth="0.45"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/NW.jpg'; ?>" alt="02"></div>
<div class="slider-shape layer-3 layer" data-depth="0.35"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/SE.jpg'; ?>" alt="03"></div>
<div class="slider-shape layer-4 layer" data-depth="0.30"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/SW.jpg'; ?>" alt="04"></div>
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_video','em_video_shortcode');
}

View File

@@ -0,0 +1,831 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c7279cd1229a1b" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/themes/cyber/header.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/themes/cyber/header_2021-03-22-22-22-13.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package cyber
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php global $cyber_opt; ?>
<!-- MAIN WRAPPER START -->
<div class="wrapper">
<?php if (!empty($cyber_opt['cyber_header_display_none_hide']) && $cyber_opt['cyber_header_display_none_hide']==true): ?>
<div class="em40_header_area_main hdisplay_none">
<?php else: ?>
<div class="em40_header_area_main">
<?php endif; ?>
<!-- HEADER TOP AREA -->
<?php $cyber_header_topa = get_post_meta( get_the_ID(),'_cyber_cyber_header_topa', true ); ?>
<?php if($cyber_header_topa==1){?>
<div class="cyber-header-top">
<div class="<?php if(!empty($cyber_opt['cyber_box_layout']) && $cyber_opt['cyber_box_layout']=="htopt_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<!-- STYLE 1 LEFT ADDRESS RIGHT ICON -->
<?php if(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_1"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-8 col-sm-8">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<!--<img src="https://doitinpoland.com/wp-content/uploads/2021/02/800px-Flag_of_Europe.svg_.png" width=50/>-->
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-4">
<div class="top-right-menu">
<ul class="social-icons text-right">
<li><a class="facebook social-icon" href="https://www.facebook.com/" title="Facebook" style="font-size:20px;"><i class="fa fa-facebook-square"></i></a></li>
<li><a class="linkedin social-icon" href="#" title="Linkedin" style="font-size:20px;"><i class="fa fa-linkedin-square"></i></a></li>
<?php /*
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}*/
?>
</ul>
</div>
</div>
</div>
<!-- STYLE 2 lEFT ICON RIGHT MENU -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_2"){?>
<div class="row top-both-p0">
<!-- TOP LEFT -->
<div class="col-xs-12 col-sm-3 col-md-3">
<div class="top-right-menu">
<ul class="social-icons text-left">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-9 col-sm-9">
<div class="top-address text-right">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
</div>
<!-- STYLE 3 LEFT OPENING HOUR RIGHT ICON -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_3"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-4 col-sm-8">
<div class="top-address menu_18">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_opening'])): ?>
<span><?php echo esc_html($cyber_opt['cyber_header_top_opening']); ?></span>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP MIDDLE -->
<div class="col-xs-12 col-md-4 col-sm-4">
<div class="top-right-menu ">
<ul class="social-icons text-left menu_18">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-12">
<div class="top-address em-login text-right menu_18">
<p>
<?php cyber_login();?>
</p>
</div>
</div>
</div>
<!-- STYLE 4 LEFT ADDRESS RIGHT ICON & SEARCH -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_4"){?>
<div class="row">
<!-- TOP LEFT // top search menu -->
<div class="col-xs-12 col-md-9 col-sm-8">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-3 col-sm-4">
<div class="top-right-menu litop">
<ul class="social-icons text-right">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
<div class="top-address em-quearys-top text-right ritop">
<div class="em-top-quearys-area">
<ul class="em-header-quearys">
<li class="em-quearys-menu">
<i class="fa fa-search t-quearys"></i>
<i class="fa fa-close t-close em-s-hidden "></i>
</li>
</ul>
<!--Search Form-->
<div class="em-quearys-inner">
<div class="em-quearys-form">
<form class="top-form-control" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
<input type="text" placeholder="<?php echo esc_attr_e( 'Type Your Keyword', 'cyber' ) ?>" name="s" value="<?php the_search_query(); ?>" />
<button class="top-quearys-style" type="submit">
<i class="fa fa-long-arrow-right"></i>
</button>
</form>
</div>
</div>
<!--End of Search Form-->
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<?php }elseif($cyber_header_topa==2){
}else{
if (!empty($cyber_opt['cyber_header_top_hide']) && $cyber_opt['cyber_header_top_hide']==true){ ?>
<!-- HEADER TOP AREA -->
<div class="cyber-header-top">
<div class="<?php if(!empty($cyber_opt['cyber_box_layout']) && $cyber_opt['cyber_box_layout']=="htopt_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<!-- STYLE 1 RIGHT ICON -->
<?php if(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_1"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-8 col-sm-9">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-3">
<div class="top-right-menu">
<ul class="social-icons text-right">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
</div>
<!-- STYLE 2 LEFT ICON RIGHT ADDRESS -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_2"){?>
<div class="row top-both-p0">
<!-- TOP RIGHT -->
<div class="col-xs-12 col-sm-3 col-md-3">
<div class="top-right-menu">
<ul class="social-icons text-left">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-9 col-sm-9">
<div class="top-address text-right">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
</div>
<!-- OPENING ICON AND LOGIN -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_3"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-4 col-sm-8">
<div class="top-address menu_18">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_opening'])): ?>
<span><?php echo esc_html($cyber_opt['cyber_header_top_opening']); ?></span>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP MIDDLE -->
<div class="col-xs-12 col-md-4 col-sm-4">
<div class="top-right-menu ">
<ul class="social-icons text-left menu_18">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-12">
<div class="top-address em-login text-right menu_18">
<p>
<?php cyber_login();?>
</p>
</div>
</div>
</div>
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_4"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-9 col-sm-8">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-3 col-sm-4">
<div class="top-right-menu litop">
<ul class="social-icons text-right">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
<div class="top-address em-quearys-top text-right ritop">
<div class="em-top-quearys-area">
<ul class="em-header-quearys">
<li class="em-quearys-menu">
<i class="fa fa-search t-quearys"></i>
<i class="fa fa-close t-close em-s-hidden "></i>
</li>
</ul>
<!--Search Form-->
<div class="em-quearys-inner">
<div class="em-quearys-form">
<form class="top-form-control" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
<input type="text" placeholder="<?php echo esc_attr_e( 'Type Your Keyword', 'cyber' ) ?>" name="s" value="<?php the_search_query(); ?>" />
<button class="top-quearys-style" type="submit">
<i class="fa fa-long-arrow-right"></i>
</button>
</form>
</div>
</div>
<!--End of Search Form-->
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<!-- END HEADER TOP AREA -->
<?php }else{}
}?>
<div class="mobile_logo_area d-sm-block d-md-block d-lg-none">
<div class="container">
<div class="row">
<div class="col-sm-12">
<?php cyber_mobile_top_logo(); ?>
</div>
</div>
</div>
</div>
<!-- START HEADER MAIN MENU AREA -->
<?php $cyber_header_style = get_post_meta( get_the_ID(),'_cyber_cyber_header_style', true ); ?>
<?php $cyber_logo_menu_style = get_post_meta( get_the_ID(),'_cyber_cyber_logo_menu_style', true ); ?>
<!-- HEADER TRANSPARENT MENU -->
<?php if($cyber_header_style==2){?>
<div class="cyber-main-menu transprent-menu heading_style_4 d-md-none d-lg-block d-sm-none d-none">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<?php if($cyber_logo_menu_style==1){?>
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<!-- TRANSPARENT WITH STYKY MENU -->
<?php }elseif($cyber_header_style==3){?>
<div class="cyber-main-menu one_page menu4 transprent-menu heading_style_5 d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed bdbar">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- ONE PAGE MANU -->
<?php }elseif($cyber_header_style==4){?>
<!-- HEADER MANU AREA -->
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_onepage_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_one_page_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER ONEPAGE TRANSPARENT MENU -->
<?php }elseif($cyber_header_style==5){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none one_page transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_one_page_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- ONEPAGE TRANSPRENT WITH STYKY MENU -->
<?php } elseif($cyber_header_style==6){?>
<div class="cyber-main-menu one_page menu4 d-md-none d-lg-block d-sm-none d-none transprent-menu">
<div class="cyber_nav_area scroll_fixed bdbar">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_one_page_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER MAIN MENU WITH STICKY -->
<?php }elseif($cyber_header_style==7){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER WITH SEARCH -->
<?php }elseif($cyber_header_style==8){?>
<div class="cyber-main-menu search-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER TRANSPARENT WITH SEARCH -->
<?php }elseif($cyber_header_style==9){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu tr_search">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER MENU WITH BUTTON -->
<?php }elseif($cyber_header_style==10){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER MENU WITHOUT LOGO -->
<?php }elseif($cyber_header_style==14){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_one_page_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- DEFAULT MANU CONDITION = 1 -->
<?php }elseif($cyber_header_style==16){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<!-- LOGO -->
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- DEFAULT MANU CONDITION = 1 -->
<?php }elseif($cyber_header_style==12){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<!-- LOGO -->
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }elseif($cyber_header_style==15){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu tr-btn-search">
<div class="trp_nav_area">
<div class="container-fluid">
<div class="row logo-left">
<div class="col-md-2 col-sm-3 col-xs-3">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-7 col-sm-6 col-xs-6">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
<div class="col-md-3 col-sm-3 col-xs-3">
<div class="search_button">
<?php cyber_search_code(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } elseif($cyber_header_style==17){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none one_page transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_one_page_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php } elseif($cyber_header_style==18){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none one_page menu-18 ">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_onepage_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_one_page_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }else{ ?>
<!-- ================ REDUX strat ================ -->
<?php if(!empty($cyber_opt['cyber_defaulth_menu_layout']) && $cyber_opt['cyber_defaulth_menu_layout']==2 ){?>
<!-- HEADER TRANSPARENT MENU -->
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }elseif(!empty($cyber_opt['cyber_defaulth_menu_layout']) && $cyber_opt['cyber_defaulth_menu_layout']==3 ){?>
<!-- TRANSPARENT MANU WITH SKITY -->
<div class="cyber-main-menu one_page menu4 d-md-none d-lg-block d-sm-none d-none transprent-menu ">
<div class="cyber_nav_area scroll_fixed bdbar">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- MAIN HEADER MENU WITH STIKY -->
<?php }elseif(!empty($cyber_opt['cyber_defaulth_menu_layout']) && $cyber_opt['cyber_defaulth_menu_layout']==1 ){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }else{ ?>
<!-- HEADER DEFAULT MANU AREA -->
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
<?php } ?>
<!-- MOBILE MENU AREA -->
<div class="home-2 mbm d-sm-block d-md-block d-lg-none header_area main-menu-area">
<div class="menu_area mobile-menu">
<nav>
<?php cyber_mobile_menu(); ?>
</nav>
</div>
</div>
<!-- END MOBILE MENU AREA -->
</div>

View File

@@ -0,0 +1,831 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c7279cd1229a1b" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/themes/cyber/header.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/themes/cyber/header_2021-03-22-23-08-21.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package cyber
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php global $cyber_opt; ?>
<!-- MAIN WRAPPER START -->
<div class="wrapper">
<?php if (!empty($cyber_opt['cyber_header_display_none_hide']) && $cyber_opt['cyber_header_display_none_hide']==true): ?>
<div class="em40_header_area_main hdisplay_none">
<?php else: ?>
<div class="em40_header_area_main">
<?php endif; ?>
<!-- HEADER TOP AREA -->
<?php $cyber_header_topa = get_post_meta( get_the_ID(),'_cyber_cyber_header_topa', true ); ?>
<?php if($cyber_header_topa==1){?>
<div class="cyber-header-top">
<div class="<?php if(!empty($cyber_opt['cyber_box_layout']) && $cyber_opt['cyber_box_layout']=="htopt_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<!-- STYLE 1 LEFT ADDRESS RIGHT ICON -->
<?php if(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_1"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-8 col-sm-8">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<!--<img src="https://doitinpoland.com/wp-content/uploads/2021/02/800px-Flag_of_Europe.svg_.png" width=50/>-->
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-4">
<div class="top-right-menu">
<ul class="social-icons text-right">
<li><a class="facebook social-icon" href="https://www.facebook.com/Doitinpolandcom-104006385116332" target="_blank" title="Facebook" style="font-size:20px;"><i class="fa fa-facebook-square"></i></a></li>
<li><a class="linkedin social-icon" href="https://www.linkedin.com/company/doitinpoland-com/" title="Linkedin" target="_blank" style="font-size:20px;"><i class="fa fa-linkedin-square"></i></a></li>
<?php /*
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}*/
?>
</ul>
</div>
</div>
</div>
<!-- STYLE 2 lEFT ICON RIGHT MENU -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_2"){?>
<div class="row top-both-p0">
<!-- TOP LEFT -->
<div class="col-xs-12 col-sm-3 col-md-3">
<div class="top-right-menu">
<ul class="social-icons text-left">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-9 col-sm-9">
<div class="top-address text-right">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
</div>
<!-- STYLE 3 LEFT OPENING HOUR RIGHT ICON -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_3"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-4 col-sm-8">
<div class="top-address menu_18">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_opening'])): ?>
<span><?php echo esc_html($cyber_opt['cyber_header_top_opening']); ?></span>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP MIDDLE -->
<div class="col-xs-12 col-md-4 col-sm-4">
<div class="top-right-menu ">
<ul class="social-icons text-left menu_18">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-12">
<div class="top-address em-login text-right menu_18">
<p>
<?php cyber_login();?>
</p>
</div>
</div>
</div>
<!-- STYLE 4 LEFT ADDRESS RIGHT ICON & SEARCH -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_4"){?>
<div class="row">
<!-- TOP LEFT // top search menu -->
<div class="col-xs-12 col-md-9 col-sm-8">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-3 col-sm-4">
<div class="top-right-menu litop">
<ul class="social-icons text-right">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
<div class="top-address em-quearys-top text-right ritop">
<div class="em-top-quearys-area">
<ul class="em-header-quearys">
<li class="em-quearys-menu">
<i class="fa fa-search t-quearys"></i>
<i class="fa fa-close t-close em-s-hidden "></i>
</li>
</ul>
<!--Search Form-->
<div class="em-quearys-inner">
<div class="em-quearys-form">
<form class="top-form-control" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
<input type="text" placeholder="<?php echo esc_attr_e( 'Type Your Keyword', 'cyber' ) ?>" name="s" value="<?php the_search_query(); ?>" />
<button class="top-quearys-style" type="submit">
<i class="fa fa-long-arrow-right"></i>
</button>
</form>
</div>
</div>
<!--End of Search Form-->
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<?php }elseif($cyber_header_topa==2){
}else{
if (!empty($cyber_opt['cyber_header_top_hide']) && $cyber_opt['cyber_header_top_hide']==true){ ?>
<!-- HEADER TOP AREA -->
<div class="cyber-header-top">
<div class="<?php if(!empty($cyber_opt['cyber_box_layout']) && $cyber_opt['cyber_box_layout']=="htopt_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<!-- STYLE 1 RIGHT ICON -->
<?php if(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_1"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-8 col-sm-9">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-3">
<div class="top-right-menu">
<ul class="social-icons text-right">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
</div>
<!-- STYLE 2 LEFT ICON RIGHT ADDRESS -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_2"){?>
<div class="row top-both-p0">
<!-- TOP RIGHT -->
<div class="col-xs-12 col-sm-3 col-md-3">
<div class="top-right-menu">
<ul class="social-icons text-left">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-9 col-sm-9">
<div class="top-address text-right">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
</div>
<!-- OPENING ICON AND LOGIN -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_3"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-4 col-sm-8">
<div class="top-address menu_18">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_opening'])): ?>
<span><?php echo esc_html($cyber_opt['cyber_header_top_opening']); ?></span>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP MIDDLE -->
<div class="col-xs-12 col-md-4 col-sm-4">
<div class="top-right-menu ">
<ul class="social-icons text-left menu_18">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-12">
<div class="top-address em-login text-right menu_18">
<p>
<?php cyber_login();?>
</p>
</div>
</div>
</div>
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_4"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-9 col-sm-8">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-3 col-sm-4">
<div class="top-right-menu litop">
<ul class="social-icons text-right">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
<div class="top-address em-quearys-top text-right ritop">
<div class="em-top-quearys-area">
<ul class="em-header-quearys">
<li class="em-quearys-menu">
<i class="fa fa-search t-quearys"></i>
<i class="fa fa-close t-close em-s-hidden "></i>
</li>
</ul>
<!--Search Form-->
<div class="em-quearys-inner">
<div class="em-quearys-form">
<form class="top-form-control" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
<input type="text" placeholder="<?php echo esc_attr_e( 'Type Your Keyword', 'cyber' ) ?>" name="s" value="<?php the_search_query(); ?>" />
<button class="top-quearys-style" type="submit">
<i class="fa fa-long-arrow-right"></i>
</button>
</form>
</div>
</div>
<!--End of Search Form-->
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<!-- END HEADER TOP AREA -->
<?php }else{}
}?>
<div class="mobile_logo_area d-sm-block d-md-block d-lg-none">
<div class="container">
<div class="row">
<div class="col-sm-12">
<?php cyber_mobile_top_logo(); ?>
</div>
</div>
</div>
</div>
<!-- START HEADER MAIN MENU AREA -->
<?php $cyber_header_style = get_post_meta( get_the_ID(),'_cyber_cyber_header_style', true ); ?>
<?php $cyber_logo_menu_style = get_post_meta( get_the_ID(),'_cyber_cyber_logo_menu_style', true ); ?>
<!-- HEADER TRANSPARENT MENU -->
<?php if($cyber_header_style==2){?>
<div class="cyber-main-menu transprent-menu heading_style_4 d-md-none d-lg-block d-sm-none d-none">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<?php if($cyber_logo_menu_style==1){?>
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<!-- TRANSPARENT WITH STYKY MENU -->
<?php }elseif($cyber_header_style==3){?>
<div class="cyber-main-menu one_page menu4 transprent-menu heading_style_5 d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed bdbar">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- ONE PAGE MANU -->
<?php }elseif($cyber_header_style==4){?>
<!-- HEADER MANU AREA -->
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_onepage_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_one_page_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER ONEPAGE TRANSPARENT MENU -->
<?php }elseif($cyber_header_style==5){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none one_page transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_one_page_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- ONEPAGE TRANSPRENT WITH STYKY MENU -->
<?php } elseif($cyber_header_style==6){?>
<div class="cyber-main-menu one_page menu4 d-md-none d-lg-block d-sm-none d-none transprent-menu">
<div class="cyber_nav_area scroll_fixed bdbar">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_one_page_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER MAIN MENU WITH STICKY -->
<?php }elseif($cyber_header_style==7){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER WITH SEARCH -->
<?php }elseif($cyber_header_style==8){?>
<div class="cyber-main-menu search-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER TRANSPARENT WITH SEARCH -->
<?php }elseif($cyber_header_style==9){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu tr_search">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER MENU WITH BUTTON -->
<?php }elseif($cyber_header_style==10){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER MENU WITHOUT LOGO -->
<?php }elseif($cyber_header_style==14){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_one_page_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- DEFAULT MANU CONDITION = 1 -->
<?php }elseif($cyber_header_style==16){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<!-- LOGO -->
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- DEFAULT MANU CONDITION = 1 -->
<?php }elseif($cyber_header_style==12){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<!-- LOGO -->
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }elseif($cyber_header_style==15){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu tr-btn-search">
<div class="trp_nav_area">
<div class="container-fluid">
<div class="row logo-left">
<div class="col-md-2 col-sm-3 col-xs-3">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-7 col-sm-6 col-xs-6">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
<div class="col-md-3 col-sm-3 col-xs-3">
<div class="search_button">
<?php cyber_search_code(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } elseif($cyber_header_style==17){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none one_page transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_one_page_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php } elseif($cyber_header_style==18){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none one_page menu-18 ">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_onepage_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_one_page_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }else{ ?>
<!-- ================ REDUX strat ================ -->
<?php if(!empty($cyber_opt['cyber_defaulth_menu_layout']) && $cyber_opt['cyber_defaulth_menu_layout']==2 ){?>
<!-- HEADER TRANSPARENT MENU -->
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }elseif(!empty($cyber_opt['cyber_defaulth_menu_layout']) && $cyber_opt['cyber_defaulth_menu_layout']==3 ){?>
<!-- TRANSPARENT MANU WITH SKITY -->
<div class="cyber-main-menu one_page menu4 d-md-none d-lg-block d-sm-none d-none transprent-menu ">
<div class="cyber_nav_area scroll_fixed bdbar">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- MAIN HEADER MENU WITH STIKY -->
<?php }elseif(!empty($cyber_opt['cyber_defaulth_menu_layout']) && $cyber_opt['cyber_defaulth_menu_layout']==1 ){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }else{ ?>
<!-- HEADER DEFAULT MANU AREA -->
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
<?php } ?>
<!-- MOBILE MENU AREA -->
<div class="home-2 mbm d-sm-block d-md-block d-lg-none header_area main-menu-area">
<div class="menu_area mobile-menu">
<nav>
<?php cyber_mobile_menu(); ?>
</nav>
</div>
</div>
<!-- END MOBILE MENU AREA -->
</div>

View File

@@ -0,0 +1,78 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727119a8e6c5f" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/themes/cyber/template-parts/content-single.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/themes/cyber/template-parts/content-single_2021-03-17-20-23-11.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
single details page
*/
?>
<div class="cyber-single-blog-details">
<?php if(has_post_thumbnail()){?>
<div class="cyber-single-blog--thumb">
<?php the_post_thumbnail('cyber-blog-single'); ?>
</div>
<?php } ?>
<div class="cyber-single-blog-details-inner">
<?php if( 'post' == get_post_type() ) { ?>
<div class="single-blog-title">
<h2><?php the_title();?></h2>
</div>
<!-- BLOG POST META -->
<div class="cyber-blog-meta txp-meta">
<div class="cyber-blog-meta-left">
<!-- <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>"> <?php the_author(); ?></a> -->
<span><?php echo get_the_time(get_option('date_format')); ?></span>
<a class="meta_comments" href="<?php comments_link(); ?>">
<?php comments_number( esc_html__('0 Comments','cyber'), esc_html__('1 Comments','cyber'), esc_html__('% Comments','cyber') );?>
</a>
</div>
</div>
<?php } // if post ?>
<?php if ( '' != get_the_content() ) { ?>
<div class="cyber-single-blog-content">
<div class="single-blog-content">
<?php the_content(); ?>
<div class="page-list-single">
<?php
/**
* Display In-Post Pagination
*/
wp_link_pages( array(
'link_before' => '<span>',
'link_after' => '</span>',
'before' => '<p class="inner-post-pagination"><span>' . esc_html__('Pages:', 'cyber'),
'after' => '</span></p>'
)); ?>
</div>
</div>
</div>
<?php } ?>
<?php if( 'post' == get_post_type() ) { ?>
<div class="cyber-blog-social">
<div class="cyber-single-icon">
<?php
if( function_exists('cyber_blog_sharing') ){
cyber_blog_sharing();
}
?>
</div>
</div>
<?php } ?>
</div>
</div>
<?php get_template_part( 'template-parts/biography');?>
<?php //comments_template();