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
#!/bin/bash | |
# | |
# @author Jose SAYAGO | |
# @uri http://josesayago.com/blog/ | |
# | |
# Process to monitor how many PHP-CGI processes are running, and kill them | |
# if they exceed the limit | |
# | |
# Set the maximum number of CGI Processes allowed | |
MAX_CGI=25; |
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 | |
/** | |
* file_get_contents | |
*/ | |
// Get User ID from FB SDK, this example uses Facebook PHP SDK v4 | |
$fb_userID = $fb_data['me']['id']; | |
$fb_graph = 'https://graph.facebook.com/'.$fb_userID; | |
$fb_request = file_get_contents($fb_graph); // Replace with curl_get_contents if this does not work | |
$fb_response = json_decode($fb_request); | |
// Print username |
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 | |
gp_title( sprintf( __('%s < GlotPress'), __('Login') ) ); | |
gp_breadcrumb( array( | |
__('Login'), | |
) ); | |
gp_tmpl_header(); | |
?> | |
<h2><?php _e('Login'); ?></h2> | |
<?php do_action( 'before_login_form' ); ?> | |
<form action="<?php echo gp_url_ssl( gp_url_current() ); ?>" method="post" class="login-form"> |
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
/* | |
* Network Latest Posts v3.x | |
* | |
* Copyright 2016 Jose SAYAGO | |
* Licensed under the GPL v2.0 | |
* http://www.gnu.org/licenses/gpl-2.0.html | |
* | |
*/ | |
/* | |
* Main Wrapper |
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 | |
/** | |
* Autor: L'Elite de José SAYAGO | |
* URL: http://laelitenetwork.com | |
* Licencia: GNU General Public License 2.0 (GPL) http://www.gnu.org/licenses/gpl.html | |
* Fichero: mi-extension-wordpress-api.php | |
* Clase para la API de actualización de la extensión | |
*/ | |
class api_actualizacion { | |
// Versión actual |
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
jQuery(document).ready(function(){ | |
// First we look for each image inside the div we want | |
jQuery('div.new-doodles img').each(function(){ | |
// Then we take only those with the file extension we want | |
if( jQuery(this).attr('src').match(/\.(jpg)/) ) { | |
// And then add them our CSS class | |
jQuery(this).addClass('my-awesome-class'); | |
} | |
}); | |
}); |
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: Network Latest Posts | |
Plugin URI: http://en.8elite.com/network-latest-posts | |
Description: Display the latest posts from the blogs in your network using it as a function, shortcode or widget. | |
Version: 3.5.5 | |
Author: L'Elite | |
Author URI: http://laelite.info/ | |
*/ | |
/** |
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
#blueBar { | |
background: rgba(254,254,254,.5); | |
border-bottom: 1px solid rgba(200,200,200,1); | |
} | |
#blueBarHolder #blueBar:after { | |
background-image: none; | |
} | |
.navLink.bigPadding { |
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
/* | |
* Single Latest Posts v1.0 | |
* | |
* Copyright 2007 - 2013 L'Elite | |
* Licensed under the GPL v2.0 | |
* http://www.gnu.org/licenses/gpl-2.0.html | |
* | |
* Great and ugly things aren't as good | |
* as great and beautiful things ;) | |
*/ |
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
/* | |
* Single Latest Posts v1.0 | |
* | |
* Copyright 2007 - 2013 L'Elite | |
* Licensed under the GPL v2.0 | |
* http://www.gnu.org/licenses/gpl-2.0.html | |
* | |
* Great and ugly things aren't as good | |
* as great and beautiful things ;) | |
*/ |
NewerOlder