This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// a simple WordPress frontend login implementation | |
// written by Arūnas Liuiza | tinyStudio | wp.tribuna.lt | |
// Usage: use [tiny_login] shortcode or get_tiny_login_form()/the_tiny_login_form() template tags | |
// Arguments: one (optional) argument 'redirect': pass url where to redirect after successful login (default: false); | |
// Localization: replace 'theme' with your text domain string. | |
// login action hook - catches form submission and acts accordingly | |
add_action('init','tiny_login'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: tinyChangeAuthor | |
Plugin URI: https://gist.github.com/ideag/5174195/ | |
Description: Change post author on save | |
Author: @IdeaG (tinyStudio) | |
Version: 0.1 | |
Author URI: http://wp.tribuna.lt | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require WPMU_PLUGIN_DIR.'/tiny_tribuna/tiny_tribuna.php'; | |
require WPMU_PLUGIN_DIR.'/akismet/akismet.php'; | |
require WPMU_PLUGIN_DIR.'/nginx-compatibility/nginx-compatibility.php'; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('widgets_init', 'tiny_unregister_default_widgets', 11); | |
function tiny_unregister_default_widgets() { | |
unregister_widget('WP_Widget_Pages'); | |
unregister_widget('WP_Widget_Calendar'); | |
unregister_widget('WP_Widget_Archives'); | |
unregister_widget('WP_Widget_Links'); | |
unregister_widget('WP_Widget_Meta'); | |
unregister_widget('WP_Widget_Search'); | |
unregister_widget('WP_Widget_Text'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function load_plugin_textdomain( $domain, $abs_rel_path = false, $plugin_rel_path = false ) { | |
$locale = apply_filters( 'plugin_locale', get_locale(), $domain ); | |
if ( false !== $plugin_rel_path ) { | |
$path = WP_PLUGIN_DIR . '/' . trim( $plugin_rel_path, '/' ); | |
} else if ( false !== $abs_rel_path ) { | |
_deprecated_argument( __FUNCTION__, '2.7' ); | |
$path = ABSPATH . trim( $abs_rel_path, '/' ); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono&subset=latin,latin-ext' rel='stylesheet' type='text/css'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// a framework to handle frontend form submission | |
// written by Arūnas Liuiza | tinyStudio | wp.tribuna.lt | |
// Usage: use [tiny_form1] shortcode or get_tiny_form1()/the_tiny_form1() template tags | |
// Arguments: one (optional) argument 'redirect': pass url where to redirect after successful login (default: false); | |
// Localization: replace 'theme' with your text domain string. | |
// ======= FORM 1 =====> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// simple frontend file upload | |
// written by Arūnas Liuiza | tinyStudio | wp.tribuna.lt | |
// Usage: use [tiny_upload] shortcode or get_tiny_upload()/the_tiny_upload() template tags | |
// Localization: replace 'theme' with your text domain string. | |
// ======= UPLOAD FORM =====> | |
// return form #1 |
OlderNewer