/**
  * Attribute getter method
  * 
  * @return the actionURL of the component
  */
 function get_actionURL_attr()
 {
     $url = '';
     if ($this->data[0]['plugin'] == 'bypost') {
         $url = wiziapp_buildPostImagesGalleryLink($this->data[0]['content_id']);
     } else {
         $url = wiziapp_buildPluginAlbumLink($this->data[0]['plugin'], $this->data[0]['id']);
     }
     return $url;
 }
Esempio n. 2
0
                            </div>
                        </a> 
                    </li>    
                </ul>       
            </div>
        </div>  
        <script type="text/javascript">
            <?php 
/**
 * 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;