D
D
De Slow2017-01-03 01:33:05
css
De Slow, 2017-01-03 01:33:05

How to implement news output in DLE in such a design?

There is such a design (similar to a slider)
95c6e64be73f4220a920beaf175f849f.png
brought it to the main page through the {custom} tag, indicating the template, which is located in a specific file, in the template folder.
everything is fine, everything is displayed, but the layout of this template is done simply in Html 4 "Objects", here is a code example:

<section class="no-padding bg-dark border-top-1 border-black">
    <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 no-padding border-right-1 border-black hidden-xs">
      <div class="post-block first">
        <a href="#" class="link">
          <img src="{THEME}/images/1.jpg" alt="">
          <div class="overlay">
            <div class="caption">
              <span class="label label-warning">Ролевые игры</span>
              <div class="post-title">
                <h4>{title}</h4></div>
              <p>{short-story limit="70"}</p>
            </div>
          </div>
        </a>
      </div>
    </div>
    <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 no-padding-left no-padding border-right-1 border-black">
      <div class="post-block">
        <a href="#" class="link">
          <img src="{THEME}/images/2.jpg" alt="">
          <div class="overlay">
            <div class="caption">
              <span class="label label-primary">Экшн</span>
              <div class="post-title">
                <h4>{title}</h4></div>
              <p>{short-story limit="70"}</p>
            </div>
          </div>
        </a>
      </div>
    </div>
    <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 no-padding-left no-padding hidden-xs">
      <div class="post-block border-bottom-1 border-black">
        <a href="#" class="link">
          <img src="{THEME}/images/3.jpg" alt="">
          <div class="overlay">
            <div class="caption">
              <span class="label label-danger">MOVIE</span>
              <div class="post-title">
                <h4>Guardians of the Galaxy</h4></div>
              <p>Praesent eget erat vel odio mattis fermentum nec nec arcu.</p>
            </div>
          </div>
        </a>
      </div>
      <div class="post-block">
        <a href="#" class="link">
          <img src="{THEME}/images/4.jpg" alt="">
          <div class="overlay">
            <div class="caption">
              <span class="label label-success">Xbox</span>
              <div class="post-title">
                <h4>Alien: Isolation Extended Distress</h4></div>
              <p>Quisque maximus nisi ac nisi sollicitudin rhoncu.</p>
            </div>
          </div>
        </a>
      </div>
    </div>
  </section>

When I substitute the {Title} ... tags, and the rest is displayed, the same news, what should I do? and how to fix it, do I need to reverse the Html somehow? -but how do
I ask for help

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question