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
# | |
# vendor/plugins/redmine_wiki_html_util/init.rb | |
# | |
require 'redmine' | |
require 'open-uri' | |
Redmine::Plugin.register :redmine_gist do | |
name 'Redmine Wiki HTML Util' | |
author 'Arlo Carreon' | |
author_url 'http://www.arlocarreon.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 | |
/** | |
* | |
* @author alexhermann | |
* | |
*/ | |
$fields['login_button'] = array( | |
'title_config' => array( | |
'type'=>'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 | |
echo do_shortcode('[ AWD_comments option="value" otheroption="othervalue" ]'); | |
?> |
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 | |
echo do_shortcode('[AWD_likebox option="value" otheroption="othervalue" ]'); | |
?> |
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 | |
/** | |
* Helper to access Facebook AWD api object | |
* Return a AWD_facebook_api object that extends the Facebook API. | |
*/ | |
function getFacebookApi(){ | |
global $AWD_facebook; | |
if(is_object($AWD_facebook->fcbk)){ | |
return $AWD_facebook->fcbk; | |
} |
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
global $AWD_facebook; | |
//check if a user is connected with facebook | |
if($AWD_facebook->is_user_logged_in_facebook()){ | |
//get the data of the current user. | |
$fb_me = $AWD_facebook->me; | |
//Debug the user Data. | |
var_dump($fb_me); | |
} |
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 | |
$user_id = 1; //the ID of your choice | |
$user_data_me = get_user_meta($user_id, 'fb_user_infos', true); | |
$user_data_mail = get_user_meta($user_id, 'fb_email', true); | |
$user_data_fb_uid = get_user_meta($user_id, 'fb_uid', true); | |
?> |
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 | |
echo do_shortcode('[AWD_facebook_opengraph_actions option="value" otheroption="othervalue"]Content Here[/AWD_facebook_opengraph_actions]'); | |
?> |
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 | |
// Do not delete these lines | |
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) | |
die (esc_html__('Please do not load this page directly. Thanks!','Polished')); | |
if ( post_password_required() ) { ?> | |
<p class="nocomments"><?php esc_html_e('This post is password protected. Enter the password to view comments.','Polished') ?></p> | |
<?php | |
return; |
OlderNewer