first commit
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
//define
|
||||
define( 'EM_URL', plugins_url() );
|
||||
define( 'EM_DIR', dirname( __FILE__ ) );
|
||||
|
||||
add_action('init', 'em_initfont');
|
||||
function em_initfont() {
|
||||
|
||||
if( function_exists( 'kc_add_icon' ) ) {
|
||||
|
||||
kc_add_icon( plugins_url('/css/flaticon.css', __FILE__) );
|
||||
kc_add_icon( plugins_url('/css/icofont.min.css', __FILE__) );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
// Call shortcodes file
|
||||
include_once(EM_DIR. '/shortcodes/em_section_title.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_slider.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_feature_box.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_service_box.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_portfolio.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_team_section.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_testimonial.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_pricing.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_blog.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_banner_slider.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_slick_slider.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_call_to_action.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_single_slick.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_image_slide.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_image_slider.php');
|
||||
include_once(EM_DIR. '/shortcodes/post-type.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_counter.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_video.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_tab_post.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_case_study.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_brand.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_about_us.php');
|
||||
include_once(EM_DIR. '/shortcodes/work_process.php');
|
||||
include_once(EM_DIR. '/shortcodes/effective-slider.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_hero_slider.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_icon_box.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_button.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_service_curosel.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_screenshot_slider.php');
|
||||
include_once(EM_DIR. '/shortcodes/em_screenshot_slide.php');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* BLOG SOCIAL SHARING LINKS */
|
||||
|
||||
if ( ! function_exists('cyber_blog_sharing') ) {
|
||||
function cyber_blog_sharing( ) {
|
||||
global $post;
|
||||
|
||||
$html = '<div class="cyber-single-icon-inner">';
|
||||
|
||||
// facebook
|
||||
$facebook_url = 'https://www.facebook.com/sharer/sharer.php?u='. get_the_permalink();
|
||||
$html .= '<a href="'. esc_url( $facebook_url ) .'" ><i class="fa fa-facebook"></i></a>';
|
||||
|
||||
// twitter
|
||||
$twitter_url = 'https://twitter.com/share?'. esc_url(get_permalink()) .'&text='. get_the_title();
|
||||
$html .= '<a href="'. esc_url( $twitter_url ) .'" ><i class="fa fa-twitter"></i></a>';
|
||||
|
||||
// google plus
|
||||
$google_plus_url = 'https://plus.google.com/share?url='. esc_url(get_permalink());
|
||||
$html .= '<a href="'. esc_url( $google_plus_url ) .'" ><i class="fa fa-google-plus"></i></a>';
|
||||
|
||||
// linkedin
|
||||
$linkedin_url = 'http://www.linkedin.com/shareArticle?url='. esc_url(get_permalink()) .'&title='. get_the_title();
|
||||
$html .= '<a href="'. esc_url( $linkedin_url ) .'" ><i class="fa fa-linkedin"></i></a>';
|
||||
|
||||
// pinterest
|
||||
$pinterest_url = 'https://pinterest.com/pin/create/bookmarklet/?url='. esc_url(get_permalink()) .'&description='. get_the_title() .'&media='. esc_url(wp_get_attachment_url( get_post_thumbnail_id($post->ID)) );
|
||||
$html .= '<a href="'. esc_url( $pinterest_url ) .'" ><i class="fa fa-pinterest"></i></a>';
|
||||
|
||||
// reddit
|
||||
$reddit_url = 'http://reddit.com/submit?url='. esc_url(get_permalink()) .'&title='. get_the_title();
|
||||
$html .= '<a href="'. esc_url( $reddit_url ) .'" ><i class="fa fa-reddit"></i></a>';
|
||||
|
||||
$html .= '</div>';
|
||||
|
||||
echo ''. $html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user