mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 11:36:20 +05:30
added language support - updated keys (pt_BR and en_US completed - others langs was added keys in english version needed translation
This commit is contained in:
parent
c08e4d51ca
commit
cb53e6c087
40 changed files with 1007 additions and 198 deletions
|
|
@ -89,15 +89,15 @@ if ($type == 'is_frontpage') {
|
|||
<?php if($type != 'is_frontpage' && $type != 'is_profile') { ?>
|
||||
<label for="pMeta"><?php echo i18n('Meta_description');?> (optional)</label>
|
||||
<br />
|
||||
<textarea id="pMeta" class="form-control" name="description" rows="3" cols="20" placeholder"If leave empty we will excerpt it from the content below"><?php if (isset($p->description)) { echo $p->description;} else {echo $olddescription;}?></textarea>
|
||||
<textarea id="pMeta" class="form-control" name="description" rows="3" cols="20" placeholder="<?php echo i18n('If_leave_empty_we_will_excerpt_it_from_the_content_below');?>"><?php if (isset($p->description)) { echo $p->description;} else {echo $olddescription;}?></textarea>
|
||||
<br /><br />
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<?php if($type != 'is_frontpage' && $type != 'is_profile') { ?>
|
||||
<label for="pURL">Url (optional)</label>
|
||||
<label for="pURL">Url (<?php echo i18n('optional');?>)</label>
|
||||
<br>
|
||||
<input type="text" id="pURL" name="url" class="form-control text" value="<?php echo $oldmd ?>" placeholder="If the url leave empty we will use the page title"/>
|
||||
<input type="text" id="pURL" name="url" class="form-control text" value="<?php echo $oldmd ?>" placeholder="<?php echo i18n('If_the_url_leave_empty_we_will_use_the_page_title');?>"/>
|
||||
<br>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
|
@ -105,44 +105,47 @@ if ($type == 'is_frontpage') {
|
|||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<label for="wmd-input">Content</label>
|
||||
<label for="wmd-input"><?php echo i18n('Content');?></label>
|
||||
<div id="wmd-button-bar" class="wmd-button-bar"></div>
|
||||
<textarea id="wmd-input" class="form-control wmd-input <?php if (isset($postContent)) {if (empty($postContent)) {echo 'error';}} ?>" name="content" cols="20" rows="10"><?php echo $oldcontent ?></textarea>
|
||||
<br>
|
||||
<input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>">
|
||||
<?php if($type == 'is_frontpage' || $type == 'is_profile') { ?>
|
||||
<input type="submit" name="submit" class="btn btn-primary submit" value="Save"/>
|
||||
<input type="submit" name="submit" class="btn btn-primary submit" value="<?php echo i18n('Save');?>"/>
|
||||
<?php } elseif ($type == 'is_category') {?>
|
||||
<input type="hidden" name="oldfile" class="text" value="<?php echo $url ?>"/>
|
||||
<input type="submit" name="submit" class="btn btn-primary submit" value="Save category"/>
|
||||
<input type="submit" name="submit" class="btn btn-primary submit" value="<?php echo i18n('Save_category');?>"/>
|
||||
<?php } else {?>
|
||||
<input type="hidden" name="oldfile" class="text" value="<?php echo $url ?>"/>
|
||||
<input type="submit" name="submit" class="btn btn-primary submit" value="<?php echo i18n('Save');?>"/> <a class="btn btn-danger" href="<?php echo $delete ?>"><?php echo i18n('Delete');?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<label>Preview</label>
|
||||
<label><?php echo i18n('Preview');?></label>
|
||||
<br>
|
||||
<div id="wmd-preview" class="wmd-panel wmd-preview" style="width:100%;overflow:auto;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<style>
|
||||
#insertImageDialog { display:none; padding: 10px; font-size:12px;}
|
||||
.wmd-prompt-background {z-index:10!important;}
|
||||
#wmd-preview img {max-width:100%;}
|
||||
</style>
|
||||
|
||||
<div id="insertImageDialog" title="Insert Image">
|
||||
<h4>URL</h4>
|
||||
<input type="text" placeholder="Enter image URL" />
|
||||
<h4>Upload</h4>
|
||||
<div id="insertImageDialog" title="<?php echo i18n('Insert_Image');?>">
|
||||
<label>URL</label>
|
||||
<input type="text" size="48" placeholder="<?php echo i18n('Enter_image_URL');?>" />
|
||||
|
||||
<hr>
|
||||
|
||||
<form method="post" action="" enctype="multipart/form-data">
|
||||
<label><?php echo i18n('Upload');?></label>
|
||||
<input type="file" name="file" id="file" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Declare the base path. Important -->
|
||||
<script type="text/javascript">var base_path = '<?php echo site_url() ?>';</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue