예제 #1
0
     if ($geocachesNotPublished->count() > 0) {
         $content .= '<p><span class="content-title-noshade txt-blue08">' . tr('not_yet_published') . ':</span></p><br /><div><ul style="margin: -0.9em 0px 0.9em 0px; padding: 0px 0px 0px 10px; list-style-type: none; line-height: 1.2em; font-size: 115%;">';
         foreach ($geocachesNotPublished as $geocache) {
             $content .= "\n" . buildGeocacheHtml($geocache, $cache_notpublished_line);
         }
         $content .= '</ul></div>';
     }
     $waitAproveGeocaches = $user->getGeocachesWaitAproove();
     if ($waitAproveGeocaches->count() > 0) {
         $content .= '<br /><p><span class="content-title-noshade txt-blue08">' . tr('caches_waiting_approve') . ':</span></p><br /><div><ul style="margin: -0.9em 0px 0.9em 0px; padding: 0px 0px 0px 10px; list-style-type: none; line-height: 1.2em; font-size: 115%;">';
         foreach ($waitAproveGeocaches as $geocache) {
             $content .= "\n" . buildGeocacheHtml($geocache, $cache_line);
         }
         $content .= '</ul></div>';
     }
     $geocachesBlocked = $user->getGeocachesBlocked();
     if ($geocachesBlocked->count() > 0) {
         $content .= '<br /><p><span class="content-title-noshade txt-blue08">' . tr('caches_blocked') . ':</span></p><br /><div><ul style="margin: -0.9em 0px 0.9em 0px; padding: 0px 0px 0px 10px; list-style-type: none; line-height: 1.2em; font-size: 115%;">';
         foreach ($geocachesBlocked as $geocache) {
             $content .= "\n" . buildGeocacheHtml($geocache, $cache_line);
         }
         $content .= '</ul></div>';
     }
     // if user have blocked create new cache, display this info for owner of profile
     if ($user_record['hide_flag'] == 10) {
         $content .= '<p>&nbsp</p><p><span class="content-title-noshade txt-red08"><strong>' . tr('blocked_create_caches') . '</strong></span></p><br />';
     }
     if ($rscheck != 0) {
         $content .= '</div>';
     }
 }