Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // function to pull entries from one form
- if(is_array($inquiries)){
- // show # of inquiries?
- if($atts['showcount']){
- $count = count($inquiries);
- if(!count)$count='0';
- $html = '<h4 class="inquiries_count" style="clear:both;"># of Inquiries: '.count($inquiries).'</h4>';
- }
- // show full details?
- if($atts['hidelist'])
- return $html;
- $html .= "<ul class='inquiries_list'>\n";
- // loop through all the returned results
- foreach ($inquiries as $inquiry) {
- $html .= "\t<li class='inquiries_row'>\n";
- $html .= $inquiry['date_created'].' - ';
- $html .= $inquiry[7].' - '; //name
- $html .= $inquiry[9].'<br />'; //name
- $field_8_long = RGFormsModel::get_field_value_long($inquiry['id'], $inquiry[8], $form_id, true);
- $html .= '<blockquote>'.$field_8_long.'</blockquote>'; //name
- $html .= "</li>\n";
- }
- }
- $html .= '</ul>';
- // return the html output from the shortcode
- return $html;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement