Обновление шаблонов до Instantcms 1.10.7

Опубликовано:
Редактировалось: 2 раза — последний вчера в 17:54
Просмотров: 1165
0
Голосов: 0
Доброго дня. Вот полная инструкция по обновлению шаблонов купленных на нашем сайте до версии 1.10.7



+добавить -удалить +-заменить

template.php

после
Код PHP:
  1. $this->addHeadJsLang(array('CBOX_IMAGE','CBOX_FROM','CBOX_PREVIOUS','CBOX_NEXT','CBOX_CLOSE','CBOX_XHR_ERROR','CBOX_IMG_ERROR', 'CBOX_SLIDESHOWSTOP', 'CBOX_SLIDESHOWSTART'));
+
Код PHP:
  1. $this->addHead('<script type="text/javascript">var TEMPLATE = "'.TEMPLATE.'";</script>');
-----------------------------

+-debug.php
+-p_kcaptcha.tpl
+p_recaptcha.tpl

------------------------------

menu.tpl

Код PHP:
  1. {if $item.iconurl}<img src="/images/menuicons/{$item.iconurl}" alt="{$item.title|escape:'html'}" />{/if}
+-
Код PHP:
  1. {if $item.icon_as_img}<img src="/images/menuicons/{$item.iconurl}" alt="{$item.title|escape:'html'}" />{elseif $item.icon_as_css}<i class="{$item.iconurl}"></i>{/if}
-----------------

com_blog_view_all.tpl

Код PHP:
  1. {$LANG.BLOGS}
  2. +-
  3. {if $ownertype == 'all'}{$LANG.ALL_BLOGS}{elseif $ownertype == 'single'}{$LANG.PERSONALS}{elseif $ownertype == 'multi'}{$LANG.COLLECTIVES}{/if}
  4.  
  5. <p>{$LANG.NOT_ACTIVE_BLOGS}</p>
  6. +-
  7. <p class="not_found">{$LANG.NOT_ACTIVE_BLOGS}</p>

----------------------------

com_blog_view_posts.tpl

Код PHP:
  1. <p style="clear:both">{$LANG.NOT_POSTS}</p>
  2. +-
  3. <p class="not_found">{$LANG.NOT_POSTS}</p>
-----------------

com_comments_view.tpl

Код PHP:
  1. <script type="text/javascript">
  2. var target_author_can_delete = {$target_author_can_delete};
  3. {if $cfg.cmm_ajax}
  4. var anc = '';
  5. if (window.location.hash){
  6. anc = window.location.hash;
  7. }
  8. $(function(){
  9. loadComments('{$target}', {$target_id}, anc);
  10. });
  11. {/if}
  12. </script>
+-

Код PHP:
  1. <script type="text/javascript">
  2. var target_author_can_delete = {$target_author_can_delete};
  3. var anc = '';
  4. if (window.location.hash){
  5. anc = window.location.hash;
  6. }
  7. {if $cfg.cmm_ajax}
  8. $(function(){
  9. loadComments('{$target}', {$target_id}, anc);
  10. });
  11. {else}
  12. if (anc){
  13. window.location.hash = anc.substr(1, 100);
  14. $('a[href='+anc+']').css('color', '#c0392b').attr('title', LANG_COMMENT_IN_LINK).fadeOut().fadeIn().fadeOut().fadeIn();
  15. }
  16. {/if}
  17. </script>
---------------------------

com_content_rating.tpl

Код PHP:
  1. {$article.fpubdate}
  2. +-
  3. <time datetime="{$article.ffpubdate}">{$article.fpubdate}</time>
-----------------------------

com_content_view.tpl


{$article.fpubdate}
+-
<time datetime="{$article.ffpubdate}">{$article.fpubdate}</time>

-----------------------------------

+com_files_redirect.tpl

-----------------------------------

com_forum_user_activity.tpl

href="/forum/thread{$post.thread_id}.html"
+-
href="/forum/thread{$post.thread_id}-1.html"

----------------------------------------

com_forum_view.tpl

<a href="/forum/thread{$thread.id}.html">{$thread.title}</a>
+-
<a href="/forum/thread{$thread.id}-1.html">{$thread.title}</a>

--------------------------------------

com_forum_view_thread.tpl

<div>&larr; <a href="/forum/thread{$prev_thread.id}.html" title="{$LANG.PREVIOUS_THREAD}">{$prev_thread.title|truncate:30}</a></div>
+-
<div>&larr; <a href="/forum/thread{$prev_thread.id}-1.html" title="{$LANG.PREVIOUS_THREAD}">{$prev_thread.title|truncate:30}</a></div>

<div><a href="/forum/thread{$next_thread.id}.html" title="{$LANG.NEXT_THREAD}">{$next_thread.title|truncate:30}</a> &rarr;</div>
+-
<div><a href="/forum/thread{$next_thread.id}-1.html" title="{$LANG.NEXT_THREAD}">{$next_thread.title|truncate:30}</a> &rarr;</div>

----------------------------------------

com_photos_view_photo.tpl

+
{$photo.plugins_output_before}
+
{$photo.plugins_output_after}

-------------------------------------------

com_search_text.tpl

-{$num="1"}

<span>{$num}</span>
+-
<span>{$res_count}</span>

{$num=$num+1}
+-
{$res_count=$res_count+1}

<p class="usr_photos_notice">{$LANG.BY_QUERY} <strong>"{$query}"</strong> {$LANG.NOTHING_FOUND}. <a href="{$external_link}" target="_blank">{$LANG.FIND_EXTERNAL}</a></p>
+-
<p class="not_found">{$LANG.BY_QUERY} <strong>"{$query}"</strong> {$LANG.NOTHING_FOUND}. <a href="{$external_link}" target="_blank">{$LANG.FIND_EXTERNAL}</a></p>

----------------------------------------------

com_users_edit_profile.tpl

<div style="margin-top: 12px;" id="submitform">
<input style="font-size:16px" name="save" type="submit" id="save" value="{$LANG.SAVE}" />
<input style="font-size:16px" name="delbtn2" type="button" id="delbtn2" value="{$LANG.DEL_PROFILE}" onclick="location.href='/users/{$usr.id}/delprofile.html';" />
</div>

+-

<div style="margin-top: 12px;" id="submitform">
<input name="save" type="submit" id="save" value="{$LANG.SAVE}" />
{if $is_can_delete_profile}
<input name="delbtn2" type="button" id="delbtn2" value="{$LANG.DEL_PROFILE}" onclick="location.href='/users/{$usr.id}/delprofile.html';" />
{/if}
</div>

<input style="font-size:16px" name="save2" type="submit" id="save2" value="{$LANG.CHANGE_PASSWORD}" />
+-
<input name="save2" type="submit" id="save2" value="{$LANG.CHANGE_PASSWORD}" />


-----------------------------------------------

com_users_photo_add.tpl

upload_url: "/users/photos/upload",
post_params: { "PHPSESSID" : "{$sess_id}" },
+-
upload_url: "/components/users/ajax/upload_photo.php",
post_params: { "sess_id" : "{$sess_id}" },


css

/* upd 1.10.7 */

.background_transition {transition: background 0.4s ease 0s;}
.color_transition {transition: color 0.4s ease 0s;}
.color_pumpkin { color: #d35400;}
.color_red {color: #e74c3c;text-decoration: none;}
.color_green {color: #2ecc71;text-decoration: none;}
.color_red:hover {color: #c0392b;}
.color_green:hover {color: #27ae60;}
.color_gray {color: #bdc3c7;}
.color_asbestos {color: #7f8c8d;}
.color_blue{color: #375E93;}
.ratings_control {text-align:center;margin:5px 0 0 0;overflow: hidden;font-size: 14px;}
#karmapoints {font-size:24px;}
.karma_form{text-align:center;padding:8px;background-color:#ecf0f1;}
#karmavotes {color:#7f8c8d;}
#con_rating_block #karmapoints {font-size: inherit;}
#con_rating_block #karmactrl {margin: 10px 0 0 0;}
.ratings_control a {display: inline-block;width: 20px;height: 20px;}
.ratings_control .fa {display: none;}
.ratings_control .color_green {background: url('../images/icons/karma_up.png') no-repeat center center;}
.ratings_control .color_red {background: url('../images/icons/karma_down.png') no-repeat center center;}
.art_list thead {background: #7f8c8d;color: #fff;}
.art_list td {padding: 7px;}
.art_list {border: 1px solid #ccc;border-collapse: collapse;}
.art_list tbody tr:nth-child(even) {background-color: #ebebeb;}
.float_bar input[type="button"], .float_bar input[type="submit"] {height: auto;margin: 0;}
.redirect {margin: 10px 0;font-size: 14px;}
ul.rig {list-style: none;font-size: 0px;margin: 0;padding: 0;margin-left: -2%;}
ul.rig li {float: left;padding: 10px;margin: 0 0 2% 2%;background: #fff;border: 1px solid #ddd;font-size: 16px;font-size: 1rem;vertical-align: top;box-sizing: border-box;position: relative;overflow: hidden;}
ul.rig li::after {background-image: linear-gradient(rgba(255, 255, 255, 0), #fff);bottom: 0;content: "";height: 40px;left: 0;position: absolute;width: 100%;}
ul.rig li img {width: 100%;height: auto;margin: 0 0 10px;}
ul.rig li h3 {margin: 0 0 5px;height: 27px;}
ul.rig li:hover >span {display: block;}
ul.rig li > span {display: none;font-size: 0.9em;height: 30px;color: #999;padding: 10px 0 0 0}
ul.rig li > div{font-size: 0.9em;line-height: 1.5em;color: #999;height: 40px;overflow: hidden;display: block;transition: background 0.2s ease 0s;}
ul.rig li:hover div {position: absolute;height: auto;top: 30%;left: 0;background: #FFF;opacity: 0.8;width: 100%;}
ul.rig li:hover div > p {margin: 10px 20px;}
.not_found {color: #777777;font-size: 1.18em;width: 100%;overflow: hidden;padding: 80px 0px;text-align: center;text-overflow: ellipsis;}
.blog_details {margin: 0 0 15px;overflow: hidden;}
.blog_details > * {color: #666;margin: 0 8px 0 0;}
.p100 {width: 100%;}
.p30{width: 29%;}
.p70 {width: 69%;}
Комментарии (0)

Нет комментариев. Ваш будет первым!

Голосуем

Самый нужный компонент