Изменения в шаблонах между версиями 9.7 и 9.8

Тема в разделе "DataLife Engine", создана пользователем oPPPs, 4 фев 2013.

  1. oPPPs

    oPPPs

    Регистрация:
    8 сен 2012
    Сообщения:
    266
    Симпатии:
    245
    1. Скопируйте файлы изображений closemarker.png, marker.png, social-icons.png из стандартного шаблона из папки /templates/Default/dleimages/ в аналогичную папку вашего шаблона.

    2. Откройте файл style/engine.css найдите и удалите:
    PHP:
    .editor textarea {
        
    font-familyVerdana;
        
    word-spacing0.1em;
        
    letter-spacing0;
        
    line-height1.5em;
        
    font-size11px;
        
    color:#000;
        
    background#fff url("../images/fields.png") repeat-x;
        
    border0 none;
    }
     
    .
    editor input[type="text"] {
        
    padding2px;
        
    background#fff url("../images/fields.png") repeat-x;
        
    border1px solid #bcc0c2;
    }
     
    .
    editor_button {
        
    floatleft;
        
    cursorpointer;
        
    padding-left0;
        
    padding-right0;
    }
     
    .
    editor_buttoncl {
        
    floatleft;
        
    cursorpointer;
        
    padding-left1px;
        
    padding-right1px;
        
    border-left1px solid #bbb;
        
    border-right1px solid #bbb;
    }
     
    .
    editbclose {
        
    floatright;
        
    cursorpointer;
        
    displaynone;
    }
     
    .
    editor_button select {
        
    font-size11px;
    }
     
    .
    editor_button img {
        
    margin0;
        
    padding0;
    }
     
    .
    editbclose img {
        
    margin0;
        
    padding0;
    }
     
    .
    editor_button_brk img {
        
    margin0;
        
    padding0;
    }
    Далее в этом же файле найдите:
    PHP:
    .xfields textarea, .xprofile textarea {
        
    width98%;
        
    height186px;
        
    margin0px 1px 0px 0px;
        
    padding0px;
    }
    Замените на:
    PHP:
    .xfields textarea, .xprofile textarea {
        
    height186px;
        
    margin0px 1px 0px 0px;
        
    padding0px;
    }
    Далее в этом же файле в самый конец добавьте:
    PHP:
    /*---BB Редактор---*/
    .bb-pane height1%; overflowhiddenborder1px solid #BBB; background-image: url("../bbcodes/bg.gif"); }
    .bb-btn, .bb-sep {
    height25px;
    floatleft;
    displayblock;
    overflowhidden;
    text-indent: -9999px;
    white-spacenowrap;
    }
    .
    bb-sel floatleftpadding4px 2px 0 2px; }
    .
    bb-sel select font-size11px; }
    .
    bb-sep width5pxbackground-imageurl("../bbcodes/brkspace.gif"); }
    .
    bb-btn cursorpointerwidth23px; }
     
    #b_font { width: 118px;}
    #b_size { width: 65px;}
    #b_font select { padding: 0px;}
    #b_size select { padding: 0px;}
    #b_b { background-image: url("../bbcodes/b.gif"); }
    #b_i { background-image: url("../bbcodes/i.gif"); }
    #b_u { background-image: url("../bbcodes/u.gif"); }
    #b_s { background-image: url("../bbcodes/s.gif"); }
    #b_img { background-image: url("../bbcodes/image.gif"); }
    #b_up { background-image: url("../bbcodes/upload.gif"); }
    #b_emo { background-image: url("../bbcodes/emo.gif"); }
    #b_url { background-image: url("../bbcodes/link.gif"); }
    #b_leech { background-image: url("../bbcodes/leech.gif"); }
    #b_mail { background-image: url("../bbcodes/email.gif"); }
    #b_video { background-image: url("../bbcodes/mp.gif"); }
    #b_audio { background-image: url("../bbcodes/mp3.gif"); }
    #b_hide { background-image: url("../bbcodes/hide.gif"); }
    #b_quote { background-image: url("../bbcodes/quote.gif"); }
    #b_code { background-image: url("../bbcodes/code.gif"); }
    #b_left { background-image: url("../bbcodes/l.gif"); }
    #b_center { background-image: url("../bbcodes/c.gif"); }
    #b_right { background-image: url("../bbcodes/r.gif"); }
    #b_color { background-image: url("../bbcodes/color.gif"); }
    #b_spoiler { background-image: url("../bbcodes/spoiler.gif"); }
    #b_fla { background-image: url("../bbcodes/flash.gif"); }
    #b_yt { background-image: url("../bbcodes/youtube.gif"); }
    #b_tf { background-image: url("../bbcodes/typograf.gif"); }
    #b_list { background-image: url("../bbcodes/list.gif"); }
    #b_ol { background-image: url("../bbcodes/ol.gif"); }
    #b_tnl { background-image: url("../bbcodes/translit.gif"); }
    #b_br { background-image: url("../bbcodes/pbreak.gif"); }
    #b_pl { background-image: url("../bbcodes/page.gif"); }
     
    .bb-editor textarea {
    -
    moz-box-sizingborder-box; -webkit-box-sizingborder-boxbox-sizingborder-box;
    padding2pxborder1px solid #bcc0c2; width: 100%; background: #fff url("../images/fields.png") repeat-x;
    }
    .
    editorcomm .bb-editor width465px;}
    .
    editorcomm .bb-editor textarea height156px; }
     
    .
    clr {
        
    clearboth;
    }
     
    /*---Выделение текста и всплывающее окно (поделиться ссылкой)---*/
    #marker-bar,
    #txtselect_marker {
        
    displayblock;
        
    visibilityhidden;
        
    positionabsolute;
        
    z-index1200;
        
    opacity0;
        -
    webkit-transitionopacity .4svisibility .1s linear .4s;
        -
    moz-transitionopacity .4svisibility .1s linear .4s;
        -
    o-transitionopacity .4svisibility .1s linear .4s;
        
    transitionopacity .4svisibility .1s linear .4s;
    }
    #txtselect_marker {
        
    cursorpointer;
        
    width32px;
        
    height32px;
        
    background:url(../dleimages/marker.png) -0px -0px no-repeat;
    }
     
    #txtselect_marker:hover {
            
    background-position: -0px -32px;
    }
     
    #marker-bar{
        
    border1px solid #ccc;
        
    border-radius15px;
        
    background#fff;
        
    padding5px 10px;
        
    cursor: default;
        
    box-shadow0px 0px 4px #ccc;
    }
     
    #marker-bar.show,
    #txtselect_marker.show {
            /* XXX make a common css fadeIn/fadeOut classes */
        
    visibilityvisible;
        -
    webkit-transitionopacity .4svisibility 0s;
        -
    moz-transitionopacity .4svisibility 0s;
        -
    o-transitionopacity .4svisibility 0s;
        
    transitionopacity .4svisibility 0s;
        
    opacity1;
    }
     
    #marker-bar .masha-social,
    #marker-bar .masha-marker{
        
    cursorpointer;
        
    displayblock;
        
    margin0 5px;
        
    floatleft;
    }
     
    #marker-bar .masha-marker{
        
    line-height1em;
        
    color#aaa;
        
    border-bottom1px dotted #aaa;
        
    margin-right10px;
    }
     
    #marker-bar .masha-marker:hover {
        
    color#ea3e26;
        
    border-color#ea3e26;
    }
     
    .
    user_selection, .user_selection_true {
        
    background#c4f47d;
        
    padding2px 0;
    }
    .
    user_selection a.txtsel_close, .user_selection_true a.txtsel_close {
        
    display:none;
    }
    .
    user_selection .closewrap, .user_selection_true .closewrap {
        
    positionrelative;
    }
    .
    user_selection.hover a.txtsel_close, .user_selection_true.hover a.txtsel_close {
        
    displayinline-block;
        
    positionabsolute;
        
    top: -7px;
        
    left: -5px;
        
    width33px;
        
    height33px;
        
    backgroundurl(../dleimages/closemarker.png) -0px -0px no-repeat;
    }
     
    .
    user_selection.hover a.txtsel_close:hover, .user_selection_true.hover a.txtsel_close:hover {
        
    background-position: -0px -33px;
    }
     
     
    #share-popup {
        
    background#fff;
        
    border1px solid #aaa;
        
    border-radius5px;
        
    box-shadow0 0 5px rgba(0,0,0,0.5);
        
    positionabsolute;
        
    width414px;
        
    display:none;
        
    z-index100;
        
    padding10px 0;
        
    opacity0;
        -
    webkit-transitionopacity .4svisibility .1s linear .4s;
        -
    moz-transitionopacity .4svisibility .1s linear .4s;
        -
    o-transitionopacity .4svisibility .1s linear .4s;
        
    transitionopacity .4svisibility .1s linear .4s;
    }
     
    #share-popup.show {
        
    display:block;
        
    opacity1;
        -
    webkit-transitionopacity .4svisibility 0s;
        -
    moz-transitionopacity .4svisibility 0s;
        -
    o-transitionopacity .4svisibility 0s;
        
    transitionopacity .4svisibility 0s;
        
    opacity1;
    }
     
    #share-popup .social {
        
    padding0 0 10px 17px;
        
    height40px;
    }
     
    #share-popup .social p {
        
    padding-bottom10px;
        
    margin0;
        
    font-weightbold;
    }
     
    #share-popup .social ul {
        
    list-stylenone;
        
    margin0;
        
    padding0;
    }
     
    #share-popup .social ul li {
        
    floatleft;
        
    margin-right20px;
        
    padding-top2px;
        
    positionrelative;
    }
     
    #share-popup .social ul a {
        
    text-decorationnone;
        
    font-size11px;
        
    displayinline-block;
        
    color#aaa;
        
    padding-left25px;
    }
     
    #share-popup .social ul a:hover {
        
    text-decorationunderline;
        
    color#ea3e26;
    }
     
    #share-popup .social a span{
        
    cursorpointer;
        
    width20px;
        
    height20px;
        
    backgroundurl(../dleimages/social-icons.png20px 20px no-repeat;
        
    positionabsolute;
        
    left0;
        
    top0;
    }
     
    #share-popup .social .tw span{
        
    background-position-20px;
    }
     
    #share-popup .social .tw:hover span{
        
    background-position0 0;
    }
     
    #share-popup .social .fb span{
        
    background-position: -20px -20px;
    }
     
    #share-popup .social .fb:hover span {
        
    background-position: -20px 0;
    }
     
    #share-popup .social .vk span{
        
    background-position: -40px -20px;
    }
     
    #share-popup .social .vk:hover span {
        
    background-position: -40px 0;
    }
     
    #share-popup .social .gp span{
        
    background-position: -60px -20px;
    }
     
    #share-popup .social .gp:hover span {
        
    background-position: -60px 0;
    }
     
    #share-popup .link {
        
    clearboth;
        
    border-top1px solid #d9d9d9;
        
    padding10px 5px 0 10px;
        
    line-height1.2;
        
    overflowhidden;
        
    margin0 7px;
    }
     
    #share-popup .link p {
        
    font-weightbold;
        
    padding0 0 3px 0;
        
    margin0;
    }
     
    #share-popup .link span {
        
    color#999;
        
    font-size10px;
        
    displayblock;
        
    padding-top3px;
    }
     
    #share-popup .link a {
        
    displayblock;
    }
    3. Откройте файл addnews.tpl и найдите:
    PHP:
    <tr>
                <
    td colspan="2">
                    <
    b>Вводная часть: <span class="impot">*</span></b> (Обязательно)
                    <
    div>
                        [
    not-wysywyg]
                        <
    div>{bbcode}</div>
                        <
    textarea name="short_story" id="short_story" onfocus="setFieldName(this.name)" style="width:98%;" rows="15" class="f_textarea" >{short-story}</textarea>
                        [/
    not-wysywyg]
                        {
    shortarea}
                    </
    div>
                </
    td>
            </
    tr>
            <
    tr>
                <
    td colspan="2">
                    <
    b>Подробная часть:</b> (Необязательно)
                    <
    div>
                        [
    not-wysywyg]
                        <
    div>{bbcode}</div>
                        <
    textarea name="full_story" id="full_story" onfocus="setFieldName(this.name)" style="width:98%;" rows="20" class="f_textarea" >{full-story}</textarea>
                        [/
    not-wysywyg]
                        {
    fullarea}
                    </
    div>
                </
    td>
            </
    tr>
    Замените на:
    PHP:
    <tr>
                <
    td colspan="2">
                    <
    b>Вводная часть: <span class="impot">*</span></b> (Обязательно)
                    [
    not-wysywyg]
                    <
    div class="bb-editor">
                        {
    bbcode}
                        <
    textarea name="short_story" id="short_story" onfocus="setFieldName(this.name)" rows="15" class="f_textarea" >{short-story}</textarea>
                    </
    div>
                    [/
    not-wysywyg]
                    {
    shortarea}
                </
    td>
            </
    tr>
            <
    tr>
                <
    td colspan="2">
                    <
    b>Подробная часть:</b> (Необязательно)
                    [
    not-wysywyg]
                    <
    div class="bb-editor">
                        {
    bbcode}
                        <
    textarea name="full_story" id="full_story" onfocus="setFieldName(this.name)" rows="20" class="f_textarea" >{full-story}</textarea>
                    </
    div>
                    [/
    not-wysywyg]
                    {
    fullarea}
                </
    td>
            </
    tr>
    4. Откройте файл comments.tpl и найдите:
    PHP:
    <ul class="reset">
                    <
    li>[complaint]Жалоба[/complaint]</li>
                    <
    li>[com-edit]Изменить[/com-edit]</li>
                    <
    li>[com-del]Удалить[/com-del]</li>
                </
    ul>
    Замените на:
    PHP:
    <ul class="reset">
                    <
    li>[spam]Спам[/spam]</li>
                    <
    li>[complaint]Жалоба[/complaint]</li>
                    <
    li>[com-edit]Изменить[/com-edit]</li>
                    <
    li>[com-del]Удалить[/com-del]</li>
                </
    ul>
    5. Откройте файл fullstory.tpl и найдите:
    PHP:
    <h3 class="btl">{title}</h3>
    Замените на:
    PHP:
    <h3 class="btl"><span id="news-title">{title}</span></h3>
    6. Откройте файл static.tpl и найдите:
    PHP:
    <h2 class="heading">{description}</h2>
    Замените на:
    PHP:
    <h2 class="heading"><span id="news-title">{description}</span></h2>
    7. Откройте файл userinfo.tpl и найдите:
    PHP:
    <tr>
    <
    td class="label">Аватар:</td>
    <
    td>
    <
    input type="file" name="image" class="f_input" /><br />
    <
    div class="checkbox"><input type="checkbox" name="del_foto" id="del_foto" value="yes" /> <label for="del_foto">Удалить фотографию</label></div>
    </
    td>
    </
    tr>
    Замените на:
    PHP:
    <tr>
    <
    td class="label">Аватар:</td>
    <
    td>Загрузить с комьютера: <input type="file" name="image" class="f_input" /><br /><br />
    Сервис <a href="http://www.gravatar.com/" target="_blank">Gravatar</a>: <input type="text" name="gravatar" value="{gravatar}" class="f_input" /> (Укажите E-mail на данном сервисе)
    <
    br /><br /><div class="checkbox"><input type="checkbox" name="del_foto" id="del_foto" value="yes" /> <label for="del_foto">Удалить аватар</label></div>
    </
    td>
    </
    tr>
    8. Откройте файл navigation.tpl и найдите:
    PHP:
    <br /><div class="dpad basenavi">
    Замените на:
    PHP:
    <br /><div class="dpad basenavi ignore-select">
     
    Fllik и $iD нравится это.