Beispiel #1
0
    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_name', $instance['title']);
        echo $before_widget;
        echo '<div class="widget widget_text"><div class="textwidget"><div class="social">';
        if (git_get_option('git_weibo')) {
            echo '<a href="' . git_get_option('git_weibo') . '" rel="external nofollow" title="新浪微博" target="_blank"><i class="sinaweibo fa fa-weibo"></i></a>';
        }
        if (git_get_option('git_tqq')) {
            echo '<a  href="' . git_get_option('git_tqq') . '" rel="external nofollow" title="腾讯微博" target="_blank"><i class="tencentweibo fa fa-tencent-weibo"></i></a>';
        }
        if (git_get_option('git_git')) {
            echo '<a href="' . git_get_option('git_git') . '" rel="external nofollow" title="GIT系统" target="_blank"><i class="git fa fa-git"></i></a>';
        }
        if (git_get_option('git_baidu')) {
            echo '<a href="' . git_get_option('git_baidu') . '" rel="external nofollow" title="百度贴吧" target="_blank"><i class="baidu fa fa-paw"></i></a>';
        }
        if (git_get_option('git_weixin')) {
            echo '<a class="weixin"><i class="weixins fa fa-weixin"></i><div class="weixin-popover"><div class="popover bottom in"><div class="arrow"></div><div class="popover-title">订阅号“' . git_get_option('git_weixin') . '”</div><div class="popover-content"><img src="' . git_get_option('git_weixin_qr') . '" ></div></div></div></a>';
        }
        if (git_get_option('git_pay')) {
            echo '<a class="weixin"><i class="pay fa fa-paypal"></i>
</i><div class="weixin-popover"><div class="popover bottom in"><div class="arrow"></div><div class="popover-title">支付宝“' . git_get_option('git_pay') . '”</div><div class="popover-content"><img src="' . git_get_option('git_pay_qr') . '" ></div></div></div></a>';
        }
        if (git_get_option('git_emailContact')) {
            echo '<a href="' . git_get_option('git_emailContact') . '" rel="external nofollow" title="Email" target="_blank"><i class="email fa fa-envelope-o"></i></a>';
        }
        if (git_get_option('git_qqContact')) {
            echo '<a href="tencent://message/?uin=' . git_get_option('git_qqContact') . '&Site=&Menu=yes " rel="external nofollow" title="联系QQ" target="_blank"><i class="qq fa fa-qq"></i></a>';
        }
        echo '<a href="' . git_get_option('git_rss') . '" rel="external nofollow" target="_blank"  title="订阅本站"><i class="rss fa fa-rss"></i></a>';
        echo '</div></div></div>';
        echo $after_widget;
    }
Beispiel #2
0
if (git_get_option('git_cdnurl_b')) {
    $sticky = get_option('sticky_posts');
    rsort($sticky);
    query_posts(array('post__in' => $sticky, 'caller_get_posts' => 1, 'showposts' => git_get_option('git_sticky_count') ? git_get_option('git_sticky_count') : 4));
    while (have_posts()) {
        the_post();
        echo '<a target="_blank" href="#" title="' . get_the_title() . '">';
        echo '<img src="';
        echo post_thumbnail_src();
        echo '?imageView2/1/w/120/h/62/q/85" /></a>';
    }
    wp_reset_query();
} else {
    $sticky = get_option('sticky_posts');
    rsort($sticky);
    query_posts(array('post__in' => $sticky, 'caller_get_posts' => 1, 'showposts' => git_get_option('git_sticky_count') ? git_get_option('git_sticky_count') : 4));
    while (have_posts()) {
        the_post();
        echo '<a target="_blank" href="#" title="' . get_the_title() . '">';
        echo '<img src="' . get_bloginfo("template_url") . '/timthumb.php?src=';
        echo post_thumbnail_src();
        echo '&h=62&w=120&q=90&zc=1&ct=1" /></a>';
    }
    wp_reset_query();
}
?>
</div>
</div><div class="ws_shadow"></div>
	</div><script type="text/javascript" src="<?php 
bloginfo('template_url');
?>
Beispiel #3
0
	<div class="content">
	<?php 
if (git_get_option('git_adindex_03')) {
    printf('<div class="banner banner-contenttop">' . git_get_option('git_adindex_03') . '</div>');
}
if ($paged && $paged > 1) {
    printf('<header class="archive-header"><h1>最新发布 第' . $paged . '页</h1><div class="archive-header-info"><p>' . get_option('blogname') . get_option('blogdescription') . '</p></div></header>');
} else {
    if (git_get_option('git_sticky_b')) {
        include 'modules/sticky.php';
    }
    if (git_get_option('git_slick_b') && !G_is_mobile()) {
        include 'modules/slick.php';
    }
}
if (git_get_option('git_cms_b')) {
    include 'modules/cms.php';
} else {
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
    $args = array('caller_get_posts' => 1, 'paged' => $paged);
    query_posts($args);
    include 'modules/excerpt.php';
}
?>
	</div>

</div>
<?php 
if (!G_is_mobile()) {
    get_sidebar();
}
Beispiel #4
0
function git_options_page()
{
    global $options;
    $optionsSetup = git_get_option('git_options_setup') != '';
    if ($_REQUEST['update']) {
        echo '<div class="updated"><p><strong>设置已保存。</strong></p></div>';
    }
    if ($_REQUEST['reset']) {
        echo '<div class="updated"><p><strong>设置已重置。</strong></p></div>';
    }
    ?>

<div class="wrap">
    <h2>Git 主题选项&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="button-primary" type="button" value="主题主页" onclick="window.open('http://googlo.me/archives/3011.html')">&nbsp;&nbsp;<input class="button-primary" type="button" value="邮箱反馈" onclick="window.open('http://googlo.me/go/mail')">&nbsp;&nbsp;<input class="button-primary" type="button" value="支持主题" onclick="window.open('http://googlo.me/pay')">&nbsp;&nbsp;<input class="button-primary" type="button" value="功能建议" onclick="window.open('http://googlo.me/about.html')">&nbsp;&nbsp;<input class="button-primary" type="button" value="食用文档" onclick="window.open('http://googlo.me/archives/3275.html')">&nbsp;&nbsp;<input class="button-primary" type="button" value="定制修改" onclick="window.open('http://googlo.me/go/qq')">&nbsp;&nbsp;<input class="button-primary" type="button" value="加入QQ群" onclick="window.open('http://googlo.me/go/qun')"></h2>
    <input placeholder="筛选主题选项…" type="search" id="theme-options-search" />
    <div class="yunluotips"><?php 
    echo file_get_contents("https://coding.net/u/googlo/p/api/git/raw/master/notice.txt");
    ?>
</div>
    <div class="catlist">您的网站分类列表:<?php 
    echo Bing_show_category();
    ?>
</div>
    <form method="post">
        <h2 class="nav-tab-wrapper">
<?php 
    $panelIndex = 0;
    foreach ($options as $value) {
        if ($value['type'] == 'panelstart') {
            echo '<a href="#' . $value['id'] . '" class="nav-tab' . ($panelIndex == 0 ? ' nav-tab-active' : '') . '">' . $value['title'] . '</a>';
        }
        $panelIndex++;
    }
    echo '<a href="#about_theme" class="nav-tab">关于主题</a>';
    ?>
</h2>

<?php 
    $panelIndex = 0;
    foreach ($options as $value) {
        switch ($value['type']) {
            case 'panelstart':
                echo '<div class="panel" id="' . $value['id'] . '" ' . ($panelIndex == 0 ? ' style="display:block"' : '') . '><table class="form-table">';
                $panelIndex++;
                break;
            case 'panelend':
                echo '</table></div>';
                break;
            case 'subtitle':
                echo '<tr><th colspan="2"><h3>' . $value['title'] . '</h3></th></tr>';
                break;
            case 'text':
                ?>
<tr>
    <th><label for="<?php 
                echo $value['id'];
                ?>
"><?php 
                echo $value['name'];
                ?>
</label></th>
    <td>
        <label>
        <input name="<?php 
                echo $value['id'];
                ?>
" class="regular-text" id="<?php 
                echo $value['id'];
                ?>
" type='text' value="<?php 
                if ($optionsSetup || get_option($value['id']) != '') {
                    echo stripslashes(get_option($value['id']));
                } else {
                    echo $value['std'];
                }
                ?>
" />
        <span class="description"><?php 
                echo $value['desc'];
                ?>
</span>
        </label>
    </td>
</tr>
<?php 
                break;
            case 'number':
                ?>
<tr>
    <th><label for="<?php 
                echo $value['id'];
                ?>
"><?php 
                echo $value['name'];
                ?>
</label></th>
    <td>
        <label>
        <input name="<?php 
                echo $value['id'];
                ?>
" class="small-text" id="<?php 
                echo $value['id'];
                ?>
" type="number" value="<?php 
                if ($optionsSetup || get_option($value['id']) != '') {
                    echo get_option($value['id']);
                } else {
                    echo $value['std'];
                }
                ?>
" />
        <span class="description"><?php 
                echo $value['desc'];
                ?>
</span>
        </label>
    </td>
</tr>
<?php 
                break;
            case 'textarea':
                ?>
<tr>
    <th><?php 
                echo $value['name'];
                ?>
</th>
    <td>
        <p><label for="<?php 
                echo $value['id'];
                ?>
"><?php 
                echo $value['desc'];
                ?>
</label></p>
        <p><textarea name="<?php 
                echo $value['id'];
                ?>
" id="<?php 
                echo $value['id'];
                ?>
" rows="5" cols="50" class="large-text code"><?php 
                if ($optionsSetup || get_option($value['id']) != '') {
                    echo stripslashes(get_option($value['id']));
                } else {
                    echo $value['std'];
                }
                ?>
</textarea></p>
    </td>
</tr>
<?php 
                break;
            case 'select':
                ?>
<tr>
    <th><label for="<?php 
                echo $value['id'];
                ?>
"><?php 
                echo $value['name'];
                ?>
</label></th>
    <td>
        <label>
            <select name="<?php 
                echo $value['id'];
                ?>
" id="<?php 
                echo $value['id'];
                ?>
">
                <?php 
                foreach ($value['options'] as $option) {
                    ?>
                <option value="<?php 
                    echo $option;
                    ?>
" <?php 
                    selected(get_option($value['id']), $option);
                    ?>
>
                    <?php 
                    echo $option;
                    ?>
                </option>
                <?php 
                }
                ?>
            </select>
            <span class="description"><?php 
                echo $value['desc'];
                ?>
</span>
        </label>
    </td>
</tr>

<?php 
                break;
            case 'radio':
                ?>
<tr>
    <th><label for="<?php 
                echo $value['id'];
                ?>
"><?php 
                echo $value['name'];
                ?>
</label></th>
    <td>
        <?php 
                foreach ($value['options'] as $name => $option) {
                    ?>
        <label>
            <input type="radio" name="<?php 
                    echo $value['id'];
                    ?>
" id="<?php 
                    echo $value['id'];
                    ?>
" value="<?php 
                    echo $option;
                    ?>
" <?php 
                    checked(get_option($value['id']), $option);
                    ?>
>
            <?php 
                    echo $name;
                    ?>
        </label>
        <?php 
                }
                ?>
        <p><span class="description"><?php 
                echo $value['desc'];
                ?>
</span></p>
    </td>
</tr>
 
<?php 
                break;
            case 'checkbox':
                ?>
<tr>
    <th><?php 
                echo $value['name'];
                ?>
</th>
    <td>
        <label>
            <input type='checkbox' name="<?php 
                echo $value['id'];
                ?>
" id="<?php 
                echo $value['id'];
                ?>
" value="1" <?php 
                echo checked(get_option($value['id']), 1);
                ?>
 />
            <span><?php 
                echo $value['desc'];
                ?>
</span>
        </label>
    </td>
</tr>

<?php 
                break;
            case 'checkboxs':
                ?>
<tr>
    <th><?php 
                echo $value['name'];
                ?>
</th>
    <td>
        <?php 
                $checkboxsValue = get_option($value['id']);
                if (!is_array($checkboxsValue)) {
                    $checkboxsValue = array();
                }
                foreach ($value['options'] as $id => $title) {
                    ?>
        <label>
            <input type="checkbox" name="<?php 
                    echo $value['id'];
                    ?>
[]" id="<?php 
                    echo $value['id'];
                    ?>
[]" value="<?php 
                    echo $id;
                    ?>
" <?php 
                    checked(in_array($id, $checkboxsValue), true);
                    ?>
>
            <?php 
                    echo $title;
                    ?>
        </label>
        <?php 
                }
                ?>
        <span class="description"><?php 
                echo $value['desc'];
                ?>
</span>
    </td>
</tr>
 
<?php 
                break;
        }
    }
    ?>
<div class="panel" id="about_theme">
<h2>主题的那些事</h2>
        <p>&nbsp;&nbsp;这款主题一开始来自于大前端的D8主题,优秀的D8主题在经过欲思这里,欲思对这款主题进行了大量的修改,对本款主题的流行起到了非常重要的作用。</p>
        <p>&nbsp;&nbsp;云落在正式建站的时候选择了这款主题并且一直使用到现在,期间对这款主题进行了N次的代码修改,有的地方是小修改,有的地方事一些大的修改,在欲思主题的基础上面做了很多二次开发,随着主题的修改进程,个人对WordPress的理解也随之加深,对于WordPress的应用也较以前有了更深的熟练。</p>
        <p>&nbsp;&nbsp;故,在经过多次修改后,自觉主题修改的足够对其更名以将其与欲思主题以区分,并且将其代码托管至<a href="http://git.oschina.net/yunluo/git" target="_blank">开源中国</a>,并且将其更名为:Git !</p>
        <p>&nbsp;&nbsp;定名为Git,首先是因为主题采用Git版本系统管理代码的,写的最多的代码就是git了,另外G代表我的Googlo.Me,并且一直采用开源中国托管代码,遂定名为Git。</p>
        <p>&nbsp;&nbsp;感谢大前端的D8主题,感谢欲思的欲思主题,感谢小影的主题,感谢知更鸟的主题,感谢露兜博客,感谢devework,感谢开源中国,感谢一直跟随主题版本升级的朋友们</p>
<h2>支持云落</h2>
<p>如果您觉的这款主题很赞,欢迎您扫码支持云落</p>
<img style="width :300px;height :300px" src="http://i1.tietuku.com/d6c43b39f0c3c64c.jpg"></img>
<h2>联系云落</h2>
<a href="http://googlo.me/about.html" target="_blank">乐趣公园留言板</a>
</div>
<p class="submit">
    <input name="submit" type="submit" class="button button-primary" value="保存选项"/>
    <input type="hidden" name="action" value="update" />
</p>
</form>
<form method="post">
<p>
    <input name="reset" type="submit" class="button button-secondary" value="重置选项" onclick="return confirm('你确定要重置选项吗?');"/>
    <input type="hidden" name="action" value="reset" />
</p>
</form>
</div>
<style>.catlist{background-color:#FFB6C1;border:2px solid #FFB6C1;padding:5px;margin-top: 12px;text-align: center;color:#FFFFFF;}.catlist:hover{background-color:transparent;color: #000000}.yunluotips{border: 2px solid #FFCC33;padding: 20px}.yunluotips:hover{background: #FFCC33;}.panel{display:none}.panel h3{margin:0;font-size:1.2em}#panel_update ul{list-style-type:disc}.nav-tab-wrapper{clear:both}.nav-tab{position:relative}.nav-tab i:before{position:absolute;top:-10px;right:-8px;display:inline-block;padding:2px;border-radius:50%;background:#e14d43;color:#fff;content:"\f463";vertical-align:text-bottom;font:400 18px/1 dashicons;speak:none}#theme-options-search{display:none;float:right;margin-top:-34px;width:280px;font-weight:300;font-size:16px;line-height:1.5}.updated+#theme-options-search{margin-top:-91px}.wrap.searching .nav-tab-wrapper a,.wrap.searching .panel tr,#attrselector{display:none}.wrap.searching .panel{display:block !important}#attrselector[attrselector*=ok]{display:block}</style>
<style id="theme-options-filter"></style>
<div id="attrselector" attrselector="ok" ></div>
<script>
jQuery(function ($) {
    $(".nav-tab").click(function () {
        $(this).addClass("nav-tab-active").siblings().removeClass("nav-tab-active");
        $(".panel").hide();
        $($(this).attr("href")).show();
        return false;
    });

    var themeOptionsFilter = $("#theme-options-filter");
    themeOptionsFilter.text("ok");
    if ($("#attrselector").is(":visible") && themeOptionsFilter.text() != "") {
        $(".panel tr").each(function (el) {
            $(this).attr("data-searchtext", $(this).text().replace(/\r|\n/g, '').replace(/ +/g, ' ').toLowerCase());
        });

        var wrap = $(".wrap");
        $("#theme-options-search").show().on("input propertychange", function () {
            var text = $(this).val().replace(/^ +| +$/, "").toLowerCase();
            if (text != "") {
                wrap.addClass("searching");
                themeOptionsFilter.text(".wrap.searching .panel tr[data-searchtext*='" + text + "']{display:block}");
            } else {
                wrap.removeClass("searching");
                themeOptionsFilter.text("");
            };
        });
    };
});
</script>

<?php 
}
Beispiel #5
0
    }
    $args = array('category__in' => explode(',', $cats), 'post__not_in' => explode(',', $exclude_id), 'caller_get_posts' => 1, 'orderby' => 'comment_date', 'posts_per_page' => $post_num - $i);
    query_posts($args);
    while (have_posts()) {
        the_post();
        ?>

	<li class="related_box"  >
		<a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title();
        ?>
" target="_blank"><?php 
        if (git_get_option('git_cdnurl_b')) {
            echo '<img src="';
            echo post_thumbnail_src();
            echo '?imageView2/1/w/185/h/110/q/85" alt="' . get_the_title() . '" />';
        } else {
            echo '<img src="' . get_bloginfo("template_url") . '/timthumb.php?src=';
            echo post_thumbnail_src();
            echo '&h=110&w=185&q=90&zc=1&ct=1" alt="' . get_the_title() . '" />';
        }
        ?>
<br><span class="r_title"><?php 
        the_title();
        ?>
</span></a>
		</li>
	<?php 
Beispiel #6
0
"><?php 
        if (git_get_option('git_cdnurl_b')) {
            echo '<img class="thumb" src="';
            echo post_thumbnail_src();
            echo '?imageView2/1/w/';
            echo git_get_option('git_thumb_width') ? git_get_option('git_thumb_width') : 200;
            echo '/h/';
            echo git_get_option('git_thumb_height') ? git_get_option('git_thumb_height') : 123;
            echo '/q/85" alt="' . get_the_title() . '" />';
        } else {
            echo '<img class="thumb" src="' . get_bloginfo("template_url") . '/timthumb.php?src=';
            echo post_thumbnail_src();
            echo '&h=';
            echo git_get_option('git_thumb_height') ? git_get_option('git_thumb_height') : 123;
            echo '&w=';
            echo git_get_option('git_thumb_width') ? git_get_option('git_thumb_width') : 200;
            echo '&q=90&zc=1&ct=1" alt="' . get_the_title() . '" />';
        }
        ?>
</a></div>
<?php 
    }
    ?>
		<span class="note"> <?php 
    echo $content;
    ?>
</span>
<p class="auth-span">
<?php 
    if (!is_author() && !$_author) {
        ?>
Beispiel #7
0
        get_currentuserinfo();
        $uid = $current_user->ID;
        $u_name = get_user_meta($uid, 'nickname', true);
        ?>
			<div class="pull-right">
				<?php 
        if (is_user_logged_in()) {
            echo '<i class="fa fa-user"></i> <a href="/wp-admin">' . $u_name . '</a> ';
        } else {
            echo '<i class="fa fa-user"></i> <a href="/wp-login.php?action=register">注册</a>';
        }
        echo ' &nbsp; <i class="fa fa-power-off"></i> ';
        echo wp_loginout();
        echo '';
        ?>
			</div>
		<?php 
    }
    ?>
		<div class="toptip"><strong class="text-success"><i class="fa fa-volume-up"></i> </strong> <?php 
    echo git_get_option('git_tui');
    ?>
</div>
	</div>
	<?php 
}
?>
	<?php 
if (git_get_option('git_adsite_01')) {
    echo '<div class="banner banner-site">' . git_get_option('git_adsite_01') . '</div>';
}
Beispiel #8
0
function googlo_mail_smtp($phpmailer)
{
    $phpmailer->From = '' . git_get_option('git_maildizhi_b') . '';
    //发件人地址
    $phpmailer->FromName = '' . git_get_option('git_mailnichen_b') . '';
    //发件人昵称
    $phpmailer->Host = '' . git_get_option('git_mailsmtp_b') . '';
    //SMTP服务器地址
    $phpmailer->Port = '' . git_get_option('git_mailport_b') . '';
    //SMTP邮件发送端口, 常用端口有:25、465、587, 具体联系邮件服务商
    $phpmailer->SMTPSecure = '';
    //SMTP加密方式(SSL/TLS)没有为空即可,具体联系邮件服务商, 以免设置错误, 无法正常发送邮件
    $phpmailer->Username = '' . git_get_option('git_mailuser_b') . '';
    //邮箱帐号
    $phpmailer->Password = '' . git_get_option('git_mailpass_b') . '';
    //邮箱密码
    $phpmailer->IsSMTP();
    $phpmailer->SMTPAuth = true;
    //启用SMTPAuth服务
}
Beispiel #9
0
?>
		</div>
		<?php 
if (wp_is_mobile()) {
    ?>
		<?php 
    if (git_get_option('Mobiled_adpost_02_b')) {
        echo '<div id="comment-ad" class="banner-related">' . git_get_option('Mobiled_adpost_02') . '</div>';
    }
}
?>
		<?php 
if (git_get_option('git_adpost_02_b')) {
    echo '<div id="comment-ad" class="banner banner-related">' . git_get_option('git_adpost_02') . '</div>';
}
?>
		<?php 
comments_template('', true);
?>
		<?php 
if (git_get_option('git_adpost_03_b')) {
    echo '<div class="banner banner-comment">' . git_get_option('git_adpost_03') . '</div>';
}
?>
	</div>
</div>
<?php 
if (!G_is_mobile()) {
    get_sidebar();
}
get_footer();
Beispiel #10
0
 -- <?php 
echo bloginfo('name');
?>
</h1>
<div class="demo-header">
	<a class="demo-name" href="<?php 
echo get_permalink($pid);
?>
">&laquo; <?php 
echo $title;
?>
</a>
	<span style="display:none"><?php 
if (git_get_option('git_track') != '') {
    echo git_get_option('git_track');
}
?>
</span>
</div>
<div class="demo-container demo"><?php 
echo $theCode;
?>
</div>
<div style="display:none"><?php 
if (git_get_option('git_track')) {
    echo git_get_option('git_track');
}
?>
</div>
</body>
</html>
Beispiel #11
0
				<?php 
deel_share();
?>
			</div>
		</header>
		<?php 
while (have_posts()) {
    the_post();
    ?>
			<article class="article-content">
				<?php 
    the_content();
    ?>
			</article>
<?php 
    $bookmarks = get_bookmarks(array('category' => git_get_option('git_linkpage_cat') ? git_get_option('git_linkpage_cat') : ''));
    if (!empty($bookmarks)) {
        echo '<ul class="link-content clearfix">';
        foreach ($bookmarks as $bookmark) {
            echo '<li><a href="' . $bookmark->link_url . '" title="' . $bookmark->link_description . '" target="_blank" ><img src="http://favicon.ydr.me/?url=' . $bookmark->link_url . '" height="32" width="32" />
<span class="sitename">' . $bookmark->link_name . '</span></a></li>';
        }
        echo '</ul>';
    }
    ?>

			<?php 
    comments_template('', true);
    ?>

		<?php 
Beispiel #12
0
"><img src="<?php 
    echo git_get_option('git_slick5img_b');
    ?>
" alt="<?php 
    echo git_get_option('git_slick5title_b');
    ?>
"><span><?php 
    echo git_get_option('git_slick5title_b');
    ?>
</span></a></div><?php 
}
?>
	<?php 
if (git_get_option('git_slick6img_b')) {
    ?>
<div><a href="<?php 
    echo git_get_option('git_slick6url_b');
    ?>
"><img src="<?php 
    echo git_get_option('git_slick6img_b');
    ?>
" alt="<?php 
    echo git_get_option('git_slick6title_b');
    ?>
"><span><?php 
    echo git_get_option('git_slick6title_b');
    ?>
</span></a></div><?php 
}
?>
</div>
Beispiel #13
0
    } else {
        if (get_option('require_name_email') && !empty($comment_author_email)) {
            printf($comment_author . ' <span>发表我的评论</span> &nbsp; <a class="switch-author" href="javascript:;" data-type="switch-author" style="font-size:12px;">换个身份</a>');
        } else {
            printf('发表我的评论');
        }
    }
    ?>
			</div>
			<a id="cancel-comment-reply-link" class="pull-right" href="javascript:;">取消评论</a>
		</div>

		<div class="comt">
			<div class="comt-box">
				<textarea placeholder="<?php 
    echo git_get_option('git_comment_placeholder', '说点什么吧……');
    ?>
" class="input-block-level comt-area" name="comment" id="comment" cols="100%" rows="3" tabindex="1" onkeydown="if(event.ctrlKey&amp;&amp;event.keyCode==13){document.getElementById('submit').click();return false};"></textarea>
				<div class="comt-ctrl">
					<button class="btn btn-primary pull-right" type="submit" name="submit" id="submit" tabindex="5"><i class="fa fa-check-square-o"></i> 提交评论</button>
					<div class="comt-tips pull-right"><?php 
    comment_id_fields();
    do_action('comment_form', $post->ID);
    ?>
</div>
					<span data-type="comment-insert-smilie" class="muted comt-smilie"><i class="fa fa-smile-o"></i> 表情</span>
					<span class="muted ml5 comt-img"><i class="fa fa-picture-o"></i><a href="javascript:SIMPALED.Editor.img()" style="color:#999999"> 贴图</a></span>
					<span class="muted ml5 comt-strong"><i class="fa fa-bold"></i><a href="javascript:SIMPALED.Editor.strong()" style="color:#999999"> 加粗</a></span>
					<span class="muted ml5 comt-del"><i class="fa fa-strikethrough"></i><a href="javascript:SIMPALED.Editor.del()" style="color:#999999"> 删除线</a></span>
					<span class="muted ml5 comt-center"><i class="fa fa-align-center"></i><a href="javascript:SIMPALED.Editor.center()" style="color:#999999"> 居中</a></span>
					<span class="muted ml5 comt-italic"><i class="fa fa-italic"></i><a href="javascript:SIMPALED.Editor.italic()" style="color:#999999"> 斜体</a></span>
Beispiel #14
0
if (!git_get_option('git_tougao_b')) {
    die('逗比,你确定你投稿功能开启了吗?→_→ ');
}
if (isset($_POST['tougao_form']) && $_POST['tougao_form'] == 'send') {
    global $wpdb;
    $current_url = '' . get_permalink() . '';
    // 注意修改此处的链接地址
    $last_post = $wpdb->get_var("SELECT `post_date` FROM `{$wpdb->posts}` ORDER BY `post_date` DESC LIMIT 1");
    if (current_time('timestamp') - strtotime($last_post) < (git_get_option('git_tougao_time') ? git_get_option('git_tougao_time') : 240)) {
        wp_die('您投稿也太勤快了吧,先歇会儿!<a href="' . $current_url . '">点此返回</a>');
    }
    // 表单变量初始化
    $name = isset($_POST['tougao_authorname']) ? trim(htmlspecialchars($_POST['tougao_authorname'], ENT_QUOTES)) : '';
    $title = isset($_POST['tougao_title']) ? trim(htmlspecialchars($_POST['tougao_title'], ENT_QUOTES)) : '';
    $content = isset($_POST['tougao_content']) ? trim(htmlspecialchars($_POST['tougao_content'], ENT_QUOTES)) : '';
    $tomail = git_get_option('git_tougao_mailto');
    // 表单项数据验证
    if (empty($name) || mb_strlen($name) > 20) {
        wp_die('昵称必须填写,且长度不得超过20字。<a href="' . $current_url . '">点此返回</a>');
    }
    if (empty($title) || mb_strlen($title) > 100) {
        wp_die('标题必须填写,且长度不得超过100字。<a href="' . $current_url . '">点此返回</a>');
    }
    if (empty($content) || mb_strlen($content) > 3000 || mb_strlen($content) < 10) {
        wp_die('内容必须填写,且长度不得超过3000字,不得少于100字。<a href="' . $current_url . '">点此返回</a>');
    }
    $post_content = $content . '<br />感谢来自:' . $name . '的投稿';
    $tougao = array('post_title' => $title, 'post_content' => $post_content);
    // 将文章插入数据库
    $status = wp_insert_post($tougao);
    if ($status != 0) {
Beispiel #15
0
.c2 a:hover{ color:#626262; text-decoration:none;}
.c2 a.home{ width:66px; background:url("' . get_bloginfo("template_url") . '/img/02.png"); padding-left:30px; }
.c2 a.home:hover{ background:url("' . get_bloginfo("template_url") . '/img/02.png") 0 -24px; }
.c2 a.home:active{ background:url("' . get_bloginfo("template_url") . '/img/02.png") 0 -48px; }
.c2 a.re{ width:66px; background:url("' . get_bloginfo("template_url") . '/img/03.png"); padding-left:30px; }
.c2 a.re:hover{ background:url("' . get_bloginfo("template_url") . '/img/03.png") 0 -24px; }
.c2 a.re:active{ background:url("' . get_bloginfo("template_url") . '/img/03.png") 0 -48px; }
.c2 a.sr{ width:153px; background:url("' . get_bloginfo("template_url") . '/img/04.png"); padding-left:28px; }
.c2 a.sr:hover{ background:url("' . get_bloginfo("template_url") . '/img/04.png") 0 -24px; }
.c2 a.sr:active{ background:url("' . get_bloginfo("template_url") . '/img/04.png") 0 -48px; }
.c3{ height:180px; text-align:center; color:#999; font-size:12px; }
</style>
		<div class="cont">
			<div class="c1"><img src="' . get_bloginfo("template_url") . '/img/01.png" class="img1" /></div>
			<h2>404页面咯~你访问的页面不存在</h2>
			<div class="c2"><a href="javascript:;" class="re" onclick="javascript:history.back();">返回上页</a><a href="/" class="home">网站首页</a></div>
			<div class="c3">通过搜索把你想找的文章给揪出来吧...</div>
		</div>';
} else {
    echo '<div style="text-align:center;padding:10px 0;font-size:16px;background-color:#ffffff;">
		<h2 style="font-size:36px;margin-bottom:10px;">哎呦卧槽~404了~休息一下,玩个游戏吧!</h2>
  <embed type="application/x-shockwave-flash" width="600" height="400" src="http://images.yusi123.com/zhuamao.swf" wmode="transparent" quality="high" scale="noborder" flashvars="width=600&amp;height=400" allowscriptaccess="sameDomain" align="L">
</div>';
}
if (git_get_option('git_404ad')) {
    echo git_get_option('git_404ad');
}
?>
</div>
<?php 
get_footer();
Beispiel #16
0
if (git_get_option('git_track')) {
    echo git_get_option('git_track');
}
?>
</span></div></div></footer>
<?php 
if (git_get_option('git_copydialog_b') && is_singular()) {
    echo '<script type="text/javascript">document.body.oncopy=function(){alert("复制成功!若要转载请务必保留原文链接,申明来源,谢谢合作!");}</script>';
}
?>

<?php 
if (git_get_option('git_snow_b')) {
    ?>
<script type="text/javascript">(function(a){a.fn.snow=function(d){var g=a('<div id="snowbox" />').css({position:"absolute","z-index":"9999",top:"-50px"}).html("&#10052;"),f=a(document).height(),b=a(document).width(),e={minSize:10,maxSize:20,newOn:1000,flakeColor:"#FFF"},d=a.extend({},e,d);var c=setInterval(function(){var l=Math.random()*b-100,j=0.5+Math.random(),h=d.minSize+Math.random()*d.maxSize,i=f-200,k=l-500+Math.random()*500,m=f*10+Math.random()*5000;g.clone().appendTo("body").css({left:l,opacity:j,"font-size":h,color:d.flakeColor}).animate({top:i,left:k,opacity:0.2},m,"linear",function(){a(this).remove()})},d.newOn)}})(jQuery);$(function(){$.fn.snow({minSize:5,maxSize:50,newOn:300})});
</script><?php 
}
if (git_get_option('git_copy_b') && is_singular()) {
    echo '<script type="text/Javascript">document.oncontextmenu=function(e){return false;};document.onselectstart=function(e){return false;};</script><style>body{ -moz-user-select:none;}</style><SCRIPT LANGUAGE=javascript>if (top.location != self.location)top.location=self.location;</SCRIPT><noscript><iframe src=*.html></iframe></noscript>';
}
if (git_get_option('git_footercode')) {
    echo git_get_option('git_footercode');
}
wp_footer();
global $dHasShare;
if ($dHasShare == true) {
    echo '<script>with(document)0[(getElementsByTagName("head")[0]||body).appendChild(createElement("script")).src="' . get_bloginfo("template_url") . '/js/share.js?v=89860593.js?cdnversion="+~(-new Date()/36e5)];</script>';
}
?>
</body>
</html>
Beispiel #17
0
function dtheme_posts_list($orderby, $limit, $cat, $img)
{
    $args = array('order' => DESC, 'cat' => $cat, 'orderby' => $orderby, 'showposts' => $limit, 'caller_get_posts' => 1);
    query_posts($args);
    while (have_posts()) {
        the_post();
        ?>
<li>
<a target="_blank" href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title();
        ?>
" ><?php 
        if (git_get_option('git_cdnurl_b')) {
            if ($img) {
                echo '<span class="thumbnail">';
                echo '<img src="';
                echo post_thumbnail_src();
                echo '?imageView2/1/w/100/h/64/q/85" alt="' . get_the_title() . '" /></span>';
            } else {
                $img = '';
            }
        } else {
            if ($img) {
                echo '<span class="thumbnail">';
                echo '<img src="' . get_bloginfo("template_url") . '/timthumb.php?src=';
                echo post_thumbnail_src();
                echo '&h=64&w=100&q=90&zc=1&ct=1" alt="' . get_the_title() . '" /></span>';
            } else {
                $img = '';
            }
        }
        ?>
<span class="text"><?php 
        the_title();
        ?>
</span><span class="muted"><?php 
        the_time('Y-m-d');
        ?>
</span><span class="muted"><?php 
        comments_number('0', '1评论', '%评论');
        ?>
</span></a>
</li>
<?php 
    }
    wp_reset_query();
}
Beispiel #18
0
        } else {
            echo '<img class="thumb" src="' . get_bloginfo("template_url") . '/timthumb.php?src=';
            echo post_thumbnail_src();
            echo '&h=';
            echo git_get_option('git_thumb_height') ? git_get_option('git_thumb_height') : 123;
            echo '&w=';
            echo git_get_option('git_thumb_width') ? git_get_option('git_thumb_width') : 200;
            echo '&q=90&zc=1&ct=1" alt="' . get_the_title() . '" />';
        }
        ?>
</a></div>
	<?php 
    }
    ?>
		<span class="note"> <?php 
    echo deel_strimwidth(strip_tags(apply_filters('the_content', strip_shortcodes($post->post_content))), 0, git_get_option('git_excerpt_length') ? git_get_option('git_excerpt_length') : 260, '……<a href="' . post_permalink() . '" rel="nofollow" class="more-link">继续阅读 &raquo;</a>');
    ?>
</span>
<p class="auth-span">
<?php 
    if (!is_author() && !$_author) {
        ?>
		<span class="muted"><i class="fa fa-user"></i> <a href="<?php 
        echo get_author_posts_url(get_the_author_meta('ID'));
        ?>
"><?php 
        echo get_the_author();
        ?>
</a></span>
	<?php 
    }