Skip to content

Instantly share code, notes, and snippets.

Spoygg Spoygg

Block or report user

Report or block Spoygg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Spoygg
Spoygg / Add-WordPress-Dashboard-Widget.php
Created Aug 6, 2019 — forked from SalmanRavoof/Add-WordPress-Dashboard-Widget.php
Add a custom widget to your WordPress dashboard.
View Add-WordPress-Dashboard-Widget.php
// Add a new widget to the dashboard using a custom function
function wpmudev_add_dashboard_widgets() {
wp_add_dashboard_widget(
'wpmudev_dashboard_widget', // Widget slug
'My Custom Dashboard Widget', // Widget title
'wpmudev_new_dashboard_widget_function' // Function name to display the widget
);
}
// Register the new dashboard widget with the 'wp_dashboard_setup' action
add_action( 'wp_dashboard_setup', 'wpmudev_add_dashboard_widgets' );
View woo-currency.php
add_filter( 'woocommerce_currencies', 'add_my_currency' );
function add_my_currency( $currencies ) {
$currencies['ABC'] = __( 'Srpski dinar', 'woocommerce' );
return $currencies;
}
add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2);
View gist:185ae40f78e29f108db2
Straightforward shit
8.Čovek koji živi u srednjoj kući pije mleko.
9.U prvoj kući zivi Norvežanin.
14.Norvežanin živi pored plave kuće.
4.Levo od bele kuce se nalazi zelena. - jedina dva mesta gde mogu ove dve da se stave a da ispod bude i kafa kao piće je skroz desno
5.Covek koji je u zelenoj kući pije kafu.
1.Britanac živi u crvenoj kući. - ostala je samo jedna kombinacija kuća/vlasnik prazna
View zadatak-za-vladu.txt
projekat
|-- partials
| |-- header.php
| +-- footer.php
|
|-- index.php
|-- gallery.php
|-- about.php
|-- founders.php
|
View init-byobu-window.sh
#!/bin/bash
case "$1" in
"IncsubVagrant") cd ~/IncsubProjects
echo "Bringing Vagrant up... "
vagrant up
fish
;;
"Upfront") cd ~/IncsubProjects/www/wordpress-default/wp-content/themes/upfront
echo "Checking out newest Upfront..."
git pull --rebase
View images-bookmarklet.js
javascript: (function() { var imageMaxWidth = 800; var parseForImages = function(node) { if (node.tagName === 'IMG' && node.width > imageMaxWidth) { node.style.maxWidth = imageMaxWidth + 'px'; return; } if (node.children) { for (var i = 0; i < node.children.length; i++) { parseForImages(node.children[i]); } } }; var messages = document.getElementsByClassName('adn'); for (var i = 0; i < messages.length; i++) { parseForImages(messages[i]); } })();
View NERD_tree_3
| |~upfront-gallery/
| | |+css/
| | |+img/
| | |~js/
| | | |~settings/
| | | | |-layout-panel.js
| | | | `-thumbnail-fields.js
| | | |~templates/
| | | | |-label-editor-template.html
| | | | |-label-selector-template.html
View single-page.php
$main->add_element('ThisPage', array(
'id' => 'default-page-title',
'columns' => 24,
'rows' => 3,
'margin_top' => 3,
'options' => array(
'display' => 'title',
'disable_resize' => false,
'disable_drag' => false
),
View what-happened.diff
diff --git a/library/class_upfront_theme.php b/library/class_upfront_theme.php
index d3559e0..188d532 100644
--- a/library/class_upfront_theme.php
+++ b/library/class_upfront_theme.php
@@ -80,19 +80,19 @@ class Upfront_Theme {
return $this->regions;
}
- public function get_default_layout($cascade, $layout_slug = "", $add_global_regions = false) {
+ public function get_default_layout($cascade, $layout_slug = "") {
You can’t perform that action at this time.