wordpress widgets
<?php
/*
Plugin Name: Name des Widgetplugins
Plugin URI: http://
Description: Eine kurze Beschreibung
Author: Dein Name
Version: 0.0
License: deine Linzenzvergabe
Author URI: http://
Update Server: http://
Min WP Version: 1.5
Max WP Version: 2.0.3
*/ (continue reading…)
wordpress loop
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div id=”post-<?php the_ID(); ?>”>
<h2><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php (continue reading…)
wordpress二次开发常用函数
这里只列出最常用的几个。先是重要的bloginfo(),不直接echo数值的函数为get_bloginfo();恩,不少函数都是按照这个规则写的,PS:并不是全部!echo出函数值的函数为xxx()的话,那么不echo出结果值的的函数为get_xxx()。 (continue reading…)
wordpress主题原理
一、主题包各文件说明
header.php:这个文件中包含博客的标题(title),描述(description),tag,以及css等信息。
sidebar.php:这个文件控制你侧边栏中的显示方式。
footer.php:控制页面底部的显示,包括ICP,版权声明等信息。 (continue reading…)
wordpress插件原理
WordPress的插件机制使得开发者可以方便地向系统添加自己需要的功能,而这是使得Wordpress得以在全世界流行的重要原因。一个 WordPress插件是一个程序,或者是用PHP脚本语言写出的一个或一些函数的集合,用来往WordPress Webblog 里增加一些特定的特征和服务,它们可以通过WordPress的 Plugin Application Program Interface (API) 提供的接入点和函数无缝的集成到Webblog里. (continue reading…)
Linux 常用命令
Linux 常用命令使用方法大搜刮
1.# 表示权限用户(如:root),$ 表示普通用户
开机提示:Login:输入用户名
password:输入口令 用户是系统注册用户成功登陆后,可以进入相应的用户环境. (continue reading…)
常用正则表达式
- [b]平时做网站经常要用正则表达式,下面是一些讲解和例子,仅供大家参考和修改使用:[/b]
- “^\d+$” //非负整数(正整数 + 0)
- “^[0-9]*[1-9][0-9]*$” //正整数 (continue reading…)
双向MM表对应同一个表的同一个字段.
config.添加配置:’MM_own_field’ => true,
添加t3lib_loaddbgroup的XCLASS: (continue reading…)
TS判断系统与浏览器
General notes:
Values are normally trimmed for whitespaces before comparison.
You may combine several conditions with two operators: && (and), || (or)
Alternatively you may use “AND” and “OR” instead of “&&” and “||”. The AND operator has always higher precedence over OR. If no operator has been specified, it will default to OR. (continue reading…)