Skip to content

Instantly share code, notes, and snippets.

View elisavetTriant's full-sized avatar
👩‍💻
Hello there!

Elissavet Triantafyllopoulou elisavetTriant

👩‍💻
Hello there!
View GitHub Profile
@fburatti
fburatti / include-js.php
Created January 28, 2019 21:34
Open street map with ACF
function properties_map_script() {
wp_register_style(
'leaflet',
"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.css",
array(),
null
);
wp_register_script(
@fburatti
fburatti / open-street-map-script.js
Last active March 28, 2024 13:48
Open street map with Leaflet.js
// leaflet.js required
// the properties array can contain multiple pointers (markers) and is included with wordpress wp_localize_script
//var properties = [{"title":"Some title","lat":"42.75410269263614","lng":"12.758049219846725","thumb":"http:\/\/www.mysite.ext\/wp-content\/uploads\/2016\/05\/image.jpg","url":"http:\/\/www.www.mysite.ext\/"}];
var map;
function render_map( $el ) {
var $markers = properties;
anonymous
anonymous / Option A
Created April 25, 2015 02:23
3 options for the layout of an activity for a quiz question
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity">
@somatonic
somatonic / form-example.php
Last active September 14, 2021 01:46
PW simple form via API
<?php
$out = '';
// create a new form field (also field wrapper)
$form = $modules->get("InputfieldForm");
$form->action = "./";
$form->method = "post";
$form->attr("id+name",'subscribe-form');