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
<? | |
function MYMODULE_form_node_admin_content_alter(&$form, &$form_state, $form_id) { | |
$column_alias = 'my_cool_column'; | |
$column_title = 'Header of my cool column'; | |
// Load the nodes. This incurrs very little overhead as | |
// "$nodes = node_load_multiple($nids);" has already been run on these | |
// nids in node_admin_nodes(). The static cache will be used instead of | |
// another db query being invoked | |
$nodes = node_load_multiple(array_keys($form['admin']['nodes']['#options'])); |
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
public function nofollow($html, $skip = null) { | |
return preg_replace_callback( | |
"#(<a[^>]+?)>#is", function ($mach) use ($skip) { | |
return ( | |
!($skip && strpos($mach[1], $skip) !== false) && | |
strpos($mach[1], 'rel=') === false | |
) ? $mach[1] . ' rel="nofollow">' : $mach[0]; | |
}, | |
$html | |
); |
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 | |
/* | |
* Rejestracja niestandardowych rodzajów zawartości | |
*/ | |
class RegisterCPTS { | |
/** | |
* Rodzaje zawartości do stworzenia |
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: Gravity Forms Cookies | |
Plugin URI: http://ounceoftalent.com/ | |
Description: Saves the query string parameters from a users visit to a cookie and allows these values to be populated via Gravity Forms' Dynamic Population feature. | |
Version: 1.5 | |
Author: David Smith | |
Author URI: http://ounceoftalent.com | |
License: GPL2 | |
*/ |
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: Rewrite Wordpress upload path | |
Plugin URI: http://mkdizajn.com | |
Description: Rewrites your image paths. | |
Version: 2.4 | |
Author: kreso | |
Author URI: http://mkdizajn.com/ | |
*/ |
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 | |
/** | |
* This file is part of PHPWord - A pure PHP library for reading and writing | |
* word processing documents. | |
* | |
* PHPWord is free software distributed under the terms of the GNU Lesser | |
* General Public License version 3 as published by the Free Software Foundation. | |
* | |
* For the full copyright and license information, please read the LICENSE | |
* file that was distributed with this source code. For the full list of |