Exemple #1
1
function image_gallery_plugin()
{
    $images = miu_get_images($post->ID);
    if (!empty($images)) {
        ?>

        <div id = "gallery" class = "swipe" style = "overflow:hidden;">
            <div class = "swipe-wrap">
                <div>
                    <img src="<?php 
        echo $images[0];
        ?>
">
                </div>                                    

            </div>   	
        </div>
        <?php 
    }
    ?>

    <div id="thumbs_img">  
        <?php 
    if (!empty($images)) {
        ?>

            <?php 
        foreach ($images as $image) {
            ?>
                <a href="<?php 
            echo $image;
            ?>
" class="thumbnail"><img src="<?php 
            echo $image;
            ?>
" with="100px" height="100px"/></a>
            <?php 
        }
        ?>

        <?php 
    }
    ?>
    </div> <?php 
}
Exemple #2
0
/**
 * The Template for displaying all single posts
 *
 * @package WordPress
 * @subpackage Twenty_Fourteen
 * @since Twenty Fourteen 1.0
 */
get_header();
$posts_page = get_page(get_option('page_for_posts'));
$title = $posts_page->post_title;
$desc = $posts_page->post_content;
if (has_post_thumbnail($posts_page->ID)) {
    $image = wp_get_attachment_image_src(get_post_thumbnail_id($posts_page->ID), 'single-post-thumbnail');
}
$car_details = get_post_meta($posts_page->ID, 'car_details', true);
$images = miu_get_images($posts_page->ID, 800, 600);
$terms = wp_get_post_terms($posts_page->ID, 'carmodels', array("fields" => "all"));
foreach ($terms as $term) {
    $term_id = $term->term_id;
    $term_name = $term->name;
    $cat_logo = z_taxonomy_image_url($term->term_id);
}
?>
<section class="banner-block-img" style="background:url('<?php 
_e($image[0]);
?>
') no-repeat scroll 0 0 / 100% auto; ">
<div class="container">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
	<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 ">
	<div class="lompo1">
?>
" class="active"><?php 
echo $sel_project_text;
?>
</a></li>
	          <!-- <li class="right"> <a href= "<?php 
echo get_site_url() . $go_backlink;
?>
">&larr; back</a></li> -->
	          
	        </ul>
	        <?php 
$custom = get_post_custom();
//echo "<pre>",print_r(get_images_src('custom-full',true,$custom[thumbnail_id]));
//echo "Post :".get_post_meta(get_the_ID(), 'miu_images', true);
$galimgarr = miu_get_images(get_the_ID());
if (count($galimgarr) > 0) {
    ?>
		        <div class="contentmax content-slick ">
		        	<div class="row">
		        		<div class="large-7 columns column-slick">
		        			<div class="slider multiple-items">
		        				  <?php 
    foreach ($galimgarr as $keyimg => $valimg) {
        ?>
										<div><img src="<?php 
        echo $valimg;
        ?>
" class="pinthis" /></div>
							  <?php 
    }
Exemple #4
0
    <div class="row">
        <div class="col-md-12">
            <div class="panel">
                <div class="panel-body">
                    <!--/stories-->
                    <?php 
// we add this, to show all posts in our
// Glossary sorted alphabetically
$args = array('posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC');
$glossaryposts = get_posts($args);
// here comes The Loop!
foreach ($glossaryposts as $post) {
    setup_postdata($post);
    ?>
                        <?php 
    $images = miu_get_images($post_id = null);
    ?>

                        <div class="row">
                            <br>
                            <div class="col-md-2 col-sm-3 text-center">
                                <a class="story-img" href="#"><img src="<?php 
    echo $images[0];
    ?>
" style="width:100px;height:100px" class="img-circle"></a>
                            </div>
                            <div class="col-md-10 col-sm-9">
                                <h3><?php 
    the_title();
    ?>
</h3>