Skip to content

Commit

Permalink
Merge branch 'develop' into patch-3
Browse files Browse the repository at this point in the history
  • Loading branch information
haruka-7 committed Sep 12, 2019
2 parents bacd611 + 3de5861 commit cda7379
Show file tree
Hide file tree
Showing 95 changed files with 2,110 additions and 1,160 deletions.
Empty file added .htaccess
Empty file.
4 changes: 2 additions & 2 deletions config.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
define('PLX_CONFIG_PATH', 'data/configuration/');
?>
const PLX_CONFIG_PATH = 'data/configuration/';
?>
49 changes: 25 additions & 24 deletions core/admin/article.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Stephane F et Florent MONTHEL
**/

include(dirname(__FILE__).'/prepend.php');
include __DIR__ .'/prepend.php';

# Control du token du formulaire
if(!isset($_POST['preview']))
Expand Down Expand Up @@ -233,7 +233,7 @@
}

# On inclut le header
include(dirname(__FILE__).'/top.php');
include __DIR__ .'/top.php';

# On construit la liste des utilisateurs
foreach($plxAdmin->aUsers as $_userid => $_user) {
Expand Down Expand Up @@ -332,28 +332,31 @@ function refreshImg(dta) {
</div>
</div>
<div class="grid">
<div class="col sml-12">
<label for="id_chapo"><?php echo L_HEADLINE_FIELD ?>&nbsp;:&nbsp;<a id="toggler_chapo" href="javascript:void(0)" onclick="toggleDiv('toggle_chapo', 'toggler_chapo', '<?php echo L_ARTICLE_CHAPO_DISPLAY ?>','<?php echo L_ARTICLE_CHAPO_HIDE ?>')"><?php echo $chapo==''?L_ARTICLE_CHAPO_DISPLAY:L_ARTICLE_CHAPO_HIDE ?></a></label>
<div id="toggle_chapo"<?php echo $chapo!=''?'':' style="display:none"' ?>>
<?php plxUtils::printArea('chapo',plxUtils::strCheck($chapo),35,8,false,'full-width'); ?>
</div>
<div class="col sml-12 small">
<?php if($artId!='' AND $artId!='0000') : ?>
<?php $link = $plxAdmin->urlRewrite('?article'.intval($artId).'/'.$url) ?>
<small>
<strong><?php echo L_LINK_FIELD ?>&nbsp;:</strong>
<a onclick="this.target=\'_blank\';return true;" href="<?php echo $link ?>" title="<?php echo L_LINK_ACCESS ?> : <?php echo $link ?>"><?php echo $link ?></a>
</small>
<?php endif; ?>
</div>
</div>
<div class="grid">
<div class="col sml-12">
<label for="id_content"><?php echo L_CONTENT_FIELD ?>&nbsp;:</label>
<?php plxUtils::printArea('content',plxUtils::strCheck($content),35,20,false,'full-width'); ?>
<input class="toggler" type="checkbox" id="toggler_chapo"<?php echo (empty($_GET['a']) || ! empty(trim($chapo))) ? ' unchecked' : ''; ?> />
<label for="toggler_chapo"><?php echo L_HEADLINE_FIELD;?> : <span><?php echo L_ARTICLE_CHAPO_HIDE;?></span><span><?php echo L_ARTICLE_CHAPO_DISPLAY;?></span></label>
<div>
<?php plxUtils::printArea('chapo',plxUtils::strCheck($chapo),0,8); ?>
</div>
</div>
</div>
<?php if($artId!='' AND $artId!='0000') : ?>
<div class="grid">
<div class="col sml-12">
<?php $link = $plxAdmin->urlRewrite('?article'.intval($artId).'/'.$url) ?>
<label for="id_link"><?php echo L_LINK_FIELD ?>&nbsp;:&nbsp;<?php echo '<a onclick="this.target=\'_blank\';return true;" href="'.$link.'" title="'.L_LINK_ACCESS.'">'.L_LINK_VIEW.'</a>'; ?></label>
<?php echo '<input id="id_link" onclick="this.select()" readonly="readonly" type="text" value="'.$link.'" />' ?>
<label for="id_content"><?php echo L_CONTENT_FIELD ?>&nbsp;:</label>
<?php plxUtils::printArea('content',plxUtils::strCheck($content),0,20); ?>
</div>
</div>
<?php endif; ?>
</fieldset>
<div class="grid gridthumb">
<div class="col sml-12">
Expand Down Expand Up @@ -499,14 +502,11 @@ function refreshImg(dta) {

<div class="grid">
<div class="col sml-12">
<label for="id_tags">
<?php echo L_ARTICLE_TAGS_FIELD ?>&nbsp;:&nbsp;<a class="hint"><span><?php echo L_ARTICLE_TAGS_FIELD_TITLE ?></span></a>
</label>
<div class="inline-form">
<?php plxUtils::printInput('tags',$tags,'text','25-255',false,false); ?>
<a title="<?php echo L_ARTICLE_TOGGLER_TITLE ?>" id="toggler" href="javascript:void(0)" onclick="toggleDiv('tags','toggler','+','-')" style="outline:none; text-decoration: none">+</a>
</div>
<div id="tags" style="display:none; margin-top: 1rem">
<label for="tags"><?php echo L_ARTICLE_TAGS_FIELD; ?>&nbsp;:&nbsp;<a class="hint"><span><?php echo L_ARTICLE_TAGS_FIELD_TITLE; ?></span></a></label>
<?php plxUtils::printInput('tags',$tags,'text','25-255',false,false); ?>
<input class="toggler" type="checkbox" id="toggler_tags"<?php echo (empty($_GET['a']) || ! empty(trim($tags))) ? ' unchecked' : ''; ?> />
<label for="toggler_tags"><span>-</span><span>+</span></label>
<div style="margin-top: 1rem">
<?php
if($plxAdmin->aTags) {
$array=array();
Expand All @@ -533,6 +533,7 @@ function refreshImg(dta) {
</div>
</div>
</div>

<div class="grid">
<div class="col sml-12">
<?php if($plxAdmin->aConf['allow_com']=='1') : ?>
Expand Down Expand Up @@ -608,5 +609,5 @@ function refreshImg(dta) {
# Hook Plugins
eval($plxAdmin->plxPlugins->callHook('AdminArticleFoot'));
# On inclut le footer
include(dirname(__FILE__).'/foot.php');
?>
include __DIR__ .'/foot.php';
?>
Loading

0 comments on commit cda7379

Please sign in to comment.