smwordpress的简单介绍
wordpress主题被加密了,麻烦帮忙解一下,谢谢
解密后如下
网站建设哪家好,找创新互联!专注于网页设计、网站建设、微信开发、重庆小程序开发、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了鄂伦春免费建站欢迎大家使用!
??php get_sidebar(); ?
/div!-- end columns_wrapper --
div id="footer"
div class="footer-left"
pDesign a href=""Slyar Home/abr /
Support a href=""Slyar Home/a | a href=""Slyar Blog/a | a href=""Slyar Home/a/p
/div
div class="footer-right"
p??php echo date('Y');? a href="?php bloginfo('siteurl');?/" title="?php bloginfo('name');?" ?php bloginfo('name');?/a/p
/div
/div !-- end footer --
/div !-- end page --
?php wp_footer(); ?
/div
script type="text/javascript"
var menu=new menu.dd("menu");
menu.init("menu","menuhover");
/script
/body
/html
帮忙弄一段wordpress小工具代码 参考:www.daqianduan.com
PHP
?php
/**
* @author: suifengtec coolwp.com
* @date: 2015-04-29 21:33:39
* @last Modified by: suifengtec
* @last Modified time: 2015-04-29 21:46:39
*/
/*
Plugin Name: WP Stylish Widgetsssss
Plugin URI:
Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from citeHello, Dolly/cite in the upper right of your admin screen on every page.
Author: Matt Mullenweg
Version: 0.9
Author URI:
*/
defined('ABSPATH') or die('-1');
add_action('wp_enqueue_scripts','cwp_enqueue_for_widgets', false);
function cwp_enqueue_for_widgets(){
wp_enqueue_style('wp-s-w-css', plugins_url( 'css/css.css' ,__FILE__ ));
}
add_action( 'widgets_init', function(){
register_widget( 'My_Widget222' );
});
class My_Widget222 extends WP_Widget {
function __construct() {
parent::__construct(
'My_Widget',
'我的小工具2',
array( 'description' = '我的小工具222', )
);
}
public function widget( $args, $instance ) {
echo $args['before_widget'];
if ( ! empty( $instance['title'] ) ) {
echo 'h3'.apply_filters( 'widget_title', $instance['title'] ).'/h3';
}
?
ul class="ebox"
li class="ebox-i ebox-01"
h4前端网址导航/h4
p扁平化设计、自定义颜色风格、多功能配置/p
a class="btn btn-default btn-sm" target="_blank" href="#"立即使用/a
/li
li class="ebox-i ebox-02"
h4产品-交互-设计/h4
p展示各种精彩炫酷的网站设计和用户体验良好的设计元素/p
a class="btn btn-default btn-sm" target="_blank" href="#"开始学习/a
/li
li class="ebox-i ebox-03"
h4名企招聘/h4
p名企前端招聘大集合,有能量就释放出来吧/p
a class="btn btn-default btn-sm" target="_blank" href="#"查看职位/a
/li
li class="ebox-i ebox-04"
h4Sublime Text/h4
p前端开发利器,全套快捷键和插件推荐/p
a class="btn btn-default btn-sm" target="_blank" href="#"开始使用/a
/li
li class="ebox-i ebox-05 ebox-100"
h4前端开发工具箱/h4
p
a target="_blank" href="#"JS压缩/加密/格式化/a |
a target="_blank" href="#"CSS压缩/格式化/a |
a target="_blank" href="#"在线代码高亮/a
/p
a class="btn btn-default btn-sm" target="_blank" href="#"立即使用/a
/li
/ul
?php
echo $args['after_widget'];
}
public function form( $instance ) {
if ( isset( $instance[ 'title' ] ) ) {
$title = $instance[ 'title' ];
}else {
$title ='我的小工具1';
}
?
p
label for="?php echo $this-get_field_id( 'title' ); ?"标题/label
input class="widefat" id="?php echo $this-get_field_id( 'title' ); ?" name="?php echo $this-get_field_name( 'title' ); ?" type="text" value="?php echo esc_attr( $title ); ?"
/p
?php
}
public function update( $new_instance, $old_instance ) {
$instance = array();
$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
return $instance;
}
}
CSS:
.ebox {
overflow: hidden;
font-size: 12px;
text-align: center;
background-color: #fff;
}
.widget ul {
list-style: none;
padding: 0;
margin: 0;
}
.widget ul:before, .widget ul:after {
display: table;
content: "";
line-height: 0;
}
.widget h3 {
font-size: 18px;
color: #666;
border-bottom: 1px solid #eaeaea;
background-color: #fbfbfb;
margin: 0;
padding: 11px 15px 10px;
/* background: url(../img/bg.png) 0 bottom repeat-x; */
}
.ebox-i {
position: relative;
float: left;
width: 50%;
padding: 15px 15px 20px;
background-color: #fff;
color: #777;
border-bottom: 1px dashed #ddd;
}
.ebox-01, .ebox-03 {
border-right: 1px dashed #ddd;
}
.ebox-i:hover {
background-color: #F9F9F9;
}
h4, .h4 {
font-size: 18px;
}
p {
margin: 0 0 10px;
}
.ebox-i p {
height: 36px;
overflow: hidden;
color: #bbb;
}
.btn {
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: normal;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
transition: all 0.25s;
}
.btn-default {
color: #333;
background-color: #fff;
border-color: #ccc;
}
.btn-sm, .btn-group-sm .btn {
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.btn-default {
border-color: #ddd;
color: #666;
}
.ebox-100 {
width: 100%;
margin-bottom: 0;
border-bottom: none;
}
.btn:hover, .btn:focus {
color: #333;
text-decoration: none;
}
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default {
background-color: #e6e6e6;
}
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default {
border-color: #bbb;
color: #444;
}
.widget ul:before, .widget ul:after {
display: table;
content: "";
line-height: 0;
}
.widget ul:after {
clear: both;
}
文件结构:
效果示意:
请解密wordpress的floor.php文件密码解密,具体密码如下
? ?php if ( ( function_exists('dynamic_sidebar') (is_active_sidebar(2) || is_active_sidebar(3) || is_active_sidebar(4)) ) ) : ?
!-- Footer Starts --
div id="footer-out"
div id="footer"
div class="position wrap"
!-- Footer Widget Area Starts --
div class="block"
?php dynamic_sidebar(2); ?
/div
div class="block"
?php dynamic_sidebar(3); ?
/div
div class="block"
?php dynamic_sidebar(4); ?
/div
!-- Footer Widget Area Ends --
?php endif; ?
/div
/div
/div
!-- Footer Ends --
!-- Copyright Starts --
div id="copyright-out"
div id="copyright" class="wrap"
div class="col-left"
p© 2008 ?php bloginfo(); ?. All Rights Reserved./p
/div
div class="col-right"
pa href="" title="simulation pret immobilier calcul emprunt rachat credit"simulation pret immobilier calcul emprunt rachat credit/a a href="" title="calcul credit immobilier simulation taux de france courtier"img src="?php bloginfo('template_directory'); ?/?php woo_style_path() ?/img_woothemes.jpg" width="87" height="21" alt="calcul credit immobilier simulation taux de france courtier" //a/p
/div
/div
/div
!-- Copyright Ends --
/div
?php wp_footer(); ?
?php if ( get_option('woo_google_analytics') "" ) { echo stripslashes(get_option('woo_google_analytics')); } ?
?php if ( get_option('woo_twitter') ) { ?
script type="text/javascript" src=""/script
script type="text/javascript" src=";?php echo get_option('woo_twitter'); ?.json?callback=twitterCallback2count=1"/script
?php } ?
/body
/html
分享文章:smwordpress的简单介绍
地址分享:http://pwwzsj.com/article/doephoc.html