/**
  * Attribute getter method
  * 
  * @return the contents of the component
  */
 function get_contents_attr()
 {
     $value = array('headers' => wiziapp_content_get_post_headers(FALSE), 'data' => '');
     $contents = $this->data[1];
     if ($contents != null) {
         $value['data'] = $contents;
     }
     return $value;
 }
示例#2
0
<?php

ob_start();
if (have_posts()) {
    while (have_posts()) {
        the_post();
        wiziapp_content_get_post_headers(true);
        echo ob_get_contents();
        ob_end_clean();
        include '_content.php';
    }
} else {
    // No content???
}
示例#3
0
/**
 * This class handle all the webview events and provides an external interface for the application
 * and the simulator. The simulator is getting some special treatment to help capture links and such
 */
?>
    
            window.galleryPrefix = "<?php 
echo wiziapp_buildPostImagesGalleryLink($post->ID);
?>
%2F";
            window.wiziappDebug = <?php 
echo WP_WIZIAPP_DEBUG ? "true" : "false";
?>
;
            window.wiziappPostHeaders = <?php 
echo json_encode(wiziapp_content_get_post_headers(FALSE));
?>
;
            window.wiziappRatingUrl = '<?php 
echo get_bloginfo('url');
?>
/?wiziapp/getrate/post/<?php 
echo $post->ID;
?>
';
            window.wiziappCommentsCountUrl = '<?php 
echo get_bloginfo('url');
?>
/?wiziapp/post/<?php 
echo $post->ID;
?>