This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Custom Slider | |
function theme_kmca_teaser_slider($atts, $content) | |
{ | |
extract(shortcode_atts(array( | |
"class" => "", | |
"color" => "", | |
"type" => "", | |
"title" => "", | |
"subtitle" => "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="primary" class="content-area"> | |
<div id="content" class="site-content" role="main"> | |
<?php if(have_posts()) : ?> | |
<?php while(have_posts()) : the_post();?> | |
<?php $files = get_post_meta($post->ID, 'file_upload', true); | |
$video_source = get_post_meta($post->ID, 'video_source', true); | |
?> | |
<div class="entry"> | |
<h1><?php the_title() ?></h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="primary" class="content-area"> | |
<div id="content" class="site-content" role="main"> | |
<?php if(have_posts()) : ?> | |
<?php while(have_posts()) : the_post();?> | |
<?php $files = get_post_meta($post->ID, 'file_upload', true); | |
$video_source = get_post_meta($post->ID, 'video_source', true); | |
?> | |
<div class="entry"> | |
<h1><?php the_title() ?></h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The template for displaying all pages. | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the WordPress construct of pages | |
* and that other 'pages' on your WordPress site will use a | |
* different template. | |
* | |
* @package electec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The template for displaying all pages. | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the WordPress construct of pages | |
* and that other 'pages' on your WordPress site will use a | |
* different template. | |
* | |
* @package electec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul id="menu-main-nav" class="nav-menu"><li id="nav-menu-item-17" class="main-menu-item menu-item-even menu-item-depth-0 about menu-item menu-item-type-post_type menu-item-object-page"><a href="http://nsr.dev/about-us/" data-description="Our Story" class="menu-link main-menu-link">About Us</a><small class="nav_desc">Our Story</small> | |
<ul class="sub-menu menu-odd menu-depth-1"> | |
<li id="nav-menu-item-34" class="sub-menu-item menu-item-odd menu-item-depth-1 menu-item menu-item-type-post_type menu-item-object-page"><a href="http://nsr.dev/about-us/about-sub-page/" class="menu-link sub-menu-link">History</a></li> | |
<li id="nav-menu-item-32" class="sub-menu-item menu-item-odd menu-item-depth-1 menu-item menu-item-type-post_type menu-item-object-page"><a href="http://nsr.dev/about-us/values-mission/" class="menu-link sub-menu-link">Values & Mission</a></li> | |
<li id="nav-menu-item-33" class="sub-menu-item menu-item-odd menu-item-depth-1 menu-item menu-item-type-post_type menu-item-object-page"><a href="http |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function posts_by_day() { | |
global $json_api, $post; | |
$days = array(); | |
$query = new WP_Query( array( | |
'post_type' => array('post', 'imported_content' ), | |
'posts_per_page' => -1, | |
) ); | |
if( $query->have_posts() ): while( $query->have_posts() ): $query->the_post(); | |
if( !isset( $days[ get_the_time( 'Y-m-d' ) ] ) ) | |
$days[ get_the_time( 'Y-m-d' ) ] = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function msmb_delete( $atts ) { | |
global $post; | |
get_currentuserinfo(); | |
if (current_user_can('edit_post')) { | |
$deleteme = "<a href='" . wp_nonce_url(get_bloginfo('url').'/wp-admin/post.php?post='.$post->ID.'&action=trash', 'delete-post_' . $post->ID) . "'>Delete</a>"; | |
} | |
return $deleteme; | |
} | |
add_shortcode( 'delete_button', 'msmb_delete' ); |