Авторизуйтесь по паролю
Или через соцсеть
sergey212121 29.03.2021 rss Все вопросы » Модули 1468
web102 - 2021-03-1929 марта 2021 12:48 - #79462
sergey212121 - 2021-03-1929 марта 2021 13:26 - #79465
sergey212121 - 2021-03-1929 марта 2021 13:40 - #79466
web102 - 2021-03-1929 марта 2021 13:59 - #79467
sergey212121 - 2021-03-1929 марта 2021 14:54 - #79468
sergey212121 - 2021-03-1929 марта 2021 14:58 - #79469
web102 - 2021-03-1929 марта 2021 16:14 - #79474
sergey212121 - 2021-03-1929 марта 2021 17:21 - #79475
web102 - 2021-03-1930 марта 2021 09:32 - #79482
web102 - 2021-03-1930 марта 2021 09:46 - #79483
} elseif($_GET['mod'] == "rss") { include_once (DLEPlugins::Check(ENGINE_DIR . '/rss.php')); die(); }
elseif($_GET['mod'] == "xml") { include_once (DLEPlugins::Check(ENGINE_DIR . '/xml.php')); die(); }
if( stripos( $tpl->copy_template, "[xf"
if( preg_match( "#\\[items\\](.+?)\\[/items\\]#is", $tpl->copy_template, $items_tpl ) ){ $global_tpl = $tpl->template; $tpl->template = $tpl->copy_template = $items_tpl[1]; } else $global_tpl = '';
switch ( $config['news_navigation'] ) {
if (!$global_tpl)
} ?>
if( $global_tpl AND $news_found ) $tpl->result['content'] = str_replace( $items_tpl[0], $tpl->result['content'], $global_tpl );
<?php if( !defined( 'DATALIFEENGINE' ) ) { header( "HTTP/1.1 403 Forbidden" ); header ( 'Location: ../' ); die( "Hacking attempt!" ); } if($dle_module != "main" AND $dle_module != "allnews" AND $dle_module != "catalog" AND $dle_module != "cat") { header( "HTTP/1.1 403 Forbidden" ); header ( 'Location: /' ); die("Hacking attempt!"); } include_once (DLEPlugins::Check(ENGINE_DIR . '/classes/templates.class.php')); include_once (DLEPlugins::Check(ROOT_DIR . '/language/' . $config['langs'] . '/website.lng')); if (strpos($config['http_home_url'], "//") === 0) $config['http_home_url'] = "https:".$config['http_home_url']; elseif (strpos($config['http_home_url'], "/") === 0) $config['http_home_url'] = "https://".$_SERVER['HTTP_HOST'].$config['http_home_url']; $tpl = new dle_template( ); $tpl->dir = ROOT_DIR . '/templates/' . $config['skin']; define( 'TEMPLATE_DIR', $tpl->dir ); $member_id['user_group'] = 5; if( $category != '' ) $category_id = get_ID( $cat_info, $category ); else $category_id = false; $view_template = "rss"; $config['allow_cache'] = false; $config['allow_banner'] = false; $config['rss_number'] = intval( $config['rss_number'] ); $cstart = 0; $feed = $_GET['feed']; $cdate = gmdate('Y-m-d\TH:i:sP'); // дата создания фида для яндекса if( $_GET['subaction'] == 'allnews' ) $config['home_title'] = $lang['show_user_news'] . ' ' . htmlspecialchars( $user, ENT_QUOTES, $config['charset'] ) . " - " . $config['home_title']; elseif( $_GET['do'] == 'cat' ) $config['home_title'] = stripslashes( $cat_info[$category_id]['name'] ) . " - " . $config['home_title']; if ( $feed ) { $tpl->load_template( $feed . '.tpl' ); $rss_content = ""; $tpl->copy_template = $tpl->template; include_once (DLEPlugins::Check(ENGINE_DIR . '/engine.php')); $rss_content .= $tpl->result['content']; } $rss_content = str_ireplace( '{THEME}', $config['http_home_url'] . 'templates/' . $config['skin'], $rss_content ); header( "Content-type: application/xml; charset=" . $config['charset'] ); echo $rss_content; die();
# XML-фиды. newfeed - название нового XML-фида RewriteRule ^newfeed.xml$ index.php?mod=xml&feed=newfeed [L] RewriteRule ^([^.]+)/newfeed.xml$ index.php?mod=xml&feed=newfeed&do=cat&category=$1 [L]
<feed> [items]<item> <param1>{news-id}</param1> <param2>{date}</param2> <param3>{title}</param3> </item>[/items] </feed>
sergey212121 - 2021-03-1930 марта 2021 12:06 - #79486
dj-avtosh - 2021-03-1930 марта 2021 13:28 - #79487
sergey212121 - 2021-03-1930 марта 2021 13:39 - #79488
web102 - 2021-03-1930 марта 2021 13:46 - #79489
sergey212121 - 2021-03-1930 марта 2021 13:52 - #79490
sergey212121 - 2021-03-1930 марта 2021 14:30 - #79491
nik09 - 2021-03-1917 июля 2021 12:13 - #79981
<style> .sociallinks { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.4); } .sociallinks-content { background-color: #fefefe; margin: auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 500px; border-radius: 10px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } .close { color: #aaa; position: absolute; top: 10px; right: 10px; font-size: 28px; font-weight: bold; } .close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; } .social-container { display: flex; align-items: center; } .social-container > div { margin-left: 10px; } h2, p { margin: 5px 0; } .social { padding-top: 20px; } .social img { margin: 10px; } .sharebtn { padding-top: 20px; width: 100%; } .sharebtn_area { border: 1px solid black; height: 40px; } .sharebtn input[type="text"] { width: 70%; border: none; height: 95%; } .sharebtn button { width: 25%; height: 95%; border: none; background-color: #fff; } </style> <button id="opensociallinksBtn">Поделиться</button> <div id="mysociallinks" class="sociallinks"> <div class="sociallinks-content"> <span class="close">×</span> <div class="social-container"> <img src="{image-1}" alt="Icon" width="30" height="30"> <div> <h2>{title}</h2> <p>Поделиться</p> </div> </div> <div class="social"> <a href="https://api.whatsapp.com/send/?text={full-link}"><img src="whatsapp.png" alt="WhatsApp" width="30" height="30"></a> <a href="https://www.facebook.com/sharer/sharer.php?u={full-link}"><img src="facebook.png" alt="Facebook" width="30" height="30"></a> <a href="https://twitter.com/intent/post?url={full-link}"><img src="twitter.png" alt="Twitter" width="30" height="30"></a> <a href="https://www.instagram.com/share?url={full-link}"><img src="instagram.png" alt="Instagram" width="30" height="30"></a> </div> <div class="sharebtn"> <div class="sharebtn_area"> <input type="text" id="inputText" value="{full-link}" readonly="true"> <button id="copyBtn">Поделиться <img src="share.png" width="10px" alt="Share Icon"></button> </div> </div> </div> </div> <script> var sociallinks = document.getElementById("mysociallinks"); var opensociallinksBtn = document.getElementById("opensociallinksBtn"); var closeBtn = document.getElementsByClassName("close")[0]; var copyBtn = document.getElementById("copyBtn"); var inputText = document.getElementById("inputText"); opensociallinksBtn.onclick = function() { sociallinks.style.display = "block"; } closeBtn.onclick = function() { sociallinks.style.display = "none"; } window.onclick = function(event) { if (event.target == sociallinks) { sociallinks.style.display = "none"; } } copyBtn.onclick = function() { inputText.select(); document.execCommand("copy"); } </script>