function wepromotethis_search_form($form)
{
    global $hop;
    $plink = "http://www.wepromotethis.com/hop/" . $hop;
    $eplink = urlencode($plink);
    $socialLink = '';
    if (function_exists('display_social4i')) {
        $socialLink = display_social4i("large", "align-right");
        // Modify $socialLink so that the twitter, facebook, and google plus buttons display properly
        $socialLink = preg_replace('/data-url="([^"]+)"/i', 'data-url="' . $plink . '" ', $socialLink);
        $socialLink = preg_replace('/data-counturl="([^"]+)"/i', 'data-counturl="wepromotethis.com" ', $socialLink);
        $socialLink = preg_replace('/data-text="([^"]+)"/i', 'data-text="I just turned my computer into an ATM. Thanks #WPT !!! " ', $socialLink);
        $socialLink = preg_replace('/(<g:plusone.* href=)"([^"]+)"/i', '$1"https://plus.google.com/106500919528675853199"', $socialLink);
        $socialLink = preg_replace('/(<fb:like.* href=|fb-like.* data-href=)"([^"]+)"/i', '$1"https://www.facebook.com/pages/WePromoteThiscom/367519556648222?ref=hl"', $socialLink);
    }
    if (function_exists('theme_my_login')) {
        //global $theme_my_login;
        //$themeMyLoginForm = $theme_my_login -> shortcode(wp_parse_args('[widget_theme_my_login]'));
        //$themeMyLoginForm = $theme_my_login -> shortcode(wp_parse_args('[theme_my_login]'));
        ob_start();
        theme_my_login(wp_parse_args('[widget_theme_my_login]'));
        //theme_my_login(wp_parse_args('[theme_my_login]'));
        $themeMyLoginForm = ob_get_contents();
        ob_end_clean();
    }
    //$themeMyLoginForm = wp_login_form( array('echo' => false) );
    $form .= "<div class='register_button wpt_loggedout'>\r\n    <div>\r\n    " . $themeMyLoginForm . "\r\n    </div>\r\n    </div>\r\n\r\n    <div class='logout_button wpt_loggedin'>\r\n    <a href='" . wp_logout_url(home_url()) . "' title='Logout'>Logout</a>\r\n    </div>\r\n    \r\n    <div class='sociallink_page_header'>\r\n    " . $socialLink . "\r\n    </div>\r\n    ";
    return $form;
}
function social4i_shortcode($atts)
{
    extract(shortcode_atts(array('size' => 'large', 'align' => 'align-left', 'type' => FALSE), $atts));
    $ss = display_social4i($size, $align, $type);
    return $ss;
}
Exemple #3
0
</a> dnia <?php 
    the_time('j F, Y');
    ?>
				</div>
				</br>
				<span style="text-align:center; display:block">
				<?php 
    the_post_thumbnail(array(540, 540));
    ?>
				</span>
				<?php 
    the_content();
    ?>
				<div style="margin-right:18px;">
				<?php 
    if (function_exists('display_social4i')) {
        echo display_social4i("large", "align-right");
    }
    ?>
				</div>
				<hr class="style-six" style="margin-top:10px;" />
			

				<?php 
}
?>
 
			</div>
		</div>
<?php 
get_footer();
Exemple #4
0
   <h1>
    <?php 
      the_title();
      ?>
   </h1>
  </div>
 </header>
 <div class="box-post">
  <?php 
      the_content('');
      ?>
 </div>
 <div class="box-sns">
  <?php 
      if (function_exists('display_social4i')) {
          echo display_social4i("large", "float-right");
      }
      ?>
 </div>
     </div>
 </article>
 <?php 
      $prevpost = get_adjacent_post(true, '', true);
      //前の記事
      $nextpost = get_adjacent_post(true, '', false);
      //次の記事
      if ($prevpost or $nextpost) {
          //前の記事、次の記事いずれか存在しているとき
          ?>
 <div id="box_paging">
  <?php 
    echo get_post_meta($post->ID, 'poprzednia_pizza_nazwa', true);
    ?>
"><div class="prev"></div><div style=" width:160px; height:40px; text-decoration:none; color:#DADADA; top:290px; left:490px; position:absolute;  text-transform: uppercase; font-familly:playfair; text-align: center;"><?php 
    echo get_post_meta($post->ID, 'poprzednia_pizza_nazwa', true);
    ?>
</div></a>
          <?php 
    the_content();
    ?>
          
         

          </br>
          <?php 
    if (function_exists('display_social4i')) {
        echo display_social4i("small", "align-left");
    }
    ?>
          
          <span style="color:white !important;">
          <?php 
    global $withcomments;
    $withcomments = 1;
    comments_template('comments.php', true);
    ?>
</span>
          
          </div>
        <?php 
}
?>