コード例 #1
0
ファイル: inline.php プロジェクト: johngrange/wookeyholeweb
		var pageBreakURL = 'index.php?option=com_content&view=article&layout=pagebreak&tmpl=component&e_name='+editor.name;
		
        editable.setCustomData('itemId',itemId);
		var modTypeId = <?php 
$typeTable = JTable::getInstance('Contenttype', 'JTable');
echo $typeTable->getTypeId('com_modules.custom');
?>
;
		editable.setCustomData('modTypeId',modTypeId);
		editable.setCustomData('type',type);
		editable.setCustomData('context',context);
		editable.setCustomData('itemType',itemType);
		editable.setCustomData('versionsURL',versionsURL);
		editable.setCustomData('pageBreakURL',pageBreakURL);
		editable.setCustomData('newArticleURL','<?php 
echo 'index.php?option=com_content&view=form&layout=edit' . ARKMenuHelper::getItemId('com_content', array('form' => 'edit', 'categories' => NULL));
?>
');
		
		var urlencode = function(str)
		{
			return encodeURIComponent(str).replace(/~/g, '%7E').replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+');

		};
		
		editor.on('focus', function()
        {
            var readmoreElement = this.container.getParent().findOne('.readmore');
            if(readmoreElement)
                readmoreElement.setStyle('display','none');
					
コード例 #2
0
ファイル: nav.php プロジェクト: johngrange/wookeyholeweb
<?php

JHtml::_('jquery.framework');
JHtml::_('bootstrap.framework');
//JHtml::_('bootstrap.loadCss'); //leave it too template to load bootstrap css
$userDetails = $displayData;
$links = array('newarticle' => 'index.php?option=com_content&view=form&layout=edit' . ARKMenuHelper::getItemId('com_content', array('form' => 'edit', 'categories' => NULL)), 'newweblink' => 'index.php?option=com_weblinks&view=form&layout=edit' . ARKMenuHelper::getItemId('com_weblinks', array('form' => 'edit', 'categories' => NULL)), 'profile' => 'index.php?option=com_users&view=profile' . ARKMenuHelper::getItemId('com_users', array('profile' => NULL)), 'editprofile' => 'index.php?option=com_users&view=profile&layout=edit' . ARKMenuHelper::getItemId('com_users', array('profile' => 'edit')), 'logout' => 'index.php?option=com_users&task=&user.logout');
?>
<style>
	#userpopup-content , #popup-content  { display: none;}
	.ark .popover-title{ background-color: #2a2f31;border-bottom-color: #080808; color :#0088CC } 
	.ark .popover-content{ background-color: #2a2f31;  color :#0088CC}
	.ark .popover.top .arrow:after { border-top-color: #2a2f31; color :#0088CC }
	.ark .popover-title a,.popover-content a,
	.ark .popover-title a:hover,.popover-content a:hover,
	.ark .popover-title a:focus,.popover-content a:focus { color :#0088CC}
	.ark .popover { background-color: #2a2f31; border-color: #2a2f31; white-space:nowrap;}
    .ark li.popup .popover { min-width: 115px; min-height:68px; font-family: Calibri; font-size: 12px;border-radius: 0px;}
	.ark .navbar-inner { background-color: #eaeaea;background-image: linear-gradient(to bottom, #f4f4f4, #cfd1cf);} 
	.ark li.popup .popover.top .arrow { left: 15% }
	.ark li.popup a.title {/*background-image:url('layouts/joomla/arkeditor/images/new.png'); background-repeat:no-repeat;background-position: left center;*/}
	.ark li.popup a.title {/*margin-left:12px;*/}
	.ark li.popup a.title span {/*padding-left:12px;*/}
	.ark.navbar { font-family: Calibri; font-size: 12px; color :#0088CC;}
	 ul.nav.right {float:right; left:auto; right:10px; }
	.ark ul.nav li { line-height: 20px; background:none; margin-bottom: 0px; padding-left: 0px;}
	.ark li.userpopup p {margin-top: auto; margin-bottom:10px;}	
	.ark li.userpopup a.title { background-image:url('layouts/joomla/arkeditor/images/user.png'); background-repeat:no-repeat;background-position: right center;}
	.ark li.userpopup a.title span {padding-right:12px;}
	.ark li.userpopup .popover { min-width: 174px; min-height:104px; font-family: Calibri; font-size: 12px;border-radius: 0px;}
	.ark li.userpopup .popover.top .arrow { left: 86% }