function get_gallery_popupobjs($post_id, $title_prefix = '') { $attachments = get_post_meta($post_id, '_gattachment', TRUE); wpprint($attachments); if ($attachments) { $gattachments = maybe_unserialize($attachments); $imagedata = array(); foreach ($gattachments as $attid => $img) { if (!empty($img)) { $attachment = get_gallery_attachment($attid); $imagedata[] = array('src' => $img['url'], 'title' => $title_prefix . $attachment->title); } } return json_encode($imagedata); } }
public function shortcodes($attrs, $content) { $atts = shortcode_atts(array('title' => '', 'column' => '3', 'cat' => ''), $attrs, 'services'); wpprint($atts); }
?> <section id="inner-content" class="sidebar-custom-inner"> <div class="<?php theme_layout_style(); ?> "> <div class="row"> <div class="entry-content col-xs-12 col-sm-8 col-md-9"> <form id="customer-informations" method="post" action="<?php the_permalink(); ?> " enctype="multipart/form-data" autocomplete="on"> <div id="customer-informations-stps"> <?php if (!empty($_POST)) { wpprint($_POST); } ?> <?php get_template_part('form-templates/tab', 'navbar'); ?> <?php get_template_part('form-templates/tab', 'borrows'); ?> <?php get_template_part('form-templates/tab', 'status'); ?> <?php