
<div style="margin-top: 20px;">
<?php
    if (rand(0,1)) {
?>

<!-- admitad.banner: dcb907d03e71d4d7362ec814d4b7c0 LinguaLeo -->
<script type="text/javascript"> 
try{(function(d,ad,s,ulp,subID,injectTo){ 

  /* Optional settings (these lines can be removed): */ 
  ulp = "";  // - custom goto link;
  subID = "";  // - local banner key; 
  injectTo = "";  // - #id of html element (ex., "top-banner").

var dInject="admitad"+ad+subID+Math.round(Math.random()*100000000);
injectTo=="" && d.write('<div id="'+dInject+'"></div>');
s=s.replace("$",ad);s+="?inject="+(injectTo==""||!injectTo?dInject:injectTo);
if(subID!="")s+="&subid="+subID;if(ulp!="")s+="&ulp="+escape(encodeURI(ulp)); 
s=(("https:"==d.location.protocol)?"https":"http")+"://"+s;var j=d.createElement("script");
j.type="text/javascript";j.src=s;(d.getElementsByTagName("head")[0]).appendChild(j);
})(window.document,"dcb907d03e71d4d7362ec814d4b7c0","ad.admitad.com/j/$/","","","");}catch(err){}
</script>
<noscript>
<embed wmode="opaque" width="600" height="90" src="http://ad.admitad.com/f/dcb907d03e71d4d7362ec814d4b7c0/" type="application/x-shockwave-flash">
<noembed>
<a target="_blank" rel="nofollow" href="http://ad.admitad.com/goto/dcb907d03e71d4d7362ec814d4b7c0/?i=4">
    <img width="600" height="90" border="0" src="http://ad.admitad.com/b/dcb907d03e71d4d7362ec814d4b7c0/" alt="LinguaLeo"/>
</a>
</noembed>
</noscript>
<!-- /admitad.banner -->

<?php
    } else {
?>

<!-- admitad.banner: 7bef0c5ce071d4d7362ec814d4b7c0 LinguaLeo -->
<script type="text/javascript"> 
try{(function(d,ad,s,ulp,subID,injectTo){ 

  /* Optional settings (these lines can be removed): */ 
  ulp = "";  // - custom goto link;
  subID = "";  // - local banner key; 
  injectTo = "";  // - #id of html element (ex., "top-banner").

var dInject="admitad"+ad+subID+Math.round(Math.random()*100000000);
injectTo=="" && d.write('<div id="'+dInject+'"></div>');
s=s.replace("$",ad);s+="?inject="+(injectTo==""||!injectTo?dInject:injectTo);
if(subID!="")s+="&subid="+subID;if(ulp!="")s+="&ulp="+escape(encodeURI(ulp)); 
s=(("https:"==d.location.protocol)?"https":"http")+"://"+s;var j=d.createElement("script");
j.type="text/javascript";j.src=s;(d.getElementsByTagName("head")[0]).appendChild(j);
})(window.document,"7bef0c5ce071d4d7362ec814d4b7c0","ad.admitad.com/j/$/","","","");}catch(err){}
</script>
<noscript>
<embed wmode="opaque" width="600" height="90" src="http://ad.admitad.com/f/7bef0c5ce071d4d7362ec814d4b7c0/" type="application/x-shockwave-flash">
<noembed>
<a target="_blank" rel="nofollow" href="http://ad.admitad.com/goto/7bef0c5ce071d4d7362ec814d4b7c0/?i=4">
    <img width="600" height="90" border="0" src="http://ad.admitad.com/b/7bef0c5ce071d4d7362ec814d4b7c0/" alt="LinguaLeo"/>
</a>
</noembed>
</noscript>
<!-- /admitad.banner -->

<?php
    }
?>
</div>


    </div>
    <!-- /content -->

    <!-- sidebar -->
    <div id="sidebar">

        <form id="search" method="get" action="<?php bloginfo('url'); ?>">
            <input type="text" value="Поиск" onblur="if(this.value=='')this.value='Поиск';" onfocus="if(this.value=='Поиск')this.value='';" name="s" id="s">
            <!--<input type="submit" value="" id="search-button">-->
        </form>

<?php /* <!-- <a href="http://englishstyle.net/banner.php?id=repetitoronline" title="Английский язык по скайпу с репетитором" target="_blank"><img src="http://englishstyle.net/wp-content/themes/englishstyle/banners/repetitoronline.jpg" alt="repetitoronline.com" style="border: 1px solid #ddd; margin-bottom: 20px;"></a> --> */ ?>

<?php /*

<!-- admitad.banner: 32e7cf5edd71d4d7362ec814d4b7c0 LinguaLeo -->
<script type="text/javascript"> 
try{(function(d,ad,s,ulp,subID,injectTo){ 

  // Optional settings (these lines can be removed): 
  ulp = "";  // - custom goto link;
  subID = "";  // - local banner key; 
  injectTo = "";  // - #id of html element (ex., "top-banner").

var dInject="admitad"+ad+subID+Math.round(Math.random()*100000000);
injectTo=="" && d.write('<div id="'+dInject+'"></div>');
s=s.replace("$",ad);s+="?inject="+(injectTo==""||!injectTo?dInject:injectTo);
if(subID!="")s+="&subid="+subID;if(ulp!="")s+="&ulp="+escape(encodeURI(ulp)); 
s=(("https:"==d.location.protocol)?"https":"http")+"://"+s;var j=d.createElement("script");
j.type="text/javascript";j.src=s;(d.getElementsByTagName("head")[0]).appendChild(j);
})(window.document,"32e7cf5edd71d4d7362ec814d4b7c0","ad.admitad.com/j/$/","","","");}catch(err){}
</script>
<noscript>
<embed wmode="opaque" width="200" height="300" src="http://ad.admitad.com/f/32e7cf5edd71d4d7362ec814d4b7c0/" type="application/x-shockwave-flash">
<noembed>
<a target="_blank" rel="nofollow" href="http://ad.admitad.com/goto/32e7cf5edd71d4d7362ec814d4b7c0/">
<img width="200" height="300" border="0" src="http://ad.admitad.com/b/32e7cf5edd71d4d7362ec814d4b7c0/" alt="LinguaLeo" />
</a>
</noembed>
</noscript>
<!-- /admitad.banner -->

*/ ?>


        <h2 class="sidebar-header">Мы в соцсетях</h2>


        <div class="fb-page" data-href="https://www.facebook.com/englishstyle.net" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="https://www.facebook.com/englishstyle.net" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/englishstyle.net">English Style</a></blockquote></div>


<br>
<br>

        <h2 class="sidebar-header">Грамматика</h2>

        <ul id="sidebar-menu">

            <?php

            $categories = get_pages(array('child_of' => 2, 'sort_column' => 'menu_order', 'sort_order' => 'ASC'));

            foreach ($categories as $category) {
                if ($category->post_parent == 2) {
                    echo '<li><a href="' . get_bloginfo('url') . '/grammar#' . $category->post_name . '" title="' . $category->post_title . '">' . $category->post_title . '</a></li>' . "\n";
                }
            }
            
            ?>

        </ul>



<?php
/*
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Sidebar -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-1978252176306025"
     data-ad-slot="4175932797"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
*/
?>

<!-- Яндекс.Директ -->
<div id="yandex_ad"></div>
<script type="text/javascript">
(function(w, d, n, s, t) {
    w[n] = w[n] || [];
    w[n].push(function() {
        Ya.Direct.insertInto(138872, "yandex_ad", {
            ad_format: "direct",
            font_size: 1,
            type: "vertical",
            limit: 7,
            title_font_size: 2,
            links_underline: true,
            site_bg_color: "F8F8F8",
            title_color: "CC0066",
            url_color: "0066CC",
            text_color: "000000",
            hover_color: "6699CC",
            sitelinks_color: "0066CC",
            favicon: true,
            no_sitelinks: false
        });
    });
    t = d.getElementsByTagName("script")[0];
    s = d.createElement("script");
    s.src = "//an.yandex.ru/system/context.js";
    s.type = "text/javascript";
    s.async = true;
    t.parentNode.insertBefore(s, t);
})(window, document, "yandex_context_callbacks");
</script>

<?php /*

<div style="background-color: #eee; border-radius: 10px; padding: 14px 20px 16px 20px; margin-bottom: 20px;">


    <h2 style="font-weight: normal; margin-bottom: 14px; font-size: 1.3em;"><a href="http://www.ozon.ru/context/detail/id/6311085/?partner=englishstyle" title="Разговорный английский для чайников" target="_blank" style="color: #7f003f;">Разговорный английский для чайников</a></h2>

    <a href="http://www.ozon.ru/context/detail/id/6311085/?partner=englishstyle" title="Разговорный английский для чайников" target="_blank" style="display: block; margin-bottom: 10px; border: none;"><img src="http://englishstyle.net/wp-content/themes/englishstyle/images/ozon-3.jpg" alt="Разговорный английский для чайников" style="border: none; width: 150px;"></a>

<!--     <p style="margin-bottom: 10px;"><em>English for Dummies</em></p>

    <p style="float: right;"><a href="http://www.ozon.ru/context/detail/id/6311085/?partner=englishstyle" title="Купить на OZON.ru" target="_blank" style="font-size: 0.9em; color: #959595;">Купить на OZON.ru</a></p> -->

    <div class="cleaner"></div>


    <div style="height: 15px">&nbsp;</div>


    <h2 style="font-weight: normal; margin-bottom: 14px; font-size: 1.3em;"><a href="http://www.ozon.ru/context/detail/id/5664384/?partner=englishstyle" title="Английская грамматика для чайников" target="_blank" style="color: #7f003f;">Английская грамматика для чайников</a></h2>

    <a href="http://www.ozon.ru/context/detail/id/5664384/?partner=englishstyle" title="Английская грамматика для чайников" target="_blank" style="display: block; margin-bottom: 10px; border: none;"><img src="http://englishstyle.net/wp-content/themes/englishstyle/images/ozon-1.jpg" alt="Английская грамматика для чайников" style="border: none; width: 150px;"></a>

<!--     <p style="margin-bottom: 10px;"><em>English Grammar Workbook for Dummies</em></p>

    <p style="float: right;"><a href="http://www.ozon.ru/context/detail/id/5664384/?partner=englishstyle" title="Купить на OZON.ru" target="_blank" style="font-size: 0.9em; color: #959595;">Купить на OZON.ru</a></p>
 -->
    <div class="cleaner"></div>


    <div style="height: 15px">&nbsp;</div>


    <h2 style="font-weight: normal; margin-bottom: 14px; font-size: 1.3em;"><a href="http://www.ozon.ru/context/detail/id/4311148/?partner=englishstyle" title="Английский язык для чайников" target="_blank" style="color: #7f003f;">Английский язык для чайников (+ CD)</a></h2>

    <a href="http://www.ozon.ru/context/detail/id/4311148/?partner=englishstyle" title="Английский язык для чайников" target="_blank" style="display: block; margin-bottom: 10px; border: none;"><img src="http://englishstyle.net/wp-content/themes/englishstyle/images/ozon-2.jpg" alt="Английский язык для чайников" style="border: none; width: 150px;"></a>

<!--     <p style="margin-bottom: 10px;"><em>English for Dummies</em></p>

    <p style="float: right;"><a href="http://www.ozon.ru/context/detail/id/4311148/?partner=englishstyle" title="Купить на OZON.ru" target="_blank" style="font-size: 0.9em; color: #959595;">Купить на OZON.ru</a></p> -->

    <div class="cleaner"></div>


</div>

*/ ?>





        <div class="cleaner"></div>

    </div>
    <!-- /sidebar -->

    <div class="cleaner"></div>

</div>
<!-- /container -->

<!-- footer -->
<footer>
    <div class="copyright">&copy; Copyright  2012&ndash;2020 <a href="http://englishstyle.net/" title="Английский язык">EnglishStyle.net</a></div>
    <div class="reprint">При использовании материалов сайта englishstyle.net обязательна прямая индексируемая гиперссылка на ресурс.</div>
</footer>
<!-- /footer -->

<?php #wp_footer(); ?>


<!-- Yandex.Metrika counter -->
<script type="text/javascript">
    (function (d, w, c) {
        (w[c] = w[c] || []).push(function() {
            try {
                w.yaCounter17841631 = new Ya.Metrika({
                    id:17841631,
                    clickmap:true,
                    trackLinks:true,
                    accurateTrackBounce:true,
                    webvisor:true
                });
            } catch(e) { }
        });

        var n = d.getElementsByTagName("script")[0],
            s = d.createElement("script"),
            f = function () { n.parentNode.insertBefore(s, n); };
        s.type = "text/javascript";
        s.async = true;
        s.src = "https://d31j93rd8oukbv.cloudfront.net/metrika/watch_ua.js";

        if (w.opera == "[object Opera]") {
            d.addEventListener("DOMContentLoaded", f, false);
        } else { f(); }
    })(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/17841631" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->


</body>
</html>
