Esempio n. 1
0
 //end if ! link
 $blogtitle = $struct->getField('title');
 $bloglink = $struct->getField('link');
 if (is_a($bloglink, 'Outline')) {
     foreach ($bloglink->getNodes() as $links) {
         if ($links->getField('rel') == 'alternate') {
             $bloglink = $links->getField('href');
             break;
         }
         //end if alternate
     }
     //end foreach
 }
 //end if is_a $bloglink
 if (isset($_REQUEST['all'])) {
     $struct = new Outline(array_reverse($struct->toArray()));
     foreach ($struct->getNodes() as $item) {
         $author = $item->getField('author');
         $author = is_a($author, 'Outline') ? $author->getField('name') : $author;
         if (stristr($author, 'noemail') || stristr($author, 'noone') || stristr($author, 'example.com')) {
             $author = '';
         }
         xanga_post_action('post', $item->getField('title'), $item->getField('description') ? $item->getField('description') : $item->getField('content'), $item->getField('link'), $author, $bloglink, $blogtitle);
     }
     //end foreach nodes
 } else {
     $item = $struct->getNode(0);
     $author = $item->getField('author');
     $author = is_a($author, 'Outline') ? $author->getField('name') : $author;
     if (stristr($author, 'noemail') || stristr($author, 'noone') || stristr($author, 'example.com')) {
         $author = '';