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
//Ckedit 定制!隐藏finder链接和图像,并设定默认值 for drupal | |
if(typeof(CKEDITOR) === 'object') | |
CKEDITOR.on( 'dialogDefinition', function( ev ) | |
{ | |
// Take the dialog name and its definition from the event | |
// data. | |
var dialogName = ev.data.name; | |
var dialogDefinition = ev.data.definition; | |
// Check if the definition is from the dialog we're |
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
<div style="overflow: hidden; margin: 15px auto; max-width: 671px;"> | |
<iframe scrolling="no" src="http://www.tudou.com/programs/view/CsD3k0zPQuU" style="border: 0px none; margin-left: 0px; height: 2354px; margin-top: -853px; width: 926px;"> | |
</iframe> | |
</div> |
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 | |
//drupal7 迁移评论 某个节点的 | |
//dpm(comment_load(381)); | |
$comments = array(); | |
for($i=0;$i<500;$i++) { | |
$comment = comment_load($i); | |
if($comment && $comment->nid == '3') { | |
$comment->nid = '486'; | |
$comment->node_type = 'comment_node_page'; | |
unset($comment->rdf_data); |
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
//syfmony安装记录1 | |
composer create-project symfony/framework-standard-edition . 2.4.2 | |
Installing symfony/framework-standard-edition (v2.4.2) | |
- Installing symfony/framework-standard-edition (v2.4.2) | |
Downloading: 100% | |
Created project in . | |
Loading composer repositories with package information | |
Installing dependencies (including require-dev) | |
- Installing jdorn/sql-formatter (v1.2.17) |
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
$time = strtotime('2014-01-01 00:00:00+00:00'); | |
dpm(date('Y-m-d 00:00:00+00:00',$time)); | |
$i=date('z'); | |
dpm($i); | |
$nodes = array(); | |
for($i;$i<=365;$i++) { | |
$created =$time + $i* 86400; | |
$node = new stdClass(); | |
$node->uid = '1'; | |
$node->type = 'grace365'; |
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(function($){ | |
function drueduNotificationsAjaxSubmit() { | |
$( ".notifications-ajax li a" ).each(function(){ | |
if($(this).hasClass('btn-small')) { | |
$(this).removeClass('btn-small'); | |
} | |
$(this).addClass('btn btn-mini'); | |
}); |
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 ($) { | |
Drupal.behaviors.confirm = { | |
attach: function(context, settings) { | |
var events = $('.node-weibo-form input[name=op]').data('events'); // Get the jQuery events. | |
$('.node-weibo-form input[name=op]').unbind('mousedown'); // Remove the click events. | |
var name = $('.node-weibo-form input[name=title]').val(); | |
$('.node-weibo-form input[name=op]').mousedown(function () { | |
// var events = $('.node-weibo-form input[name=op]').clone(true).data('events');// Get the jQuery events. |
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
<div class="contact_card" id="contact_card_guo" style="display:none; position:relative; z-index:99999;"> | |
<div class="box" id="guo-hide"> | |
<div id="guo-show"> | |
<p><b class="f20"><?php print t("You need to be logged in order to submit your enquiry.");?></b></p> | |
<div class="btn_login"><a href="<?php print url('user/register');?>" class="btn_orange"><?php print t('Sign up, it\'s free');?></a></div> | |
<div class="btn_login"><a href="#TB_inline?height=360&width=420&inlineId=loginbox" class="btn_orange thickbox"><?php print t('Login');?></a></div> | |
<div id="contact_card_guo_close"><a href="#" id="TB_closeWindowButton">close</a></div> | |
</div> | |
</div> |
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
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$("#webform-client-form-1363 .form-actions .form-radios label").live('click',function(e){//.click(function(){ | |
e.preventDefault(); | |
$(this).children('input').attr('checked','checked'); | |
// console.log('click'); | |
$("#webform-client-form-1363 .form-actions input[type=submit]").trigger("click"); | |
}); | |
}) | |
</script> |
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
$books = array( | |
'0'=>'http://mp.weixin.qq.com/mp/appmsg/show?__biz=MjM5NjQwMDE2Mw==&appmsgid=10000251&itemidx=1&sign=52b2980fca36785ca3671575fa1cb098#wechat_redirect', | |
'1'=>'http://mp.weixin.qq.com/mp/appmsg/show?__biz=MjM5NjQwMDE2Mw==&appmsgid=10000251&itemidx=2&sign=b7e8cc04c531fc07a953d39c62411c08#wechat_redirect', | |
'2'=>'http://mp.weixin.qq.com/mp/appmsg/show?__biz=MjM5NjQwMDE2Mw==&appmsgid=10000251&itemidx=3&sign=df465908982990d92306ac649b9a663e#wechat_redirect', | |
'3'=>'http://mp.weixin.qq.com/mp/appmsg/show?__biz=MjM5NjQwMDE2Mw==&appmsgid=10000251&itemidx=4&sign=7d98347febbe2707d887f49bf8cddfff#wechat_redirect', | |
'4'=>'http://mp.weixin.qq.com/mp/appmsg/show?__biz=MjM5NjQwMDE2Mw==&appmsgid=10000251&itemidx=5&sign=547baf5c8b15297f80b4737a04f9ccf7#wechat_redirect', | |
'5'=>'http://mp.weixin.qq.com/mp/appmsg/show?__biz=MjM5NjQwMDE2Mw==&appmsgid=10000251&itemidx=6&sign=e7e45471b60e5ab7a0624f8b99b2e3a6#wechat_redirect', | |
'6'=>'http://mp.weixin.qq.com/mp/appmsg/show?__biz=MjM5NjQwMDE2Mw==&appmsgid=10000251&itemidx=7& |
OlderNewer