Skip to content

Instantly share code, notes, and snippets.

View kamaulynder's full-sized avatar
💭
Need great Female Tech Talent, talk to me!!

Linda Kamau kamaulynder

💭
Need great Female Tech Talent, talk to me!!
View GitHub Profile
/**
* Retrieve All Tags
*
* GET /api/tags
*
* @return void
*/
public function action_get_index_collection()
{
$repo = service('repository.tag');
/**
* Ushahidi Tag Authorizer
*
* @author Ushahidi Team <[email protected]>
* @package Ushahidi\Application
* @copyright 2014 Ushahidi
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License Version 3 (AGPL3)
*/
use Ushahidi\Entity;
$('#mapmarker').simplepicker({
picker: true,
theme: 'iconpicker',
setOptionValue: setPickerIcon
});
<div class="map-settings-block-wrapper">
<label for="map-marker">
<h6>Map Marker Icon</h6>
</label>
<p class="map-settings-form-helper-text">Select the default map marker icon</p>
<select name="mapMarker" class="select-map-marker js-map-marker">
</select>
</div> <!-- end .map-settings-block-wrapper -->
<select name="mapMarker" class="select-map-marker js-map-marker">
{{#each AwesomeMarkers}}
<option value="{{this}}">{{this}}</option>
{{/each}}
</select>
var AwesomeMarkers = {};
AwesomeMarkers = {icon: L.AwesomeMarkers.icon({
icon: 'fa-bell',
iconColor: '#6b1d5c',
})};
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en"> <!--<![endif]-->
<div class="map-settings-block-wrapper">
<label for="map-marker">
<h6>Map Marker Icon</h6>
</label>
<p class="map-settings-form-helper-text">Select the default map marker icon</p>
<label><i class="fa fa-check icon-white"></i></label>
</div> <!-- end .map-settings-block-wrapper -->
{"errors":[{"message":"Validation Error: 'tag.role.doRolesExist'","code":400,"class":"HTTP_Exception_400","file":"\/private\/var\/wwwdocs\/Lamu\/application\/classes\/Controller\/Api\/Tags.php","line":199,"trace":[{"file":"\/private\/var\/wwwdocs\/Lamu\/vendor\/kohana\/core\/classes\/Kohana\/Controller.php","line":84,"function":"action_put_index","class":"Controller_Api_Tags","type":"->","args":[]},{"function":"execute","class":"Kohana_Controller","type":"->","args":[]},{"file":"\/private\/var\/wwwdocs\/Lamu\/vendor\/kohana\/core\/classes\/Kohana\/Request\/Client\/Internal.php","line":97,"function":"invoke","class":"ReflectionMethod","type":"->","args":[{"request":{},"response":{},"acl":{"_guest_role":"guest"},"auth":{},"user":{}}]},{"file":"\/private\/var\/wwwdocs\/Lamu\/vendor\/kohana\/core\/classes\/Kohana\/Request\/Client.php","line":114,"function":"execute_request","class":"Kohana_Request_Client_Internal","type":"->","args":[{},{}]},{"file":"\/private\/var\/wwwdocs\/Lamu\/vendor\/kohana\/core\/classes\/K
<IfModule php5_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule dir_module>
DirectoryIndex index.php index.php
</IfModule>
</IfModule>