<?php /** * Elgg system settings on initial installation * * @package Elgg * @subpackage Core * @author Curverider Ltd * @link http://elgg.org/ * */ echo "<p>" . autop(elgg_echo("installation:settings:description")) . "</p>"; echo elgg_view("settings/system", array("action" => "action/systemsettings/install"));
<?php /** * Elgg .htaccess not found message * Is saved to the errors register when the main .htaccess cannot be found * * @package Elgg * @subpackage Core * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider Ltd * @copyright Curverider Ltd 2008-2009 * @link http://elgg.org/ */ echo autop(elgg_echo('installation:error:htaccess')); ?> <textarea cols="120" rows="30"><?php echo $vars['.htaccess']; ?> </textarea>
* * @package Elgg.Core.Plugin * @subpackage uservalidationbyadmin.Administration */ $limit = get_input('limit', 10); $offset = get_input('offset', 0); // can't use elgg_list_entities() and friends because we don't use the default view for users. $ia = elgg_set_ignore_access(TRUE); $hidden_entities = access_get_show_hidden_status(); access_show_hidden_entities(TRUE); $options = array('type' => 'user', 'wheres' => uservalidationbyadmin_get_unvalidated_users_sql_where(), 'limit' => $limit, 'offset' => $offset, 'count' => TRUE); $count = elgg_get_entities($options); if (!$count) { access_show_hidden_entities($hidden_entities); elgg_set_ignore_access($ia); echo autop(elgg_echo('uservalidationbyadmin:admin:no_unvalidated_users')); return TRUE; } $options['count'] = FALSE; $users = elgg_get_entities($options); access_show_hidden_entities($hidden_entities); elgg_set_ignore_access($ia); // setup pagination $pagination = elgg_view('navigation/pagination', array('base_url' => 'admin/users/unvalidated', 'offset' => $offset, 'count' => $count, 'limit' => $limit)); $bulk_actions_checkbox = '<label><input type="checkbox" id="uservalidationbyadmin-checkall" />' . elgg_echo('uservalidationbyadmin:check_all') . '</label>'; $validate = elgg_view('output/url', array('href' => 'action/uservalidationbyadmin/validate/', 'text' => elgg_echo('uservalidationbyadmin:admin:validate'), 'title' => elgg_echo('uservalidationbyadmin:confirm_validate_checked'), 'class' => 'uservalidationbyadmin-submit', 'is_action' => true, 'is_trusted' => true)); /* $resend_email = elgg_view('output/url', array( 'href' => 'action/uservalidationbyadmin/resend_validation/', 'text' => elgg_echo('uservalidationbyadmin:admin:resend_validation'), 'title' => elgg_echo('uservalidationbyadmin:confirm_resend_validation_checked'),
$i = 0; if (!empty($vars['items'])) { foreach ($vars['items'] as $item) { // echo elgg_view_river_item($item); if (elgg_view_exists($item->view, 'default')) { $body = elgg_view($item->view, array('item' => $item), false, false, 'default'); $time = date("r", $item->posted); if ($entity = get_entity($item->object_guid)) { $url = htmlspecialchars($entity->getURL()); } else { $url = $vars['url']; } $title = strip_tags($body); $jsonitem = $item; $jsonitem->url = $url; $jsonitem->description = autop($body); $jsonitem->title = $title; unset($jsonitem->view); if ($subject = get_entity($item->subject_guid)) { elgg_view_entity($subject); } if ($object = get_entity($item->object_guid)) { elgg_view_entity($object); } $jsonexport['activity'][] = $jsonitem; } $i++; if ($i >= $vars['limit']) { break; } }
echo date("r", $vars['entity']->time_created); ?> </pubDate> <link><?php echo $vars['entity']->getURL(); ?> #<?php echo $vars['annotation']->id; ?> </link> <title><![CDATA[<?php echo $title; ?> ]]></title> <description><![CDATA[<?php echo autop($vars['annotation']->value); ?> ]]></description> <?php $owner = get_entity($vars['entity']->owner); if ($owner) { ?> <dc:creator><?php echo $owner->name; ?> </dc:creator> <?php } ?> <?php if ($vars['entity'] instanceof Locatable && $vars['entity']->getLongitude() && $vars['entity']->getLatitude()) {
* @subpackage Core * @author Curverider Ltd * @link http://elgg.org/ */ if ($vars['settings.php']) { echo elgg_echo('installation:settings:dbwizard:savefail'); ?> <div> <textarea rows="50" cols="120"><?php echo $vars['settings.php']; ?> </textarea> </div> <?php } else { echo autop(elgg_echo('installation:error:settings')); ?> <div> <h2><?php echo elgg_echo('installation:settings:dbwizard:prompt'); ?> </h2> <form method="POST"> <table cellpadding="0" cellspacing="10" style="background:#f1f1f1;"> <tr><td valign="top"><?php echo elgg_echo('installation:settings:dbwizard:label:user'); ?> </td><td valign="top"> <input type="text" name="db_install_vars[CONFIG_DBUSER]" /></td></tr> <tr><td valign="top"><?php echo elgg_echo('installation:settings:dbwizard:label:pass'); ?>
} ?> <br /><!-- bit of space at the bottom of the widget gallery --> </div><!-- /#customise_editpanel_rhs --> </div><!-- /#widget_picker_gallery --> <div class="customise_editpanel_instructions"> <h2><?php echo elgg_echo('defaultwidgets:' . $context . ':title'); ?> </h2> <?php echo autop(elgg_echo('widgets:add:description')); ?> </div> <div id="customise_page_view"> <table cellspacing="0"> <tr> <td colspan="2" align="left" valign="top"> <?php if (get_context() == "profile") { ?> <h2 class="profile_box"><?php echo elgg_echo("widgets:profilebox");
$return .= '<div class="clearfix"></div><div id="calendar"></div>'; $return .= '<ul class="evenstkey"><li class="available"></li><li>Available</li><li class="unavailable"></li><li>Unavailable</li></ul>'; $return .= '</div>'; $return .= '</div>'; $return .= '<div class="col-sm-6">'; $return .= '<h3>' . (count($mainevents) > 1 ? 'Available Events' : 'Event') . '</h3>'; foreach ($mainevents as $main) { $return .= '<div class="row"><div class="col-sm-2">'; $return .= '<span class="pointer" data-toggle="lightbox" data-target="' . $main->Event_Poster__c . '" data-alt="' . $main->Name . '"><img src="' . $main->Event_Poster__c . '" alt="' . $main->Name . '" /></span>'; $return .= '</div><div class="col-sm-10">'; $return .= '<h4>' . $main->Name . '</h4>'; $return .= '<p>Starting: ' . $main->Event_Series_Start_Day__c . '</p>'; $return .= '<p>Ending: ' . $main->Event_Series_End_Day__c . '</p>'; $return .= '<span class="btn btn-default" onclick="toggle_visibility(\'mainevent-' . $main->ID . '\');">More Details</span>'; $return .= '<div id="mainevent-' . $main->ID . '" style="display: none;">'; $return .= autop(nl2br($main->Event_Series_Details__c)); $return .= '</div></div>'; $return .= '</div><hr>'; } $return .= '</div>'; $return .= '</div>'; $return .= '<div id="couponCode" data-code="' . $post['s'] . '" />'; $return .= '<div id="activeDate" data-date="' . date("Y-m-d") . '" />'; $return .= '<div id="availableEvents" data-events=\'' . $jsonevents . '\' />'; } else { $return = '<p class="bs-callout bs-callout-warning">Coupon code has already been redeemed</p>'; } } else { $return = '<p class="bs-callout bs-callout-warning">please submit a valid coupon code</p>'; } } else {
/** * NOT USED IN CORE - Used for update process - Replace bbcode in text by html tag * used in update_065_068.php * * @param $string string: initial string * * @return formatted string **/ function rembo($string) { // Adapte de PunBB //Copyright (C) Rickard Andersson (rickard@punbb.org) // If the message contains a code tag we have to split it up // (text within [code][/code] shouldn't be touched) if (strpos($string, '[code]') !== false && strpos($string, '[/code]') !== false) { list($inside, $outside) = split_text($string, '[code]', '[/code]'); $outside = array_map('trim', $outside); $string = implode('<">', $outside); } $pattern = array('#\\[b\\](.*?)\\[/b\\]#s', '#\\[i\\](.*?)\\[/i\\]#s', '#\\[u\\](.*?)\\[/u\\]#s', '#\\[s\\](.*?)\\[/s\\]#s', '#\\[c\\](.*?)\\[/c\\]#s', '#\\[g\\](.*?)\\[/g\\]#s', '#\\[email\\](.*?)\\[/email\\]#', '#\\[email=(.*?)\\](.*?)\\[/email\\]#', '#\\[color=([a-zA-Z]*|\\#?[0-9a-fA-F]{6})](.*?)\\[/color\\]#s'); $replace = array('<span class="b">$1</span>', '<em>$1</em>', '<span class="souligne">$1</span>', '<span class="barre">$1</span>', '<div class="center">$1</div>', '<big>$1</big>', '<a href="mailto:$1">$1</a>', '<a href="mailto:$1">$2</a>', '<span style="color: $1">$2</span>'); // This thing takes a while! :) $string = preg_replace($pattern, $replace, $string); $string = clicurl($string); $string = autop($string); // If we split up the message before we have to concatenate it together again (code tags) if (isset($inside)) { $outside = explode('<">', $string); $string = ''; $num_tokens = count($outside); for ($i = 0; $i < $num_tokens; ++$i) { $string .= $outside[$i]; if (isset($inside[$i])) { $string .= '<br><br><div class="spaced"><table class="code center"><tr>' . '<td class="punquote"><span class="b">Code:</span><br><br><pre>' . trim($inside[$i]) . '</pre></td></tr></table></div>'; } } } return $string; }
<?php /** * Elgg display long text * Displays a large amount of text, with new lines converted to line breaks * * @package Elgg * @subpackage Core * * @uses $vars['value'] The text to display * @uses $vars['parse_urls'] Whether to turn urls into links. Default is true. * @uses $vars['class'] */ $class = 'elgg-output'; $additional_class = elgg_extract('class', $vars, ''); if ($additional_class) { $vars['class'] = "{$class} {$additional_class}"; } else { $vars['class'] = $class; } $parse_urls = elgg_extract('parse_urls', $vars, true); unset($vars['parse_urls']); $text = $vars['value']; unset($vars['value']); if ($parse_urls) { $text = parse_urls($text); } $text = filter_tags($text); $text = autop($text); $attributes = elgg_format_attributes($vars); echo "<div {$attributes}>{$text}</div>";
<?php /** * Elgg plugin specific user settings. * * @package Elgg * @subpackage Core * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider Ltd * @copyright Curverider Ltd 2008-2009 * @link http://elgg.org/ */ // Description of what's going on echo "<div class=\"contentWrapper\">" . autop(elgg_echo("usersettings:plugins:description")) . "</div>"; $limit = get_input('limit', 10); $offset = get_input('offset', 0); // Get the installed plugins $installed_plugins = $vars['installed_plugins']; $count = count($installed_plugins); // Display list of plugins $n = 0; foreach ($installed_plugins as $plugin => $data) { if (is_plugin_enabled($plugin)) { echo elgg_view("usersettings/plugins_opt/plugin", array('plugin' => $plugin, 'details' => $data)); } }
/** * Elgg exception * Displays a single exception * * @package Elgg * @subpackage Core * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider Ltd * @copyright Curverider Ltd 2008-2009 * @link http://elgg.org/ * * @uses $vars['object'] An exception */ global $CONFIG; ?> <!-- <?php echo get_class($vars['object']); ?> : <?php echo autop($vars['object']->getMessage()); ?> <?php if ($CONFIG->debug) { echo print_r($vars['object'], true); } ?> -->
<?php /** * Elgg standard message * Displays a single Elgg system message * * @package Elgg * @subpackage Core * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider Ltd * @copyright Curverider Ltd 2008-2009 * @link http://elgg.org/ * * @uses $vars['object'] A system message (string) */ ?> <p> <?php echo autop($vars['object']); ?> </p>
<?php /** * No results from search */ echo autop(elgg_echo('search:no_results'));
function promo($id) { $post_7 = get_post($id); $title = $post_7->post_title; $content = $post_7->post_content; $promo_vid = get_post_meta($id, "rb-promo_vid", true); $edit_link = get_edit_post_link($id); echo '<div id="maxx-promo">'; echo ' <h4>' . $title . '</h4>'; echo ' <div id="promo-video">'; echo ' <video controls>'; echo ' <source src="' . $promo_vid . '" type="video/mp4">'; echo ' Your browser does not support the video tag.'; echo ' </video>'; echo ' </div>'; echo ' <div id="promo-info">'; echo autop($content); if (is_user_logged_in()) { echo '<a href="' . $edit_link . '" title="' . $title . '" class="edit-link">Edit Promo</a>'; } echo ' </div>'; echo '</div>'; }
* @package Elgg * @subpackage Core * @author Curverider Ltd * @link http://elgg.org/ */ $title = $vars['entity']->title; $event_items = event_calendar_get_formatted_full_items($vars['entity']); $items = array(); foreach ($event_items as $item) { if (trim($item->value)) { $items[] = '<b>' . $item->title . '</b>: ' . $item->value; } } $description = '<p>' . implode('<br />', $items) . '</p>'; if ($vars['entity']->long_description) { $description .= '<p>' . autop($vars['entity']->long_description) . '</p>'; } else { $description .= '<p>' . $vars['entity']->description . '</p>'; } ?> <item> <guid isPermaLink='true'><?php echo htmlspecialchars($vars['entity']->getURL()); ?> </guid> <link><?php echo htmlspecialchars($vars['entity']->getURL()); ?> </link> <title><![CDATA[<?php
/** * Reply form * * @uses $vars['message'] */ // fix for RE: RE: RE: that builds on replies $reply_title = $vars['message']->title; if (strncmp($reply_title, "RE:", 3) != 0) { $reply_title = "RE: " . $reply_title; } $send_to = $vars['message']->fromId; $recipient = get_user($send_to); $message = autop($vars['message']->description); if ($vars['message']->description) { $message = "<p></p><hr>"; $message .= autop($vars['message']->description); } $form = "<div><label>" . elgg_echo("messages:title") . ": <br /></label>"; $form .= elgg_view('input/text', array('name' => 'subject', 'value' => $reply_title)); $form .= "</div>"; $form .= "<div><label>" . elgg_echo("messages:message") . ":</label>"; $form .= elgg_view("input/longtext", array('name' => 'body', 'value' => $message)); $form .= "</div>"; $form .= "<div class='elgg-foot'>"; $form .= elgg_view('input/hidden', array('name' => 'recipient_guid', 'value' => $send_to)); $form .= elgg_view('input/submit', array('value' => elgg_echo('messages:send'))); $form .= "</div>"; $result = messages_gatekeeper($send_to); if ($result == "reject") { $content .= "<div class='messages-warning'>" . elgg_echo('messages:reject', array($recipient->name)) . "</div>"; } elseif ($result == "blocked") {
<item> <guid isPermaLink='true'><?php echo $url; ?> </guid> <pubDate><?php echo $time; ?> </pubDate> <link><?php echo $url; ?> </link> <title><![CDATA[<?php echo $title; ?> ]]></title> <description><![CDATA[<?php echo autop($body); ?> ]]></description> </item> <?php } $i++; if ($i >= $vars['limit']) { break; } } } }
<?php /** * Elgg profile index * * @package ElggProfile */ $label_text = elgg_echo('profile:label'); $type_text = elgg_echo('profile:type'); $label_control = elgg_view('input/text', array('name' => 'label')); $type_control = elgg_view('input/dropdown', array('name' => 'type', 'options_values' => array('text' => elgg_echo('text'), 'longtext' => elgg_echo('longtext'), 'tags' => elgg_echo('tags'), 'url' => elgg_echo('url'), 'email' => elgg_echo('email')))); $submit_control = elgg_view('input/submit', array('name' => elgg_echo('add'), 'value' => elgg_echo('add'))); $formbody = <<<END \t\t<p>{$label_text}: {$label_control} \t\t{$type_text}: {$type_control} \t\t{$submit_control}</p> END; echo autop(elgg_echo('profile:explainchangefields')); echo $formbody;
?> <div id="plugins_front_welcome"> <h2><?php echo elgg_echo('plugins:front:welcome'); ?> .</h2> <?php echo elgg_view('plugins/download_count'); ?> <h3><?php echo elgg_echo('plugins:front:intro:title'); ?> </h3> <div id="plugins_welcome_text"> <?php echo autop(elgg_echo('plugins:front:intro:text')); ?> </div> <?php if (isloggedin()) { $url = $vars['url'] . 'pg/plugins/new/project/' . get_loggedin_user()->username; ?> <a class="upload_plugin" href="<?php echo $url; ?> "><?php echo elgg_echo('plugins:upload:new'); ?> </a> <?php }
function renderSet($setContentsFileContents, $justReturnValue = False, $historyInc) { global $pathToRoot; // Turn the string back into an array $setContents = unserialize($setContentsFileContents); $STPath = $pathToRoot . CMSDIRNAME . '/' . STDIR . $setContents[1]; if (!file_exists($STPath)) { return; } $templateContents = unserialize(file_get_contents($STPath)); // Item [2] now lists the column names and data types.. We use this to map the data to the right names. $columns = $setContents[2]; $numCols = sizeOf($columns); $setContentsOutput = ''; $contentsToShow = False; // For each line in the Set reset($setContents); // var_dump($setContents) ; for ($item = 3; $item < sizeOf($setContents); $item++) { // For each major repeated block for ($repeatedBlock = 0; $repeatedBlock < sizeOf($templateContents['repeated']); $repeatedBlock++) { // Then for each of the 3 alternatives in the block for ($alternativeOption = 0; $alternativeOption < sizeOf($templateContents['repeated'][$repeatedBlock]); $alternativeOption++) { $thisBlockStillOK = True; $thisRepeatBlock = $templateContents['repeated'][$repeatedBlock][$alternativeOption]; // Parse out the required column names in each repeat block $thisBlockRequiredCols = array(); // !!! BUG here: Messes up adjacent includes!! // Need to be more specific about permitted characters, as currently needs a space between or runs all chars together // Note added regex assertions to exclude [[ ... ]] // Added - to allow dashes, and \s to include spaces in column names preg_match_all('/(?<!\\[)\\[\\s*?([\\w-\\s]+)\\s*?\\](?!\\])/', $thisRepeatBlock, $requiredColumnsFound, PREG_SET_ORDER); for ($rptItem = 0; $rptItem < sizeOf($requiredColumnsFound); $rptItem++) { // $matches[$rptItem][1] returns the name of the required colum array_push($thisBlockRequiredCols, trim($requiredColumnsFound[$rptItem][1])); } /* var_dump($thisBlockRequiredCols) ;*/ // For each required item for ($rqCol = 0; $rqCol < sizeOf($thisBlockRequiredCols); $rqCol++) { $rqdColName = $thisBlockRequiredCols[$rqCol]; // Get the position of the relevant column for ($iCol = 0; $iCol < $numCols; $iCol++) { if ($columns[$iCol][0] == $rqdColName) { $rqdColPos = $iCol; $isImage = $columns[$iCol][1] == 'image' ? True : False; $isLink = $columns[$iCol][1] == 'link' ? True : False; $isFile = $columns[$iCol][1] == 'file' ? True : False; $isLongtext = $columns[$iCol][1] == 'longtext' ? True : False; } } if (!isset($isImage)) { continue; } // Get value from corresponding position in Set line // If value exists, we're good $setContentsValue = @$setContents[$item][$rqdColPos]; if ($isImage) { $setContentsValue = $pathToRoot . $setContentsValue; } else { if ($isLink && strpos($setContentsValue, '/') !== 0 && strpos($setContentsValue, 'http') !== 0) { $setContentsValue = $pathToRoot . $setContentsValue; } else { if ($isFile) { $setContentsValue = $pathToRoot . '/cmsfiles/' . $setContentsValue; } } } if (!$setContentsValue || !strlen($setContentsValue)) { $thisBlockStillOK = False; } else { /* Where the parameter fields are in the relevant array!!! The values we want are in $templateContents[n][2] and $templateContents[n][3] ; */ /* NO THUMBNAILS YET... if ($columns[$rqCol][1] == 'thumbnail') { $param1 = False ; $param2 = False ; for ($tcItems=0; $tcItems<sizeOf($templateContents["cols"]); $tcItems++) { if ($templateContents["cols"][$tcItems][0] == $rqdColName) { $param1 = $templateContents["cols"][$tcItems][2] ; $param2 = $templateContents["cols"][$tcItems][3] ; } } $setContentsValue = 'cms/phpthumb.php?src=' . REALIMGDIR . '/' . $setContents[$item][$rqdColPos] ; if ($param1) { $setContentsValue .= '&w=' . $param1 ; } if ($param1) { $setContentsValue .= '&h=' . $param2 ; } } */ // Change to regex?? Need to accommodate any number of spaces $thisRepeatBlock = str_replace('[' . $rqdColName . ']', $setContentsValue, stripslashes($thisRepeatBlock)); $thisRepeatBlock = str_replace('[ ' . $rqdColName . ' ]', $setContentsValue, $thisRepeatBlock); $thisRepeatBlock = str_replace('[[', '[', $thisRepeatBlock); $thisRepeatBlock = str_replace(']]', ']', $thisRepeatBlock); if ($isLongtext) { $thisRepeatBlock = autop($thisRepeatBlock); } } } if ($thisBlockStillOK) { $thisRepeatBlockArray = nestIncludes($thisRepeatBlock, $historyInc); $setContentsOutput .= $thisRepeatBlockArray[0] . "\n"; $contentsToShow = True; break; } } } } if ($contentsToShow) { $beforeValArray = nestIncludes(stripslashes($templateContents['before']), $historyInc); $outputHTML = $beforeValArray[0] . "\n"; $outputHTML .= stripslashes(stripslashes($setContentsOutput)); $afterValArray = nestIncludes(stripslashes($templateContents['after']), $historyInc); $outputHTML .= $afterValArray[0] . "\n"; } else { $outputHTML = stripslashes($templateContents['else']); } if ($justReturnValue) { return $outputHTML; } else { echo $outputHTML; } }
<?php echo autop(elgg_echo('install:settings:instructions')); $vars['type'] = 'settings'; $url = current_page_url(); $form_vars = array('action' => $url, 'disable_security' => TRUE); echo elgg_view_form('install/template', $form_vars, $vars);
<?php /** * Elgg display long text * Displays a large amount of text, with new lines converted to line breaks * * @package Elgg * @subpackage Core * @author Curverider Ltd * @link http://elgg.org/ * * @uses $vars['text'] The text to display * */ global $CONFIG; echo autop(parse_urls(filter_tags($vars['value'])));
<?php /** * Elgg administration site main screen * * @package Elgg * @subpackage Core * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider Ltd * @copyright Curverider Ltd 2008-2009 * @link http://elgg.org/ */ global $CONFIG; // Description of what's going on echo "<div class=\"contentWrapper\">" . autop(elgg_echo("admin:site:description")) . " "; echo elgg_view("settings/system", array("action" => $CONFIG->wwwroot . "action/admin/site/update_basic")); // Always want to do this first. echo "</div>";
<?php /** * Elgg global system message list * Lists all system messages * * @package Elgg * @subpackage Core * * @uses $vars['object'] The array of message registers */ if (isset($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) { echo '<div class="alert alert-success bootstrap-messages span8">'; echo '<a class="close" data-dismiss="alert" href="#">×</a>'; foreach ($vars['object'] as $type => $list) { foreach ($list as $message) { echo autop($message); } } echo '</div>'; }
echo sprintf(elgg_echo("tidypics:views"), $views['total']); if ($owner->guid == $viewer->guid) { echo ' ' . sprintf(elgg_echo("tidypics:viewsbyowner"), $views['unique']); } else { if ($views['mine']) { echo ' ' . sprintf(elgg_echo("tidypics:viewsbyothers"), $views['mine']); } } } } ?> </div> <div id="tidypics_desc"> <?php echo autop($desc); ?> </div> <div id="tidypics_image_nav"> <ul> <li><?php echo $back; ?> </li> <li><?php echo $next; ?> </li> </ul> </div> <div id="tidypics_image_wrapper">
if (isset($vars['entity'])) { $comment = $vars['entity']; $owner = get_user($comment->owner_guid); $canedit = answers_can_edit_comment($comment); $markdown = is_callable('markdown_text'); if ($comment && $owner) { $full_comment_text = parse_urls(filter_tags($comment->value)) . ($markdown ? "\n" : " ") . "— " . "<span class=\"answers_comment_owner\">" . "<a href=\"" . $owner->getURL() . "\">" . $owner->name . "</a>" . " " . elgg_view_friendly_time($comment->time_created) . "</span>"; if ($canedit) { $full_comment_text .= " " . elgg_view("output/confirmlink", array('href' => $vars['url'] . "action/answers/comment/delete?comment_id=" . $comment->id, 'text' => elgg_echo('delete'), 'confirm' => elgg_echo('deleteconfirm'), 'class' => '', 'is_action' => true)); $edit = elgg_echo('edit'); $full_comment_text .= " <a class=\"collapsibleboxlink\">{$edit}</a>"; } if ($markdown) { $full_comment_text = markdown_text($full_comment_text); } else { $full_comment_text = autop($full_comment_text); } ?> <div class="answers_comment"> <a name="<?php echo $comment->id; ?> "></a> <?php echo $full_comment_text; ?> <?php if ($canedit) { ?> <div class="collapsible_box"> <?php
?> "><i class="fa fa-clock-o"></i> <?php echo date('D, M j g:iA', strtotime($comment->rate_date)); ?> </time> </p> <p> <strong>Rated:</strong> <?php echo $comment->rating; ?> </p> </div> </header> <div class="comment-post"> <?php echo autop($comment->comment); ?> </div> </div> </div> </article> <?php } ?> <div class="pull-right"><?php echo $pagi->parse(); ?> </div> <div class="clearfix"></div> <?php } else {
$subtitle = strip_tags($vars['entity']->description); $title = substr($subtitle, 0, 32); if (strlen($subtitle) > 32) { $title .= " ..."; } } ?> <item> <guid isPermaLink='true'><?php echo htmlspecialchars($vars['entity']->getURL()); ?> </guid> <pubDate><?php echo date("r", $vars['entity']->time_created); ?> </pubDate> <link><?php echo htmlspecialchars($vars['entity']->getURL()); ?> </link> <title><![CDATA[<?php echo $title; ?> ]]></title> <description><![CDATA[<?php echo autop($vars['entity']->description); ?> ]]></description> </item>
<?php /** * Show one step */ $value = elgg_extract('value', $vars); if (empty($value)) { return; } $step = (int) elgg_extract('step', $vars); // $last = (bool) elgg_extract('last', $vars, false); $attrs = array('data-step' => $step, 'class' => array('wizard-step', "wizard-step-{$step}")); if ($step !== 0) { $attrs['class'][] = 'hidden'; } echo '<div ' . elgg_format_attributes($attrs) . '>'; // content $value = wizard_replace_profile_fields($value); echo '<div class="elgg-output">'; echo autop($value); echo '</div>'; echo '</div>';