Changeset 1318156
- Timestamp:
- 12/29/2015 09:16:56 PM (10 years ago)
- Location:
- just-another-saperu-integration/trunk
- Files:
-
- 2 edited
-
just-another-saperu-integration.php (modified) (6 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
just-another-saperu-integration/trunk/just-another-saperu-integration.php
r1318143 r1318156 4 4 Plugin URI: https://darx.net/projects/sape-api 5 5 Description: Integrate `Sape.ru` monetization to your site in two clicks. 6 Version: 2.0 16 Version: 2.03 7 7 Author: kowack 8 8 Author URI: https://darx.net … … 77 77 echo sprintf( __( 'The constant %s has been already defined!', 'sape-api' ), '<code>_SAPE_USER</code>' ); 78 78 echo ' '; 79 echo sprintf( __( 'Settings of the plugin %s is not used!', 'sape-api' ), '<code> Sape API</code>' );79 echo sprintf( __( 'Settings of the plugin %s is not used!', 'sape-api' ), '<code>Just another Sape.ru integration</code>' ); 80 80 echo '</p></div>'; 81 81 } ); … … 143 143 144 144 // show code on front page -- need to add site to sape system 145 if ( is_front_page()) {145 if ( is_front_page() ) { 146 146 add_action( 'wp_footer', array( &$this, '_sape_return_links' ), 1 ); 147 147 } … … 341 341 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'rpc-client.php'; 342 342 343 $table = new Sape_List_Table();344 $table->items = false; //get_transient( 'sape.get_sites_EXT' );345 $from_cache = false;343 $table = new Sape_List_Table(); 344 $table->items = get_transient( 'sape.get_sites_EXT' ); 345 $from_cache = false; 346 346 $login_success = false; 347 347 if ( $table->items === false ) { … … 374 374 if ( $ok ) { 375 375 $login_success = true; 376 $table->items = $rpc->getResponse();376 $table->items = $rpc->getResponse(); 377 377 if ( ! empty( $table->items ) ) { 378 378 $ok = $rpc->query( 'sape.get_sites_links_count', 'OK' ); … … 386 386 $links_WAIT = $rpc->getResponse(); 387 387 foreach ( $table->items as &$item ) { 388 $item['nof_OK'] = 0;388 $item['nof_OK'] = 0; 389 389 $item['nof_SLEEP'] = 0; 390 $item['nof_WAIT'] = 0;390 $item['nof_WAIT'] = 0; 391 391 foreach ( $links_OK as $link ) { 392 392 if ( $item['id'] === $link['site_id'] ) { -
just-another-saperu-integration/trunk/readme.txt
r1318143 r1318156 5 5 Requires at least: 3.5 6 6 Tested up to: 4.4 7 Stable tag: 2.0 17 Stable tag: 2.03 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 **[RUS]** 49 49 50 = Настройка плагина = 51 52 Нет необходимости скачивать файлы и архивы или устанавливать что-либо вручную. 53 54 Достаточно указать ваш идентификатор с системе `Sape`. 55 56 Плагин всё сделает автоматически. 57 50 58 = Статистика = 51 59 52 60 Возможность узнать статистику и прибыль по сайту из админ-панели Wordpress-а. 61 53 62 Достаточно указать логин и md5-хеш от пароля (для безопасности). 54 63 55 = Настройка плагина=64 = wptexturize = 56 65 57 Нет необходимости скачивать файлы и архивы или устанавливать что-либо вручную. 58 Достаточно указать ваш идентификатор с системе `Sape`. 59 Плагин всё сделает автоматически. 66 Плагин отлично дружит с фильтром `wptexturize`. 60 67 61 68 = Виджет = … … 76 83 77 84 * `<?php echo do_shortcode('[sape]') ?>` 85 86 = Продажа статей = 87 88 В разработке. 89 90 = Расширение функционала = 91 92 Есть пожелания/идеи что добавить/изменить? 93 Пишите мне, с радостью отвечу. 94 Контакты внизу страницы на сайте 95 (darx.net)[https://darx.net/#contacts] 78 96 79 97 = Плагин бесплатный ? =
Note: See TracChangeset
for help on using the changeset viewer.